[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)

2024-10-31 Thread Helena Kotas via cfe-commits
@@ -359,6 +356,176 @@ struct TemplateParameterListBuilder { return Builder; } }; + +// Builder for methods of builtin types. Allows adding methods to builtin types +// using the builder pattern like this: +// +// BuiltinTypeMethodBuilder(Sema, RecordBuilder, "MethodName

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread David Olsen via cfe-commits
dkolsen-pgi wrote: > Does https://mlir.llvm.org/docs/Dialects/Builtin/#fusedloc suit the situation > [of recording locations of macro expansions]? Maybe? Right now I think `FusedLoc` is used by ClangIR to represent a source range. Maybe it also could be used for macro expansion locations. I

[clang] [clang-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-10-31 Thread Aaron Ballman via cfe-commits
@@ -122,7 +122,6 @@ class SpecialCaseList { // Returns zero if no match is found. unsigned match(StringRef Query) const; - private: StringMap> Globs; AaronBallman wrote: This can be made protected at least though, right? https://github.com/llvm

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread Erich Keane via cfe-commits
erichkeane wrote: > > Does https://mlir.llvm.org/docs/Dialects/Builtin/#fusedloc suit the > > situation [of recording locations of macro expansions]? > > Maybe? Right now I think `FusedLoc` is used by ClangIR to represent a source > range. Maybe it also could be used for macro expansion locati

[clang] [Clang] Implement labelled type filtering for overflow/truncation sanitizers w/ SSCLs (PR #107332)

2024-10-31 Thread Justin Stitt via cfe-commits
@@ -831,6 +831,28 @@ ASTContext::getCanonicalTemplateTemplateParmDecl( return CanonTTP; } +/// Check if a type can have its sanitizer instrumentation elided. +/// Determine this by its presence in a SCL alongside its specified categories. +/// For example: +/// ignorelist.tx

[clang] [llvm] [InstrPGO] Avoid using global variable to fix potential data race (PR #114364)

2024-10-31 Thread Lei Wang via cfe-commits
https://github.com/wlei-llvm updated https://github.com/llvm/llvm-project/pull/114364 >From a7b444bd75d6f83ed0f5692783990a59f36e8459 Mon Sep 17 00:00:00 2001 From: wlei Date: Thu, 31 Oct 2024 09:58:27 -0700 Subject: [PATCH 1/4] Reapply "[InstrPGO] Support cold function coverage instrumentation

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread Erich Keane via cfe-commits
@@ -24,9 +27,140 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

[clang] [flang] [clang] Add option to specify opt pipeline during offload lto (PR #114401)

2024-10-31 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > Can this be done through `-Xoffload-linker`? > > No. I tried several different things, but was not able to get the right > command line option passed to lld (in the > clang->clang-linker-wrapper->clang->lld chain). This works for me, ```console $ clang input.c -fopenmp --of

[clang] [Clang][SYCL] Fix use of uninitalized memory in temp files (PR #114488)

2024-10-31 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex created https://github.com/llvm/llvm-project/pull/114488 This fixes the current sanitizer CI failures. I manually confirmed the fix with a MemorySanitizer build. >From 51227ad50bff12eff5a4f835686f13d2444848ea Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Thu, 3

[clang] [llvm] [InstrPGO] Avoid using global variable to fix potential data race (PR #114364)

2024-10-31 Thread Lei Wang via cfe-commits
https://github.com/wlei-llvm updated https://github.com/llvm/llvm-project/pull/114364 >From a7b444bd75d6f83ed0f5692783990a59f36e8459 Mon Sep 17 00:00:00 2001 From: wlei Date: Thu, 31 Oct 2024 09:58:27 -0700 Subject: [PATCH 1/4] Reapply "[InstrPGO] Support cold function coverage instrumentation

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-10-31 Thread Younan Zhang via cfe-commits
@@ -3437,10 +3437,10 @@ bool Sema::SubstDefaultArgument( // template void f(T a, int = decltype(a)()); // void g() { f(0); } LIS = std::make_unique(*this); - FunctionDecl *PatternFD = FD->getTemplateInstantiationPattern( - /*ForDefinition*/ f

[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)

2024-10-31 Thread Younan Zhang via cfe-commits
@@ -585,10 +585,11 @@ Bug Fixes to C++ Support - Clang incorrectly considered a class with an anonymous union member to not be const-default-constructible even if a union member has a default member initializer. (#GH95854). -- Fixed an assertion failure when evaluating an

[clang] [llvm] [opt][AMDGPU] Add pass to handle AMDGCN pseudo-intrinsics target specific info), start with `llvm.amdgcn.wavefrontsize` (PR #114481)

2024-10-31 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > The toothpaste is out of the tube once the IR is produced. If some toolchain > were relying on the global target machine features, there are opportunities > for error on each tool invocation. The absence of the attribute does not tell > you what the final compilation context w

[clang] [PS5][Driver] Pass layout metrics to the linker (PR #114435)

2024-10-31 Thread Paul T Robinson via cfe-commits
@@ -21,6 +21,22 @@ // CHECK-NO-PIE-NOT: "-pie" // CHECK-SHARED: "--shared" +// Test the driver supplies an --image-base to the linker only for non-pie +// executables. + +// RUN: %clang --target=x86_64-sie-ps5 -static %s -### 2>&1 | FileCheck --check-prefixes=CHECK-BASE %s +/

[clang] [PS5][Driver] Pass layout metrics to the linker (PR #114435)

2024-10-31 Thread Paul T Robinson via cfe-commits
@@ -295,6 +302,9 @@ void tools::PS5cpu::Linker::ConstructJob(Compilation &C, const JobAction &JA, if (Shared) CmdArgs.push_back("--shared"); + if (!Relocatable && !Shared && !PIE) pogo59 wrote: Does this want to consider `Static` as well? Just wonderi

[clang] [Clang] prevent assertion failure from an invalid template instantiation pattern when adding instantiated params to the scope in friend functions with defaulted params (PR #113777)

2024-10-31 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/113777 >From 78019b9d9dc138f38bb5b32576b621351ae6427c Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 27 Oct 2024 01:07:57 +0300 Subject: [PATCH] [Clang] prevent assertion failure from an invalid template ins

[clang] d5cdc26 - [Clang] Mark RetainCommentsFromSystemHeaders as compatible language options

2024-10-31 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-10-31T15:52:18+08:00 New Revision: d5cdc26f555918e6f292f16ac3800afc97093aac URL: https://github.com/llvm/llvm-project/commit/d5cdc26f555918e6f292f16ac3800afc97093aac DIFF: https://github.com/llvm/llvm-project/commit/d5cdc26f555918e6f292f16ac3800afc97093aac.diff LO

[clang] [AMDGPU] Allow overload of __builtin_amdgcn_mov_dpp8 (PR #113610)

2024-10-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/113610 >From edda0e600abeabff4d44e8b0b897104efacc8f98 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Thu, 24 Oct 2024 11:31:52 -0700 Subject: [PATCH 1/2] [AMDGPU] Allow overload of __builtin_amdgcn_mov_dpp

[clang] [llvm] [X86][AMX] Support AMX-FP8 (PR #113850)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-win` running on `as-worker-93` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/1492 Here is the releva

[clang] [X86][CFE] Correct parameter type of _cmpccxadd_epi64 (PR #114367)

2024-10-31 Thread Phoebe Wang via cfe-commits
@@ -10,3 +10,7 @@ int test_cmpccxadd32(void *__A, int __B, int __C) { long long test_cmpccxadd64(void *__A, long long __B, long long __C) { return _cmpccxadd_epi64(__A, __B, __C, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} } + +long long t

[clang-tools-extra] [clang-tidy] fix crash in altera-id-dependent-backward-branch (PR #113833)

2024-10-31 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/113833 >From 99090f44fdfe049d7e01e469787ebb0039b965c4 Mon Sep 17 00:00:00 2001 From: Julian Schmidt Date: Sun, 27 Oct 2024 20:47:21 +0100 Subject: [PATCH 1/3] [clang-tidy] fix crash in altera-id-dependent-backward-br

[clang] ccb7cc3 - [clang][bytecode] Diagnose negative array sizes differently (#114380)

2024-10-31 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-31T10:59:53+01:00 New Revision: ccb7cc319f8ea07bb64c2efb0c4f1e42076ef446 URL: https://github.com/llvm/llvm-project/commit/ccb7cc319f8ea07bb64c2efb0c4f1e42076ef446 DIFF: https://github.com/llvm/llvm-project/commit/ccb7cc319f8ea07bb64c2efb0c4f1e42076ef446.diff L

[clang] [clang][bytecode] Diagnose negative array sizes differently (PR #114380)

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

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #113845)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/6967 Here is the relevant piec

[clang] [libunwind] [llvm] Replace documentation mentions of IRC with Discord (PR #114276)

2024-10-31 Thread Kristof Beyls via cfe-commits
@@ -24,12 +24,12 @@ the spirit in which it's intended - a guide to make it easier to communicate and participate in the community. This code of conduct applies to all spaces managed by the LLVM project or The -LLVM Foundation. This includes IRC channels, mailing lists, bug tr

[clang] [libunwind] [llvm] Replace documentation mentions of IRC with Discord (PR #114276)

2024-10-31 Thread Kristof Beyls via cfe-commits
https://github.com/kbeyls commented: Overall looks great, thank you :) I've left one nit-picky comment on keeping IRC mentioned in the code of conduct page, as even though it's a "legacy" communication channel, it continues to exist, so the code-of-conduct continues to apply there. https://git

[clang] [libunwind] [llvm] Replace documentation mentions of IRC with Discord (PR #114276)

2024-10-31 Thread Kristof Beyls via cfe-commits
https://github.com/kbeyls edited https://github.com/llvm/llvm-project/pull/114276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][CFE] Correct parameter type of _cmpccxadd_epi64 (PR #114367)

2024-10-31 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf updated https://github.com/llvm/llvm-project/pull/114367 >From 4c0a5729c8da644cfc01ad25820386f0cc289316 Mon Sep 17 00:00:00 2001 From: Freddy Ye Date: Fri, 25 Oct 2024 10:00:16 +0800 Subject: [PATCH 1/2] [X86][CFE] Correct parameter type of _cmpccxadd_epi64 --- c

[clang] [X86][CFE] Correct parameter type of _cmpccxadd_epi64 (PR #114367)

2024-10-31 Thread Freddy Ye via cfe-commits
@@ -10,3 +10,7 @@ int test_cmpccxadd32(void *__A, int __B, int __C) { long long test_cmpccxadd64(void *__A, long long __B, long long __C) { return _cmpccxadd_epi64(__A, __B, __C, 16); // expected-error {{argument value 16 is outside the valid range [0, 15]}} } + +long long t

[clang] [X86][CFE] Correct parameter type of _cmpccxadd_epi64 (PR #114367)

2024-10-31 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/114367 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #113845)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/13261 Here is

[clang-tools-extra] a776bd1 - [clang-tidy] support `return c ? a : b;` in bugprone-return-const-ref-from-parameter (#107657)

2024-10-31 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-10-31T09:13:51+01:00 New Revision: a776bd1a92126bf9bd1b51511364194fd75aa606 URL: https://github.com/llvm/llvm-project/commit/a776bd1a92126bf9bd1b51511364194fd75aa606 DIFF: https://github.com/llvm/llvm-project/commit/a776bd1a92126bf9bd1b51511364194fd75aa606.diff

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #113845)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` running on `ppc64le-clang-rhel-test` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/2841 Here is

[clang] [clang][bytecode] Diagnose negative array sizes differently (PR #114380)

2024-10-31 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114380 We have a special diagnostic ID for this. >From e172eea48fb60282ded94f7e4e61f4cf60a289ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 31 Oct 2024 10:29:48 +0100 Subject: [PATCH] [cla

[clang] [clang][bytecode] Diagnose negative array sizes differently (PR #114380)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We have a special diagnostic ID for this. --- Full diff: https://github.com/llvm/llvm-project/pull/114380.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.h (+8-2) - (modified) clang/test

[clang] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-10-31 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/114382 According to our previous consensus in https://clang.llvm.org/docs/StandardCPlusPlusModules.html#reduced-bmi, the reduced BMI will be the default and recommend users to use the new option. The `-fexperiment

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #113845)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-global-isel` running on `linaro-clang-aarch64-global-isel` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/125/builds/3168 Here is the

[clang] f0b9a0b - [clang][bytecode] Diagnose delete with non-virtual dtor (#114373)

2024-10-31 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-31T10:13:40+01:00 New Revision: f0b9a0ba0649e11f190d20e86f92b566dfb8da0f URL: https://github.com/llvm/llvm-project/commit/f0b9a0ba0649e11f190d20e86f92b566dfb8da0f DIFF: https://github.com/llvm/llvm-project/commit/f0b9a0ba0649e11f190d20e86f92b566dfb8da0f.diff L

[clang] ba1a09d - [AMDGPU] Allow overload of __builtin_amdgcn_mov_dpp8 (#113610)

2024-10-31 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2024-10-31T02:19:20-07:00 New Revision: ba1a09da8d4d8138e932d3b6dc96a7bfc5b86fe7 URL: https://github.com/llvm/llvm-project/commit/ba1a09da8d4d8138e932d3b6dc96a7bfc5b86fe7 DIFF: https://github.com/llvm/llvm-project/commit/ba1a09da8d4d8138e932d3b6dc96a7bfc5b86f

[clang] [AMDGPU] Allow overload of __builtin_amdgcn_mov_dpp8 (PR #113610)

2024-10-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/113610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #113845)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot3` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/4819 Here is the relevant piece o

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-10-31 Thread WÁNG Xuěruì via cfe-commits
@@ -1562,7 +1562,9 @@ unsigned LoongArchAsmParser::checkTargetMatchPredicate(MCInst &Inst) { unsigned Opc = Inst.getOpcode(); switch (Opc) { default: -if (Opc >= LoongArch::AMADD_D && Opc <= LoongArch::AMXOR_W) { +// amcas[_db].{b/h/w/d} didn't need this judgemen

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-10-31 Thread WÁNG Xuěruì via cfe-commits
https://github.com/xen0n commented: I think this is getting more convoluted than necessary? For example, I didn't see a `setOperationAction(ISD::ATOMIC_CMP_SWAP, Legal)` call gated on presence of the `lamcas` feature, which I think would render a lot (if not most) of the changes here made to t

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-10-31 Thread WÁNG Xuěruì via cfe-commits
@@ -363,6 +363,10 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM, setPrefFunctionAlignment(Subtarget.getPrefFunctionAlignment()); setPrefLoopAlignment(Subtarget.getPrefLoopAlignment()); setMaxBytesForAlignment(Subtarget.getMaxBytesForAlignmen

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-10-31 Thread WÁNG Xuěruì via cfe-commits
https://github.com/xen0n edited https://github.com/llvm/llvm-project/pull/114189 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LoongArch] Support amcas[_db].{b/h/w/d} instructions. (PR #114189)

2024-10-31 Thread WÁNG Xuěruì via cfe-commits
@@ -0,0 +1,30 @@ +/// Test -m[no]lamcas options. + +// RUN: %clang --target=loongarch64 -mlamcas -fsyntax-only %s -### 2>&1 | \ +// RUN: FileCheck %s --check-prefix=CC1-LAMCAS +// RUN: %clang --target=loongarch64 -mno-lamcas -fsyntax-only %s -### 2>&1 | \ +// RUN: FileChec

[clang] [llvm] [InstrPGO] Support cold function coverage instrumentation (PR #109837)

2024-10-31 Thread via cfe-commits
@@ -1182,8 +1187,13 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level, const bool IsCtxProfUse = !UseCtxProfile.empty() && Phase == ThinOrFullLTOPhase::ThinLTOPreLink; + // Enable cold function coverage instrumentation if + // InstrumentColdF

[clang] d924a9b - Revert "[InstrPGO] Support cold function coverage instrumentation (#109837)"

2024-10-31 Thread Dmitry Chernenkov via cfe-commits
Author: Dmitry Chernenkov Date: 2024-10-31T10:55:17Z New Revision: d924a9ba03a05b417676e84f6c81aac44f907f71 URL: https://github.com/llvm/llvm-project/commit/d924a9ba03a05b417676e84f6c81aac44f907f71 DIFF: https://github.com/llvm/llvm-project/commit/d924a9ba03a05b417676e84f6c81aac44f907f71.diff

[clang] 06e28ed - Revert "specify clang --target to fix breakage on AIX (#114127)"

2024-10-31 Thread Dmitry Chernenkov via cfe-commits
Author: Dmitry Chernenkov Date: 2024-10-31T10:55:17Z New Revision: 06e28ed84f3f0a05b493699965e18e7a5aeaccd2 URL: https://github.com/llvm/llvm-project/commit/06e28ed84f3f0a05b493699965e18e7a5aeaccd2 DIFF: https://github.com/llvm/llvm-project/commit/06e28ed84f3f0a05b493699965e18e7a5aeaccd2.diff

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-31 Thread Mikołaj Piróg via cfe-commits
@@ -0,0 +1,13 @@ +// This test checks if Window PE file compiled with -flto option contains a magic +// string "LTCG" to indicate LTO compilation. + +// REQUIRES: system-windows + +// RUN: %clang --target=x86_64-pc-windows-msvc -flto -fuse-ld=lld %s -o %t.exe +// RUN: dumpbin /H

[clang] fcaa8c6 - Fix MSVC "signed/unsigned mismatch" warning. NFC.

2024-10-31 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-31T11:50:19Z New Revision: fcaa8c6e2240a950d3d86fb723d9b0a363b7346a URL: https://github.com/llvm/llvm-project/commit/fcaa8c6e2240a950d3d86fb723d9b0a363b7346a DIFF: https://github.com/llvm/llvm-project/commit/fcaa8c6e2240a950d3d86fb723d9b0a363b7346a.diff LOG:

[clang] [clang][bytecode] Start implementing __builtin_bit_cast (PR #112126)

2024-10-31 Thread Aaron Ballman via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/112126 ___ cfe-commits mailing list cfe-commit

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-31 Thread Alexandre Ganea via cfe-commits
aganea wrote: I am just curious what is the purpose of this? Is it just for feature parity? Can you also investigate if MSVC emits other special things/sections in the binary in LTCG/PGO builds? https://github.com/llvm/llvm-project/pull/114260 ___ cf

[clang] [libclang/python/tests] Remove Python <3.6 workarounds (PR #114399)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes This removes workarounds for Python versions before 3.6, since our minimum Python version has been bumped to 3.8 --- Full diff: https://github.com/llvm/llvm-project/pull/114399.diff 4 Files Affected

[clang] [analyzer] EvalBinOpLL should return Unknown less often (PR #114222)

2024-10-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/3353 Here is the relevan

[clang] [libunwind] [llvm] Replace documentation mentions of IRC with Discord (PR #114276)

2024-10-31 Thread Kristof Beyls via cfe-commits
https://github.com/kbeyls approved this pull request. https://github.com/llvm/llvm-project/pull/114276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Start implementing __builtin_bit_cast (PR #112126)

2024-10-31 Thread Aaron Ballman via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -0,0 +1,399 @@ +// RUN: %clang_cc1 -verify=ref,both -std=c++2a -fsyntax-only %s +// RUN: %clang_cc1 -verify=ref,both -std=c++2a -fsyntax-only -triple a

[clang] [libclang/python/tests] Remove Python <3.6 workarounds (PR #114399)

2024-10-31 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/114399 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python/tests] Remove unused variables (PR #114397)

2024-10-31 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/114397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix Pointer::toAPValue() for multidimensional arrays (PR #114400)

2024-10-31 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114400 When we see an array root, that pointer might yet again be an array element, so check for that. >From 2820aff9d4fae148d04ff6b975269df3039a92f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date

[clang] [clang][bytecode] Fix Pointer::toAPValue() for multidimensional arrays (PR #114400)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes When we see an array root, that pointer might yet again be an array element, so check for that. --- Full diff: https://github.com/llvm/llvm-project/pull/114400.diff 3 Files Affected: - (modified) clang/li

[clang] [HLSL] add IsTypedResourceElementCompatible type trait (PR #113730)

2024-10-31 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/113730 >From a31199224c19c1087b114de29d864125b720e6d8 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 25 Oct 2024 12:33:05 -0700 Subject: [PATCH 1/5] add type trait --- .../clang/AST/CXXRecordDeclDefinition

[clang] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions and [[clang::noescape]]. (PR #114374)

2024-10-31 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/114374 >From 474490de53c029ab59008bed9fc33f61db4cb1d7 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Thu, 31 Oct 2024 01:12:35 -0700 Subject: [PATCH 1/2] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functio

[clang] [llvm] Introduce a new WebKit checker for a unchecked local variable (PR #113708)

2024-10-31 Thread Ryosuke Niwa via cfe-commits
@@ -0,0 +1,342 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.webkit.UncheckedLocalVarsChecker -verify %s + +#include "mock-types.h" +#include "mock-system-header.h" + +void someFunction(); + +namespace raw_ptr { +void foo() { + CheckedObj *bar; + // FIXME: later on we

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/113483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang] Add option to specify opt pipeline during offload lto (PR #114401)

2024-10-31 Thread via cfe-commits
macurtis-amd wrote: > > > Can this be done through `-Xoffload-linker`? > > > > > > No. I tried several different things, but was not able to get the right > > command line option passed to lld (in the > > clang->clang-linker-wrapper->clang->lld chain). > > This works for me, > > ``` > $ cla

[clang] [flang] [clang] Add option to specify opt pipeline during offload lto (PR #114401)

2024-10-31 Thread via cfe-commits
macurtis-amd wrote: > Can this be done through `-Xoffload-linker`? No. I tried several different things, but was not able to get the right command line option passed to lld (in the clang->clang-linker-wrapper->clang->lld chain). https://github.com/llvm/llvm-project/pull/114401 ___

[clang] [clang-tools-extra] [clang][lex] Remove `HeaderFileInfo::Framework` (PR #114460)

2024-10-31 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. I initially touched this code because I needed to be able to map back input headers from a destination location (DSTROOT) to where they were resolved with headermaps (SRCROOT) for `tapi`/`clang-installapi`. But looking at the code it o

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread David Olsen via cfe-commits
@@ -10,4 +10,57 @@ // //===--===// -#include +#include "clang/CIR/Dialect/IR/CIRDialect.h" + +#include "mlir/Support/LogicalResult.h" + +#include "clang/CIR/Dialect/IR/CIROpsDialect.cpp.inc"

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi updated https://github.com/llvm/llvm-project/pull/113483 >From fd38921f9899e3e5ae538a94f123433119919731 Mon Sep 17 00:00:00 2001 From: David Olsen Date: Wed, 23 Oct 2024 11:01:40 -0700 Subject: [PATCH 1/3] [CIR] Call code gen; create empty cir.func op Finish hook

[clang] [llvm] [opt][AMDGPU] Add pass to handle AMDGCN pseudo-intrinsics target specific info), start with `llvm.amdgcn.wavefrontsize` (PR #114481)

2024-10-31 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/114481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread David Olsen via cfe-commits
@@ -13,4 +13,22 @@ #ifndef LLVM_CLANG_CIR_DIALECT_IR_CIRDIALECT_H #define LLVM_CLANG_CIR_DIALECT_IR_CIRDIALECT_H +#include "mlir/IR/Builders.h" dkolsen-pgi wrote: `git clang-format` will alphabetize a block of includes that are not separated by blank lines.

[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

2024-10-31 Thread David Olsen via cfe-commits
@@ -13,4 +13,22 @@ #ifndef LLVM_CLANG_CIR_DIALECT_IR_CIRDIALECT_H #define LLVM_CLANG_CIR_DIALECT_IR_CIRDIALECT_H +#include "mlir/IR/Builders.h" +#include "mlir/IR/BuiltinOps.h" +#include "mlir/IR/BuiltinTypes.h" +#include "mlir/IR/Dialect.h" +#include "mlir/IR/OpDefinition.h"

[clang] [Clang] Add __builtin_counted_by_ref builtin (PR #114495)

2024-10-31 Thread Bill Wendling via cfe-commits
bwendling wrote: This is a new PR, because GitHub messed up. Here's the original: https://github.com/llvm/llvm-project/pull/102549 https://github.com/llvm/llvm-project/pull/114495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [Clang][SYCL] Introduce clang-sycl-linker to link SYCL offloading device code (Part 1 of many) (PR #112245)

2024-10-31 Thread Arvind Sudarsanam via cfe-commits
asudarsa wrote: Sanitizer test failures should be resolved by https://github.com/llvm/llvm-project/pull/114488 (under review). Thanks to @sarnex for the timely fix. Sincerely https://github.com/llvm/llvm-project/pull/112245 ___ cfe-commits mailing li

[clang] Initialize SmallVector variable (PR #114434)

2024-10-31 Thread Arvind Sudarsanam via cfe-commits
asudarsa wrote: This is not the correct fix. Closing it. Thanks https://github.com/llvm/llvm-project/pull/114434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Initialize SmallVector variable (PR #114434)

2024-10-31 Thread Arvind Sudarsanam via cfe-commits
https://github.com/asudarsa closed https://github.com/llvm/llvm-project/pull/114434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_counted_by_ref builtin (PR #114495)

2024-10-31 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 51a4f319f022b99f231e52fab97de28b6f1db591 a5245e5d6e026f389e64245a8ce4df643abec4a5 --e

[clang] [Clang][SYCL] Fix use of uninitalized memory in temp files (PR #114488)

2024-10-31 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. Good catch, thanks. https://github.com/llvm/llvm-project/pull/114488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a regression in parsing `switch` in macro call (PR #114506)

2024-10-31 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/114506 Fixes #114408. >From 4702c777252678bf3633fd72a0470d135a54c4ba Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 31 Oct 2024 21:40:17 -0700 Subject: [PATCH] [clang-format] Fix a regression in parsing `switch` in

[clang] [clang-format] Fix a regression in parsing `switch` in macro call (PR #114506)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #114408. --- Full diff: https://github.com/llvm/llvm-project/pull/114506.diff 2 Files Affected: - (modified) clang/lib/Format/UnwrappedLineParser.cpp (+6-2) - (modified) clang/unittests/Format/Tok

[clang] [clang-format][CMake] Generate formatting options docs during build (PR #113739)

2024-10-31 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: > can we have clang-format-style-options rebuilt only when it's outdated, i.e. > only if at least one of the following has been updated? We can, but it requires more changes that I'm not sure are worth doing given that this step takes essentially zero time compared to reg

[clang] [clang-format][CMake] Generate formatting options docs during build (PR #113739)

2024-10-31 Thread Owen Pan via cfe-commits
owenca wrote: @boomanaiden154 can we have `clang-format-style-options` rebuilt only when it's outdated, i.e. only if at least one of the following has been updated? ``` clang/include/clang/Format/Format.h clang/include/clang/Tooling/Inclusions/IncludeStyle.h clang/docs/ClangFormatStyleOptions.rs

[clang] [llvm] Introduce a new WebKit checker for a unchecked local variable (PR #113708)

2024-10-31 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/113708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Introduce a new WebKit checker for a unchecked local variable (PR #113708)

2024-10-31 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: > LGTM! Thanks for the review! https://github.com/llvm/llvm-project/pull/113708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Introduce a new WebKit checker for a unchecked local variable (PR #113708)

2024-10-31 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/113708 >From cf5ca301bc9ed2c65eed92e7299bf598d5f88103 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 14 Sep 2024 01:46:23 -0700 Subject: [PATCH 1/2] Introduce a new WebKit checker for a unchecked local variable

[clang-tools-extra] Extend call hierarchy for field and non-local variables (PR #113900)

2024-10-31 Thread Nathan Ridge via cfe-commits
@@ -2238,7 +2238,10 @@ prepareCallHierarchy(ParsedAST &AST, Position Pos, PathRef TUPath) { for (const NamedDecl *Decl : getDeclAtPosition(AST, *Loc, {})) { if (!(isa(Decl) && cast(Decl)->isFunctionOrMethod()) && -Decl->getKind() != Decl::Kind::Function

[clang-tools-extra] Extend call hierarchy for field and non-local variables (PR #113900)

2024-10-31 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/113900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Extend call hierarchy for field and non-local variables (PR #113900)

2024-10-31 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. Thanks for the patch! https://github.com/llvm/llvm-project/pull/113900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [LoongArch][Clang] Add tests for #110834 (PR #114509)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Xi Ruoyao (xry111) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/114509.diff 2 Files Affected: - (added) clang/test/Headers/lasxintrin.c (+6) - (added) clang/test/Headers/lsxintrin.c (+6) ``diff diff --gi

[clang] [LoongArch][Clang] Add tests for #110834 (PR #114509)

2024-10-31 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 created https://github.com/llvm/llvm-project/pull/114509 None >From 1bbbc1c38715f42e6014ee319d76af9a4015e4d5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Nov 2024 00:00:14 +0800 Subject: [PATCH] [LoongArch][Clang] Add tests for #110834 --- clang/test/Header

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vshuf.b builtins `signed char` vectors (PR #114512)

2024-10-31 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 created https://github.com/llvm/llvm-project/pull/114512 The lsxintrin.h and and lasxintrin.h headers uses `signed char` vectors instead of `unsigned char` vectors. GCC also uses `signed char` for them, so align their definition with the headers and GCC. Depends on #1

[clang] [LoongArch][Clang] Make the parameter and return value of {x,}vmsknz.b builtins `signed char` vector (PR #114511)

2024-10-31 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 created https://github.com/llvm/llvm-project/pull/114511 These builtins operate on int8 vectors, not int16 vectors. So the old definition does not make any sense. Depends on #114510. Part of #110834 fix. >From 1bbbc1c38715f42e6014ee319d76af9a4015e4d5 Mon Sep 17 00:0

[clang] [LoongArch][Clang] Make the parameter and return value of {x,}vmsknz.b builtins `signed char` vector (PR #114511)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: Xi Ruoyao (xry111) Changes These builtins operate on int8 vectors, not int16 vectors. So the old definition does not make any sense. Depends on #114510. Part of #110834 fix. --- Patch is 58.14 KiB, truncated to 20.00 KiB be

[clang] [LoongArch][Clang] Make the parameter and return value of {x,}vmsknz.b builtins `signed char` vector (PR #114511)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Xi Ruoyao (xry111) Changes These builtins operate on int8 vectors, not int16 vectors. So the old definition does not make any sense. Depends on #114510. Part of #110834 fix. --- Patch is 58.14 KiB, truncated to 20.00 KiB below, full ve

[clang] [LoongArch][clang] Use `signed char` vectors instead of `char` vectors for L SX and LASX builtins (PR #114510)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Xi Ruoyao (xry111) Changes `-flax-vector-conversions=none` does not allow an implicit conversion from `signed char` vector to `char` vector, and we cannot remove `signed` from `v16i8` or `v32i8` because doing so will break our expectation w

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vxor.v builti ns `unsigned char` vectors (PR #114513)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Xi Ruoyao (xry111) Changes The lsxintrin.h and and lasxintrin.h headers uses `unsigned char` vectors instead of `signed char` vectors. GCC also uses `unsigned char` for them, so align their definition with the headers and GCC. Fixes #

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vorn.v builti ns `unsigned char` vectors (PR #114514)

2024-10-31 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 created https://github.com/llvm/llvm-project/pull/114514 All other bitwise vector builtins use `unsigned char` vector operands, so it does not make too much sense to use `signed char` for the orn operation alone. The same change has been also proposed for GCC: http

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vorn.v builti ns `unsigned char` vectors (PR #114514)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch @llvm/pr-subscribers-backend-x86 Author: Xi Ruoyao (xry111) Changes All other bitwise vector builtins use `unsigned char` vector operands, so it does not make too much sense to use `signed char` for the orn operation alone. The sam

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vshuf.b builtins `signed char` vectors (PR #114512)

2024-10-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Xi Ruoyao (xry111) Changes The lsxintrin.h and and lasxintrin.h headers uses `signed char` vectors instead of `unsigned char` vectors. GCC also uses `signed char` for them, so align their definition with the headers and GCC. Depends on #1

<    1   2   3   4   5   6   >