[clang] cb7b10c - [clang][bytecode] Fail on mutable reads from revisited variables (#133064)

2025-03-26 Thread via cfe-commits
Author: Timm Baeder Date: 2025-03-26T12:29:31+01:00 New Revision: cb7b10c66ef8a62f22a77a1480bba382863fcc90 URL: https://github.com/llvm/llvm-project/commit/cb7b10c66ef8a62f22a77a1480bba382863fcc90 DIFF: https://github.com/llvm/llvm-project/commit/cb7b10c66ef8a62f22a77a1480bba382863fcc90.diff L

[clang] [clang][analyzer] Correctly handle structured bindings captured by lambda (PR #132579)

2025-03-26 Thread via cfe-commits
flovent wrote: @isuckatcs Thank you for approvel! Is this PR also need to be reviewed by other people? If not can you help me merge it? since I don't have write access. https://github.com/llvm/llvm-project/pull/132579 ___ cfe-commits mailing list cfe-

[clang] [clang] Fix static_cast bypassing access control (PR #132285)

2025-03-26 Thread via cfe-commits
@@ -1572,13 +1571,12 @@ TryCastResult TryLValueToRValueCast(Sema &Self, Expr *SrcExpr, if (RefConv & Sema::ReferenceConversions::DerivedToBase) { Kind = CK_DerivedToBase; -CXXBasePaths Paths(/*FindAmbiguities=*/true, /*RecordPaths=*/true, - /*D

[libclc] [libclc] Fix commands in compile_to_bc are executed sequentially (PR #130755)

2025-03-26 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck commented: Sorry, I didn't realise I hadn't published this review from last week! https://github.com/llvm/llvm-project/pull/130755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-26 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/132232 >From 5008e3cff11bb019e22148926f0088fbb8fc530f Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 20 Mar 2025 11:00:05 -0400 Subject: [PATCH 1/7] [Docs] Document freestanding requirements This adds so

[clang] [HLSL] Add new double overloads for math builtins (PR #132979)

2025-03-26 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/132979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-26 Thread Aaron Ballman via cfe-commits
@@ -1073,6 +1073,28 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang] [clang] Fix static_cast bypassing access control (PR #132285)

2025-03-26 Thread via cfe-commits
@@ -23,3 +22,66 @@ void test(A &a, B &b) { const A &&ar10 = static_cast(xvalue()); const A &&ar11 = static_cast(xvalue()); } + +struct C : private A { // expected-note 4 {{declared private here}} offsetof wrote: Added a namespace. https://github.com/llvm/

[clang] [PATCH] [clang][frontend] Fix AllocKind retrieving for `CXXConstructorDecl` refs #132794 (PR #133077)

2025-03-26 Thread Paul Schwabauer via cfe-commits
https://github.com/koplas created https://github.com/llvm/llvm-project/pull/133077 When getting the `ExplicitSpecifier` of the `CXXConstructorDecl`, one of the canonical declaration is returned. When writing the declaration record with `ExplicitSpecifier`, the `AllocKind` of the canonical decl

[clang] [llvm] [WIP] Clang ABI Types (PR #133080)

2025-03-26 Thread via cfe-commits
https://github.com/easyonaadit created https://github.com/llvm/llvm-project/pull/133080 None >From 16f156dbd83fe0b272f9d485584b1fb9d9a04015 Mon Sep 17 00:00:00 2001 From: easyonaadit Date: Fri, 21 Mar 2025 11:37:31 +0530 Subject: [PATCH 1/2] temp commit have annotated the code with some parts

[clang] [PATCH] [clang][frontend] Fix AllocKind retrieving for `CXXConstructorDecl` refs #132794 (PR #133077)

2025-03-26 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 23882f09e40a33de95963dbe345450615489b55b 98e6c674244099fd15e13026081caac9102f7c3d --e

[clang] [PATCH] [clang][frontend] Fix AllocKind retrieving for `CXXConstructorDecl` refs #132794 (PR #133077)

2025-03-26 Thread Paul Schwabauer via cfe-commits
https://github.com/koplas updated https://github.com/llvm/llvm-project/pull/133077 >From d2da89cb6d2438b31ad25a05ec87d5f039e79064 Mon Sep 17 00:00:00 2001 From: koplas Date: Wed, 26 Mar 2025 13:49:44 +0100 Subject: [PATCH] [PATCH] [clang][frontend] Fix AllocKind retrieving for `CXXConstructorD

[clang] [llvm] [WIP] Clang ABI Types (PR #133080)

2025-03-26 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 c9055e9780683735392ac0e74163020015eabf15 2fde3d1079bed13375456975e7ac8167103e9f9f --e

[clang] [llvm] [AArch64] Add FEAT_FPAC to Neoverse V2 (PR #133054)

2025-03-26 Thread Sjoerd Meijer via cfe-commits
@@ -19,6 +19,7 @@ // CHECK-NEXT: FEAT_ETE Enable Embedded Trace Extension // CHECK-NEXT: FEAT_FCMA Enable Armv8.3-A Floating-point complex number support // CHECK-NEXT: FEAT

[clang] [analyzer] Fix format attribute handling in GenericTaintChecker (PR #132765)

2025-03-26 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/132765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [clang][analyzer] Ignore unnamed bitfields in UninitializedObjectChecker (PR #132427)

2025-03-26 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/132427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Ignore unnamed bitfields in UninitializedObjectChecker (PR #132427)

2025-03-26 Thread via cfe-commits
github-actions[bot] wrote: @kr-2003 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 build,

[clang] [CIR] Upstream zero init for global variables (PR #133100)

2025-03-26 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/133100 >From b4aafe8bdb2754597d440e256c33b9f8b9a92a91 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 26 Mar 2025 05:52:17 -0700 Subject: [PATCH] [CIR] Upstream zero init for global variables --- .../CIR/

[clang] [clang-format] Allow `Language: Cpp` for C files (PR #133033)

2025-03-26 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/133033 >From d03c3420218eed7c2db3a5c17abb6a0b3efbba87 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 25 Mar 2025 21:45:00 -0700 Subject: [PATCH 1/2] [clang-format] Allow `Language: Cpp` for C files Fix #132832 ---

[clang] [clang] Update Mach-O ptrauth driver defaults (PR #132834)

2025-03-26 Thread Nico Weber via cfe-commits
nico wrote: Looks like @ahmedbougacha might be out. @francisvm, could you take a look? https://github.com/llvm/llvm-project/pull/132834 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-03-26 Thread Yanzuo Liu via cfe-commits
@@ -32,6 +32,26 @@ enum E2 : S::I { e }; #endif } // namespace cwg2516 +namespace cwg2517 { // cwg2517: 21 +#if __cplusplus >= 202302L zwuis wrote: The resolution of defect reports is applied to all C++ standard verions where the issue exists unless specifie

[clang] [clang] fix deduction of member pointers with dependent named classes (PR #133113)

2025-03-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/133113 This fixes a regression when interpreting a nested name specifier for deduction purposes in member pointers. This introduces a helper for fully translating a nested name specifier into a type. Other existing

[clang] [clang-tools-extra] Reland: [clang] NFC: Clear some uses of MemberPointerType::getClass (PR #132317)

2025-03-26 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @alexfh @rupprecht thanks, that was indeed a separate regression, and this will be fixed here: https://github.com/llvm/llvm-project/pull/133113 https://github.com/llvm/llvm-project/pull/132317 ___ cfe-commits mailing list cfe-commits@l

[clang] [clang-tools-extra] [lldb] Reland: [clang] preserve class type sugar when taking pointer to member (PR #132401)

2025-03-26 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Thanks, this will be fixed here: https://github.com/llvm/llvm-project/pull/133113 https://github.com/llvm/llvm-project/pull/132401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [clang][DependencyScanning] Track dependencies from prebuilt modules to determine IsInStableDir (PR #132237)

2025-03-26 Thread Jan Svoboda via cfe-commits
@@ -5834,9 +5834,13 @@ bool ASTReader::readASTFileControlBlock( break; case INPUT_FILE: bool Overridden = static_cast(Record[3]); + size_t FilenameLen = ModuleDir.size() + Record[7] + 1; auto Filename = ResolveImportedPath(PathBuf

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-26 Thread Steven Perron via cfe-commits
https://github.com/s-perron edited https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add BinOpOverflowOp and basic pointer arithmetic support (PR #133118)

2025-03-26 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/133118 This was part of #132420 originally but split off to reduce the diff size. This patch adds support for overflowing binary operators and all the plumbing required for pointer arithmetic except for the actual Ops (`P

[clang] [clang][modules] Lazily load by name lookups in module maps (PR #132853)

2025-03-26 Thread Jan Svoboda via cfe-commits
@@ -359,11 +359,11 @@ Module *HeaderSearch::lookupModule(StringRef ModuleName, StringRef SearchName, // checked DirectoryEntryRef NormalDir = *Dir.getDirRef(); // Search for a module map file in this directory. -if (loadModuleMapFile(NormalDir, IsSystem, -

[clang] [flang] [flang] Add -f[no-]slp-vectorize flags (PR #132801)

2025-03-26 Thread Kajetan Puchalski via cfe-commits
mrkajetanp wrote: > This patch might partially address the issue raised in > https://github.com/llvm/llvm-project/issues/73180 Certainly, I tracked a regression in a workload down to flang not running the slp vectorizer. Hence this patch. https://github.com/llvm/llvm-project/pull/132801 _

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
@@ -229,6 +229,12 @@ class CodeGenTypes { const CGFunctionInfo &arrangeBuiltinFunctionCall(QualType resultType, const CallArgList &args); + /// A SYCL device kernel function is a free standing function with + /// spir_kern

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
@@ -3303,6 +3303,27 @@ void CodeGenModule::EmitDeferred() { CurDeclsToEmit.swap(DeferredDeclsToEmit); for (GlobalDecl &D : CurDeclsToEmit) { +// Functions declared with the sycl_kernel_entry_point attribute are +// emitted normally during host compilation. During d

[clang] [llvm] cuda clang: Fix argument order for __reduce_max_sync (PR #132881)

2025-03-26 Thread Artem Belevich via cfe-commits
Artem-B wrote: @AustinSchuh would you like me to merge the change for you, once the checks are done? https://github.com/llvm/llvm-project/pull/132881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [RFC][clang] Fix for regression #130917 (PR #132214)

2025-03-26 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin created https://github.com/llvm/llvm-project/pull/132214 Changes in #111992 was too broad. This change reduces scope of previous fix. Unfortunately in clang there is no way to know when redeclaration was craeted artificially due to AST mergse and when it was the c

[clang] [NFC] [ASTMatchers] Share code of `forEachArgumentWithParamType` with UnsafeBufferUsage (PR #132387)

2025-03-26 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: cc @ivanaivanovska FYI https://github.com/llvm/llvm-project/pull/132387 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a1a74c9 - [NFC][clang] Remove superfluous header files after refactor in #132252 (#132495)

2025-03-26 Thread via cfe-commits
Author: Jonathan Thackray Date: 2025-03-26T14:45:00Z New Revision: a1a74c9e80f983c01587bb86523e4e8b83e87d42 URL: https://github.com/llvm/llvm-project/commit/a1a74c9e80f983c01587bb86523e4e8b83e87d42 DIFF: https://github.com/llvm/llvm-project/commit/a1a74c9e80f983c01587bb86523e4e8b83e87d42.diff

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-26 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/132250 Simplify `NullabilityChecker.cpp` with new multipart checker framework introduced in 27099982da2f5a6c2d282d6b385e79d080669546. This is part of a commit series that will perform analogous changes in all checke

[clang] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-03-26 Thread Jiuyang Liu via cfe-commits
sequencer wrote: Thanks for the tests on the `rv32i`! https://github.com/llvm/llvm-project/pull/133031 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 99e8321 - [clang][analyzer] Ignore unnamed bitfields in UninitializedObjectChecker (#132427)

2025-03-26 Thread via cfe-commits
Author: Abhinav Kumar Date: 2025-03-26T16:07:51+01:00 New Revision: 99e8321953a047a2994639df3df496cab779e199 URL: https://github.com/llvm/llvm-project/commit/99e8321953a047a2994639df3df496cab779e199 DIFF: https://github.com/llvm/llvm-project/commit/99e8321953a047a2994639df3df496cab779e199.diff

[clang] [clang][analyzer] Ignore unnamed bitfields in UninitializedObjectChecker (PR #132427)

2025-03-26 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/132427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Correctly handle structured bindings captured by lambda (PR #132579)

2025-03-26 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. LGTM, thank you. https://github.com/llvm/llvm-project/pull/132579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix deduction of member pointers with dependent named classes (PR #133113)

2025-03-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/133113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7563e31 - [CIR] Implement lowering of int-to-bool casts (#132996)

2025-03-26 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-03-26T09:44:05-07:00 New Revision: 7563e31127615876b02d13c3d5cf02207adfd073 URL: https://github.com/llvm/llvm-project/commit/7563e31127615876b02d13c3d5cf02207adfd073 DIFF: https://github.com/llvm/llvm-project/commit/7563e31127615876b02d13c3d5cf02207adfd073.diff L

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-03-26 Thread Mohamed Emad via cfe-commits
hulxv wrote: > The failures on the presubmit bot look unrelated, but you need to update your > branch, since it looks like the base revision is broken. Done https://github.com/llvm/llvm-project/pull/131280 ___ cfe-commits mailing list cfe-commits@li

[clang-tools-extra] [llvm] clangd: Add a build option to disable building dexp (PR #133124)

2025-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Yoann Congal (ycongal-smile) Changes Building dexp on Debian 11 currently causes intermittent failure[0] [1]. Adding the CLANGD_BUILD_DEXP option to disable dexp from the build allows Debian 11 users to build clang (albeit wit

[clang-tools-extra] [llvm] clangd: Add a build option to disable building dexp (PR #133124)

2025-03-26 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang] fix deduction of member pointers with dependent named classes (PR #133113)

2025-03-26 Thread Jordan Rupprecht via cfe-commits
rupprecht wrote: I can't comment on the contents of this fix, but I patched it in and the crash no longer reproduces on the original target I saw this in. I think this also takes care of the targets that @alexfh reported. https://github.com/llvm/llvm-project/pull/133113 ___

[clang] [CIR] Add BinOpOverflowOp and basic pointer arithmetic support (PR #133118)

2025-03-26 Thread Morris Hafner via cfe-commits
@@ -223,6 +223,16 @@ class CIRGenFunction : public CIRGenTypeCache { void emitDecl(const clang::Decl &d); + /// Same as IRBuilder::CreateInBoundsGEP, but additionally emits a check to + /// detect undefined behavior when the pointer overflow sanitizer is enabled. + /// \

[clang] [CIR][NFC] Organize emit functions in CIRGenFunction.h (PR #133017)

2025-03-26 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/133017 >From ea61ece2a4111d41e653acde3936bc6086e248ff Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Tue, 25 Mar 2025 13:12:58 -0700 Subject: [PATCH 1/2] [CIR][NFC] Organize emit functions in CIRGenFunction.h To

[clang-tools-extra] [llvm] clangd: Add a build option to disable building dexp (PR #133124)

2025-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Yoann Congal (ycongal-smile) Changes Building dexp on Debian 11 currently causes intermittent failure[0] [1]. Adding the CLANGD_BUILD_DEXP option to disable dexp from the build allows Debian 11 users to build clang (albeit without the de

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/133125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 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 15f5a7a3ec71c624cea0cbdf02e3c5205ba81d9d 75ef42d644da9136fb07014ade18b6be137426a1 --e

[clang] [CIR] Implement lowering of int-to-bool casts (PR #132996)

2025-03-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-out-of-tree` running on `linaro-flang-aarch64-out-of-tree` while building `clang` at step 8 "test-build-flang-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/53

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/133125 C2y adds the _Countof operator which returns the number of elements in an array. As with sizeof, _Countof either accepts a parenthesized type name or an expression. Its operand must be (of) an array type.

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes C2y adds the _Countof operator which returns the number of elements in an array. As with sizeof, _Countof either accepts a parenthesized type name or an expression. Its operand must be (of) an array ty

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: Although C++ might have good alternatives, that's not so helpful for C headers being included from C++ that might end up using this (e.g. some static inline function in a system header). https://github.com/llvm/llvm-project/pull/133125

[clang] [Clang][Diagnostics] Update select uses in DiagnosticXKinds.td to use enum_select (PR #130868)

2025-03-26 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/130868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Organize emit functions in CIRGenFunction.h (PR #133017)

2025-03-26 Thread Andy Kaylor via cfe-commits
andykaylor wrote: @mmha I should have copied you on this earlier. https://github.com/llvm/llvm-project/pull/133017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Add -f[no-]slp-vectorize flags (PR #132801)

2025-03-26 Thread Tarun Prabhu via cfe-commits
tarunprabhu wrote: Is this buildbot failure related: [https://lab.llvm.org/buildbot/#/builders/89/builds/19482](https://lab.llvm.org/buildbot/#/builders/89/builds/19482)? https://github.com/llvm/llvm-project/pull/132801 ___ cfe-commits mailing list cf

[clang] [clang-tools-extra] Reland: [clang] NFC: Clear some uses of MemberPointerType::getClass (PR #132317)

2025-03-26 Thread Alexander Kornienko via cfe-commits
alexfh wrote: Thanks for the fast fix! I would still insist on reverting first and recommiting the changes along with the fix (I could run this through a bit more testing on real code for more confidence), rather than trying to expedite the review and potentially introducing more regressions.

[clang] [CIR] Implement lowering of int-to-bool casts (PR #132996)

2025-03-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-release` running on `linaro-flang-aarch64-release` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/172/builds/11341

[clang] [CIR] Implement lowering of int-to-bool casts (PR #132996)

2025-03-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/12042 He

[clang] [flang] [llvm] [AMDGPU] Add "lds-buffer-load-insts" attribute for all targets < gfx11 (PR #133055)

2025-03-26 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: > At the hardware level, GFX11 removed the ability for buffer, **scratch** and > **global** instructions to return directly to LDS. So can we use one > attribute that covers all three of those? I've been "grep"ping in upstream (but not yet downstream): * Scratch load lds are

[clang] [C23] Implement WG14 N3037 (PR #132939)

2025-03-26 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,472 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c23 -pedantic -Wall -Wno-comment -verify=both,c23 %s +// RUN: %clang_cc1 -fsyntax-only -std=c17 -pedantic -Wall -Wno-comment -Wno-c23-extensions -verify=both,c17 %s + +/* WG14 N3037: + * Improved tag compatibility + * + *

[clang] [clang] fix deduction of member pointers with dependent named classes (PR #133113)

2025-03-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/133113 >From 839a8fc708bad03c3c82a1916d70652ab3b17b5e Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 26 Mar 2025 12:26:40 -0300 Subject: [PATCH] [clang] fix deduction of member pointers with dependent named

[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

2025-03-26 Thread via cfe-commits
https://github.com/DenisGZM created https://github.com/llvm/llvm-project/pull/133107 Enable parsing alignas attribute after GNU attributes, before ParseDeclaration This might be useful for cuda code where __shared__ and other specificators may be mixed with align. I'd be glad to see if there

[clang] [CLANG][CUDA] Enable alignas after GNU attributes (PR #133105)

2025-03-26 Thread via cfe-commits
https://github.com/DenisGZM created https://github.com/llvm/llvm-project/pull/133105 Enable parsing alignas attribute after GNU attributes, before `ParseDeclaration` This might be useful for cuda code where `__shared__` and other specificators may be mixed with align. I'd be glad to see if th

[clang] c0cce43 - [AArch64] Add FEAT_FPAC to Neoverse V2 (#133054)

2025-03-26 Thread via cfe-commits
Author: Sjoerd Meijer Date: 2025-03-26T15:21:21Z New Revision: c0cce437395063ed9f58b8d4138280d1008bc79b URL: https://github.com/llvm/llvm-project/commit/c0cce437395063ed9f58b8d4138280d1008bc79b DIFF: https://github.com/llvm/llvm-project/commit/c0cce437395063ed9f58b8d4138280d1008bc79b.diff LOG:

[clang] [llvm] [AArch64] Add FEAT_FPAC to Neoverse V2 (PR #133054)

2025-03-26 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer closed https://github.com/llvm/llvm-project/pull/133054 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-03-26 Thread Imad Aldij via cfe-commits
https://github.com/imdj updated https://github.com/llvm/llvm-project/pull/132919 >From 7905577616743f5158560a4b337148ef9cd25f1e Mon Sep 17 00:00:00 2001 From: Imad Aldij Date: Tue, 25 Mar 2025 14:50:55 +0200 Subject: [PATCH 1/8] [Clang] Implement CWG2517 Useless restriction on use of parameter

[clang] [flang] [flang] Add -f[no-]slp-vectorize flags (PR #132801)

2025-03-26 Thread David Truby via cfe-commits
https://github.com/DavidTruby approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/132801 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream zero init for global variables (PR #133100)

2025-03-26 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/133100 This change adds zero initialization for global variables >From 999b8e47c0a8506a983d7d3ac5ce1b82b41966b0 Mon Sep 17 00:00:00 2001 From: JaydeepChauhan14 Date: Wed, 26 Mar 2025 05:52:17 -0700 Subject: [PATC

[clang] [HLSL] Add new double overloads for math builtins (PR #132979)

2025-03-26 Thread Sarah Spall via cfe-commits
https://github.com/spall closed https://github.com/llvm/llvm-project/pull/132979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CLANG][CUDA] Enable alignas after GNU attributes (PR #133105)

2025-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Denis.G (DenisGZM) Changes Enable parsing alignas attribute after GNU attributes, before `ParseDeclaration` This might be useful for cuda code where `__shared__` and other specificators may be mixed with align. I'd be glad to see if ther

[clang] [flang] [flang] Add -f[no-]slp-vectorize flags (PR #132801)

2025-03-26 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: > Is this buildbot failure related: > https://lab.llvm.org/buildbot/#/builders/89/builds/19482? Likely. We shouldn't be generating files in driver tests. For checking output, we have to pipe the output to FileCheck. https://github.com/llvm/llvm-project/pull/132801 ___

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-26 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng edited https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix deduction of member pointers with dependent named classes (PR #133113)

2025-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes a regression when interpreting a nested name specifier for deduction purposes in member pointers. This introduces a helper for fully translating a nested name specifier into a type. Other ex

[clang] [CIR] Implement lowering of int-to-bool casts (PR #132996)

2025-03-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-rel-assert` running on `linaro-flang-aarch64-rel-assert` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/29/builds/

[clang] [flang] [flang] Add -f[no-]slp-vectorize flags (PR #132801)

2025-03-26 Thread Kajetan Puchalski via cfe-commits
mrkajetanp wrote: > Is this buildbot failure related: > [https://lab.llvm.org/buildbot/#/builders/89/builds/19482](https://lab.llvm.org/buildbot/#/builders/89/builds/19482)? Ah yes, sorry about that! Just a missing -o /dev/null, I'll post a fix in a moment. https://github.com/llvm/llvm-proje

[clang-tools-extra] [clang-doc] Allow setting a base directory for hosted pages (PR #132482)

2025-03-26 Thread Paul Kirth via cfe-commits
@@ -1,9 +1,10 @@ function genLink(Ref) { ilovepi wrote: Looks like the current directory was left around when we moved from relative paths to absolute. I don't think we can use that instead of base, though. When I log what the CurrentDirectory is on docs.fuchs

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-26 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng edited https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: The problem also is only reproducible when using -start-lib -end-lib options around icu library object files in the linking command. https://github.com/llvm/llvm-project/pull/126240 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang-tools-extra] [llvm] clangd: Add a build option to disable building dexp (PR #133124)

2025-03-26 Thread Yoann Congal via cfe-commits
https://github.com/ycongal-smile created https://github.com/llvm/llvm-project/pull/133124 Building dexp on Debian 11 currently causes intermittent failure[0] [1]. Adding the CLANGD_BUILD_DEXP option to disable dexp from the build allows Debian 11 users to build clang (albeit without the dexp t

[clang] [clang-tools-extra] Reland: [clang] NFC: Clear some uses of MemberPointerType::getClass (PR #132317)

2025-03-26 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @alexfh Are you sure the original crashes were due to https://github.com/llvm/llvm-project/pull/132977 ? Looking at the patch, it seems unlikely it could cause a crash in itself. What I think happened is that your compilation proceeded further along and encountered the other c

[clang] [Clang][ARM] Only try to redefine builtins for non-CUDA (PR #128222)

2025-03-26 Thread Artem Belevich via cfe-commits
@@ -27,6 +27,8 @@ extern "C" { #endif +#if !defined(__CUDA_ARCH__) + Artem-B wrote: @rnk Reid, would you happen to have an idea what's up with these builtins on Windows? https://github.com/llvm/llvm-project/pull/128222 __

[clang] [flang] [flang] Add -f[no-]slp-vectorize flags (PR #132801)

2025-03-26 Thread Kajetan Puchalski via cfe-commits
mrkajetanp wrote: The buildbot failure fix is here: https://github.com/llvm/llvm-project/pull/133128 https://github.com/llvm/llvm-project/pull/132801 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-26 Thread Farzon Lotfi via cfe-commits
@@ -101,6 +101,52 @@ bool SemaSPIRV::CheckSPIRVBuiltinFunctionCall(unsigned BuiltinID, TheCall->setType(RetTy); break; } + case SPIRV::BI__builtin_spirv_smoothstep: { +if (SemaRef.checkArgCount(TheCall, 3)) + return true; + +// check if the all argument

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
@@ -0,0 +1,177 @@ +// RUN: %clang_cc1 -fsycl-is-host -emit-llvm -triple x86_64-unknown-linux-gnu %s -o - | FileCheck --check-prefixes=CHECK-HOST,CHECK-HOST-LINUX %s +// RUN: %clang_cc1 -fsycl-is-device -emit-llvm -aux-triple x86_64-unknown-linux-gnu -triple amdgcn %s -o - | File

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
@@ -0,0 +1,177 @@ +// RUN: %clang_cc1 -fsycl-is-host -emit-llvm -triple x86_64-unknown-linux-gnu %s -o - | FileCheck --check-prefixes=CHECK-HOST,CHECK-HOST-LINUX %s +// RUN: %clang_cc1 -fsycl-is-device -emit-llvm -aux-triple x86_64-unknown-linux-gnu -triple amdgcn %s -o - | File

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
@@ -0,0 +1,177 @@ +// RUN: %clang_cc1 -fsycl-is-host -emit-llvm -triple x86_64-unknown-linux-gnu %s -o - | FileCheck --check-prefixes=CHECK-HOST,CHECK-HOST-LINUX %s +// RUN: %clang_cc1 -fsycl-is-device -emit-llvm -aux-triple x86_64-unknown-linux-gnu -triple amdgcn %s -o - | File

[clang] [SYCL] Basic code generation for SYCL kernel caller offload entry point functions. (PR #133030)

2025-03-26 Thread Mariya Podchishchaeva via cfe-commits
@@ -732,6 +732,16 @@ CodeGenTypes::arrangeBuiltinFunctionDeclaration(CanQualType resultType, RequiredArgs::All); } +const CGFunctionInfo & +CodeGenTypes::arrangeSYCLKernelCallerDeclaration(QualType resultType, +

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-26 Thread James Y Knight via cfe-commits
https://github.com/jyknight approved this pull request. LGTM to me now. I hope we will eventually provide a conforming freestanding implementation, but that's future work. https://github.com/llvm/llvm-project/pull/132232 ___ cfe-commits mailing list c

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 Thread James Y Knight via cfe-commits
@@ -0,0 +1,61 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify %s + +/* WG14 N3369: Clang 21 + * _Lengthof operator + * + * Adds an operator to get the length of an array. Note that WG14 N3469 renamed + * this operator to _Countof. + */ + +int gl

[clang] [clang-tools-extra] Reland: [clang] NFC: Clear some uses of MemberPointerType::getClass (PR #132317)

2025-03-26 Thread Alexander Kornienko via cfe-commits
alexfh wrote: > > @alexfh Are you sure the original crashes were due to #132977 ? > > I thought so, but your explanation below also seems reasonable. I can try to > verify. > > > Looking at the patch, it seems unlikely it could cause a crash in itself. > > What I think happened is that your co

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-26 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,61 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify %s + +/* WG14 N3369: Clang 21 + * _Lengthof operator + * + * Adds an operator to get the length of an array. Note that WG14 N3469 renamed + * this operator to _Countof. + */ + +int gl

[clang] 6d1184d - [CIR][NFC] Organize emit functions in CIRGenFunction.h (#133017)

2025-03-26 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-03-26T11:37:47-07:00 New Revision: 6d1184d05ffe3872ce5ea186c0cd3085219aae07 URL: https://github.com/llvm/llvm-project/commit/6d1184d05ffe3872ce5ea186c0cd3085219aae07 DIFF: https://github.com/llvm/llvm-project/commit/6d1184d05ffe3872ce5ea186c0cd3085219aae07.diff L

[clang] [CIR][NFC] Organize emit functions in CIRGenFunction.h (PR #133017)

2025-03-26 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/133017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Organize emit functions in CIRGenFunction.h (PR #133017)

2025-03-26 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/133017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ARM] Only try to redefine builtins for non-CUDA (PR #128222)

2025-03-26 Thread Nick Sarnie via cfe-commits
@@ -27,6 +27,8 @@ extern "C" { #endif +#if !defined(__CUDA_ARCH__) + sarnex wrote: @Artem-B Any recommendations on moving forward since we seem to be having trouble getting the historical info on the change? https://github.com/llvm/llvm-project/pull/128222

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-26 Thread James Y Knight via cfe-commits
@@ -1073,6 +1073,28 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)

2025-03-26 Thread via cfe-commits
https://github.com/ShashwathiNavada updated https://github.com/llvm/llvm-project/pull/125643 >From 0aebcd7119fbcd51154c5d9706752e8ff3f041bc Mon Sep 17 00:00:00 2001 From: ShashwathiNavada Date: Tue, 4 Feb 2025 00:16:09 -0600 Subject: [PATCH 1/7] Adding diagnostics for unsupported option --- c

<    1   2   3   4   5   6   >