[clang] [libclang/python] Derive library function types from annotations (PR #142120)

2025-06-06 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: @Endilll I think I might not have been clear, the issue I am the most concerned about is the following. As an example, consider `clang_PrintingPolicy_getProperty`. Previously, it was defined in `FUNCTION_LIST` as ```python ("clang_PrintingPolicy_getProperty", [PrintingPolic

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-06 Thread via cfe-commits
https://github.com/jeremyd2019 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][HLSL][DXIL] Move D3D12.h enums and flags to DXILABI (PR #143041)

2025-06-06 Thread via cfe-commits
@@ -99,6 +99,128 @@ enum class SamplerFeedbackType : uint32_t { const unsigned MinWaveSize = 4; const unsigned MaxWaveSize = 128; +// Definition of the various d3d12.h enumerations and flags. The definitions of +// all values here correspond to their description in the d3d12.h

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-06 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/143115 >From c64472a188825a1d814ea0523a6097d25949d6fb Mon Sep 17 00:00:00 2001 From: kikairoya Date: Sun, 25 May 2025 14:07:29 +0900 Subject: [PATCH 1/2] [Cygwin] va_list must be treated like normal Windows Handling

[clang] [llvm] Reland "[HLSL][RootSignature] Implement serialization of RootConstants and RootFlags" (PR #143019)

2025-06-06 Thread via cfe-commits
https://github.com/joaosaffran approved this pull request. https://github.com/llvm/llvm-project/pull/143019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Use correct BuiltinVaListKind. (PR #143166)

2025-06-06 Thread via cfe-commits
https://github.com/jeremyd2019 closed https://github.com/llvm/llvm-project/pull/143166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-06 Thread via cfe-commits
@@ -979,6 +979,9 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo { if (Opts.CPlusPlus) Builder.defineMacro("_GNU_SOURCE"); } + BuiltinVaListKind getBuiltinVaListKind() const override { jeremyd2019 wrote: ```sugge

[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143236.diff 1 Files Affected: - (modified) clang/tools/clang-format/ClangFormat.cpp (+22-21) ``diff diff --git a/clang/tools/clang-for

[clang] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp (PR #143236)

2025-06-06 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/143236 None >From 1ece3adee540295efbe04fc74876efd39549e577 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 6 Jun 2025 23:10:18 -0700 Subject: [PATCH] [clang-format][NFC] Clean up fillRanges() in ClangFormat.cpp ---

[clang] [Clang][Cygwin] Use correct BuiltinVaListKind. (PR #143166)

2025-06-06 Thread Tomohiro Kashiwada via cfe-commits
kikairoya wrote: I have a test already: https://github.com/llvm/llvm-project/pull/143115 https://github.com/llvm/llvm-project/pull/143166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [clang] Diagnose [[nodiscard]] return types in Objective-C++ (PR #142541)

2025-06-06 Thread via cfe-commits
https://github.com/halbi2 updated https://github.com/llvm/llvm-project/pull/142541 >From c683b2aa84cba1b7057592e50c542cd5645adde5 Mon Sep 17 00:00:00 2001 From: halbi2 Date: Mon, 26 May 2025 15:35:13 -0400 Subject: [PATCH 1/4] [clang] [test] More coverage of [[nodiscard]] --- clang/test/SemaC

[clang] [clang] Diagnose [[nodiscard]] return types in Objective-C++ (PR #142541)

2025-06-06 Thread via cfe-commits
@@ -272,6 +273,26 @@ QualType ObjCMessageExpr::getCallReturnType(ASTContext &Ctx) const { return Ctx.getReferenceQualifiedType(this); } +std::pair +ObjCMessageExpr::getUnusedResultAttr(ASTContext &Ctx) const { + // If the callee is marked nodiscard, return that attribute +

[clang] [Clang][Cygwin] Use correct BuiltinVaListKind. (PR #143166)

2025-06-06 Thread via cfe-commits
jeremyd2019 wrote: None of those really cry out to me as a place to add a cygwin test... but adding a new test in CodeGen that validates that the va_list works the same on windows and cygwin based on the existing tests wouldn't be too hard. https://github.com/llvm/llvm-project/pull/143166

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4f304e2 - [clang] Use llvm::count (NFC) (#143228)

2025-06-06 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-06-06T22:55:42-07:00 New Revision: 4f304e2e7203d3deb97d20816836aae82de8b24c URL: https://github.com/llvm/llvm-project/commit/4f304e2e7203d3deb97d20816836aae82de8b24c DIFF: https://github.com/llvm/llvm-project/commit/4f304e2e7203d3deb97d20816836aae82de8b24c.diff L

[clang] [clang] Strip away lambdas (NFC) (PR #143226)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143226 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0ef1e69 - [clang] Strip away lambdas (NFC) (#143226)

2025-06-06 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-06-06T22:55:26-07:00 New Revision: 0ef1e69f224086e105ddaeebf2f90e7658a2fe93 URL: https://github.com/llvm/llvm-project/commit/0ef1e69f224086e105ddaeebf2f90e7658a2fe93 DIFF: https://github.com/llvm/llvm-project/commit/0ef1e69f224086e105ddaeebf2f90e7658a2fe93.diff L

[clang] [Sema] Drop const from a return type (NFC) (PR #143224)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/143224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d953ca5 - [Sema] Drop const from a return type (NFC) (#143224)

2025-06-06 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-06-06T22:55:11-07:00 New Revision: d953ca5659d60c46c6e9352b6e75bb20d35d9e1d URL: https://github.com/llvm/llvm-project/commit/d953ca5659d60c46c6e9352b6e75bb20d35d9e1d DIFF: https://github.com/llvm/llvm-project/commit/d953ca5659d60c46c6e9352b6e75bb20d35d9e1d.diff L

[clang] [clang-format] Handle function decls with MS calling conventions (PR #143083)

2025-06-06 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve2-vla-2stage` running on `linaro-g4-02` while building `clang` at step 12 "ninja check 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/199/builds/3909 Here is the relevant piece

[clang] [clang] Add managarm support (PR #139271)

2025-06-06 Thread Brad Smith via cfe-commits
brad0 wrote: @no92 Ping. https://github.com/llvm/llvm-project/pull/139271 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle templates in qualified typenames (PR #143194)

2025-06-06 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 HEAD~1 HEAD --extensions cpp -- clang/lib/Format/TokenAnnotator.cpp clang/unittests/

[clang] [clang-format] Handle function decls with MS calling conventions (PR #143083)

2025-06-06 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/143083 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0c495ce - [clang-format] Handle function decls with MS calling conventions (#143083)

2025-06-06 Thread via cfe-commits
Author: Owen Pan Date: 2025-06-06T20:43:35-07:00 New Revision: 0c495ce9c4237f0f090b672efd94839e52cb5f18 URL: https://github.com/llvm/llvm-project/commit/0c495ce9c4237f0f090b672efd94839e52cb5f18 DIFF: https://github.com/llvm/llvm-project/commit/0c495ce9c4237f0f090b672efd94839e52cb5f18.diff LOG:

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Updating formatting before review - had discussed with Louis and he expressed a preference for some of it, but this llvm.org style bot complains many other cases (likely a local config issue when I was trying to cleanup the downstream code. So I've updated with a direct clang-fo

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 Thread Anton Korobeynikov via cfe-commits
asl wrote: @kovdan01 @atrosinenko Please take a look https://github.com/llvm/llvm-project/pull/143230 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/143230 >From 637245f9be6ed0163c9129d27a572f153b6f8523 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 6 Jun 2025 18:50:28 -0700 Subject: [PATCH] [runtimes][PAC] Harden unwinding when possible (#138571) This harde

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/143230 >From 68103962b254565fdfad069c350af90ede7109b4 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Fri, 6 Jun 2025 18:50:28 -0700 Subject: [PATCH] [runtimes][PAC] Harden unwinding when possible (#138571) This harde

[clang] [llvm] [CodeGen][COFF] Always emit CodeView compiler info on Windows targets (PR #142970)

2025-06-06 Thread Jacek Caban via cfe-commits
cjacek wrote: > Hmm, so a "regular" mingw object file would end up having both DWARF (if > building with -g) and codeview (for the compiler info)? Yes. > Does this cause confusion when linking (probably not, as it would either > retain the DWARF or the codeview parts, depending on linker argu

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 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 HEAD~1 HEAD --extensions c,h,cpp,hpp -- compiler-rt/lib/builtins/gcc_personality_v0.c

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2025-06-06 Thread Oliver Hunt via cfe-commits
ojhunt wrote: I've finally got our downstream hardening to the point where it should be sane: https://github.com/llvm/llvm-project/pull/143230 https://github.com/llvm/llvm-project/pull/113368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxxabi @llvm/pr-subscribers-libunwind Author: Oliver Hunt (ojhunt) Changes This hardens the unwinding logic and datastructures on systems that support pointer authentication. The approach taken to hardening is to harden the schemas of as many high v

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-06 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/143230 This hardens the unwinding logic and datastructures on systems that support pointer authentication. The approach taken to hardening is to harden the schemas of as many high value fields in the myriad structs as

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/143228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Strip away lambdas (NFC) (PR #143226)

2025-06-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/143226 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Drop const from a return type (NFC) (PR #143224)

2025-06-06 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/143224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143228.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaDeclCXX.cpp (+1-2) ``diff diff --git a/clang/lib/Sema/SemaDeclCXX.cp

[clang] [clang] Use llvm::count (NFC) (PR #143228)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143228 None >From 70700b238caab426df97d2132a1cbcb56a3de1d5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 09:22:34 -0700 Subject: [PATCH] [clang] Use llvm::count (NFC) --- clang/lib/Sema/Sem

[clang] [clang] Strip away lambdas (NFC) (PR #143226)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes We don't need lambdas here. --- Full diff: https://github.com/llvm/llvm-project/pull/143226.diff 2 Files Affected: - (modified) clang/lib/CodeGen/CGCall.cpp (+2-3)

[clang] [clang] Strip away lambdas (NFC) (PR #143226)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143226 We don't need lambdas here. >From e1f047717a0b39911ec5a9d698bc6bed8e56 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 09:12:42 -0700 Subject: [PATCH] [clang] Strip away lambdas (NF

[clang] [Sema] Drop const from a return type (NFC) (PR #143224)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143224.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaOpenMP.cpp (+1-1) ``diff diff --git a/clang/lib/Sema/SemaOpenMP.cpp

[clang] [Sema] Drop const from a return type (NFC) (PR #143224)

2025-06-06 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143224 None >From 43d5ddb7d2f6ea21b9a7634dcbe5fca7964ec210 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 6 Jun 2025 11:04:39 -0700 Subject: [PATCH] [Sema] Drop const from a return type (NFC) --- clang

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2025-06-06 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss updated https://github.com/llvm/llvm-project/pull/113368 >From 114455c05ea84fc47fd22a34490d388ba8d5ddc6 Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Wed, 16 Oct 2024 14:48:25 -0700 Subject: [PATCH 1/3] [libunwind][AArch64] Protect PC within libunwind's

[clang] [CIR] Add support for accessing members of base classes (PR #143195)

2025-06-06 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/143195 >From 6fb28507d57ce04faa712b630e308ba029230fd5 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 30 May 2025 16:07:19 -0700 Subject: [PATCH 1/2] [CIR] Add support for accessing members of base classes Th

[clang-tools-extra] Refactor clang doc comment structure (PR #142273)

2025-06-06 Thread Samarth Narang via cfe-commits
snarang181 wrote: > LGTM. Thanks for the patch Awesome, feel free to merge when you see fit. I don't think I can do so myself. https://github.com/llvm/llvm-project/pull/142273 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang-tools-extra] Refactor clang doc comment structure (PR #142273)

2025-06-06 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM. Thanks for the patch https://github.com/llvm/llvm-project/pull/142273 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Refactor clang doc comment structure (PR #142273)

2025-06-06 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/142273 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8a51fb2 - Revert "[Clang] Add resource_dir_EQ flag to CC1Option group (#140870)" (#142509)

2025-06-06 Thread via cfe-commits
Author: Wenju He Date: 2025-06-07T08:05:13+08:00 New Revision: 8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc URL: https://github.com/llvm/llvm-project/commit/8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc DIFF: https://github.com/llvm/llvm-project/commit/8a51fb29b6f315f1ee0ba3b0b9f0f4a4c2b51dcc.diff LOG:

[clang] eed98e1 - [OpenACC][CIR] 'attach' clause lowering for combined/compute

2025-06-06 Thread via cfe-commits
Author: erichkeane Date: 2025-06-06T17:06:49-07:00 New Revision: eed98e1493414ae9c30596b1eeb8f4a9b260e42a URL: https://github.com/llvm/llvm-project/commit/eed98e1493414ae9c30596b1eeb8f4a9b260e42a DIFF: https://github.com/llvm/llvm-project/commit/eed98e1493414ae9c30596b1eeb8f4a9b260e42a.diff LO

[clang] Revert "[Clang] Add resource_dir_EQ flag to CC1Option group (#140870)" (PR #142509)

2025-06-06 Thread Wenju He via cfe-commits
wenju-he wrote: thank you @nathanchance for the review. https://github.com/llvm/llvm-project/pull/142509 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Add resource_dir_EQ flag to CC1Option group (#140870)" (PR #142509)

2025-06-06 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/142509 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4eb7231 - [OpenACC][CIR] Implement 'present' lowering for compute/combined

2025-06-06 Thread via cfe-commits
Author: erichkeane Date: 2025-06-06T16:54:58-07:00 New Revision: 4eb72312e26b19f745d57bbafad3b378493bce70 URL: https://github.com/llvm/llvm-project/commit/4eb72312e26b19f745d57bbafad3b378493bce70 DIFF: https://github.com/llvm/llvm-project/commit/4eb72312e26b19f745d57bbafad3b378493bce70.diff LO

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-06 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/142483 >From 806c2c1f1846879f0217398f81f36a8e49447bdf Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Mon, 2 Jun 2025 12:53:36 -0700 Subject: [PATCH 1/6] [clang-doc] add a JSON generator --- clang-tools-extra/clang-

[clang] b09b1d6 - [OpenACC][CIR] Implement lowering for 'no_create' clause for comp/comb

2025-06-06 Thread via cfe-commits
Author: erichkeane Date: 2025-06-06T16:36:11-07:00 New Revision: b09b1d65efd7a3d6dd4f61333a5f09c0e69b42a4 URL: https://github.com/llvm/llvm-project/commit/b09b1d65efd7a3d6dd4f61333a5f09c0e69b42a4 DIFF: https://github.com/llvm/llvm-project/commit/b09b1d65efd7a3d6dd4f61333a5f09c0e69b42a4.diff LO

[clang] Revert "[Clang] Add resource_dir_EQ flag to CC1Option group (#140870)" (PR #142509)

2025-06-06 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance approved this pull request. Sorry, did not realize you were waiting on me to review. I am still reverting this locally so LGTM. https://github.com/llvm/llvm-project/pull/142509 ___ cfe-commits mailing list cfe-commits@l

[clang] [CIR] Add support for accessing members of base classes (PR #143195)

2025-06-06 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/143195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [DRAFT][memprof][darwin] Support memprof on Darwin platform and add binary access profile (PR #142884)

2025-06-06 Thread Snehasish Kumar via cfe-commits
snehasish wrote: Thanks for sharing the draft, here are my thoughts -- 1. The Darwin sanitizer changes are numerous but as you noted, a matter of following what asan does today. I don't think there are any fundamental challenges to making it work (though I am not a CMake expert). For the comm

[clang] [CIR] Upstream ShuffleOp for VectorType (PR #142288)

2025-06-06 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142288 >From 758e921e4811697269a317b693ef40e1dcf46d61 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 31 May 2025 19:53:56 +0200 Subject: [PATCH 1/6] [CIR] Upstream ShuffleOp for VectorType --- clang/incl

[clang] [CIR] Add support for using enum constants (PR #143214)

2025-06-06 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/143214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][HLSL] Move Sema work from `ParseMicrosoftRootSignatureAttributeArgs` (PR #143184)

2025-06-06 Thread Helena Kotas via cfe-commits
@@ -3619,6 +3619,19 @@ class Sema final : public SemaBase { SourceLocation NameLoc, bool IsTemplateTypeArg); + /// Computes the unique Root Signature identifier from the given signature, -

[clang] [NFC][HLSL] Move Sema work from `ParseMicrosoftRootSignatureAttributeArgs` (PR #143184)

2025-06-06 Thread Helena Kotas via cfe-commits
@@ -3619,6 +3619,19 @@ class Sema final : public SemaBase { SourceLocation NameLoc, bool IsTemplateTypeArg); + /// Computes the unique Root Signature identifier from the given signature, + /// then l

[clang] [NFC][HLSL] Move Sema work from `ParseMicrosoftRootSignatureAttributeArgs` (PR #143184)

2025-06-06 Thread Helena Kotas via cfe-commits
@@ -4942,18 +4942,13 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) { // Construct our identifier hekota wrote: Not really related to this change, I just noticed the `ParseMicrosoftRootSignatureAttributeArgs` name. Would

[clang] [CUDA] Disallow use of address_space(N) on CUDA device variables. (PR #142857)

2025-06-06 Thread Artem Belevich via cfe-commits
Artem-B wrote: @yxsamliu Sam, do you have any thoughts on this? https://github.com/llvm/llvm-project/pull/142857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AST] Fix spaces in TypePrinter for some calling convs (PR #143160)

2025-06-06 Thread Nick Sarnie via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -triple aarch64 -ast-dump -ast-dump-filter foo %s \ +// RUN: | FileCheck --strict-whitespace %s + +// CHECK: {{foo1 'void \(\) __attribute__\(\(device_kernel\)\)'$}} sarnex wrote: applied this change and added a release note,

[clang] [CIR] Upstream ShuffleOp for VectorType (PR #142288)

2025-06-06 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/142288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AST] Fix spaces in TypePrinter for some calling convs (PR #143160)

2025-06-06 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/143160 >From 56f19d4f839d1c65a3f1145fcdcac5207ff61c11 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Fri, 6 Jun 2025 08:21:56 -0700 Subject: [PATCH 1/5] [clang][AST] Fix spaces TypePrinter for some calling convs

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-06 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/141997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-06 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. https://github.com/llvm/llvm-project/pull/142800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][HLSL][DXIL] Move D3D12.h enums and flags to DXILABI (PR #143041)

2025-06-06 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/143041 >From e9d782af7335af47b83db3bffcc6b91a6465ee6f Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 5 Jun 2025 18:40:36 + Subject: [PATCH 1/6] move defs to DXILABI --- .../llvm/Frontend/HLSL/HLSLRootSign

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Adds a JSON generator backend to emit mapped information as JSON. This will enable a better testing format for upcoming changes. It can also potentially serve to feed our other backend generators

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-06 Thread Erick Velez via cfe-commits
@@ -0,0 +1,194 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --output=%t --format=json --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/MyClass.json + +struct Foo; + +// This is a nice class. +// It has some nice methods and fields. +// @brief This is

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-06 Thread Eli Friedman via cfe-commits
@@ -143,3 +143,8 @@ namespace fold_initializer { const float A::f = __builtin_is_constant_evaluated(); static_assert(fold(A::f == 1.0f)); } + +struct GH99680 { + static const int x = 1/(1-__builtin_is_constant_evaluated()); // expected-error {{in-class initializer for sta

[clang] [CIR] Add support for using enum constants (PR #143214)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes Although support for declaring enums and using value's whose type was an enumi was previously upstreamed, we didn't have support for referencing the constant values declared in the enum. This change adds

[clang] [CIR] Add support for using enum constants (PR #143214)

2025-06-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes Although support for declaring enums and using value's whose type was an enumi was previously upstreamed, we didn't have support for referencing the constant values declared in the enum. This change adds t

[clang] [CIR] Add support for using enum constants (PR #143214)

2025-06-06 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/143214 Although support for declaring enums and using value's whose type was an enumi was previously upstreamed, we didn't have support for referencing the constant values declared in the enum. This change adds tha

[clang] 347186b - Avoid Assertion Failure Using -fcs-profile-generate with distributed thin-lto (#129736)

2025-06-06 Thread via cfe-commits
Author: Nuri Amari Date: 2025-06-06T17:58:19-04:00 New Revision: 347186b25969adcb8621c0b21226f10e7a193f8d URL: https://github.com/llvm/llvm-project/commit/347186b25969adcb8621c0b21226f10e7a193f8d DIFF: https://github.com/llvm/llvm-project/commit/347186b25969adcb8621c0b21226f10e7a193f8d.diff LO

[clang] 428afa6 - [ubsan] Add more -fsanitize-annotate-debug-info checks (#141997)

2025-06-06 Thread via cfe-commits
Author: Thurston Dang Date: 2025-06-06T14:59:32-07:00 New Revision: 428afa62b0aa1bb0ac344cbfc62429a60c42b265 URL: https://github.com/llvm/llvm-project/commit/428afa62b0aa1bb0ac344cbfc62429a60c42b265 DIFF: https://github.com/llvm/llvm-project/commit/428afa62b0aa1bb0ac344cbfc62429a60c42b265.diff

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-06 Thread Eli Friedman via cfe-commits
@@ -143,3 +143,8 @@ namespace fold_initializer { const float A::f = __builtin_is_constant_evaluated(); static_assert(fold(A::f == 1.0f)); } + +struct GH99680 { + static const int x = 1/(1-__builtin_is_constant_evaluated()); // expected-error {{in-class initializer for sta

[clang] [llvm] [CodeGen][COFF] Always emit CodeView compiler info on Windows targets (PR #142970)

2025-06-06 Thread Jacek Caban via cfe-commits
@@ -16,7 +16,7 @@ ; argc is the first debug location. ; ASM: .Ldebug_loc1: ; ASM-NEXT: .quad .Lfunc_begin0-.Lfunc_begin0 -; ASM-NEXT: .quad [[argc_range_end]]-.Lfunc_begin0 +; ASM-NEXT: .quad .Ltmp3-.Lfunc_begin0 cjacek wrote: The test emits DWARF debug

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-06 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/142483 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-06 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,194 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --output=%t --format=json --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/MyClass.json + +struct Foo; + +// This is a nice class. +// It has some nice methods and fields. +// @brief This is

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-06 Thread Richard Smith via cfe-commits
@@ -143,3 +143,8 @@ namespace fold_initializer { const float A::f = __builtin_is_constant_evaluated(); static_assert(fold(A::f == 1.0f)); } + +struct GH99680 { + static const int x = 1/(1-__builtin_is_constant_evaluated()); // expected-error {{in-class initializer for sta

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-06 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0ee92db03198e2364ade53e5c0bbd0f844fe634f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/2] [CIR] Upstream CreateOp for ComplexType with folder ---

[libunwind] [libunwind][AArch64] Protect PC within libunwind's context. (PR #113368)

2025-06-06 Thread Anton Korobeynikov via cfe-commits
@@ -1845,8 +1986,14 @@ class _LIBUNWIND_HIDDEN Registers_arm64 { uint64_t getSP() const { return _registers.__sp; } void setSP(uint64_t value) { _registers.__sp = value; } - uint64_t getIP() const { return _registers.__pc; } - void setIP(uint6

[clang] a42bb8b - [Driver] Move CommonArgs to a location visible by the Frontend Drivers (#142800)

2025-06-06 Thread via cfe-commits
Author: Cameron McInally Date: 2025-06-06T17:59:24-04:00 New Revision: a42bb8b57a6dcf298789ae88b36a19e151fb URL: https://github.com/llvm/llvm-project/commit/a42bb8b57a6dcf298789ae88b36a19e151fb DIFF: https://github.com/llvm/llvm-project/commit/a42bb8b57a6dcf298789ae88b36a19e151fb.di

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-06 Thread Richard Smith via cfe-commits
@@ -143,3 +143,8 @@ namespace fold_initializer { const float A::f = __builtin_is_constant_evaluated(); static_assert(fold(A::f == 1.0f)); } + +struct GH99680 { + static const int x = 1/(1-__builtin_is_constant_evaluated()); // expected-error {{in-class initializer for sta

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-06 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed https://github.com/llvm/llvm-project/pull/141997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-06 Thread Eugene Epshteyn via cfe-commits
https://github.com/eugeneepshteyn closed https://github.com/llvm/llvm-project/pull/142800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Avoid Assertion Failure Using -fcs-profile-generate with distributed thin-lto (PR #129736)

2025-06-06 Thread Nuri Amari via cfe-commits
https://github.com/NuriAmari closed https://github.com/llvm/llvm-project/pull/129736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-06 Thread Cameron McInally via cfe-commits
mcinally wrote: All checks have passed, if someone wouldn't mind merging for me. Thanks in advance! https://github.com/llvm/llvm-project/pull/142800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [flang] [llvm] [Driver] Move CommonArgs to a location visible by the Frontend Drivers (PR #142800)

2025-06-06 Thread Eugene Epshteyn via cfe-commits
@@ -3167,3 +3167,25 @@ void tools::handleInterchangeLoopsArgs(const ArgList &Args, options::OPT_fno_loop_interchange, EnableInterchange)) CmdArgs.push_back("-floop-interchange"); } + +// Parse -mprefer-vector-width=. Return the Value string if well-forme

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

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

[clang-tools-extra] [WIP] Warn about misuse of sizeof operator in loops. (PR #143205)

2025-06-06 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 HEAD~1 HEAD --extensions h,cpp -- clang-tools-extra/clang-tidy/bugprone/SizeofExpress

[clang-tools-extra] [WIP] Warn about misuse of sizeof operator in loops. (PR #143205)

2025-06-06 Thread Malavika Samak via cfe-commits
https://github.com/malavikasamak updated https://github.com/llvm/llvm-project/pull/143205 >From 52e4413ea1e701dfe0b24cf957a26bb72732f066 Mon Sep 17 00:00:00 2001 From: MalavikaSamak Date: Wed, 21 May 2025 16:06:44 -0700 Subject: [PATCH 1/2] Place holder message for sizeof operator in loops. --

[clang] [Clang][Cygwin] Use correct BuiltinVaListKind. (PR #143166)

2025-06-06 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > I'm not seeing an obvious place for a target-specific va_list test, can you > suggest where this would go? No idea offhand; I tried breaking the existing `getBuiltinVaListKind` for `WindowsX86_64TargetInfo` and running `check-clang`, which caused failures in the following te

[clang] [clang] Remove separate evaluation step for static class member init. (PR #142713)

2025-06-06 Thread Richard Smith via cfe-commits
@@ -143,3 +143,8 @@ namespace fold_initializer { const float A::f = __builtin_is_constant_evaluated(); static_assert(fold(A::f == 1.0f)); } + +struct GH99680 { + static const int x = 1/(1-__builtin_is_constant_evaluated()); // expected-error {{in-class initializer for sta

[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

2025-06-06 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > By "switch to" do you mean remove I mean downstream we already like how nice e.g `__ubsan_check_array_bounds` in the top of the crash thread. If we have `__clang_trap_msg_array_bounds`, it's as good as `__ubsan_check_array_bounds` now. https://github.com/llvm/llvm-pro

[clang] [llvm] Reland "[HLSL][RootSignature] Implement serialization of RootConstants and RootFlags" (PR #143019)

2025-06-06 Thread Finn Plummer via cfe-commits
inbelic wrote: Based on feedback here: https://github.com/llvm/llvm-project/pull/143198. I will address this feedback before this can be merged. https://github.com/llvm/llvm-project/pull/143019 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

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

[clang] [llvm] Reland "[HLSL][RootSignature] Implement serialization of RootConstants and RootFlags" (PR #143019)

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

  1   2   3   4   5   6   >