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

2024-11-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux-multistage` running on `systemz-1` while building `clang` at step 11 "ninja check 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/98/builds/577 Here is the relevant piece of the

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

2024-11-01 Thread Chris B 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] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)

2024-11-01 Thread Chris B 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] [llvm] [PassBuilder] Add `ThinOrFullLTOPhase` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/114547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Implement FP8 floating-point mode helper intrinsics (PR #100608)

2024-11-01 Thread Jon Roelofs via cfe-commits
jroelofs wrote: Are you also planning to do the feature test macros, e.g. `__ARM_FEATURE_FP8`? https://github.com/llvm/llvm-project/pull/100608 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

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

2024-11-01 Thread Vitaly Buka 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] [Clang] Implement labelled type filtering for overflow/truncation sanitizers w/ SSCLs (PR #107332)

2024-11-01 Thread Vitaly Buka 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] [Clang] Implement labelled type filtering for overflow/truncation sanitizers w/ SSCLs (PR #107332)

2024-11-01 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > I know @kees feels strongly that this should be the other way around: > Instrument _everything_ by default (which would eliminate the need for > filterlist integration entirely) and exclude things from instrumentation with > `wraps`. My intuition is that @kees approach cou

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

2024-11-01 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/107332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-11-01 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/107332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Intrinsics/clip (PR #114588)

2024-11-01 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/114588 >From 996405ae7454a13a01a8d249a8cf85cf4a29eee6 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 29 Oct 2024 19:39:31 + Subject: [PATCH 1/4] adding llvm intrinsic --- clang/include/clang/Basic/Bui

[clang] [clang] SemaFunctionEffects: When verifying a function, ignore any trailing 'requires' clause. (PR #114266)

2024-11-01 Thread Doug Wyatt via cfe-commits
dougsonos wrote: I spent a bit more time trying to extract a reduction from libc++ today but failed. Here are the diagnostics that (fortunately) were enough to devise the fix in this PR: ```c++ ./nonblocking-wip.cpp:54:30: warning: function with 'nonblocking' attribute must not call non-'

[clang] [clang][bytecode] Implement bitcasts to floating-point values (PR #114485)

2024-11-01 Thread Timm Baeder via cfe-commits
tbaederr wrote: Sorry, reverted. https://github.com/llvm/llvm-project/pull/114485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-11-01 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/114062 >From d2d2d3d5db3f639aab178f9ca9a20db2842d2b65 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 29 Oct 2024 14:20:44 + Subject: [PATCH 1/4] `sret` args should always point to the `alloca` AS, so we can

[clang] [llvm] Intrinsics/clip (PR #114588)

2024-11-01 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/114588 >From 996405ae7454a13a01a8d249a8cf85cf4a29eee6 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Tue, 29 Oct 2024 19:39:31 + Subject: [PATCH 1/4] adding llvm intrinsic --- clang/include/clang/Basic/Bui

[clang-tools-extra] Extend bugprone-use-after-move check to handle std::optional::reset() and std::any::reset() (PR #114255)

2024-11-01 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti requested changes to this pull request. https://github.com/llvm/llvm-project/pull/114255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c2a892f - Revert "[clang][bytecode] Implement bitcasts to floating-point values (#114485)"

2024-11-01 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-11-02T01:54:38+01:00 New Revision: c2a892f49ae0603949db88aacab7bbc7aa52 URL: https://github.com/llvm/llvm-project/commit/c2a892f49ae0603949db88aacab7bbc7aa52 DIFF: https://github.com/llvm/llvm-project/commit/c2a892f49ae0603949db88aacab7bbc7aa52.diff LO

[clang-tools-extra] Extend bugprone-use-after-move check to handle std::optional::reset() and std::any::reset() (PR #114255)

2024-11-01 Thread Julian Schmidt via cfe-commits
@@ -279,7 +281,7 @@ void UseAfterMoveFinder::getDeclRefs( if (DeclRef && BlockMap->blockContainingStmt(DeclRef) == Block) { // Ignore uses of a standard smart pointer that don't dereference the // pointer. - if (Operator || !isStandardSmartP

[clang-tools-extra] Extend bugprone-use-after-move check to handle std::optional::reset() and std::any::reset() (PR #114255)

2024-11-01 Thread Julian Schmidt via cfe-commits
@@ -196,9 +196,10 @@ Any occurrence of the moved variable that is not a reinitialization (see below) is considered to be a use. An exception to this are objects of type ``std::unique_ptr``, -``std::shared_ptr`` and ``std::weak_ptr``, which have defined move behavior -(objects

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

2024-11-01 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/113833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AMX] Support AMX-TRANSPOSE (PR #113532)

2024-11-01 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > Looks like this causes a significant compile-time regression, but only for > ReleaseLTO-g: > https://llvm-compile-time-tracker.com/compare.php?from=1e19f0f9d92b5e9c43d53893e387341835d3d96b&to=c72a751dabff4260dcc309e48008941d51b31d21&stat=instructions:u > > I wouldn't really

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -31,9 +34,14 @@ void CIRGenerator::Initialize(ASTContext &astCtx) { this->astCtx = &astCtx; - cgm = std::make_unique(*mlirCtx, astCtx, codeGenOpts, diags); + mlirCtx = std::make_unique(); + mlirCtx->getOrLoadDialect(); AaronBallman wrote: I'm surpris

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

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

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

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

2024-11-01 Thread Paul T Robinson via cfe-commits
https://github.com/pogo59 approved this pull request. https://github.com/llvm/llvm-project/pull/114435 ___ 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-11-01 Thread Erich Keane via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

[clang] [llvm] [AArch64] Reduce +sve2-aes to an alias of +sve-aes+sve2 (PR #114293)

2024-11-01 Thread via cfe-commits
@@ -3887,7 +3887,7 @@ let Predicates = [HasSVE2orSME] in { defm WHILERW_PXX : sve2_int_while_rr<0b1, "whilerw", "int_aarch64_sve_whilerw">; } // End HasSVE2orSME -let Predicates = [HasSVE2AES] in { +let Predicates = [HasSVE2, HasSVEAES] in { CarolineConcatt

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

2024-11-01 Thread Kirill Stoimenov via cfe-commits
kstoimenov wrote: @asudarsa looks like this is causing memory leaks in Sanitizer bots: https://lab.llvm.org/buildbot/#/builders/169/builds/4835/steps/13/logs/stdio https://github.com/llvm/llvm-project/pull/112245 ___ cfe-commits mailing list cfe-commit

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

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

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

2024-11-01 Thread David Olsen via cfe-commits
@@ -53,6 +53,7 @@ class CIRGenerator : public clang::ASTConsumer { ~CIRGenerator() override; void Initialize(clang::ASTContext &astCtx) override; bool HandleTopLevelDecl(clang::DeclGroupRef group) override; + mlir::ModuleOp getModule(); dkolsen-pgi wrote

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

2024-11-01 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: This is really just a constant folding rather than a new pass. If the concern is that InstCombine works too late that is possible to add an earlier invocation. https://github.com/llvm/llvm-project/pull/114481 ___ cfe-commits mailing l

[clang] [clang][deps] Stop relying on name of inferred module maps (PR #114085)

2024-11-01 Thread Ben Langmuir via cfe-commits
benlangmuir wrote: Okay, sounds impractical https://github.com/llvm/llvm-project/pull/114085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-11-01 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] [clang][deps] Stop relying on name of inferred module maps (PR #114085)

2024-11-01 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. https://github.com/llvm/llvm-project/pull/114085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Implement pragma clang section on COFF targets (PR #112714)

2024-11-01 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: (Not sure who the right reviewers are for XCOFF; I tried to guess.) https://github.com/llvm/llvm-project/pull/112714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

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

2024-11-01 Thread David Olsen via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

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

2024-11-01 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/6] add type trait --- .../clang/AST/CXXRecordDeclDefinition

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

2024-11-01 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > Just out of curiosity: Are all these things documented reasonably well > somewhere? It's in the clang reference, but probably could be part of a better tutorial or something. https://github.com/llvm/llvm-project/pull/114401 ___ cfe-

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

2024-11-01 Thread kadir çetinkaya via cfe-commits
@@ -477,6 +486,109 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor, setSeverity(Diag, Map, Loc); } +namespace { +class WarningsSpecialCaseList : public llvm::SpecialCaseList { +public: + static std::unique_ptr + create(const llvm::MemoryBuffer &MB, st

[clang] [clang] Suppress a dangling false positive when owner is moved in member initializer. (PR #114213)

2024-11-01 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/114213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f484a04 - [clang] Suppress a dangling false positive when owner is moved in member initializer. (#114213)

2024-11-01 Thread via cfe-commits
Author: Haojian Wu Date: 2024-11-01T13:32:57+01:00 New Revision: f484a04d796123097572c5c2089fefa28e951747 URL: https://github.com/llvm/llvm-project/commit/f484a04d796123097572c5c2089fefa28e951747 DIFF: https://github.com/llvm/llvm-project/commit/f484a04d796123097572c5c2089fefa28e951747.diff LO

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

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

[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #107493)

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -5116,11 +5123,34 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (const Arg *PF = Args.getLastArg(options::OPT_mprintf_kind_EQ)) PF->claim(); - if (Args.hasFlag(options::OPT_fsycl, options::OPT_fno_sycl, false)) { -CmdArgs.push_back("-fsycl-

[clang] [llvm] [PassBuilder] Add `LTOPreLink` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Shilei Tian via cfe-commits
shiltian wrote: * **#114547** https://app.graphite.dev/github/pr/llvm/llvm-project/114547?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 * `main` This stack of pull requests is managed by Grap

[clang] [compiler-rt] [libc] [llvm] [mlir] [openmp] [NFC] (PR #114548)

2024-11-01 Thread via cfe-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/114548 None >From 5bd65cdd2a05b55d391205efb2da696a98b8d1be Mon Sep 17 00:00:00 2001 From: c8ef Date: Fri, 1 Nov 2024 23:21:53 +0800 Subject: [PATCH] fix typo --- clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cp

[clang] [clang] Catch missing format attributes (PR #105479)

2024-11-01 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec updated https://github.com/llvm/llvm-project/pull/105479 From ccb3dca3e4922e83d1c19a6dd37b162cae5a6ae9 Mon Sep 17 00:00:00 2001 From: budimirarandjelovicsyrmia Date: Fri, 5 Apr 2024 15:20:37 +0200 Subject: [PATCH] [clang] Catch missing format attribute

[clang] [llvm] [PassBuilder] Add `LTOPreLink` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Nikita Popov via cfe-commits
@@ -478,7 +478,8 @@ class PassBuilder { /// This extension point allows adding optimization right after passes that do /// basic simplification of the input IR. void registerPipelineEarlySimplificationEPCallback( - const std::function &C) { + const std::functio

[clang] [Clang/AMDGPU] Zero sized arrays not allowed in HIP device code. (PR #113470)

2024-11-01 Thread Vigneshwar Jayakumar via cfe-commits
@@ -8714,6 +8714,21 @@ void Sema::CheckVariableDeclarationType(VarDecl *NewVD) { } } + // zero sized static arrays are not allowed in HIP device functions + if (LangOpts.CUDAIsDevice && LangOpts.HIP) { +if (FunctionDecl *FD = getCurFunctionDecl(); +FD && +

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

2024-11-01 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] [webkit.UncountedLambdaCapturesChecker] Ignore trivial functions a

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

2024-11-01 Thread David Olsen via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

[clang] [llvm] [PassBuilder] Add `LTOPreLink` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Shilei Tian via cfe-commits
@@ -478,7 +478,8 @@ class PassBuilder { /// This extension point allows adding optimization right after passes that do /// basic simplification of the input IR. void registerPipelineEarlySimplificationEPCallback( - const std::function &C) { + const std::functio

[clang] [llvm] [AMDGPU] modify named barrier builtins and intrinsics (PR #114550)

2024-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gang Chen (cmc-rep) Changes --- Patch is 132.19 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/114550.diff 21 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def (+6-6

[clang] [llvm] [AMDGPU] modify named barrier builtins and intrinsics (PR #114550)

2024-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Gang Chen (cmc-rep) Changes --- Patch is 132.19 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/114550.diff 21 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def (+6

[clang] [llvm] [PassBuilder] Add `LTOPreLink` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Nikita Popov via cfe-commits
@@ -478,7 +478,8 @@ class PassBuilder { /// This extension point allows adding optimization right after passes that do /// basic simplification of the input IR. void registerPipelineEarlySimplificationEPCallback( - const std::function &C) { + const std::functio

[clang] [llvm] [AMDGPU] modify named barrier builtins and intrinsics (PR #114550)

2024-11-01 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm commented: Modify how? There seem to be too many things going on here. Description should say how https://github.com/llvm/llvm-project/pull/114550 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] [llvm] [AMDGPU] modify named barrier builtins and intrinsics (PR #114550)

2024-11-01 Thread Matt Arsenault via cfe-commits
@@ -920,6 +920,124 @@ class AMDGPULowerModuleLDS { return KernelToCreatedDynamicLDS; } + static GlobalVariable *uniquifyGVPerKernel(Module &M, GlobalVariable *GV, arsenm wrote: This looks like an unrelated, separate change https://github.com/llvm/llv

[clang-tools-extra] Extend bugprone-use-after-move check to handle std::optional::reset() and std::any::reset() (PR #114255)

2024-11-01 Thread via cfe-commits
@@ -196,9 +196,10 @@ Any occurrence of the moved variable that is not a reinitialization (see below) is considered to be a use. An exception to this are objects of type ``std::unique_ptr``, -``std::shared_ptr`` and ``std::weak_ptr``, which have defined move behavior -(objects

[clang] Reapply "[Clang][Sema] Always use latest redeclaration of primary template" (PR #114569)

2024-11-01 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: Great! Hopefully this will be the last PR needed to finally get #106585 working :) https://github.com/llvm/llvm-project/pull/114569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [CUDA/HIP] fix propagate -cuid to a host-only compilation. (PR #111650)

2024-11-01 Thread Artem Belevich via cfe-commits
Artem-B wrote: > now it is complaining about __hip_fatbin earlier it was > __hip_gpubin_handle_2ba9067058fbe93a. In both cases there's some sort of inconsistency in your build. Find the compilation which creates the object file which refers to the missing symbol, and then we can try figuring

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-11-01 Thread Tom Honermann via cfe-commits
@@ -455,6 +455,174 @@ The SYCL kernel in the previous code sample meets these expectations. }]; } +def SYCLKernelEntryPointDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ +The ``sycl_kernel_entry_point`` attribute facilitates the generation of a

[clang] [clang][deps][modules] Allocate input file paths lazily (PR #114457)

2024-11-01 Thread Jan Svoboda via cfe-commits
@@ -779,23 +795,16 @@ static StringRef makeAbsoluteAndPreferred(CompilerInstance &CI, StringRef Path, void ModuleDepCollector::addFileDep(StringRef Path) { if (IsStdModuleP1689Format) { // Within P1689 format, we don't want all the paths to be absolute path -// since

[clang] [PS5][Driver] Supply default linker scripts (PR #114546)

2024-11-01 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd created https://github.com/llvm/llvm-project/pull/114546 Until now, this has been hardcoded as a downstream patch in lld. Add it to the driver so that the private patch can be removed. PS5 only. On PS4, the equivalent hardcoded configuration will remain in th

[clang] [PS5][Driver] Supply default linker scripts (PR #114546)

2024-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Edd Dawson (playstation-edd) Changes Until now, this has been hardcoded as a downstream patch in lld. Add it to the driver so that the private patch can be removed. PS5 only. On PS4, the equivalent hardcoded configuration will remain in t

[clang-tools-extra] Rename CODE_OWNERS -> Maintainers (PR #114544)

2024-11-01 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > I just no longer have the time needed to hold maintainer status. I'll still > contribute as and when I have the time. Thank you for your help! I'll move you to the inactive maintainers list, and if you find you have more time in the future to step back into a maintenance

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-11-01 Thread Tom Honermann via cfe-commits
@@ -14296,6 +14296,31 @@ void ASTContext::getFunctionFeatureMap(llvm::StringMap &FeatureMap, } } +static SYCLKernelInfo BuildSYCLKernelInfo(ASTContext &Context, + CanQualType KernelNameType, +

[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-11-01 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 1/2] [Clang] prevent assertion failure from an invalid template

[clang] [compiler-rt] [libc] [llvm] [mlir] [openmp] [NFC] Simple typo correction. (PR #114548)

2024-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libc @llvm/pr-subscribers-clang Author: None (c8ef) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/114548.diff 11 Files Affected: - (modified) clang/test/CodeGenSYCL/unique_stable_name_windows_diff.cpp (+1-1) - (modified) clang/te

[clang] [compiler-rt] [libc] [llvm] [mlir] [openmp] [NFC] (PR #114548)

2024-11-01 Thread via cfe-commits
https://github.com/c8ef ready_for_review https://github.com/llvm/llvm-project/pull/114548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Driver][SYCL] Add initial SYCL offload compilation support (PR #107493)

2024-11-01 Thread Michael Toguchi via cfe-commits
@@ -0,0 +1,184 @@ +//===--- SYCL.cpp - SYCL Tool and ToolChain Implementations -*- 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] [PassBuilder] Add `ThinOrFullLTOPhase ` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/114547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PassBuilder] Add `ThinOrFullLTOPhase` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/114547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PassBuilder] Add `ThinOrFullLTOPhase` to early simplication EP call backs (PR #114547)

2024-11-01 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/114547 >From c271a3252ad3bbcf7c251c68244be2be55a9d387 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 1 Nov 2024 12:22:06 -0400 Subject: [PATCH 1/2] [PassBuilder] Replace `bool LTOPreLink` with `ThinOrFullLTOPh

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-11-01 Thread Tom Honermann via cfe-commits
@@ -407,7 +407,8 @@ def MicrosoftExt : LangOpt<"MicrosoftExt">; def Borland : LangOpt<"Borland">; def CUDA : LangOpt<"CUDA">; def HIP : LangOpt<"HIP">; -def SYCL : LangOpt<"SYCLIsDevice">; +def SYCLHost : LangOpt<"SYCLIsHost">; tahonermann wrote: Thanks, Erich

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

2024-11-01 Thread via cfe-commits
https://github.com/timon-ul updated https://github.com/llvm/llvm-project/pull/113900 >From 96c759835b798b8f002adb4835db08b8de5da97a Mon Sep 17 00:00:00 2001 From: Timon Ulrich Date: Mon, 28 Oct 2024 11:03:10 +0100 Subject: [PATCH 1/3] Added call hierarchy for Field and non-local variables ---

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

2024-11-01 Thread 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] b57b3f6 - [NFC] Simple typo correction. (#114548)

2024-11-01 Thread via cfe-commits
Author: c8ef Date: 2024-11-02T00:40:57+08:00 New Revision: b57b3f64253a57831a5e5f4e6557d2f9cb01d017 URL: https://github.com/llvm/llvm-project/commit/b57b3f64253a57831a5e5f4e6557d2f9cb01d017 DIFF: https://github.com/llvm/llvm-project/commit/b57b3f64253a57831a5e5f4e6557d2f9cb01d017.diff LOG: [NF

[clang] [compiler-rt] [libc] [llvm] [mlir] [openmp] [NFC] Simple typo correction. (PR #114548)

2024-11-01 Thread via cfe-commits
https://github.com/c8ef edited https://github.com/llvm/llvm-project/pull/114548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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-11-01 Thread Oleksandr T. 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-tools-extra] [llvm] [clang] Introduce diagnostics suppression mappings (PR #112517)

2024-11-01 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/112517 From 20f1c1fea3466de38a04b5486cb05d95dbe3b96c Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Mon, 14 Oct 2024 11:20:55 +0200 Subject: [PATCH 1/6] [clang] Introduce diagnostics suppression mappings This i

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

2024-11-01 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] [clang][bytecode] Add more checks to _ai32_* builtins (PR #114412)

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

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

2024-11-01 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/114481 >From 3ba88ce598aaab269169f0a5db5981c9a9ac8603 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 31 Oct 2024 22:38:36 + Subject: [PATCH 1/4] Add pass to handle AMDGCN pseudo-intrinsics (abstract placehol

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-11-01 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/114062 >From d2d2d3d5db3f639aab178f9ca9a20db2842d2b65 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 29 Oct 2024 14:20:44 + Subject: [PATCH 1/3] `sret` args should always point to the `alloca` AS, so we can

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -24,9 +27,140 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, AaronBallman wrote: Yeah, this was part of https://github.com/llvm/llvm-project/pull/86080#discussion_r1535454524 and is actually s

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -52,10 +62,33 @@ class CIRGenModule : public CIRGenTypeCache { /// A "module" matches a c/cpp source file: containing a list of functions. mlir::ModuleOp theModule; + clang::DiagnosticsEngine &diags; + const clang::TargetInfo ⌖ public: + mlir::ModuleOp getModule

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

2024-11-01 Thread Aaron Ballman 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" AaronBallman wrote: I think we'd usually have the clang includes first though so there's less chance of accidental

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

[clang] 340cb39 - [PS5][Driver] Pass layout metrics to the linker (#114435)

2024-11-01 Thread via cfe-commits
Author: Edd Dawson Date: 2024-11-01T13:37:33Z New Revision: 340cb3951e53bc90706b39c16cd5ec59ca963324 URL: https://github.com/llvm/llvm-project/commit/340cb3951e53bc90706b39c16cd5ec59ca963324 DIFF: https://github.com/llvm/llvm-project/commit/340cb3951e53bc90706b39c16cd5ec59ca963324.diff LOG: [P

[clang] [HLSL][SPIRV] Add HLSL type translation for spirv. (PR #114273)

2024-11-01 Thread Steven Perron via cfe-commits
https://github.com/s-perron ready_for_review https://github.com/llvm/llvm-project/pull/114273 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libc] [llvm] [mlir] [openmp] [NFC] Simple typo correction. (PR #114548)

2024-11-01 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/114548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][deps] Stop relying on name of inferred module maps (PR #114085)

2024-11-01 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: > Can this be tested? Hmm, I'm not sure. The current tests for inferred module maps still pass. The other ways how `SourceManager` ends up overwriting a file are: * is by using the `-remap-file`, which is unsupported with modules (`ASTWriter` intentionally asserts), * using

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-11-01 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/111389 >From 3c4a2b8a52d3f1c730df88a308dece21a67834ef Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Fri, 4 Oct 2024 11:10:32 -0700 Subject: [PATCH 1/7] [SYCL] The sycl_kernel_entry_point attribute. The `sycl_

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-11-01 Thread Tom Honermann via cfe-commits
@@ -14296,6 +14296,31 @@ void ASTContext::getFunctionFeatureMap(llvm::StringMap &FeatureMap, } } +static SYCLKernelInfo BuildSYCLKernelInfo(ASTContext &Context, + CanQualType KernelNameType, +

[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -407,7 +407,8 @@ def MicrosoftExt : LangOpt<"MicrosoftExt">; def Borland : LangOpt<"Borland">; def CUDA : LangOpt<"CUDA">; def HIP : LangOpt<"HIP">; -def SYCL : LangOpt<"SYCLIsDevice">; +def SYCLHost : LangOpt<"SYCLIsHost">; AaronBallman wrote: IMO, where w

[clang] [libcxx] [libcxxabi] [Fuchsia][cmake] Allow using FatLTO when building runtimes (PR #112277)

2024-11-01 Thread Paul Kirth via cfe-commits
ilovepi wrote: I'm pretty sure you're correct on the root cause. In this case its the `pragma`s in libcxx (random and chrono), but I'd expect this to happen for similar situations, like the atomics. This happens for LTO alone, and isn't something I think we can work around through FatLTO, unl

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

2024-11-01 Thread Aaron Ballman 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] [flang] [llvm] [openmp] [flang][driver] rename flang-new to flang (PR #110023)

2024-11-01 Thread Sylvestre Ledru via cfe-commits
sylvestre wrote: Did you try with a prefix and then ninja install? It has a different behavior between Clang and flang https://github.com/llvm/llvm-project/pull/110023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [clang] Suppress a dangling false positive when owner is moved in member initializer. (PR #114213)

2024-11-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 10 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/7886 Here is the r

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

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

2024-11-01 Thread Aaron Ballman via cfe-commits
@@ -24,9 +27,135 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &context, clang::ASTContext &astctx, const clang::CodeGenOptions &cgo, DiagnosticsEngine &diags) -: astCtx(astctx), langOpts(ast

  1   2   3   4   >