[clang] [HLSL] Add static methods for resource initialization and constructor from handle (PR #155866)

2025-09-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/155866 >From 7a0d3ca684a2d95e0528d5f4ee77bc1306ddfe1d Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 28 Aug 2025 08:17:31 -0700 Subject: [PATCH 1/4] [HLSL] Reorder the arguments of handle initialization builtin

[clang] e90e76e - Trying to fix undefined symbol error caused by iterator variable (#141507)

2025-09-03 Thread via cfe-commits
Author: ShashwathiNavada Date: 2025-09-04T12:08:19+05:30 New Revision: e90e76e15dee4b835b9b2cfd55c0c3f047bb6d76 URL: https://github.com/llvm/llvm-project/commit/e90e76e15dee4b835b9b2cfd55c0c3f047bb6d76 DIFF: https://github.com/llvm/llvm-project/commit/e90e76e15dee4b835b9b2cfd55c0c3f047bb6d76.di

[clang] [llvm] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-09-03 Thread CHANDRA GHALE via cfe-commits
chandraghale wrote: @ShashwathiNavada merging this changes, since it is already approved. https://github.com/llvm/llvm-project/pull/141507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [analyzer] Canonicalize the Decls of FieldRegions (PR #156668)

2025-09-03 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource closed https://github.com/llvm/llvm-project/pull/156668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9971844 - [analyzer] Canonicalize the Decls of FieldRegions (#156668)

2025-09-03 Thread via cfe-commits
Author: Balázs Benics Date: 2025-09-04T08:20:00+02:00 New Revision: 99718444c4f665a8633d9a0a01cee1dadb3443c1 URL: https://github.com/llvm/llvm-project/commit/99718444c4f665a8633d9a0a01cee1dadb3443c1 DIFF: https://github.com/llvm/llvm-project/commit/99718444c4f665a8633d9a0a01cee1dadb3443c1.diff

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply

[clang] [llvm] [SPIRV] Add OpInf support for isinf hlsl intrinsic (PR #156570)

2025-09-03 Thread Deric C. via cfe-commits
Icohedron wrote: > Is there some reason clang can't just generate a call to `llvm.is.fpclass`? We don't use the builtin `llvm.is.fpclass` because it gets removed by fast math optimizations. https://github.com/llvm/llvm-project/pull/156570 ___ cfe-com

[clang] [Clang] Enable constexpr handling for builtin elementwise fshl/fshr (PR #153572)

2025-09-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/153572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Dwarf] Support heterogeneous DW_{OP,AT}s needed for AMDGPU CFI (PR #153883)

2025-09-03 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/153883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Group related AVX512VL FMA intrinsics together (NFC) (PR #156794)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Chaitanya Koparkar (ckoparkar) Changes Follow-up of #156385. --- Patch is 74.58 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/156794.diff 2 Files Affected: - (modified) clang/lib/Head

[clang] [Headers][X86] Group related AVX512VL FMA intrinsics together (NFC) (PR #156794)

2025-09-03 Thread Chaitanya Koparkar via cfe-commits
https://github.com/ckoparkar created https://github.com/llvm/llvm-project/pull/156794 Follow-up of #156385. >From f9e0145d821f140e8a64258287e36054ffc41332 Mon Sep 17 00:00:00 2001 From: Chaitanya Koparkar Date: Wed, 3 Sep 2025 23:14:32 -0400 Subject: [PATCH] [X86][Headers] Group related AVX512

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Helena Kotas via cfe-commits
@@ -828,11 +828,27 @@ llvm::Instruction *CGHLSLRuntime::getConvergenceToken(BasicBlock &BB) { class OpaqueValueVisitor : public RecursiveASTVisitor { public: - llvm::SmallPtrSet OVEs; + llvm::SmallVector OVEs; + llvm::SmallPtrSet Visited; OpaqueValueVisitor() {} + bo

[clang] [llvm] [Driver][AMDGPU][HIP][SPIRV] Disable optimizations for AMDGCN SPIR-V (PR #154765)

2025-09-03 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Not sure what loop(loop-idiom-vectorize) or globaldce are doing there at -O0, > those seem like bugs The loop-idiom-recognize [appears to be an aarch64 specific bug](https://github.com/llvm/llvm-project/issues/156787). I would also consider the globaldce to be a bug, but I ass

[clang] [clang-tools-extra] [llvm] [ADT] Refactor StringMap iterators (NFC) (PR #156137)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-nfc` running on `bolt-worker` while building `clang-tools-extra,clang,llvm` at step 13 "nfc-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/23180 Here is the

[clang] [HLSL] Add static methods for resource initialization and constructor from handle (PR #155866)

2025-09-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/155866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Add note about `-Wms-bitfield-padding` in MSVC compatibility docs (PR #155770)

2025-09-03 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 edited https://github.com/llvm/llvm-project/pull/155770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Dwarf] Support heterogeneous DW_{OP,AT}s needed for AMDGPU CFI (PR #153883)

2025-09-03 Thread Matt Arsenault via cfe-commits
@@ -56,10 +56,19 @@ static bool printOp(const DWARFExpression::Operation *Op, raw_ostream &OS, assert(!Name.empty() && "DW_OP has no name!"); OS << Name; + std::optional SubOpcode = Op->getSubCode(); + if (SubOpcode) { +StringRef SubName = SubOperationEncodingString

[clang] [Clang] Enable constexpr handling for builtin elementwise fshl/fshr (PR #153572)

2025-09-03 Thread Chaitanya Koparkar via cfe-commits
https://github.com/ckoparkar ready_for_review https://github.com/llvm/llvm-project/pull/153572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Delay normalization of `-fmodules-cache-path` (PR #150123)

2025-09-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/150123 >From a3221d4adcacb3cb53edf785a9b21028188797f5 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Tue, 22 Jul 2025 14:46:09 -0700 Subject: [PATCH] [clang] Delay normalization of `-fmodules-cache-path` --- c

[clang] [CIR] Add support for discrete bit-field (PR #156085)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/15678 Here is the relevant piece of the build log f

[clang] [CIR] Add support for discrete bit-field (PR #156085)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang` at step 6 "test-build-unified-tree-check-cross-project". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/bu

[clang] [CIR] Add support for discrete bit-field (PR #156085)

2025-09-03 Thread via cfe-commits
https://github.com/Andres-Salamanca closed https://github.com/llvm/llvm-project/pull/156085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 71b64bc - [CIR] Add support for discrete bit-field (#156085)

2025-09-03 Thread via cfe-commits
Author: Andres-Salamanca Date: 2025-09-03T21:59:36-05:00 New Revision: 71b64bc5c75c9d8466a962d27b852f60250319bd URL: https://github.com/llvm/llvm-project/commit/71b64bc5c75c9d8466a962d27b852f60250319bd DIFF: https://github.com/llvm/llvm-project/commit/71b64bc5c75c9d8466a962d27b852f60250319bd.di

[libclc] [NFC][libclc] Set MACRO_ARCH to ${ARCH} uncondionally before customizing (PR #156789)

2025-09-03 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/156789 Our downstream libclc add a few more targets that customizes build_flags and opt_flags. Then in each customization block, MACRO_ARCH is defined to be ${ARCH}. Hoisting MACRO_ARCH definition out of if-else-end

[libclc] [libclc] Override generic symbol using llvm-link --override flag instead of using weak linkage (PR #156778)

2025-09-03 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/156778 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH 1/6] [HLSL] Add copy assignment and construtor to resource type

[clang] [clang] Remove written template args from implicit var tpl spec (PR #156329)

2025-09-03 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: I'd suggest wait for the other reviewers, or until next week if no response. https://github.com/llvm/llvm-project/pull/156329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [clang] Remove written template args from implicit var tpl spec (PR #156329)

2025-09-03 Thread Andrey Ali Khan Bolshakov via cfe-commits
@@ -11662,7 +11662,8 @@ class Sema final : public SemaBase { DeclResult CheckVarTemplateId(VarTemplateDecl *Template, SourceLocation TemplateLoc, SourceLocation TemplateNameLoc, -c

[clang] [HLSL] Add static methods for resource initialization and constructor from handle (PR #155866)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes Adds static methods `__createFromBinding` and `__createFromImplicitBinding` to resource classes. These methods will be used for resource initialization instead of the resource constructors that take binding in

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Steven Perron via cfe-commits
@@ -828,11 +828,27 @@ llvm::Instruction *CGHLSLRuntime::getConvergenceToken(BasicBlock &BB) { class OpaqueValueVisitor : public RecursiveASTVisitor { public: - llvm::SmallPtrSet OVEs; + llvm::SmallVector OVEs; + llvm::SmallPtrSet Visited; OpaqueValueVisitor() {} + bo

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH 1/5] [HLSL] Add copy assignment and construtor to resource type

[clang] [llvm] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC (PR #155829)

2025-09-03 Thread via cfe-commits
@@ -275,10 +276,14 @@ SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit) const { // Try to use the original type for coercion. llvm::Type *CoerceTy = CB.isUsableType(StrTy) ? StrTy : CB.getType(); + // We use a pair of i64 for 9-16 byte aggregate with 8 byte a

[clang] [llvm] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC (PR #155829)

2025-09-03 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/155829 >From a8707a6452b77b75603dc780213835f6e5e4b582 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Thu, 28 Aug 2025 19:48:38 +0700 Subject: [PATCH 1/3] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC Thi

[clang] [llvm] [Dwarf] Support heterogeneous DW_{OP,AT}s needed for AMDGPU CFI (PR #153883)

2025-09-03 Thread Matt Arsenault via cfe-commits
@@ -70,10 +79,8 @@ static bool printOp(const DWARFExpression::Operation *Op, raw_ostream &OS, unsigned Signed = Size & DWARFExpression::Operation::SignBit; if (Size == DWARFExpression::Operation::SizeSubOpLEB) { - StringRef SubName = - SubOperationEncodi

[clang] [HLSL] Add static methods for resource initialization and constructor from handle (PR #155866)

2025-09-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/155866 >From 7a0d3ca684a2d95e0528d5f4ee77bc1306ddfe1d Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 28 Aug 2025 08:17:31 -0700 Subject: [PATCH 1/3] [HLSL] Reorder the arguments of handle initialization builtin

[clang] [HLSL] Add static methods for resource initialization and constructor from handle (PR #155866)

2025-09-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/155866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][docs] Add note about `-Wms-bitfield-padding` in MSVC compatibility docs (PR #155770)

2025-09-03 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 edited https://github.com/llvm/llvm-project/pull/155770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-09-03 Thread Morris Hafner via cfe-commits
@@ -21,20 +20,526 @@ #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" +#include "clang/AST/CharUnits.h" #include "clang/AST/OperationKinds.h" #include "clang/AST/RecordLayout.h" #include "clang/AST/StmtVisitor.h" #include "clang/B

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-03 Thread via cfe-commits
https://github.com/brenfwd updated https://github.com/llvm/llvm-project/pull/156763 >From 1082254d96f3c427f4cb867fcf964c19655e1876 Mon Sep 17 00:00:00 2001 From: Brenden Forward Date: Tue, 2 Sep 2025 18:16:46 -0700 Subject: [PATCH 1/3] Add google-runtime-float Clang-Tidy check --- .../clang-t

[clang] Add uniqueptr to -Wunsafe-buffer-usage (PR #156773)

2025-09-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] [CodeGen] Fix cleanup attribute for C89 for-loop init variables (PR #156643)

2025-09-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: "End of the function" is not really correct. It's still the end of the scope... just the scope in question is different. This matters if you have, for example, a nested loop. Probably need to change CodeGenFunction::EmitForStmt to push the scope at

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-03 Thread via cfe-commits
https://github.com/brenfwd updated https://github.com/llvm/llvm-project/pull/156763 >From 1082254d96f3c427f4cb867fcf964c19655e1876 Mon Sep 17 00:00:00 2001 From: Brenden Forward Date: Tue, 2 Sep 2025 18:16:46 -0700 Subject: [PATCH] Add google-runtime-float Clang-Tidy check --- .../clang-tidy/

[clang] [llvm] [clang][SPARC] Pass 16-aligned 16-byte structs as i128 in CC (PR #155829)

2025-09-03 Thread Eli Friedman via cfe-commits
@@ -275,10 +276,14 @@ SparcV9ABIInfo::classifyType(QualType Ty, unsigned SizeLimit) const { // Try to use the original type for coercion. llvm::Type *CoerceTy = CB.isUsableType(StrTy) ? StrTy : CB.getType(); + // We use a pair of i64 for 9-16 byte aggregate with 8 byte a

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

2025-09-03 Thread Kevin Sala Penades via cfe-commits
kevinsala wrote: I believe I can use the same size (without the trailing padding) for the amdgpu plugin. However, I have to remove the whole check below: https://github.com/llvm/llvm-project/blob/8edb5b4fb3eca44d16325a119257632e1ba003be/offload/plugins-nextgen/amdgpu/src/rtl.cpp#L3660 The chec

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (brenfwd) Changes Add a new checker to clang-tidy for use of the `long double` type [per Google style guide](https://google.github.io/styleguide/cppguide.html#Floating-Point_Types). --- Full diff: https://github.com/llvm

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-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] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-09-03 Thread via cfe-commits
@@ -582,6 +582,11 @@ TARGET_BUILTIN(__builtin_ppc_bcdsub_p, "iiV16UcV16Uc", "", // P9 Binary-coded decimal (BCD) builtins. TARGET_BUILTIN(__builtin_ppc_bcdcopysign, "V16UcV16UcV16Uc", "", "power9-vector") TARGET_BUILTIN(__builti

[clang] [llvm] [mlir] [clang] Use VFS for `-fopenmp-host-ir-file-path` (PR #156727)

2025-09-03 Thread Jan Svoboda via cfe-commits
@@ -0,0 +1,33 @@ +// This test checks that the OpenMP host IR file goes through VFS overlays. jansvoboda11 wrote: Why should this test be executed on Linux only? The Clang arguments were taken from `clang/test/OpenMP/simd_codegen.cpp` that doesn't have any `REQU

[clang] [clang][docs] Add note about `-Wms-bitfield-padding` in MSVC compatibility docs (PR #155770)

2025-09-03 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @cor3ntin prodding you in case you know who should review, or are ok signing off on it :D https://github.com/llvm/llvm-project/pull/155770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [llvm] [Sema][Parse][HLSL] Implement front-end rootsignature validations (PR #156754)

2025-09-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/156754 >From 30e3907799ec8d0e11bb4a0b2cf5927931f3b682 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Tue, 2 Sep 2025 14:05:25 -0700 Subject: [PATCH 1/7] [SemaHLSL] add validation of mixed resources --- clang/inclu

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-09-03 Thread Amy Kwan via cfe-commits
@@ -11151,6 +11161,20 @@ SDValue PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, SDLoc dl(Op); + // Lowers BCD intrinsics with rounding operand + auto MapNodeWithSplatVector = [&](unsigned Opcode) -> SDValue { +SDValue SplatVal = +DAG.getNode(ISD::SPLA

[clang] [Headers][X86] Allow AVX512F mullox intrinsics to be used in constexpr (PR #156722)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bhasawut Singhaphan (markbhasawut) Changes This PR adds constexpr support for the following AVX512F mullox intrinsics: - _mm512_mullox_epi64 - _mm512_mask_mullox_epi64 Closes #156632 Fixes #155411 --- Full diff: https://github.com/ll

[clang] [llvm] [Sema][Parse][HLSL] Implement front-end rootsignature validations (PR #156754)

2025-09-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/156754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Sema][Parse][HLSL] Implement front-end rootsignature validations (PR #156754)

2025-09-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/156754 This pr implements the following validations: 1. Check that descriptor tables don't mix Sample and non-Sampler resources 2. Ensure that descriptor ranges don't append onto an unbounded range 3. Ensure that descr

[clang-tools-extra] [clang-tidy] Add new '-hide-progress' option to tidy-scripts for suppressing progress information (PR #154416)

2025-09-03 Thread Victor Chernyakin via cfe-commits
@@ -122,6 +122,10 @@ Improvements to clang-tidy - Improved :program:`clang-tidy` option `-quiet` by suppressing diagnostic count messages. +- Improved :program:`run-clang-tidy.py` and :program:`clang-tidy-diff.py` + scripts by adding the `-hide-progress` option to suppress

[clang] [llvm] [SPIRV] Add OpInf support for isinf hlsl intrinsic (PR #156570)

2025-09-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: Is there some reason clang can't just generate a call to `llvm.is.fpclass`? https://github.com/llvm/llvm-project/pull/156570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-03 Thread Björn Schäpers via cfe-commits
@@ -946,6 +952,51 @@ template <> struct MappingTraits { bool SpacesInCStyleCastParentheses = false; bool SpacesInParentheses = false; +if (IO.outputting()) { + IO.mapOptional("AlignAfterOpenBracket", Style.AlignAfterOpenBracket); +} else { + // For ba

[clang-tools-extra] [clang-tidy] Add new '-hide-progress' option to tidy-scripts for suppressing progress information (PR #154416)

2025-09-03 Thread Baranov Victor via cfe-commits
@@ -258,6 +258,11 @@ def main(): help="Upgrades clang-tidy warnings to errors. Same format as '-checks'.", default="", ) +parser.add_argument( +"-hide-progress", vbvictor wrote: One downside of this could be such command: `run-

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-03 Thread Björn Schäpers via cfe-commits
@@ -946,6 +952,51 @@ template <> struct MappingTraits { bool SpacesInCStyleCastParentheses = false; bool SpacesInParentheses = false; +if (IO.outputting()) { + IO.mapOptional("AlignAfterOpenBracket", Style.AlignAfterOpenBracket); +} else { + // For ba

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-03 Thread Björn Schäpers via cfe-commits
@@ -203,19 +203,6 @@ template <> struct MappingTraits { } }; -template <> struct ScalarEnumerationTraits { HazardyKnusperkeks wrote: Currently I don't see what's happening there. Good luck. https://github.com/llvm/llvm-project/pull/108332 ___

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-03 Thread Björn Schäpers via cfe-commits
@@ -928,7 +928,7 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun, // Note: This doesn't apply to macro expansion lines, which are MACRO( , , ) // with args as children of the '(' and ',' tokens. It does not make sense to // align the com

[clang] 8f1c39f - [SPIRV] Add OpInf support for isinf hlsl intrinsic (#156570)

2025-09-03 Thread via cfe-commits
Author: Farzon Lotfi Date: 2025-09-03T15:03:43-04:00 New Revision: 8f1c39fb50283bfabe4f099d51e55cab22aa772f URL: https://github.com/llvm/llvm-project/commit/8f1c39fb50283bfabe4f099d51e55cab22aa772f DIFF: https://github.com/llvm/llvm-project/commit/8f1c39fb50283bfabe4f099d51e55cab22aa772f.diff

[clang] [llvm] [SPIRV] Add OpInf support for isinf hlsl intrinsic (PR #156570)

2025-09-03 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl closed https://github.com/llvm/llvm-project/pull/156570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIRV] Add OpInf support for isinf hlsl intrinsic (PR #156570)

2025-09-03 Thread Sarah Spall via cfe-commits
https://github.com/spall approved this pull request. looks correct to me https://github.com/llvm/llvm-project/pull/156570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Support cluster_load_async_to_lds instructions on gfx1250 (PR #156595)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/21453 Here is the relevant pie

[clang] [llvm] [AMDGPU] Support cluster_load_async_to_lds instructions on gfx1250 (PR #156595)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building `clang,llvm` at step 6 "test-build-unified-tree-check-cross-project". Full details are available at: https://lab.llvm.org/buildbot/#/builders/181/buil

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

2025-09-03 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. I'm not going to block this, but I think long term being divergent with CUDA code generation here is unwise. We should let both lower to the same but change the runtime calls, the runtime call then goes to `cuLaunchkernel` which expects a

[clang] [CIR] Add support for constructors with VTT parameters (PR #156521)

2025-09-03 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/156521 >From 256f055c5d6982bab9b51223d00c9910ff7a6e5c Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Tue, 19 Aug 2025 13:33:27 -0700 Subject: [PATCH 1/2] [CIR] Add support for constructors with VTT parameters Thi

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Helena Kotas via cfe-commits
@@ -1,49 +1,65 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-compute -finclude-default-header \ hekota wrote: I must have accidentally committed the file with CRLR. I'll post a PR to correct it. Then your diff will be just the changes lines. https://gi

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

2025-09-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/156236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Support cluster_load_async_to_lds instructions on gfx1250 (PR #156595)

2025-09-03 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng closed https://github.com/llvm/llvm-project/pull/156595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7753f61 - [AMDGPU] Support cluster_load_async_to_lds instructions on gfx1250 (#156595)

2025-09-03 Thread via cfe-commits
Author: Changpeng Fang Date: 2025-09-03T11:22:10-07:00 New Revision: 7753f61f6161700c0c6f12b6ef785b96f3f7675c URL: https://github.com/llvm/llvm-project/commit/7753f61f6161700c0c6f12b6ef785b96f3f7675c DIFF: https://github.com/llvm/llvm-project/commit/7753f61f6161700c0c6f12b6ef785b96f3f7675c.diff

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

2025-09-03 Thread Amr Hesham via cfe-commits
@@ -909,3 +909,46 @@ void foo33(__builtin_va_list a) { // OGCG: %[[B_IMAG_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[B_ADDR]], i32 0, i32 1 // OGCG: store float %[[RESULT_REAL]], ptr %[[B_REAL_PTR]], align 4 // OGCG: store float %[[RESULT_IMAG]], ptr %[[

[clang] [Headers][X86] Allow MMX/SSE integer min/max intrinsics to be used in constexpr (PR #156678)

2025-09-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/21029 Here is the relevant piece o

[clang] [Headers][X86] Allow MMX/SSE integer min/max intrinsics to be used in constexpr (PR #156678)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/26639 Here is th

[clang] [CIR] Emit copy for aggregate initialization (PR #155697)

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

[clang] 8c716be - [CIR] Emit copy for aggregate initialization (#155697)

2025-09-03 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-09-03T11:08:40-07:00 New Revision: 8c716bec1dbd00267e2260d558df4d1ab0e5b506 URL: https://github.com/llvm/llvm-project/commit/8c716bec1dbd00267e2260d558df4d1ab0e5b506 DIFF: https://github.com/llvm/llvm-project/commit/8c716bec1dbd00267e2260d558df4d1ab0e5b506.diff L

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-09-03 Thread Morris Hafner via cfe-commits
@@ -903,8 +1440,7 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, return ConstantLValueEmitter(*this, value, destType).tryEmit(); case APValue::Struct: case APValue::Union: -cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union");

[clang] [OpenACC] Change lowering signature for 'destroy' (PR #156716)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/26641 Here is th

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-09-03 Thread Morris Hafner via cfe-commits
@@ -21,20 +20,526 @@ #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" +#include "clang/AST/CharUnits.h" #include "clang/AST/OperationKinds.h" #include "clang/AST/RecordLayout.h" #include "clang/AST/StmtVisitor.h" #include "clang/B

[clang] [llvm] [Dwarf] Support heterogeneous DW_{OP,AT}s needed for AMDGPU CFI (PR #153883)

2025-09-03 Thread Scott Linder via cfe-commits
slinder1 wrote: Ping Since this touched some includes I also confirmed it is benign in terms of compile time impact http://llvm-compile-time-tracker.com/compare.php?from=21a5729b87a6c2e271334049fa28af10fa12f0c7&to=782cde16ae3d58ff50f8ec3b304771189cf54e10&stat=instructions%3Au https://github.c

[clang] [llvm] [DirectX] Removing dxbc DescriptorRange from mcbxdc (PR #154629)

2025-09-03 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/154629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-09-03 Thread Morris Hafner via cfe-commits
@@ -21,20 +20,526 @@ #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" +#include "clang/AST/CharUnits.h" #include "clang/AST/OperationKinds.h" #include "clang/AST/RecordLayout.h" #include "clang/AST/StmtVisitor.h" #include "clang/B

[clang] 878fa7b - [OpenACC] Change lowering signature for 'destroy' (#156716)

2025-09-03 Thread via cfe-commits
Author: Erich Keane Date: 2025-09-03T10:53:37-07:00 New Revision: 878fa7b2686a8776d1f36a5bb516c95a07838825 URL: https://github.com/llvm/llvm-project/commit/878fa7b2686a8776d1f36a5bb516c95a07838825 DIFF: https://github.com/llvm/llvm-project/commit/878fa7b2686a8776d1f36a5bb516c95a07838825.diff L

[clang] [OpenACC] Change lowering signature for 'destroy' (PR #156716)

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

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

2025-09-03 Thread Shafik Yaghmour via cfe-commits
shafik wrote: This feels like a regression, unless you think the bug is elsewhere and the assert just catches it now: https://github.com/llvm/llvm-project/issues/156458#issuecomment-3246453958 https://github.com/llvm/llvm-project/pull/147835 ___ cfe-

[clang] [OpenACC] Change lowering signature for 'destroy' (PR #156716)

2025-09-03 Thread Razvan Lupusoru via cfe-commits
https://github.com/razvanlupusoru approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/156716 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow MMX/SSE integer min/max intrinsics to be used in constexpr (PR #156678)

2025-09-03 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/156678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b176ba7 - [Headers][X86] Allow MMX/SSE integer min/max intrinsics to be used in constexpr (#156678)

2025-09-03 Thread via cfe-commits
Author: Bhasawut Singhaphan Date: 2025-09-03T17:46:55Z New Revision: b176ba78c8ded98cca955d4d32234fac8ada506c URL: https://github.com/llvm/llvm-project/commit/b176ba78c8ded98cca955d4d32234fac8ada506c DIFF: https://github.com/llvm/llvm-project/commit/b176ba78c8ded98cca955d4d32234fac8ada506c.diff

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

2025-09-03 Thread Kevin Sala Penades via cfe-commits
kevinsala wrote: My understanding is that the CUDA Driver API requires the arguments in the buffer to be placed with the proper alignment (i.e., padding between fields). However, the trailing padding after the last element should not be accounted. Otherwise, if it's accounted, the `cuLaunchKer

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Steven Perron via cfe-commits
@@ -1,49 +1,65 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-compute -finclude-default-header \ s-perron wrote: Looking at the change, and it seems like the the CRLF was replaced with LF. My editors must have done that without me knowing. I can try to r

[clang] [Headers][X86] Allow AVX512F mullox intrinsics to be used in constexpr (PR #156722)

2025-09-03 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut created https://github.com/llvm/llvm-project/pull/156722 This PR fixes #155411, add constexpr support for the AVX512F mullox intrinsics: - _mm512_mullox_epi64 - _mm512_mask_mullox_epi64 Closes #156632. >From c6d19e89ea5c4878cb04dd30bc410237a53646eb Mon Sep

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Steven Perron (s-perron) Changes The wrapper used to hold the handle for resource type has just the default copy constructor and assignment operator. This causes clang to insert memcpys when it does an assignment of a resource type. The memc

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH 1/2] [HLSL] Add copy assignment and construtor to resource type

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-03 Thread via cfe-commits
Sirraide wrote: > I would also like to hear what @Sirraide thinks I don’t think I have any further comments; I think the implementation lgtm but I’ll leave it to @erichkeane to approve this. https://github.com/llvm/llvm-project/pull/154943 ___ cfe-co

  1   2   3   4   5   6   >