[clang] [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (PR #160359)

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

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-23 Thread Zibi Sarbinowski via cfe-commits
@@ -18,6 +18,7 @@ #include "clang/AST/ASTLambda.h" #include "clang/AST/Expr.h" #include "clang/Basic/TargetInfo.h" +#include "llvm/Support/SystemZ/zOSSupport.h" zibi2 wrote: Thank you for suggestion. This header is included in 1/2 a dozen places and it was no

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

2025-09-23 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm, but can you open an issue to track the issue I mentioned with making these operators visible in the IR when used on real/int values? https://github.com/llvm/llvm-project/pull/159916 ___ c

[clang-tools-extra] [llvm] [GitHub] Bump clang-tidy version to 21th in CI (PR #160193)

2025-09-23 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/160193 >From e78a08ba18618ad8b1bc4e0a7203fc311d8fb75e Mon Sep 17 00:00:00 2001 From: Baranov Victor Date: Mon, 22 Sep 2025 23:22:19 +0300 Subject: [PATCH 1/4] WIP --- .github/workflows/pr-code-lint.yml | 5 - 1

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/160355 >From 40676e4d17e9d56395f5f4ea0804b409fde6fbb7 Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Tue, 23 Sep 2025 11:16:26 -0700 Subject: [PATCH 1/2] ok to init struct with zero members --- clang/lib/Sema/SemaHLS

[clang-tools-extra] [clang-tidy] Add bugprone-default-lambda-capture (PR #160150)

2025-09-23 Thread JJ Marr via cfe-commits
https://github.com/jjmarr-amd updated https://github.com/llvm/llvm-project/pull/160150 >From 35df1c6ea3af8dbaea2d7049ae79b14ce39f0774 Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Fri, 11 Jul 2025 14:40:57 -0400 Subject: [PATCH 01/13] Bugprone-default-lambda-capture on-behalf-of: @AMD --- ...

[clang] ac62c4a - [CIR] Implement UnaryExtension support for ComplexType (#159913)

2025-09-23 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-23T16:50:24+02:00 New Revision: ac62c4af29533e8101063f4ab7af66d0b4784d4d URL: https://github.com/llvm/llvm-project/commit/ac62c4af29533e8101063f4ab7af66d0b4784d4d DIFF: https://github.com/llvm/llvm-project/commit/ac62c4af29533e8101063f4ab7af66d0b4784d4d.diff LO

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

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

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fix-its more robust (PR #149694)

2025-09-23 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/149694 >From 823bfd458a0e03125d84fd676fbc284f09b50a5b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 19 Jul 2025 23:43:55 -0700 Subject: [PATCH 01/10] [clang-tidy] Make `modernize-use-using`'s fixits mo

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-23 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 01/17] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

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

[clang] [clang-format] Add -r option for recursing into directories (PR #160299)

2025-09-23 Thread James Henderson via cfe-commits
https://github.com/jh7370 converted_to_draft https://github.com/llvm/llvm-project/pull/160299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Deric C. via cfe-commits
@@ -985,3 +995,35 @@ void case18() { void case19(Unnamed U) { TwoInts TI = {U, 1}; } + +// InitList with Empty Struct on LHS +// CHECK-LABEL: case20 +// CHECK: [[E:%.*]] = alloca %struct.Empty, align 1 +// CHECK-NEXT: call void @llvm.memcpy.p0.p0.i32(ptr align 1 [[E]], ptr al

[clang] [NFC][HLSL] Remove use of `clang_dxc` in testing (PR #160359)

2025-09-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/160359 The use of `clang_dxc` should be contained to the `clang/test/[Option|Driver]` directories. `clang_cc1` is a more direct way to invoke these tests. >From 7ae584592f17ade9f7cfa2b0497d4d5cd0db580b Mon Sep 17 00:

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

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

[clang] 8a0d145 - [os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (#158744)

2025-09-23 Thread via cfe-commits
Author: Akira Hatanaka Date: 2025-09-23T12:21:15-07:00 New Revision: 8a0d145d90df3eefd5e54a2b04d4f4f2515e99cc URL: https://github.com/llvm/llvm-project/commit/8a0d145d90df3eefd5e54a2b04d4f4f2515e99cc DIFF: https://github.com/llvm/llvm-project/commit/8a0d145d90df3eefd5e54a2b04d4f4f2515e99cc.diff

[clang] [os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (PR #158744)

2025-09-23 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak closed https://github.com/llvm/llvm-project/pull/158744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (PR #160359)

2025-09-23 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/160359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Builtin type declaration builder cleanup (PR #160375)

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

[clang] [HLSL][NFC] Cleanup builtin type declaration builder (PR #160375)

2025-09-23 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/160375 Replace early exit from builder methods with assert - they should be not called on a completed record. Also removes commented-out code. >From d006e675de7978a7e064995932e7dc097b1ace01 Mon Sep 17 00:00:00 2001 Fro

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-23 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 closed https://github.com/llvm/llvm-project/pull/160339 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/mariusdr edited https://github.com/llvm/llvm-project/pull/158502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [llvm] [Offload][PGO] Fix PGO on NVPTX targets (PR #143568)

2025-09-23 Thread Kevin Sala Penades via cfe-commits
@@ -947,11 +954,18 @@ bool InstrLowerer::lower() { if (!ContainsProfiling && !CoverageNamesVar) return MadeChange; + // Cached info for generating delayed offset calculations + // This is only relevant on NVPTX targets + SmallVector Kernels; + SmallVector ValueSites;

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
evelez7 wrote: * **#160360** https://app.graphite.dev/github/pr/llvm/llvm-project/160360?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1603

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fix-its more robust (PR #149694)

2025-09-23 Thread Victor Chernyakin via cfe-commits
localspook wrote: > give up fixed multiple type in type define when the types are not exactly the > same That would get rid of the bad fix-its, but I think it would lose too many of the good ones. For example, we handle this case perfectly fine: ```cpp typedef int Int, *IntPtr; ``` > only fix

[clang] 2d6a671 - [CIR] Upstream support Agg init with lvalue ComplexType (#159974)

2025-09-23 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-23T21:07:55+02:00 New Revision: 2d6a6714f36907459d184b1a9350ae0e950f360a URL: https://github.com/llvm/llvm-project/commit/2d6a6714f36907459d184b1a9350ae0e950f360a DIFF: https://github.com/llvm/llvm-project/commit/2d6a6714f36907459d184b1a9350ae0e950f360a.diff LO

[libcxx] [libcxxabi] [libunwind] [llvm] [libc++] Build Google Benchmark directly from Lit (PR #160367)

2025-09-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD libcxx/utils/libcxx/test/config.py libcxx/utils/libcxx/test/format.py `

[clang] [CIR] Implement UnaryExtension support for ComplexType (PR #159913)

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

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Resource creation not using the correct path after the patch that placed HTML files into their own directory. --- Full diff: https://github.com/llvm/llvm-project/pull/160360.diff 2 Files Affected

[clang] [clang-format] Support fine-grained alignment of variable declarations (PR #160270)

2025-09-23 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. Based on the acceptance of the linked commit, LGTM. But please wait a bit for additional feedback. https://github.com/llvm/llvm-project/pull/160270 ___ cfe-commits mailing list cfe-comm

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (jiang1997) Changes Fix #160281 --- Full diff: https://github.com/llvm/llvm-project/pull/160362.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+52-95) ``diff diff --git a/clang/lib/AST/Byte

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Chris B via cfe-commits
@@ -50,6 +50,16 @@ struct Unnamed { int : 8; }; +struct Empty { +}; + +struct UnnamedOnly { + int : 8; +}; + llvm-beanz wrote: A few other potential cases to consider: ``` struct EmptyDerived : Empty {}; struct UnnamedDerived : UnnamedOnly {}; ``` https:

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-09-23 Thread Sebastian Proell via cfe-commits
https://github.com/sebproell edited https://github.com/llvm/llvm-project/pull/156199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86][bytecode] Refactor BMI intrinsic wrappers to use interp__builtin_elementwise_int_binop (PR #160362)

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

[clang] [Clang] Add diagnostic for why std::is_abstract is false (PR #156199)

2025-09-23 Thread Sebastian Proell via cfe-commits
https://github.com/sebproell updated https://github.com/llvm/llvm-project/pull/156199 >From ce6fb88dadbfa996fe07ea381e3ffca94330af43 Mon Sep 17 00:00:00 2001 From: Sebastian Proell Date: Sat, 30 Aug 2025 14:46:25 +0200 Subject: [PATCH 1/2] [Clang] Add diagnostic for why std::is_abstract is fals

[clang] [NFC][HLSL] Remove use of `clang_dxc` in testing (PR #160359)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Finn Plummer (inbelic) Changes The use of `clang_dxc` should be contained to the `clang/test/[Option|Driver]` directories. `clang_cc1` is a more direct way to invoke these tests. --- Full diff: https://github.com/llvm/llvm-project/pull/1

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. Looks good, one suggestion for additional tests. https://github.com/llvm/llvm-project/pull/160355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Chris B via cfe-commits
https://github.com/llvm-beanz edited https://github.com/llvm/llvm-project/pull/160355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)

2025-09-23 Thread Björn Schäpers via cfe-commits
@@ -1219,6 +1219,8 @@ template <> struct MappingTraits { Style.SpaceBeforeCtorInitializerColon); IO.mapOptional("SpaceBeforeInheritanceColon", Style.SpaceBeforeInheritanceColon); +IO.mapOptional("SpaceBetweenUnderscoreParens", -

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/160360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL] Replace use of `clang_dxc` with `clang_cc1` in testing (PR #160359)

2025-09-23 Thread Deric C. via cfe-commits
https://github.com/Icohedron approved this pull request. https://github.com/llvm/llvm-project/pull/160359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix CSS, JS paths for HTML Mustache generation (PR #160360)

2025-09-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/160360 Resource creation not using the correct path after the patch that placed HTML files into their own directory. >From e6c68b9f0081606b62a1cfa1d80ccbe69fc946c3 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Tue,

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-23 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/159974 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/160355 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/mariusdr edited https://github.com/llvm/llvm-project/pull/158502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/mariusdr edited https://github.com/llvm/llvm-project/pull/158502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/159974 >From 8cab15bd7c28444de8197834bc0e012c0984474e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 21 Sep 2025 08:51:14 +0200 Subject: [PATCH 1/2] [CIR] Upstream support Agg init with lvalue ComplexType

[clang] [clang][Dependency Scanning] Implementing `CompilerInstanceWithContext` to Speedup By Name Scans (PR #160207)

2025-09-23 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: > I'd prefer if we didn't duplicate all the existing logic. Would it be > possible to fit CompilerInstanceWithContext into the current tool/worker > APIs? I'm thinking that maybe getModuleDependencies() and other top-level > APIs could accept a flag that would control whether

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sarah Spall (spall) Changes Enable InitList code to handle zero sized structs; this includes structs with no fields and those with only unnamed bitfields. Closes #157920 --- Full diff: https://github.com/llvm/llvm-project/pull/160355.diff

[clang] [HLSL] Enable InitList code to handle zero sized structs (PR #160355)

2025-09-23 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/160355 Enable InitList code to handle zero sized structs; this includes structs with no fields and those with only unnamed bitfields. Closes #157920 >From 40676e4d17e9d56395f5f4ea0804b409fde6fbb7 Mon Sep 17 00:00:00 200

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Erich Keane via cfe-commits
@@ -0,0 +1,448 @@ +// RUN: not %clang_cc1 -fopenacc -triple x86_64-linux-gnu -Wno-openacc-self-if-potential-conflict -emit-cir -fclangir -triple x86_64-linux-pc %s -o - | FileCheck %s + +struct CtorDtor { + int i; + CtorDtor(); + CtorDtor(const CtorDtor&); + ~CtorDtor(); +};

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Erich Keane via cfe-commits
@@ -0,0 +1,448 @@ +// RUN: not %clang_cc1 -fopenacc -triple x86_64-linux-gnu -Wno-openacc-self-if-potential-conflict -emit-cir -fclangir -triple x86_64-linux-pc %s -o - | FileCheck %s + +struct CtorDtor { + int i; + CtorDtor(); + CtorDtor(const CtorDtor&); + ~CtorDtor(); +};

[clang] [clang][Dependency Scanning] Implementing `CompilerInstanceWithContext` to Speedup By Name Scans (PR #160207)

2025-09-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/160207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 55f230f - [z.OS] fix strnlen() usage in Context.cpp available on z/OS (#160339)

2025-09-23 Thread via cfe-commits
Author: Zibi Sarbinowski Date: 2025-09-23T14:08:20-04:00 New Revision: 55f230f74e1d8de93cac42b6f804ea5e34849e1b URL: https://github.com/llvm/llvm-project/commit/55f230f74e1d8de93cac42b6f804ea5e34849e1b DIFF: https://github.com/llvm/llvm-project/commit/55f230f74e1d8de93cac42b6f804ea5e34849e1b.di

[clang] [clang][Dependency Scanning] Implementing `CompilerInstanceWithContext` to Speedup By Name Scans (PR #160207)

2025-09-23 Thread Qiongsi Wu via cfe-commits
@@ -0,0 +1,250 @@ +//===- CompilerInstanceWithContext.cpp - clang scanning compiler instance -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-09-23 Thread Kees Cook via cfe-commits
kees wrote: In looking at what's here, I suddenly realize that I think we accidentally deviated a bit on naming, in that the trap behavior got named "no_wrap" which is ambiguous. For example, a future overflow resolution behavior can be added like "saturate", which isn't wrapping either, and s

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. This looks good to me. Just a very minor nit about a test var name and a question to make sure I'm correctly understanding where the while loops are coming from. https://github.com/llvm/llvm-project/pull/160189 _

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,448 @@ +// RUN: not %clang_cc1 -fopenacc -triple x86_64-linux-gnu -Wno-openacc-self-if-potential-conflict -emit-cir -fclangir -triple x86_64-linux-pc %s -o - | FileCheck %s + +struct CtorDtor { + int i; + CtorDtor(); + CtorDtor(const CtorDtor&); + ~CtorDtor(); +};

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-09-23 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,448 @@ +// RUN: not %clang_cc1 -fopenacc -triple x86_64-linux-gnu -Wno-openacc-self-if-potential-conflict -emit-cir -fclangir -triple x86_64-linux-pc %s -o - | FileCheck %s + +struct CtorDtor { + int i; + CtorDtor(); + CtorDtor(const CtorDtor&); + ~CtorDtor(); +};

[clang] [alpha.webkit.NoUnretainedMemberChecker] Only check @property when @implementation is seen (PR #159947)

2025-09-23 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/159947 >From e369e9c9c390191bb8ac0fb5cc80ebe4e22e290a Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 20 Sep 2025 14:07:19 -0700 Subject: [PATCH] [alpha.webkit.NoUnretainedMemberChecker] Only check @property when

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread Timm Baeder via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: @@ -1636,6 +1639,33 @@ bool Call(InterpState &S, CodePtr OpPC, const Function *Func, return true; } +static bool GetDynamicDecl(InterpState &S, CodePtr OpPC, Pointer TypePtr, +

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-23 Thread Sean Perry via cfe-commits
@@ -18,6 +18,7 @@ #include "clang/AST/ASTLambda.h" #include "clang/AST/Expr.h" #include "clang/Basic/TargetInfo.h" +#include "llvm/Support/SystemZ/zOSSupport.h" perry-ca wrote: I think this will get deleted again. The compiles on other platforms are going to

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fix-its more robust (PR #149694)

2025-09-23 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/149694 >From 823bfd458a0e03125d84fd676fbc284f09b50a5b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 19 Jul 2025 23:43:55 -0700 Subject: [PATCH 1/8] [clang-tidy] Make `modernize-use-using`'s fixits more

[clang] [clang][bytecode] Diagnose volatile writes (PR #160350)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/160350.diff 7 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+9-4) - (modified) clang/lib/AST/ByteCode/Compiler.h (+1) - (modi

[clang] d3c8e18 - [CIR] Upstream LValue Unary Inc & Dec for ComplexType (#160201)

2025-09-23 Thread via cfe-commits
Author: Amr Hesham Date: 2025-09-23T19:23:09+02:00 New Revision: d3c8e189d65e7892413b90c7f8885a5f7f4461a9 URL: https://github.com/llvm/llvm-project/commit/d3c8e189d65e7892413b90c7f8885a5f7f4461a9 DIFF: https://github.com/llvm/llvm-project/commit/d3c8e189d65e7892413b90c7f8885a5f7f4461a9.diff LO

[clang] [llvm] [clang][SPARC] Pass 16-aligned structs with the correct alignment in CC (PR #155829)

2025-09-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/155829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fix-its more robust (PR #149694)

2025-09-23 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/149694 >From 823bfd458a0e03125d84fd676fbc284f09b50a5b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 19 Jul 2025 23:43:55 -0700 Subject: [PATCH 1/6] [clang-tidy] Make `modernize-use-using`'s fixits more

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-23 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. Sorry I missed an issue with the builtin attributes https://github.com/llvm/llvm-project/pull/157403 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang-tools-extra] [clang-doc] concatenate SymbolIDs to truncated mangled names (PR #159490)

2025-09-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/159490 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream LValue Unary Inc & Dec for ComplexType (PR #160201)

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

[clang-tools-extra] [clang-doc] concatenate SymbolIDs to truncated mangled names (PR #159490)

2025-09-23 Thread Erick Velez via cfe-commits
evelez7 wrote: ### Merge activity * **Sep 23, 5:22 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/159490). https://github.com/llvm/llvm-project/pull/159490

[clang] [clang][bytecode] Assert on virtual func call from array elem (PR #158502)

2025-09-23 Thread marius doerner via cfe-commits
Marius =?utf-8?q?Dörner?= , Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: @@ -1636,6 +1639,33 @@ bool Call(InterpState &S, CodePtr OpPC, const Function *Func, return true; } +static bool GetDynamicDecl(InterpState &S, CodePtr OpPC, Pointer TypePtr, +

[clang-tools-extra] [clang-tidy] Add bugprone-default-lambda-capture (PR #160150)

2025-09-23 Thread JJ Marr via cfe-commits
jjmarr-amd wrote: > Please address Clang-Tidy complains. Trying to figure out why this wasn't flagged by `clangd`. https://github.com/llvm/llvm-project/pull/160150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-23 Thread Prabhu Rajasekaran via cfe-commits
@@ -730,7 +766,7 @@ void OptTable::printHelp(raw_ostream &OS, const char *Usage, const char *Title, bool ShowHidden = !(FlagsToExclude & HelpHidden); FlagsToExclude &= ~HelpHidden; return internalPrintHelp( - OS, Usage, Title, ShowHidden, ShowAllAliases, + OS,

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-23 Thread Prabhu Rajasekaran via cfe-commits
@@ -415,16 +418,18 @@ std::unique_ptr OptTable::parseOneArgGrouped(InputArgList &Args, std::unique_ptr OptTable::ParseOneArg(const ArgList &Args, unsigned &Index, Visibility VisibilityMask) const { - return internalParseOneArg(Args

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-23 Thread Prabhu Rajasekaran via cfe-commits
@@ -0,0 +1,123 @@ +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Option/ArgList.h" +#include "llvm/Option/OptTable.h" +#include "llvm/Support/Error.h" +#include "llvm/Support/InitLLVM.h" +#include "llvm/Support/raw_ostream.h" + +using namespace ll

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-23 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/155026 >From 3584c6aacac629c51c4d1e8e08258c0c24f3a165 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Tue, 19 Aug 2025 15:48:47 -0700 Subject: [PATCH 01/17] [OptTable] Subcommand support. TODO: Add tests. --- clang-too

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-23 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. Thanks - this is looking correct now, please can you resolve the merge conflict and add equivalent handling to InterpBuiltin.cpp (we currently have 2 constexpr handlers so this needs to be duplicated). https://github.com/llvm/l

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-23 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia updated https://github.com/llvm/llvm-project/pull/153049 >From c562d407468236c0ee31cd32949e7f6a363a798f Mon Sep 17 00:00:00 2001 From: Wael Yehia Date: Tue, 9 Sep 2025 19:27:03 + Subject: [PATCH 01/10] accept ifunc attribute on AIX --- clang/include/clang/Basic/

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

2025-09-23 Thread Erich Keane via cfe-commits
@@ -1526,6 +1526,44 @@ StmtResult Parser::ParseIfStatement(SourceLocation *TrailingElseLoc) { SourceLocation ElseStmtLoc; StmtResult ElseStmt; + static llvm::DenseMap UsedCondVars; + const VarDecl *VD = dyn_cast_or_null(Cond.get().first); + + if (VD) { +SourceLocat

[clang] [llvm] [Clang][Driver][LLVM] Add -fno-inline-functions-called-once; expose p… (PR #160343)

2025-09-23 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 commented: The LLVM changes and Clang flag changes should likely be separate https://github.com/llvm/llvm-project/pull/160343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang] VectorExprEvaluator::VisitCallExpr - add constant folding for X86 pslldqi/psrldqi intrinsics (PR #157403)

2025-09-23 Thread via cfe-commits
https://github.com/kimyounhoex1 updated https://github.com/llvm/llvm-project/pull/157403 >From 38b90ecc3dc30668860cc80a6c8f075536764b5e Mon Sep 17 00:00:00 2001 From: kimyounhoex1 Date: Thu, 4 Sep 2025 00:55:24 +0900 Subject: [PATCH 01/16] todo list --- clang/lib/AST/ExprConstant.cpp | 4

[clang] [clang][byte] Add callback mechanism to handle constexpr for unary integer ops (PR #160280)

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

[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)

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

[clang] [NFC] [FlowSensitive] add comment (PR #160223)

2025-09-23 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/160223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eeca616 - [NFC] [FlowSensitive] add comment (#160223)

2025-09-23 Thread via cfe-commits
Author: Florian Mayer Date: 2025-09-23T09:23:02-07:00 New Revision: eeca6168428a9e3cee2d0c2800f5d862c5294d20 URL: https://github.com/llvm/llvm-project/commit/eeca6168428a9e3cee2d0c2800f5d862c5294d20 DIFF: https://github.com/llvm/llvm-project/commit/eeca6168428a9e3cee2d0c2800f5d862c5294d20.diff

[clang] ab74a31 - [NFC] [FlowSensitive] `LatticeJoinEffect` -> `LatticeEffect` (#160222)

2025-09-23 Thread via cfe-commits
Author: Florian Mayer Date: 2025-09-23T09:22:46-07:00 New Revision: ab74a3183f0eb15eb27855f2032599c81a8b162c URL: https://github.com/llvm/llvm-project/commit/ab74a3183f0eb15eb27855f2032599c81a8b162c DIFF: https://github.com/llvm/llvm-project/commit/ab74a3183f0eb15eb27855f2032599c81a8b162c.diff

[clang] [NFC] [FlowSensitive] `LatticeJoinEffect` -> `LatticeEffect` (PR #160222)

2025-09-23 Thread Florian Mayer via cfe-commits
https://github.com/fmayer closed https://github.com/llvm/llvm-project/pull/160222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [z.OS] fix strnlen() usage in Context.cpp available on z/OS (PR #160339)

2025-09-23 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 created https://github.com/llvm/llvm-project/pull/160339 On z/OS `strnlen()` is not available by default so we use the wrapper header `zOSSupport.h` to make it visible. This will fix the following error: ``` clang/lib/AST/ByteCode/Context.cpp:250:16: error: use of unde

[clang] [Clang] Constexpr Structured Bindings : The easy parts (PR #160337)

2025-09-23 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/160337 >From c69bccf2d510d08b4c0b1036e4d3b05f2ee2413a Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 22 Sep 2025 19:29:44 +0200 Subject: [PATCH] [Clang] Constexpr Structured Bindings : The easy parts This i

[clang] [Clang] Constexpr Structured Bindings : The easy parts (PR #160337)

2025-09-23 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/160337 This implements the easy parts of P2686R5. Ie allowing constexpr structured binding of structs and arrays. References to constexpr variables / support for tuple is left for a future PR. Until we implement the

[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)

2025-09-23 Thread via cfe-commits
klausgerlicher wrote: I've spoken to one of the GNU maintainers (Bruno Haible) and he tells me that this behaviour for GNU is well documented: ``` This convention is documented in multiple places in the GNU gettext documentation [1][2][3][4]. > This omission causes issues with clang-format, wh

[clang] [clang-tools-extra] [RecursiveASTVisitor] Skip implicit instantiations. (PR #110899)

2025-09-23 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk updated https://github.com/llvm/llvm-project/pull/110899 >From a3cd202d89f89ae15ef0396d03b9caf0725afabe Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Tue, 23 Sep 2025 17:13:12 +0100 Subject: [PATCH] [RecursiveASTVisitor] Skip implicit instantiations. In DEF_TRA

[clang] [HLSL] Add support for the HLSL matrix type (PR #159446)

2025-09-23 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/159446 >From 26980a21413801f0fd0fbe7ad1643670ed830d1b Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Wed, 17 Sep 2025 12:16:12 -0400 Subject: [PATCH 1/5] [HLSL] Add support for the HLSL matrix type fixes #109839 T

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

2025-09-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/159916 >From 7b89241b254a52addc12aa9fc217443f6e902ff3 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 20 Sep 2025 13:03:39 +0200 Subject: [PATCH 1/2] [CIR] Implement Unary real & imag on scalar expr --- c

[clang] [CIR] Add virtual base support to getAddressOfBaseClass (PR #159162)

2025-09-23 Thread Andy Kaylor via cfe-commits
@@ -47,6 +57,76 @@ void ppp() { B b; } // OGCG: @_ZTV1B = linkonce_odr unnamed_addr constant { [3 x ptr] } { [3 x ptr] [ptr inttoptr (i64 12 to ptr), ptr null, ptr @_ZTI1B] }, comdat, align 8 +// CIR: cir.func {{.*}}@_Z1fv() { +// CIR: %[[D:.+]] = cir.alloca !rec_Derived,

[clang] [CIR] Add virtual base support to getAddressOfBaseClass (PR #159162)

2025-09-23 Thread Andy Kaylor via cfe-commits
@@ -865,39 +865,55 @@ Address CIRGenFunction::getAddressOfBaseClass( bool nullCheckValue, SourceLocation loc) { assert(!path.empty() && "Base path should not be empty!"); + CastExpr::path_const_iterator start = path.begin(); + const CXXRecordDecl *vBase = nullptr; +

[clang] [CIR] Implement Unary real & imag on scalar expr (PR #159916)

2025-09-23 Thread Amr Hesham via cfe-commits
@@ -1001,3 +1001,86 @@ void foo36() { // OGCG: %[[A_IMAG_F32:.*]] = fpext half %[[A_IMAG]] to float // OGCG: %[[A_IMAG_F16:.*]] = fptrunc float %[[A_IMAG_F32]] to half // OGCG: store half %[[A_IMAG_F16]], ptr %[[IMAG_ADDR]], align 2 + +void foo38() { + float a; + float b = __

[clang] [Clang] Add support for fp when using min_fetch/max_fetch atomics (PR #160330)

2025-09-23 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 c,cpp -- clang/test/CodeGen/AArch64/atomic-ops-float-ch

[clang] [clang][x86][bytecode] Replace interp__builtin_knot with static bool interp__builtin_elementwise_int_unaryop callback (PR #160332)

2025-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (fennecJ) Changes Fix #160287 --- Full diff: https://github.com/llvm/llvm-project/pull/160332.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+2-11) ``diff diff --git a/clang/lib/AST/ByteCod

  1   2   3   4   5   6   7   8   9   10   >