[clang] [Clang][RISCV] Support -fcf-protection=return for RISC-V (PR #112477)

2024-10-22 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw updated https://github.com/llvm/llvm-project/pull/112477 >From fe4a28fb691b69d9af384f1dc2f0667761adef44 Mon Sep 17 00:00:00 2001 From: Jesse Huang Date: Sun, 13 Oct 2024 15:11:06 +0800 Subject: [PATCH 1/2] [Clang][RISCV] Support -fcf-protection=return for RISC-V ---

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,174 @@ +/*===-- movrs_avx10_2intrin.h - AVX512MOVRS intrinsics -=== phoebewang wrote: AVX10.2-MOVRS https://github.com/llvm/llvm-project/pull/113274 ___ cfe-commits mailing list cfe-commi

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -7572,3 +7572,42 @@ def int_x86_avx10_vfnmsub231nepbf16128 : ClangBuiltin<"__builtin_ia32_vfnmsub231 DefaultAttrsIntrinsic<[llvm_v8bf16_ty], [llvm_v8bf16_ty, llvm_v8bf16_ty, llvm_v8bf16_ty ], [IntrNoMem]>; } + +let TargetPrefix = "x86"

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,98 @@ +/*=== movrs_avx10_2_512intrin.h - AVX512MOVRS intrinsics ---=== phoebewang wrote: `AVX512MOVRS` -> `AVX10.2-512-MOVRS` https://github.com/llvm/llvm-project/pull/113274 ___ cfe-commits

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -261,6 +261,7 @@ X86_FEATURE_COMPAT(AVX10_1, "avx10.1-256", 36) X86_FEATURE_COMPAT(AVX10_1_512, "avx10.1-512", 37) X86_FEATURE_COMPAT(AVX10_2, "avx10.2-256",0) X86_FEATURE_COMPAT(AVX10_2_512, "avx10.2-512",

[clang] [clang][modules] Shrink the size of `Module::Headers` (PR #113395)

2024-10-22 Thread via cfe-commits
@@ -271,8 +271,22 @@ class alignas(8) Module { DirectoryEntryRef Entry; }; - /// The headers that are part of this module. - SmallVector Headers[5]; +private: + unsigned HeaderKindBeginIndex[6] = {}; + SmallVector HeadersStorage; + +public: + ArrayRef getHeaders(Hea

[clang] [clang][modules] Shrink the size of `Module::Headers` (PR #113395)

2024-10-22 Thread via cfe-commits
@@ -271,8 +271,22 @@ class alignas(8) Module { DirectoryEntryRef Entry; }; - /// The headers that are part of this module. - SmallVector Headers[5]; +private: + unsigned HeaderKindBeginIndex[6] = {}; cor3ntin wrote: Why 6 rather than 5? https://gith

[clang] [clang][modules] Shrink the size of `Module::Headers` (PR #113395)

2024-10-22 Thread via cfe-commits
@@ -271,8 +271,22 @@ class alignas(8) Module { DirectoryEntryRef Entry; }; - /// The headers that are part of this module. - SmallVector Headers[5]; +private: + unsigned HeaderKindBeginIndex[6] = {}; + SmallVector HeadersStorage; + +public: + ArrayRef getHeaders(Hea

[clang] [clang][modules] Shrink the size of `Module::Headers` (PR #113395)

2024-10-22 Thread via cfe-commits
@@ -271,8 +271,22 @@ class alignas(8) Module { DirectoryEntryRef Entry; }; - /// The headers that are part of this module. - SmallVector Headers[5]; +private: + unsigned HeaderKindBeginIndex[6] = {}; cor3ntin wrote: actually, it should be `NumHeaderK

[clang] [Clang][RISCV] Support -fcf-protection=return for RISC-V (PR #112477)

2024-10-22 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw updated https://github.com/llvm/llvm-project/pull/112477 >From fe4a28fb691b69d9af384f1dc2f0667761adef44 Mon Sep 17 00:00:00 2001 From: Jesse Huang Date: Sun, 13 Oct 2024 15:11:06 +0800 Subject: [PATCH 1/2] [Clang][RISCV] Support -fcf-protection=return for RISC-V ---

[clang] [Clang][RISCV] Support -fcf-protection=return for RISC-V (PR #112477)

2024-10-22 Thread Jesse Huang via cfe-commits
@@ -899,6 +899,10 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, if (CodeGenOpts.PointerAuth.IndirectGotos) Fn->addFnAttr("ptrauth-indirect-gotos"); + // Add return control flow integrity attributes. + if (CodeGenOpts.CFProtectionReturn) +Fn

[clang-tools-extra] [clangd] Harden incomingCalls() against possible misinterpretation of a range as pertaining to the wrong file (PR #111616)

2024-10-22 Thread Nathan Ridge via cfe-commits
@@ -2292,9 +2289,26 @@ incomingCalls(const CallHierarchyItem &Item, const SymbolIndex *Index) { Index->lookup(ContainerLookup, [&](const Symbol &Caller) { auto It = CallsIn.find(Caller.ID); assert(It != CallsIn.end()); -if (auto CHI = symbolToCallHierarchyItem(Ca

[clang] [llvm] [llvm] Deprecate Type::getPointerTo() (PR #113331)

2024-10-22 Thread Yanzuo Liu via cfe-commits
@@ -471,8 +471,9 @@ class Type { static Type *getWasm_FuncrefTy(LLVMContext &C); /// Return a pointer to the current type. This is equivalent to - /// PointerType::get(Foo, AddrSpace). + /// PointerType::get(Ctx, AddrSpace). /// TODO: Remove this after opaque pointer

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,170 @@ +# RUN: llvm-mc --disassemble %s -triple=i386-unknown-unknown | FileCheck %s --check-prefixes=ATT phoebewang wrote: ditto. https://github.com/llvm/llvm-project/pull/113402 ___ cfe-commits mailing lis

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,224 @@ +// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s phoebewang wrote: The same to below. https://github.com/llvm/llvm-project/pull/113402 ___ cfe-commits mailing list cf

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -1647,3 +1647,23 @@ let isCodeGenOnly = 1, ForceDisassemble = 1, hasSideEffects = 0 in def : InstAlias<"vmovw.s\t{$src, $dst|$dst, $src}", (VMOVZPWILo2PWIZrr2 VR128X:$dst, VR128X:$src), 0>; } + +// SM4(EVEX) +multiclass avx10_sm4_base { + // SM4_Base is

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -1647,3 +1647,23 @@ let isCodeGenOnly = 1, ForceDisassemble = 1, hasSideEffects = 0 in def : InstAlias<"vmovw.s\t{$src, $dst|$dst, $src}", (VMOVZPWILo2PWIZrr2 VR128X:$dst, VR128X:$src), 0>; } + +// SM4(EVEX) +multiclass avx10_sm4_base { + // SM4_Base is

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,170 @@ +# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT phoebewang wrote: The file name is mistaken with sm4-evex-64.txt https://github.com/llvm/llvm-project/pull/113402 _

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,64 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-- --show-mc-encoding -mattr=+sm4,+avx10.2-512 | FileCheck %s +; RUN: llc < %s -verify-machineinstrs -mtriple=i686-- --show-mc-enc

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -6109,6 +6109,12 @@ let TargetPrefix = "x86" in { DefaultAttrsIntrinsic<[llvm_v8i32_ty], [llvm_v8i32_ty, llvm_v8i32_ty], [IntrNoMem]>; +def int_x86_vsm4key4512 : ClangBuiltin<"__builtin_ia32_vsm4key4512">, +Intrinsic<[llvm_v16i32_ty], [llvm_v1

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -6109,6 +6109,12 @@ let TargetPrefix = "x86" in { DefaultAttrsIntrinsic<[llvm_v8i32_ty], [llvm_v8i32_ty, llvm_v8i32_ty], [IntrNoMem]>; +def int_x86_vsm4key4512 : ClangBuiltin<"__builtin_ia32_vsm4key4512">, +Intrinsic<[llvm_v16i32_ty], [llvm_v1

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -196,6 +196,8 @@ Changes to the X86 Backend * Support ISA of `AVX10.2-256` and `AVX10.2-512`. +* Support ISA of `SM4(EVEX)`. phoebewang wrote: We should mainly add in Clang release note. https://github.com/llvm/llvm-project/pull/113402 __

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Phoebe Wang via cfe-commits
@@ -665,6 +665,9 @@ _storebe_i64(void * __P, long long __D) { #include #include #include +#if (defined(__SM4__)) phoebewang wrote: Checking macro is not always working, e.g., function multi-versioning. It's fine to remove it. https://github.com/llvm/llvm-

[clang-tools-extra] [clangd] Harden incomingCalls() against possible misinterpretation of a range as pertaining to the wrong file (PR #111616)

2024-10-22 Thread Nathan Ridge via cfe-commits
@@ -2272,18 +2273,14 @@ incomingCalls(const CallHierarchyItem &Item, const SymbolIndex *Index) { // Initially store the ranges in a map keyed by SymbolID of the caller. // This allows us to group different calls with the same caller // into the same CallHierarchyIncoming

[clang] [clang][Driver] Fix triple config loading for clang-cl (PR #111397)

2024-10-22 Thread Bo Anderson via cfe-commits
Bo98 wrote: Ping? https://github.com/llvm/llvm-project/pull/111397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Support simplified triple versions for config files (PR #111387)

2024-10-22 Thread Bo Anderson via cfe-commits
Bo98 wrote: Ping? https://github.com/llvm/llvm-project/pull/111387 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2024-10-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/112854 >From ad7c6b648f3bb88ce075fa15cf8915350e4981ab Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 18 Oct 2024 16:33:19 +0800 Subject: [PATCH 1/2] APFloat: Fix maxnum and minnum with sNaN See: https://github.

[clang] [llvm] APFloat: Fix maxnum and minnum with sNaN (PR #112854)

2024-10-22 Thread YunQiang Su via cfe-commits
@@ -582,7 +582,46 @@ TEST(APFloatTest, MinNum) { APFloat zp(0.0); APFloat zn(-0.0); EXPECT_EQ(-0.0, minnum(zp, zn).convertToDouble()); - EXPECT_EQ(-0.0, minnum(zn, zp).convertToDouble()); + + APInt intPayload_89ab(64, 0x89ab); wzssyqa wrote: It is not

[clang] [clang-repl][CMake][MSVC] Wrap /EXPORT linker option for ICX (PR #112867)

2024-10-22 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu approved this pull request. https://github.com/llvm/llvm-project/pull/112867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [libclc] [llvm] [AMDGPU] Add a new target for gfx1153 (PR #113138)

2024-10-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang,flang,libclc,llvm,offload` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/913 Her

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-22 Thread via cfe-commits
yonghong-song wrote: > If our plan is to: > > * generate `zext` BPF 8- and 16-bit load-acquire for > `atomic_load_zext_{8,16}` > > * (if needed) generate `sext` BPF 8- and 16-bit load-acquire for > `atomic_load_sext_{8,16}` > > > Then this problem needs to be solved, and I can inclu

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-22 Thread via cfe-commits
yonghong-song wrote: > > In the above, you will do unsigned load extension. But what about signed > > extension load variant? > > @yonghong-song, if we ever need that, we can add a new flag to bit `0-3` of > `imm` to indicate "this 8- or 16-bit load-acquire is sign-extending", just > like `BPF

[clang] [HLSL] Change StructuredBuffer resource class to SRV (PR #113397)

2024-10-22 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/113397 >From 7e7812cff9c1d82c8402e840975e3fc5fd726001 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Tue, 22 Oct 2024 16:18:24 -0700 Subject: [PATCH 1/2] [HLSL] Update resource class of StructuredBuffer to SRV ---

[clang] 076aac5 - [AMDGPU] Add a new target for gfx1153 (#113138)

2024-10-22 Thread via cfe-commits
Author: Carl Ritson Date: 2024-10-23T12:56:58+09:00 New Revision: 076aac59acbe7555b922e77886e4428f1aa1cd0b URL: https://github.com/llvm/llvm-project/commit/076aac59acbe7555b922e77886e4428f1aa1cd0b DIFF: https://github.com/llvm/llvm-project/commit/076aac59acbe7555b922e77886e4428f1aa1cd0b.diff L

[clang] [flang] [libclc] [llvm] [AMDGPU] Add a new target for gfx1153 (PR #113138)

2024-10-22 Thread Carl Ritson via cfe-commits
https://github.com/perlfu closed https://github.com/llvm/llvm-project/pull/113138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 076aac5 - [AMDGPU] Add a new target for gfx1153 (#113138)

2024-10-22 Thread via cfe-commits
Author: Carl Ritson Date: 2024-10-23T12:56:58+09:00 New Revision: 076aac59acbe7555b922e77886e4428f1aa1cd0b URL: https://github.com/llvm/llvm-project/commit/076aac59acbe7555b922e77886e4428f1aa1cd0b DIFF: https://github.com/llvm/llvm-project/commit/076aac59acbe7555b922e77886e4428f1aa1cd0b.diff L

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-10-22 Thread via cfe-commits
@@ -3141,6 +3148,10 @@ def warn_attribute_ignored_no_calls_in_stmt: Warning< "statement">, InGroup; +def warn_attribute_needs_aggregate : Warning< higher-performance wrote: @AaronBallman bump? https://github.com/llvm/llvm-project/pull/102040

[clang] [clang][bytecode] Diagnose non-const initialiers in diagnoseUnknownDecl (PR #113276)

2024-10-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/113276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 46ad7ff - [clang][bytecode] Diagnose non-const initialiers in diagnoseUnknownDecl (#113276)

2024-10-22 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-23T05:50:30+02:00 New Revision: 46ad7ff4b78fd7e6540d9eebe7e17ae423b29dd9 URL: https://github.com/llvm/llvm-project/commit/46ad7ff4b78fd7e6540d9eebe7e17ae423b29dd9 DIFF: https://github.com/llvm/llvm-project/commit/46ad7ff4b78fd7e6540d9eebe7e17ae423b29dd9.diff L

[clang] [clang-format] Add KeepFormFeed option (PR #113268)

2024-10-22 Thread Owen Pan via cfe-commits
owenca wrote: > wow I've never seen this used, but this looks fine to me. Form feeds can be useful for emas/vim users and are recommended by the GNU Coding Standards. https://github.com/llvm/llvm-project/pull/113268 ___ cfe-commits mailing list cfe-c

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2024-10-22 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From 4cb7472aaa8973651a85057ee2f7ca7415d8ea72 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/6] Clang: emit llvm.minnum and llvm.maxnum with nsz always See:

[clang] [clang-format] Add KeepFormFeed option (PR #113268)

2024-10-22 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/113268 >From 0d1c2446a225d73e014e711b0d74931bff9237bc Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 21 Oct 2024 23:27:35 -0700 Subject: [PATCH 1/3] [clang-format] Add KeepFormFeed option Closes #113170. --- clang

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
https://github.com/isuckatcs edited https://github.com/llvm/llvm-project/pull/113312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
@@ -768,9 +776,17 @@ ProgramStateRef CStringChecker::CheckOverlap(CheckerContext &C, std::tie(stateTrue, stateFalse) = state->assume(*OverlapTest); if (stateTrue && !stateFalse) { -// Overlap! -emitOverlapBug(C, stateTrue, First.Expression, Second.Expression); -

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
@@ -614,10 +620,6 @@ CStringChecker::CheckBufferAccess(CheckerContext &C, ProgramStateRef State, if (!State) return nullptr; - // If out-of-bounds checking is turned off, skip the rest. - if (!Filter.CheckCStringOutOfBounds) -return State; - isuck

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
@@ -838,8 +860,15 @@ void CStringChecker::emitUninitializedReadBug(CheckerContext &C, void CStringChecker::emitOutOfBoundsBug(CheckerContext &C, ProgramStateRef State, const Stmt *S, StringRef Warn

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
@@ -768,9 +776,17 @@ ProgramStateRef CStringChecker::CheckOverlap(CheckerContext &C, std::tie(stateTrue, stateFalse) = state->assume(*OverlapTest); if (stateTrue && !stateFalse) { -// Overlap! -emitOverlapBug(C, stateTrue, First.Expression, Second.Expression); -

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
@@ -702,9 +702,17 @@ ProgramStateRef CStringChecker::CheckOverlap(CheckerContext &C, state->assume(svalBuilder.evalEQ(state, *firstLoc, *secondLoc)); if (stateTrue && !stateFalse) { -// If the values are known to be equal, that's automatically an overlap. -emi

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
@@ -579,8 +579,14 @@ ProgramStateRef CStringChecker::CheckLocation(CheckerContext &C, // These checks are either enabled by the CString out-of-bounds checker // explicitly or implicitly by the Malloc checker. // In the latter case we only do modeling but do not emi

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
https://github.com/isuckatcs edited https://github.com/llvm/llvm-project/pull/113312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Untangle subcheckers of CStringChecker (PR #113312)

2024-10-22 Thread via cfe-commits
https://github.com/isuckatcs commented: Apart from a few nits and the question about seeing new warning with a certain combination of checks, the patch looks good to me. https://github.com/llvm/llvm-project/pull/113312 ___ cfe-commits mailing list cfe

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf ready_for_review https://github.com/llvm/llvm-project/pull/113274 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-10-22 Thread Konstantin Romanov via cfe-commits
ksromanov wrote: Thanks a lot! https://github.com/llvm/llvm-project/pull/104540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf updated https://github.com/llvm/llvm-project/pull/113274 >From 19c6400ac7127860ac1712941acbd1585614d17d Mon Sep 17 00:00:00 2001 From: Freddy Ye Date: Mon, 21 Oct 2024 10:24:14 +0800 Subject: [PATCH 1/3] [X86] Support MOVRS and AVX10.2 instructions. Ref.: https://

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Freddy Ye (FreddyLeaf) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 83.30 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/113274.diff 30 Files Affected:

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Freddy Ye (FreddyLeaf) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 83.30 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/113274.diff 30 Files Affected:

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff b90ea5caade7b92796276937467a0dabc355a62e dc9387dbf69b806180702465c406630194c27bee --e

[clang] [compiler-rt] [llvm] [X86] Support MOVRS and AVX10.2 instructions. (PR #113274)

2024-10-22 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf updated https://github.com/llvm/llvm-project/pull/113274 >From 19c6400ac7127860ac1712941acbd1585614d17d Mon Sep 17 00:00:00 2001 From: Freddy Ye Date: Mon, 21 Oct 2024 10:24:14 +0800 Subject: [PATCH 1/2] [X86] Support MOVRS and AVX10.2 instructions. Ref.: https://

[clang] Remove support for RenderScript (PR #112916)

2024-10-22 Thread Stephen Hines via cfe-commits
https://github.com/stephenhines approved this pull request. Thank you for taking care of the cleanup CL. It is much appreciated. https://github.com/llvm/llvm-project/pull/112916 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [clang-format] Add KeepFormFeed option (PR #113268)

2024-10-22 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/113268 >From 0d1c2446a225d73e014e711b0d74931bff9237bc Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 21 Oct 2024 23:27:35 -0700 Subject: [PATCH 1/2] [clang-format] Add KeepFormFeed option Closes #113170. --- clang

[clang] [llvm] [mlir] [flang][OpenMP] Support `target enter|update|exit .. nowait` (PR #113305)

2024-10-22 Thread via cfe-commits
https://github.com/NimishMishra approved this pull request. LGTM. Thanks for this. https://github.com/llvm/llvm-project/pull/113305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Add alpha.cplusplus.BoundsInformation checker (PR #112784)

2024-10-22 Thread Artem Dergachev via cfe-commits
haoNoQ wrote: > a function that returns a pointer and takes a reference (or a pointer) to a > length variable Yes, this one should be easy to catch. Both values will be `SymbolConjured` pointing to the same function call expression / program point. (The out-parameter value may also be `Symbol

[clang] [analyzer] Add alpha.cplusplus.BoundsInformation checker (PR #112784)

2024-10-22 Thread Artem Dergachev via cfe-commits
@@ -0,0 +1,199 @@ +//== BoundsInformationChecker.cpp - bounds information checker --*- C++ -*--==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/113402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Freddy Ye (FreddyLeaf) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 59.96 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/113402.diff 16 Files Affected: - (mod

[clang] [analyzer] Add alpha.cplusplus.BoundsInformation checker (PR #112784)

2024-10-22 Thread Artem Dergachev via cfe-commits
@@ -0,0 +1,199 @@ +//== BoundsInformationChecker.cpp - bounds information checker --*- C++ -*--==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Freddy Ye (FreddyLeaf) Changes Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Patch is 59.96 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/113402.diff 16 Files Affected:

[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

2024-10-22 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf created https://github.com/llvm/llvm-project/pull/113402 Ref.: https://cdrdv2.intel.com/v1/dl/getContent/671368 >From 83a2ef421831dec1790c3c6adf3141ed1ac9a0d5 Mon Sep 17 00:00:00 2001 From: Freddy Ye Date: Mon, 21 Oct 2024 09:30:26 +0800 Subject: [PATCH] [X86] Su

[clang] [clang-format] Handle C# `goto case` constructs (PR #113257)

2024-10-22 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/113257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d005be3 - [clang-format] Handle C# `goto case` constructs (#113257)

2024-10-22 Thread via cfe-commits
Author: Owen Pan Date: 2024-10-22T18:39:32-07:00 New Revision: d005be33ee776c5d788693f5c1cf4f6bc242e13c URL: https://github.com/llvm/llvm-project/commit/d005be33ee776c5d788693f5c1cf4f6bc242e13c DIFF: https://github.com/llvm/llvm-project/commit/d005be33ee776c5d788693f5c1cf4f6bc242e13c.diff LOG:

[clang] [clang-format] Use RemoveEmptyLinesInUnwrappedLines in clang-format s… (PR #113260)

2024-10-22 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/113260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b69ac31 - [clang-format] Use RemoveEmptyLinesInUnwrappedLines in clang-format s… (#113260)

2024-10-22 Thread via cfe-commits
Author: Owen Pan Date: 2024-10-22T18:37:43-07:00 New Revision: b69ac31a3b858f6a77744adfa31ad53edecbdb7e URL: https://github.com/llvm/llvm-project/commit/b69ac31a3b858f6a77744adfa31ad53edecbdb7e DIFF: https://github.com/llvm/llvm-project/commit/b69ac31a3b858f6a77744adfa31ad53edecbdb7e.diff LOG:

[clang] bd6c430 - [clang codegen] avoid to crash when emit init func for global variable with flexible array init (#113336)

2024-10-22 Thread via cfe-commits
Author: Congcong Cai Date: 2024-10-23T09:21:27+08:00 New Revision: bd6c430dcb52f3e4f86abc5f572126355fa39936 URL: https://github.com/llvm/llvm-project/commit/bd6c430dcb52f3e4f86abc5f572126355fa39936 DIFF: https://github.com/llvm/llvm-project/commit/bd6c430dcb52f3e4f86abc5f572126355fa39936.diff

[clang] [clang codegen] avoid to crash when emit init func for global variable with flexible array init (PR #113336)

2024-10-22 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/113336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Support -mabi=vec-extabi and -mabi=vec-default on AIX (PR #113215)

2024-10-22 Thread Tom Eccles via cfe-commits
@@ -203,6 +203,30 @@ void Flang::AddAArch64TargetArgs(const ArgList &Args, } } +void Flang::AddPPCTargetArgs(const ArgList &Args, + ArgStringList &CmdArgs) const { + bool VecExtabi = false; + for (const Arg *A : Args.filtered(options::OPT_mabi_E

[clang] [llvm] [mlir] [OpenMP][OMPIRBuilder] Error propagation across callbacks (PR #112533)

2024-10-22 Thread Tom Eccles via cfe-commits
@@ -1171,12 +1179,15 @@ void OpenMPIRBuilder::emitCancelationCheckImpl(Value *CancelFlag, // post finalization block that is known to the FiniCB callback. Builder.SetInsertPoint(CancellationBlock); if (ExitCB) -ExitCB(Builder.saveIP()); +if (Error Err = ExitCB(Bu

[clang] [llvm] [mlir] [OpenMP][OMPIRBuilder] Error propagation across callbacks (PR #112533)

2024-10-22 Thread Tom Eccles via cfe-commits
@@ -1496,7 +1507,8 @@ IRBuilder<>::InsertPoint OpenMPIRBuilder::createParallel( // Let the caller create the body. assert(BodyGenCB && "Expected body generation callback!"); InsertPointTy CodeGenIP(PRegBodyBB, PRegBodyBB->begin()); - BodyGenCB(InnerAllocaIP, CodeGenIP);

[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)

2024-10-22 Thread Jun Wang via cfe-commits
@@ -683,6 +706,59 @@ struct AAAMDAttributesFunction : public AAAMDAttributes { return !A.checkForAllCallLikeInstructions(DoesNotRetrieve, *this, UsedAssumedInformation); } + + // Returns true if FlatScratchInit is needed, i.e

[clang-tools-extra] [clang-tidy] Fix for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-10-22 Thread via cfe-commits
github-actions[bot] wrote: @ksromanov Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a buil

[clang-tools-extra] [clang-tidy] Fix for cppcoreguidelines-pro-type-union-access if memLoc is invalid (PR #104540)

2024-10-22 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank closed https://github.com/llvm/llvm-project/pull/104540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 0fbf91a - [clang-tidy] Fix cppcoreguidelines-pro-type-union-access if memLoc is invalid (#104540)

2024-10-22 Thread via cfe-commits
Author: Konstantin Romanov Date: 2024-10-22T17:05:00-07:00 New Revision: 0fbf91ab8e395717ed886c6827ca572c5baaa7a0 URL: https://github.com/llvm/llvm-project/commit/0fbf91ab8e395717ed886c6827ca572c5baaa7a0 DIFF: https://github.com/llvm/llvm-project/commit/0fbf91ab8e395717ed886c6827ca572c5baaa7a0.

[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Move nondeterministic pointer usage check to tidy (PR #110471)

2024-10-22 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/110471 >From 6b6f57823a1f788df25211c5131f5760efa54140 Mon Sep 17 00:00:00 2001 From: einvbri Date: Thu, 26 Sep 2024 16:24:59 +0200 Subject: [PATCH] [clang-tidy] [analyzer] Move nondeterministic pointer usage check

[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Move nondeterministic pointer usage check to tidy (PR #110471)

2024-10-22 Thread via cfe-commits
@@ -0,0 +1,34 @@ +#ifndef _SIM_UNORDERED_MAP +#define _SIM_UNORDERED_MAP + + EugeneZelenko wrote: Excessive newline. https://github.com/llvm/llvm-project/pull/110471 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Move nondeterministic pointer usage check to tidy (PR #110471)

2024-10-22 Thread via cfe-commits
@@ -0,0 +1,33 @@ +#ifndef _SIM_STL_PAIR +#define _SIM_STL_PAIR + +#pragma clang system_header + +#include "sim_type_traits" + +namespace std { + + EugeneZelenko wrote: Ditto. https://github.com/llvm/llvm-project/pull/110471 __

[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Move nondeterministic pointer usage check to tidy (PR #110471)

2024-10-22 Thread via cfe-commits
@@ -0,0 +1,83 @@ +// RUN: %check_clang_tidy %s bugprone-nondeterministic-pointer-iteration-order %t -- -- -I%S -std=c++!4 + +#include "Inputs/system-header-simulator/sim_set" +#include "Inputs/system-header-simulator/sim_unordered_set" +#include "Inputs/system-header-simulator/si

[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Move nondeterministic pointer usage check to tidy (PR #110471)

2024-10-22 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/110471 >From ec58222f317c07615d64732b2d822b0b888a2aad Mon Sep 17 00:00:00 2001 From: einvbri Date: Thu, 26 Sep 2024 16:24:59 +0200 Subject: [PATCH] [clang-tidy] [analyzer] Move nondeterministic pointer usage check

[clang] [lld] [llvm] [WebAssembly] Define a new "Trail1" CPU (PR #112035)

2024-10-22 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode updated https://github.com/llvm/llvm-project/pull/112035 >From 8db1c6225cb938433f57414594cc3accae39f03c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 11 Oct 2024 04:30:32 -0700 Subject: [PATCH 1/7] [WebAssembly] Define a new "Trail1" CPU First, define some

[clang] [llvm] [DXIL][SPIRV] Lower WaveActiveCountBits intrinsic (PR #113382)

2024-10-22 Thread Finn Plummer via cfe-commits
inbelic wrote: Failing testcase is unrelated. Will need to rebase on review changes. https://github.com/llvm/llvm-project/pull/113382 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Move IsIntangibleType from SemaHLSL to Type to make it accessible outside of Sema (PR #113206)

2024-10-22 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/113206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9b98455 - [HLSL][NFC] Move IsIntangibleType from SemaHLSL to Type to make it accessible outside of Sema (#113206)

2024-10-22 Thread via cfe-commits
Author: Helena Kotas Date: 2024-10-22T16:32:09-07:00 New Revision: 9b984554d769f1f81adb654345aa9ef37d5e5b44 URL: https://github.com/llvm/llvm-project/commit/9b984554d769f1f81adb654345aa9ef37d5e5b44 DIFF: https://github.com/llvm/llvm-project/commit/9b984554d769f1f81adb654345aa9ef37d5e5b44.diff

[clang] [llvm] [DXIL][SPIRV] Lower WaveActiveCountBits intrinsic (PR #113382)

2024-10-22 Thread Finn Plummer via cfe-commits
@@ -1762,6 +1765,36 @@ bool SPIRVInstructionSelector::selectSign(Register ResVReg, return Result; } +bool SPIRVInstructionSelector::selectWaveActiveCountBits( +Register ResVReg, const SPIRVType *ResType, MachineInstr &I) const { + assert(I.getNumOperands() == 3); + as

[clang] [llvm] [DXIL][SPIRV] Lower WaveActiveCountBits intrinsic (PR #113382)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Finn Plummer (inbelic) Changes - add codegen for llvm builtin to spirv/directx intrinsic in CGBuiltin.cpp - add lowering of spirv intrinsic to spirv backend in SPIRVInstructionSelector.cpp - add lowering of directx intrinsic

[clang] [llvm] [DXIL][SPIRV] Lower WaveActiveCountBits intrinsic (PR #113382)

2024-10-22 Thread Finn Plummer via cfe-commits
https://github.com/inbelic ready_for_review https://github.com/llvm/llvm-project/pull/113382 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Change StructuredBuffer resource class to SRV (PR #113397)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Changes `StructuredBuffer` resource class to SRV (read-only) according to existing [DXC](https://godbolt.org/z/EjY9jbv4W) implementation and [Proposal for mapping resource attributes](https://github.com/llvm/

[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-clang-codegen Author: Adam Yang (adam-yang) Changes Fixes #88052 - Added the following intrinsics: - `int_spv_uclamp` - `int_spv_sclamp` - `int_spv_fclamp` - Update the clamp.hlsl unit tests to include SPIRV - Added th

[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

2024-10-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-spir-v Author: Adam Yang (adam-yang) Changes Fixes #88052 - Added the following intrinsics: - `int_spv_uclamp` - `int_spv_sclamp` - `int_spv_fclamp` - Update the clamp.hlsl unit tests to include SPIRV - Added the SPIRV specific tests ---

[clang] [HLSL] Change StructuredBuffer resource class to SRV (PR #113397)

2024-10-22 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/113397 Changes `StructuredBuffer` resource class to SRV (read-only) according to existing [DXC](https://godbolt.org/z/EjY9jbv4W) implementation and [Proposal for mapping resource attributes](https://github.com/llvm/wg-

[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

2024-10-22 Thread Adam Yang via cfe-commits
https://github.com/adam-yang ready_for_review https://github.com/llvm/llvm-project/pull/113394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4334f31 - [TBAA] Extend pointer TBAA to pointers of non-builtin types. (#110569)

2024-10-22 Thread via cfe-commits
Author: Florian Hahn Date: 2024-10-22T16:23:34-07:00 New Revision: 4334f317e7fb2bdeaa15e912bbe0cd3162faf02c URL: https://github.com/llvm/llvm-project/commit/4334f317e7fb2bdeaa15e912bbe0cd3162faf02c DIFF: https://github.com/llvm/llvm-project/commit/4334f317e7fb2bdeaa15e912bbe0cd3162faf02c.diff

[clang] [TBAA] Extend pointer TBAA to pointers of non-builtin types. (PR #110569)

2024-10-22 Thread Florian Hahn via cfe-commits
https://github.com/fhahn closed https://github.com/llvm/llvm-project/pull/110569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >