[clang] Reapply "[clang] Convert second arg of __builtin_assume_aligned to Co… (PR #161945)

2025-10-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/161945 >From 089e1e189e08c2fb4d99118a2bcb66c102dfb19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 4 Oct 2025 06:45:55 +0200 Subject: [PATCH] Reapply "[clang] Convert second arg of __builti

[clang] [Clang] Use the templated declaration for DiagnoseUseOfDecl (PR #161900)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes We missed the check of diagnose_if attributes for the constructor templates, because we used the template declaration, rather than its templated one. Also, we can avoid the duplicate constraint checking beca

[clang] [Clang][NFC] Avoid duplication in BuildDeductionGuideForTypeAlias (PR #161948)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This addresses the post-commit review from Shafik. --- Full diff: https://github.com/llvm/llvm-project/pull/161948.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaTemplateDeductionGuide.cpp (+6-13)

[clang] [Clang][NFC] Avoid duplication in BuildDeductionGuideForTypeAlias (PR #161948)

2025-10-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/161948 This addresses the post-commit review from Shafik. >From bbb086aa3bd4bfbfa40149084c3cbad08fe5f35e Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 4 Oct 2025 13:48:59 +0800 Subject: [PATCH] [Clang][NFC] A

[clang] Reapply "[clang] Convert second arg of __builtin_assume_aligned to Co… (PR #161945)

2025-10-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/161945 >From 7fa31e2d52bbb9f67c0af4416c3ec5b3a536ce3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 4 Oct 2025 06:45:55 +0200 Subject: [PATCH] Reapply "[clang] Convert second arg of __builti

[clang] Reapply "[clang] Convert second arg of __builtin_assume_aligned to Co… (PR #161945)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes …nstantExpr (#161314)" (#161719) This reverts commit f1650cf91b01470ce44f47797663d59f00828493. --- Full diff: https://github.com/llvm/llvm-project/pull/161945.diff 4 File

[clang] Reapply "[clang] Convert second arg of __builtin_assume_aligned to Co… (PR #161945)

2025-10-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/161945 …nstantExpr (#161314)" (#161719) This reverts commit f1650cf91b01470ce44f47797663d59f00828493. >From 0a09022d5d8c736d1d1564034fee9f9ed7f3263e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date:

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-10-03 Thread Timm Baeder via cfe-commits
@@ -2874,7 +2874,62 @@ static bool interp__builtin_x86_insert_subvector(InterpState &S, CodePtr OpPC, }); Dst.initializeAllElements(); + return true; +} + +static bool interp__builtin_ia32_pternlog(InterpState &S, CodePtr OpPC, +

[clang] [CIR] Add support for emitting predefined expressions (PR #161757)

2025-10-03 Thread Erich Keane via cfe-commits
erichkeane wrote: > > I realize you're picking the description of predefinedexpr out of the > > documentation (though pretty sure you got it wrong :D) , but these are the > > 'special' macro-like-things that tell you SOMETHING about the name of a > > function, etc. > > Do you mean my PR descr

[clang] [HLSL][NFC] Refactor structured buffer methods tests (PR #161908)

2025-10-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/161908 >From 8ba74ceb7e7dd2e9d6ed0503b37c31ed9d253190 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Fri, 3 Oct 2025 12:14:28 -0700 Subject: [PATCH 1/2] [HLSL][NFC] Refactor method tests for structured buffers Refac

[clang] [CIR] Update ComplexImagOp to work on scalar type (PR #161571)

2025-10-03 Thread Bruno Cardoso Lopes via cfe-commits
@@ -2418,14 +2418,22 @@ OpFoldResult cir::ComplexRealOp::fold(FoldAdaptor adaptor) { //===--===// LogicalResult cir::ComplexImagOp::verify() { - if (getType() != getOperand().getType().getElementType()) { +

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread via cfe-commits
@@ -0,0 +1,146 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_1 %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_2 %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_3 %s +// RUN: %clang_cc1 -fsyntax-only -verify

[clang] [CIR] Implement Target-specific address space handling support for `PointerType` (PR #161028)

2025-10-03 Thread David Rivera via cfe-commits
https://github.com/RiverDave closed https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream `AddressSpace` conversions support (PR #161212)

2025-10-03 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161212 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Matt Arsenault via cfe-commits
@@ -5204,25 +5204,55 @@ static void handleCallConvAttr(Sema &S, Decl *D, const ParsedAttr &AL) { static void handleDeviceKernelAttr(Sema &S, Decl *D, const ParsedAttr &AL) { const auto *FD = dyn_cast_or_null(D); bool IsFunctionTemplate = FD && FD->getDescribedFunctionTempl

[clang] [Android] Drop workarounds for older Android API levels pre 23 (PR #161893)

2025-10-03 Thread Brad Smith via cfe-commits
brad0 wrote: > Based on @smeenai's comment in [#161911 > (comment)](https://github.com/llvm/llvm-project/pull/161911#issuecomment-3367569598), > looks like we cannot yet assume 23+ for Android. Ya, I split out the other changes so they can go in right away and this can sit for few months. ht

[clang-tools-extra] [clang-tidy] Fix typoed option name in `bugprone-signed-char-misuse` (PR #161064)

2025-10-03 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/161064 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 1a3f848 - [clang-tidy] Fix typoed option name in `bugprone-signed-char-misuse` (#161064)

2025-10-03 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-10-03T18:29:11-07:00 New Revision: 1a3f84864f9d69e0c98500349a638f6ee360322e URL: https://github.com/llvm/llvm-project/commit/1a3f84864f9d69e0c98500349a638f6ee360322e DIFF: https://github.com/llvm/llvm-project/commit/1a3f84864f9d69e0c98500349a638f6ee360322e.d

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread Erich Keane via cfe-commits
@@ -0,0 +1,146 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_1 %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_2 %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_3 %s +// RUN: %clang_cc1 -fsyntax-only -verify

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shawn K (kimsh02) Changes Fix #154520 --- Full diff: https://github.com/llvm/llvm-project/pull/161914.diff 12 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsX86.td (+19-7) - (modified) clang/lib/AST/ByteCode/InterpBuilt

[clang] [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (PR #161300)

2025-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/21701 Here is the relevant piece of the build lo

[clang] [AST matchers] matchers for absl Status / StatusOr (PR #160953)

2025-10-03 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand edited https://github.com/llvm/llvm-project/pull/160953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Modules] Add added implicit members to record upon deserialization (PR #161933)

2025-10-03 Thread John Hui via cfe-commits
https://github.com/j-hui created https://github.com/llvm/llvm-project/pull/161933 Previously, we were only called RD->addedMember(MD) to notify RD that MD (an implicit member) was added, but MD is never actually added as a child of RD. (Interestingly, MD still thinks RD is its parent.) We end

[clang] [CIR] Initial support for emitting coroutine body (PR #161616)

2025-10-03 Thread via cfe-commits
https://github.com/Andres-Salamanca closed https://github.com/llvm/llvm-project/pull/161616 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

2025-10-03 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM after updating both title and description to closely match reviews! It would also be nice to backport some of these if it's now deviating from incubator. https://github.com/llvm/llvm-project/pull/161028 _

[clang] [CIR] Implement initial LoweringPrepare support for global ctors (PR #161452)

2025-10-03 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM, one minor nit https://github.com/llvm/llvm-project/pull/161452 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Support ComplexType in CallExpr args (PR #156236)

2025-10-03 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM pending the addition of a comment in the tests! https://github.com/llvm/llvm-project/pull/156236 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/m

[clang] d6449b5 - [CIR] Add support for emitting predefined expressions (#161757)

2025-10-03 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-10-03T10:37:06-07:00 New Revision: d6449b55cd8f5e40da91b8495e4766e845295946 URL: https://github.com/llvm/llvm-project/commit/d6449b55cd8f5e40da91b8495e4766e845295946 DIFF: https://github.com/llvm/llvm-project/commit/d6449b55cd8f5e40da91b8495e4766e845295946.diff L

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream DynamicCastOp (PR #161734)

2025-10-03 Thread Andy Kaylor via cfe-commits
@@ -601,6 +601,60 @@ def CIR_VTableAttr : CIR_Attr<"VTable", "vtable", [TypedAttrInterface]> { }]; } +//===--===// +// DynamicCastInfoAttr +//===-

[clang] [HLSL] Fix vector list initialization (PR #161421)

2025-10-03 Thread Chris B via cfe-commits
@@ -6817,33 +6820,18 @@ void InitializationSequence::InitializeFrom(Sema &S, assert(Args.size() >= 1 && "Zero-argument case handled above"); // For HLSL ext vector types we allow list initialization behavior for C++ - // constructor syntax. This is accomplished by convert

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-10-03 Thread NagaChaitanya Vellanki via cfe-commits
@@ -2267,6 +2267,48 @@ static bool BuiltinCountZeroBitsGeneric(Sema &S, CallExpr *TheCall) { return false; } +/// Checks that __builtin_stdc_rotate_{left,right} was called with two +/// arguments, that the first argument is an unsigned integer type, and that +/// the second

[clang] [webkit.UncountedLambdaCapturesChecker] Add the support for WTF::ScopeExit and WTF::makeVisitor (PR #161926)

2025-10-03 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 origin/main HEAD --extensions cpp -- clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrR

[clang] [webkit.UncountedLambdaCapturesChecker] Add the support for WTF::ScopeExit and WTF::makeVisitor (PR #161926)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes Lambda passed to WTF::ScopeExit / WTF::makeScopeExit and WTF::makeVisitor should be ignored by the lambda captures checker so long as its resulting object doesn't escape the current scope. U

[clang] [CIR] Implement initial LoweringPrepare support for global ctors (PR #161452)

2025-10-03 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/161452 >From bc2fc8dc65eb0eaa483ba161199c445ea16b30b5 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 25 Sep 2025 18:25:13 -0700 Subject: [PATCH 1/3] [CIR] Implement initial LoweringPrepare support for global

[clang] 4368616 - [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (#161300)

2025-10-03 Thread via cfe-commits
Author: Qiongsi Wu Date: 2025-10-03T16:26:42-07:00 New Revision: 4368616452476472e3d776c9ae72be34fa674146 URL: https://github.com/llvm/llvm-project/commit/4368616452476472e3d776c9ae72be34fa674146 DIFF: https://github.com/llvm/llvm-project/commit/4368616452476472e3d776c9ae72be34fa674146.diff LO

[clang] [llvm] [clang][CUDA] Avoid accounting for tail padding in LLVM offloading (PR #156229)

2025-10-03 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/156229 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Merge element type tests for structured buffers (PR #161895)

2025-10-03 Thread Deric C. via cfe-commits
https://github.com/Icohedron approved this pull request. Looks good https://github.com/llvm/llvm-project/pull/161895 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-with-thin-lto-ubuntu` running on `as-worker-92` while building `clang,llvm` at step 7 "test-stage1-compiler". Full details are available at: https://lab.llvm.org/buildbot/#/builders/127/builds/4886 Here is the relevan

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-03 Thread via cfe-commits
rdez13 wrote: Hey @RKSimon, can I please get some feedback. Thanks https://github.com/llvm/llvm-project/pull/161924 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-03 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][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-03 Thread via cfe-commits
https://github.com/rdez13 created https://github.com/llvm/llvm-project/pull/161924 Fixes issue #160289 >From 6a347f60d6c467ec1a6fd2dd6122bcf710741939 Mon Sep 17 00:00:00 2001 From: rdez13 Date: Fri, 3 Oct 2025 18:28:08 -0400 Subject: [PATCH] llvm#160289 added new rotate right and left helper f

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
@@ -134,7 +134,6 @@ static void diagnoseBadTypeAttribute(Sema &S, const ParsedAttr &attr, case ParsedAttr::AT_VectorCall: \ sarnex wrote: I think clang-format is wrong so I'm planning on ignoring it. https://git

[clang] [HLSL] Add support for elementwise and aggregate splat casting struct types with bitfields (PR #161263)

2025-10-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/161263 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
sarnex wrote: FYI: @camc https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Joseph Huber via cfe-commits
@@ -419,9 +419,11 @@ void AMDGPUTargetCodeGenInfo::setTargetAttributes( return; const FunctionDecl *FD = dyn_cast_or_null(D); - if (FD) + if (FD) { setFunctionDeclAttributes(FD, F, M); - +if (FD->hasAttr() && !M.getLangOpts().OpenCL) + F->setCallingConv(l

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-03 Thread Shawn K via cfe-commits
https://github.com/kimsh02 edited https://github.com/llvm/llvm-project/pull/161914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test coverage for `Buffer` (PR #161909)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Test coverage for `Buffer` resource class was not sufficient because all of the typed buffer tests were using `RWBuffer`. This change adds `Buffer` tests cases to existing `RWBuffer-*.test` files and renames

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Joseph Huber via cfe-commits
@@ -277,6 +296,14 @@ void SPIRVTargetCodeGenInfo::setTargetAttributes( auto FD = dyn_cast_or_null(D); if (!FD) return; + + if (FD->hasAttr()) +F->setCallingConv(llvm::CallingConv::SPIR_KERNEL); jhuber6 wrote: Isn't the attribute called `sycl_kerne

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Joseph Huber via cfe-commits
@@ -240,6 +242,26 @@ void CommonSPIRTargetCodeGenInfo::setOCLKernelStubCallingConvention( FT, FT->getExtInfo().withCallingConv(CC_SpirFunction)); } +void CommonSPIRTargetCodeGenInfo::setTargetAttributes( +const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule

[clang] X86 movemask constexpr (PR #161914)

2025-10-03 Thread Shawn K via cfe-commits
https://github.com/kimsh02 created https://github.com/llvm/llvm-project/pull/161914 Fix #154520 >From ef9799014ee593114b7ca67e3d4d034cff99420b Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Fri, 3 Oct 2025 09:30:23 -0700 Subject: [PATCH 1/3] Stash --- clang/include/clang/Basic/BuiltinsX86.td |

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Joseph Huber via cfe-commits
@@ -5204,25 +5204,55 @@ static void handleCallConvAttr(Sema &S, Decl *D, const ParsedAttr &AL) { static void handleDeviceKernelAttr(Sema &S, Decl *D, const ParsedAttr &AL) { const auto *FD = dyn_cast_or_null(D); bool IsFunctionTemplate = FD && FD->getDescribedFunctionTempl

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Joseph Huber via cfe-commits
@@ -240,6 +242,26 @@ void CommonSPIRTargetCodeGenInfo::setOCLKernelStubCallingConvention( FT, FT->getExtInfo().withCallingConv(CC_SpirFunction)); } +void CommonSPIRTargetCodeGenInfo::setTargetAttributes( +const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang][analyzer] Make per-entry-point metric rows uniquely identifiable" (PR #161857)

2025-10-03 Thread Balazs Benics via cfe-commits
https://github.com/steakhal created https://github.com/llvm/llvm-project/pull/161857 Reverts llvm/llvm-project#161663 https://lab.llvm.org/buildbot/#/builders/206/builds/7031/steps/7/logs/stdio See the comment https://github.com/llvm/llvm-project/pull/161663#issuecomment-3366031863 ``` [6997/8

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Nick Sarnie (sarnex) Changes The original [change](https://github.com/llvm/llvm-project/pull/137882) unifying the device kernel attributes had some inexplicable behavior, such as `amdgpu_kernel` resulting in a function ending up

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex ready_for_review https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Refactor for structured buffer methods tests (PR #161908)

2025-10-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/161908 Refactoring methods tests for structured buffers to make it clearer that: - the test functions call the buffer methods and do not directly call the LLVM intrinsic - the buffer methods are defined after each test

[clang] [clang] Fix size and alignment of packed sub-byte integer vectors (PR #161796)

2025-10-03 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/161796 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] New option `CompilationArgsToRemoveRegex` to remove arguments from the command line (PR #111453)

2025-10-03 Thread Félix-Antoine Constantin via cfe-commits
felix642 wrote: @kwalker-plxs Please have a look at other contributor's concerns on this PR. The main issue was that setting up this option would be non-trivial and might get pretty complicated if they are multiple flags that we need to remove. It might also remove some unexpected arguments w

[clang] [HLSL][NFC] Merge element type tests for structured buffers (PR #161895)

2025-10-03 Thread Sarah Spall via cfe-commits
https://github.com/spall approved this pull request. https://github.com/llvm/llvm-project/pull/161895 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test coverage for `Buffer` (PR #161909)

2025-10-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/161909 Test coverage for `Buffer` resource class was not sufficient because all of the typed buffer tests were using `RWBuffer`. This change adds `Buffer` tests cases to existing `RWBuffer-*.test` files and renames the

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-10-03 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Instead of trying to guess, can we just add a new TypeCheckKind? https://github.com/llvm/llvm-project/pull/152532 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread Erich Keane via cfe-commits
@@ -2371,6 +2371,24 @@ NonOdrUseReason Sema::getNonOdrUseReasonInCurrentContext(ValueDecl *D) { return NOUR_None; } +bool Sema::isConditionVarReference(const DeclRefExpr *DRE) { + if (!DRE) +return false; + + const VarDecl *VD = dyn_cast(DRE->getDecl()); + + if (!VD)

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread Erich Keane via cfe-commits
@@ -13660,10 +13594,11 @@ def warn_acc_var_referenced_lacks_op "reference has no effect">, InGroup>, DefaultError; +def warn_out_of_scope_var_usage +: Warning<"variable %0 declared in 'if' block is always false or null here">, + InGroup>; ---

[clang] [llvm] [LLVM] Add GNU make jobserver support (PR #145131)

2025-10-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang,llvm` at step 6 "build-stage1-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/16481

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix size and alignment of packed sub-byte integer vectors (PR #161796)

2025-10-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: I guess this only comes up with _BitInt vectors. Do we need similar checks anywhere else we check isPackedVectorBoolType? https://github.com/llvm/llvm-project/pull/161796 ___ cfe-commits mailing list cfe-com

[clang] 2a05904 - [clang-format] Keep the ObjC selector name and `@selector` together (#160739)

2025-10-03 Thread via cfe-commits
Author: sstwcw Date: 2025-10-03T20:40:48Z New Revision: 2a059042882ed5108478c635322e4e94439386f5 URL: https://github.com/llvm/llvm-project/commit/2a059042882ed5108478c635322e4e94439386f5 DIFF: https://github.com/llvm/llvm-project/commit/2a059042882ed5108478c635322e4e94439386f5.diff LOG: [clang

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-10-03 Thread Eli Friedman via cfe-commits
@@ -14166,7 +14160,37 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, !EvaluateInteger(E->getArg(1), Amt, Info)) return false; -return Success(Val.rotr(Amt.urem(Val.getBitWidth())), E); +// Normalize shift amount to [0, BitWidth) range

[clang] [Clang] Ensure initialized NTTP expressions when building CTAD for type aliases (PR #161035)

2025-10-03 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/161035 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Ensure initialized NTTP expressions when building CTAD for type aliases (PR #161035)

2025-10-03 Thread Shafik Yaghmour via cfe-commits
@@ -1171,17 +1171,46 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, Args.addOuterTemplateArguments(TransformedDeducedAliasArgs); for (unsigned Index = 0; Index < DeduceResults.size(); ++Index) { const auto &D = DeduceResults[Index]; +auto *TP = F->getTemplatePara

[clang] [CIR] Implement Target-specific address space handling support for `PointerType` (PR #161028)

2025-10-03 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement Target-specific address space handling support for `PointerType` in function parameters (PR #161028)

2025-10-03 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] Add new check: `readability-redundant-typename` (PR #161574)

2025-10-03 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/161574 >From 82c842a3e8f0f2e9dcfacca0eada9f6aeacd38d8 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Wed, 1 Oct 2025 18:35:35 + Subject: [PATCH 01/18] [clang-tidy] Add new check: `readability-redundant-

[clang] [Clang][Sema] Fix incorrect rejection default construction of union with nontrivial member (PR #82407)

2025-10-03 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik updated https://github.com/llvm/llvm-project/pull/82407 >From 5fcaeaddccc0f7e370bf7bebce113d8d52e1b1bd Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Tue, 20 Feb 2024 11:22:39 -0800 Subject: [PATCH 1/3] [Clang][Sema] Fix incorrect rejection default construction

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread via cfe-commits
https://github.com/arrowten edited https://github.com/llvm/llvm-project/pull/156436 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread via cfe-commits
@@ -0,0 +1,146 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_1 %s arrowten wrote: If anyone can help with different types of testcases, I would appreciate that. https://github.com/llvm/llvm-project/pull/156436 _

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread via cfe-commits
https://github.com/arrowten edited https://github.com/llvm/llvm-project/pull/156436 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Android] Drop workarounds for older Android API levels (PR #161893)

2025-10-03 Thread Dan Albert via cfe-commits
DanAlbert wrote: I'll be dropping support for 22 and older in r31. We should have the final toolchain for r30 already. We haven't yet created the OS branch which will provide the sysroot for r31, and likely won't until early next year. That doesn't matter for either of the two workarounds bei

[clang] [clang] [test] Verify that intrinsic headers don't use unreserved names (PR #161817)

2025-10-03 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo updated https://github.com/llvm/llvm-project/pull/161817 From 934eefd4f067514eb08294d65a51f844e42b76d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 3 Oct 2025 12:59:21 +0300 Subject: [PATCH 1/2] [clang] [test] Verify that intrinsic head

[clang] [CIR] Initial support for emitting coroutine body (PR #161616)

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

[clang] [CIR] Implement Target-specific address space handling support for `PointerType` (PR #161028)

2025-10-03 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement Target-specific address space handling support for `PointerType` (PR #161028)

2025-10-03 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/161028 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement initial LoweringPrepare support for global ctors (PR #161452)

2025-10-03 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/161452 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-03 Thread Erich Keane via cfe-commits
@@ -2371,6 +2371,24 @@ NonOdrUseReason Sema::getNonOdrUseReasonInCurrentContext(ValueDecl *D) { return NOUR_None; } +bool Sema::isConditionVarReference(const DeclRefExpr *DRE) { + if (!DRE) +return false; + + const VarDecl *VD = dyn_cast(DRE->getDecl()); + + if (!VD)

[clang] [CIR] Implement UnaryExtension for AggregateExpr (PR #161820)

2025-10-03 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/161820 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Remove sema check of function declaration with variadic argument (PR #161350)

2025-10-03 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/161350 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   >