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

2025-05-30 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited 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] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/142195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-30 Thread Samarth Narang via cfe-commits
snarang181 wrote: I made the requested changes, can the CI workflows be triggered? I do not have access. https://github.com/llvm/llvm-project/pull/141699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

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

2025-05-30 Thread Thurston Dang via cfe-commits
@@ -1245,30 +1245,23 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound, } llvm::DILocation *CodeGenFunction::SanitizerAnnotateDebugInfo( -SanitizerKind::SanitizerOrdinal CheckKindOrdinal) { - std::string Label; - switch (CheckKindOrdinal) {

[clang] Enclose code in nondebug in #ifndef NDEBUG/#endif (PR #142189)

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

[clang] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-30 Thread Krzysztof Drewniak via cfe-commits
https://github.com/krzysz00 commented: Is there a test that needs to be added here? https://github.com/llvm/llvm-project/pull/138141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb] Add filter option to AST dump command (PR #142164)

2025-05-30 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/142164 >From 662e07aa9bb6560f37c079ba6f13be17e7885b48 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 30 May 2025 15:44:09 +0100 Subject: [PATCH 1/3] [clang][Frontend] Add overload to ASTPrinter that doesn't

[clang] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-30 Thread Joe Nash via cfe-commits
Sisyph wrote: It is documented in clang/include/clang/Basic/Builtins.def. ` // t -> signature is meaningless, use custom typechecking ` It essentially disables builtin signature typechecking, though I haven't looked into all the details. https://github.com/llvm/llvm-project/pull/138141 __

[clang-tools-extra] [clang-doc] Add test case for #141990 (PR #142209)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes When we landed the fix for the assertion in #141990, we hadn't yet reduced the test case sufficiently for a regression test. --- Full diff: https://github.com/llvm/llvm-project/pull/142209.diff 1

[clang] 9bd63b1 - [HLSL][RootSignature] Add parsing of remaining enums to StaticSampler (#140305)

2025-05-30 Thread via cfe-commits
Author: Finn Plummer Date: 2025-05-30T13:24:01-07:00 New Revision: 9bd63b1dc79d40945664daf3a462da099f9b2870 URL: https://github.com/llvm/llvm-project/commit/9bd63b1dc79d40945664daf3a462da099f9b2870 DIFF: https://github.com/llvm/llvm-project/commit/9bd63b1dc79d40945664daf3a462da099f9b2870.diff

[clang] [llvm] [HLSL][RootSignature] Add parsing of remaining enums to StaticSampler (PR #140305)

2025-05-30 Thread Finn Plummer via cfe-commits
https://github.com/inbelic closed https://github.com/llvm/llvm-project/pull/140305 ___ 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 test case for #141990 (PR #142209)

2025-05-30 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#142209** https://app.graphite.dev/github/pr/llvm/llvm-project/142209?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/1422

[clang-tools-extra] [clang-doc] Add test case for #141990 (PR #142209)

2025-05-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/142209 When we landed the fix for the assertion in #141990, we hadn't yet reduced the test case sufficiently for a regression test. >From b541800f007dd538d2aead1b514bbe55c175d0ca Mon Sep 17 00:00:00 2001 From: Paul Kir

[clang-tools-extra] ff94ba6 - [clang-doc] Refactor error handling to use ExitOnError (#141699)

2025-05-30 Thread via cfe-commits
Author: Samarth Narang Date: 2025-05-30T13:34:15-07:00 New Revision: ff94ba613e2fab918d5d96c57833ee3f6e3f3015 URL: https://github.com/llvm/llvm-project/commit/ff94ba613e2fab918d5d96c57833ee3f6e3f3015 DIFF: https://github.com/llvm/llvm-project/commit/ff94ba613e2fab918d5d96c57833ee3f6e3f3015.diff

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

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

[clang] Enclose code in nondebug in #ifndef NDEBUG/#endif (PR #142189)

2025-05-30 Thread Walter Lee via cfe-commits
https://github.com/googlewalt closed https://github.com/llvm/llvm-project/pull/142189 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-30 Thread via cfe-commits
github-actions[bot] wrote: @snarang181 Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bui

[clang] 397fdb1 - Enclose code in nondebug in #ifndef NDEBUG/#endif (#142189)

2025-05-30 Thread via cfe-commits
Author: DeanSturtevant1 Date: 2025-05-30T16:34:55-04:00 New Revision: 397fdb172a515f5cd75aa6bf9ef530ac6eb4dd25 URL: https://github.com/llvm/llvm-project/commit/397fdb172a515f5cd75aa6bf9ef530ac6eb4dd25 DIFF: https://github.com/llvm/llvm-project/commit/397fdb172a515f5cd75aa6bf9ef530ac6eb4dd25.dif

[clang] 0e90a84 - [CIR] Add support for global linkage and visibility (#141973)

2025-05-30 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-05-30T13:36:48-07:00 New Revision: 0e90a846d6dd48c0097ade8e0fa2221a8a6aef6c URL: https://github.com/llvm/llvm-project/commit/0e90a846d6dd48c0097ade8e0fa2221a8a6aef6c DIFF: https://github.com/llvm/llvm-project/commit/0e90a846d6dd48c0097ade8e0fa2221a8a6aef6c.diff L

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

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

[clang] [CIR] Fix dso_local and comdat handling for global vars (PR #142214)

2025-05-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/142214 This change adds extra processing of global variable definitions to correctly set the dso_local and comdat attributes. >From f23b194d46956bd0af34413fa4f4919ea610e643 Mon Sep 17 00:00:00 2001 From: Andy Kaylo

[clang] [CIR] Fix dso_local and comdat handling for global vars (PR #142214)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This change adds extra processing of global variable definitions to correctly set the dso_local and comdat attributes. --- Patch is 20.71 KiB, truncated to 20.00 KiB below, full version: https://github

[clang] 459de73 - [CIR] Upstream converting vector types (#142012)

2025-05-30 Thread via cfe-commits
Author: Amr Hesham Date: 2025-05-30T23:14:11+02:00 New Revision: 459de736a0753e12d8a7a557e5b9d7da93ef7a57 URL: https://github.com/llvm/llvm-project/commit/459de736a0753e12d8a7a557e5b9d7da93ef7a57 DIFF: https://github.com/llvm/llvm-project/commit/459de736a0753e12d8a7a557e5b9d7da93ef7a57.diff LO

[clang] [CIR] Upstream converting vector types (PR #142012)

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

[clang] [CIR] Fix dso_local and comdat handling for global vars (PR #142214)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This change adds extra processing of global variable definitions to correctly set the dso_local and comdat attributes. --- Patch is 20.71 KiB, truncated to 20.00 KiB below, full version: https://github.c

[clang-tools-extra] [clang-doc] add tags to Mustache namespace template (PR #142045)

2025-05-30 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,74 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=mustache --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/index.html + +enum Color { + RED, + BLUE, + GREEN +}; + +class Foo; + +// CHECK: +// CHECK-NEXT:

[clang] [llvm] [HLSL][RootSignature] Metadata generation of RootFlags, RootConstants, RootDescriptors (PR #142010)

2025-05-30 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/142010 >From 34733d6f150360984a01b69ac22313f3bdf4b373 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Mon, 26 May 2025 21:51:36 + Subject: [PATCH 1/9] nfc: rename matches --- clang/test/CodeGenHLSL/RootSignatur

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Henrich Lauko via cfe-commits
@@ -276,4 +276,47 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// VisibilityAttr +//===-

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Henrich Lauko via cfe-commits
@@ -276,4 +276,47 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// VisibilityAttr +//===-

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Henrich Lauko via cfe-commits
@@ -276,4 +276,47 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// VisibilityAttr +//===-

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Henrich Lauko via cfe-commits
@@ -1643,17 +1644,31 @@ def GlobalOp : CIR_Op<"global"> { described by the type of the variable. The `linkage` tracks C/C++ linkage types, currently very similar to LLVM's. +Symbol visibility in `sym_visibility` is defined in terms of MLIR's visibility +and ve

[clang] [clang-format][NFC] Clean up AnnotatingParser::consumeToken() (PR #142104)

2025-05-30 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/142104.diff 1 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+43-58) ``diff diff --git a/clang/lib/Format/TokenAnno

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/141973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Clean up AnnotatingParser::consumeToken() (PR #142104)

2025-05-30 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/142104 None >From b81d2513a22b7492c7d0948235747539628ac768 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 30 May 2025 01:05:23 -0700 Subject: [PATCH] [clang-format][NFC] Clean up AnnotatingParser::consumeToken() -

[clang] [CIR] Add support for global linkage and visibility (PR #141973)

2025-05-30 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/141973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes This is a PoC for now --- Patch is 34.24 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/142120.diff 1 Files Affected: - (modified) clang/bindings/python

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

2025-05-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/142120 This is a PoC for now >From 4669be22f731faf9ce0985aa634166c30c7025c6 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Fri, 30 May 2025 19:54:15 +0900 Subject: [PATCH] [libclang/python] Derive library fu

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

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

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-30 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/141699 >From f0b3184f2d4342eb0aacf3a77671556ac2e57650 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Tue, 27 May 2025 21:32:41 -0400 Subject: [PATCH 01/15] [clang-doc] Refactor error handling to use ExitOnError

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-30 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/141699 >From f0b3184f2d4342eb0aacf3a77671556ac2e57650 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Tue, 27 May 2025 21:32:41 -0400 Subject: [PATCH 01/16] [clang-doc] Refactor error handling to use ExitOnError

[clang] [clang][SPIRV] Fix build issue after c474f8f (PR #141954)

2025-05-30 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts approved this pull request. https://github.com/llvm/llvm-project/pull/141954 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [UBSan][Ignorelist] Expanding =sanitize to fun. (PR #142074)

2025-05-30 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao updated https://github.com/llvm/llvm-project/pull/142074 >From e12e5dfc241bcc9eb28f616e96cc9eebba918b7c Mon Sep 17 00:00:00 2001 From: Qinkun Bao Date: Fri, 30 May 2025 01:21:37 + Subject: [PATCH 1/4] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?= =?UT

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

2025-05-30 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Hmm so on the CI it fails for some reason... locally, the tests passed as usual without me having to change anything at all, except for the one test that checks used library functions. https://github.com/llvm/llvm-project/pull/142120

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-05-30 Thread Erich Keane via cfe-commits
@@ -1556,7 +1556,8 @@ void CXXNameMangler::mangleUnqualifiedName( FD && FD->hasAttr() && GD.getKernelReferenceKind() == KernelReferenceKind::Stub; bool IsOCLDeviceStub = - FD && FD->hasAttr() && + getASTContext().getLangOpts().OpenCL

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-05-30 Thread Erich Keane via cfe-commits
@@ -3541,7 +3541,7 @@ bool FunctionDecl::isExternC() const { } bool FunctionDecl::isInExternCContext() const { - if (hasAttr()) + if (hasAttr() && getASTContext().getLangOpts().OpenCL) erichkeane wrote: Is this really the same thing? Do we prevent enabling

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-05-30 Thread Erich Keane via cfe-commits
@@ -1164,7 +1164,8 @@ void MicrosoftCXXNameMangler::mangleUnqualifiedName(GlobalDecl GD, ->hasAttr())) && GD.getKernelReferenceKind() == KernelReferenceKind::Stub; bool IsOCLDeviceStub = -ND && isa(ND) && ND->hasAttr() && +

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

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

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-05-30 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: 1 set of questions, something I'm concerned about: How do we make sure we don't try to have two kernel languages defined at the same time (I realize that might be messy, but it is something that could happen), then just are checking language version?

[clang-tools-extra] [clang-reorder-fields] Use expanded location for macros (PR #142147)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Vladimir Vuksanovic (vvuksanovic) Changes Fixes macros being replaced instead of their expansion. Closes #52632 --- Full diff: https://github.com/llvm/llvm-project/pull/142147.diff 2 Files Affected: - (modified) clang-tools

[clang-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

2025-05-30 Thread Vladimir Vuksanovic via cfe-commits
https://github.com/vvuksanovic created https://github.com/llvm/llvm-project/pull/142150 Initializer lists with designators, missing elements or omitted braces can now be rewritten. Any missing designators are added and they get sorted according to the new order. ``` struct Foo { int a; in

[clang-tools-extra] [clang-reorder-fields] Prevent rewriting unsupported cases (PR #142149)

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

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (PR #141977)

2025-05-30 Thread Erich Keane via cfe-commits
@@ -979,3 +979,50 @@ Preprocessor::EvaluateDirectiveExpression(IdentifierInfo *&IfNDefMacro, return EvaluateDirectiveExpression(IfNDefMacro, Tok, EvaluatedDefined, CheckForEoD); } + +static std::optional +getCXXStandardLibraryVersion(Prep

[clang-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

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

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (PR #141977)

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

[clang] [CIR][NFC] Fix warning about unhandled type (PR #142059)

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

[clang] [llvm] [PowerPC] frontend get target feature from backend with cpu name (PR #137670)

2025-05-30 Thread David Tenty via cfe-commits
https://github.com/daltenty approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/137670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-reorder-fields] Prevent rewriting unsupported cases (PR #142149)

2025-05-30 Thread Vladimir Vuksanovic via cfe-commits
https://github.com/vvuksanovic created https://github.com/llvm/llvm-project/pull/142149 Add checks to prevent rewriting when doing so might result in incorrect code. The following cases are checked: - There are multiple field declarations in one statement like `int a, b` - Multiple fields are c

[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width= (PR #142073)

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

[clang] ce9cef7 - [flang] Add support for -mprefer-vector-width= (#142073)

2025-05-30 Thread via cfe-commits
Author: Cameron McInally Date: 2025-05-30T07:50:18-06:00 New Revision: ce9cef79ea3f1ee86e4dc674d4c05b2fa8b3c7a8 URL: https://github.com/llvm/llvm-project/commit/ce9cef79ea3f1ee86e4dc674d4c05b2fa8b3c7a8 DIFF: https://github.com/llvm/llvm-project/commit/ce9cef79ea3f1ee86e4dc674d4c05b2fa8b3c7a8.di

[clang] [CIR] Skip generation of a continue block when flattening TernaryOp (PR #142165)

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

[clang] [llvm] [HLSL][RootSignature] Add space, visibility enums to StaticSampler (PR #140306)

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

[clang] [llvm] [HLSL][RootSignature] Add space, visibility enums to StaticSampler (PR #140306)

2025-05-30 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/140306 >From 88af7ce4ebcc09932c292c8463e3d4eca4c9b839 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 16 May 2025 20:33:09 + Subject: [PATCH] [HLSL][RootSignature] Add space, visibility enums to StaticSampl

[clang] [CIR] Enable support for nested struct members in C++ (PR #142205)

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

[clang] [llvm] [HLSL][RootSignature] Metadata generation of RootFlags, RootConstants, RootDescriptors (PR #142010)

2025-05-30 Thread Finn Plummer via cfe-commits
@@ -187,6 +193,46 @@ MDNode *MetadataBuilder::BuildRootSignature() { return MDNode::get(Ctx, GeneratedMetadata); } +MDNode *MetadataBuilder::BuildRootFlags(const RootFlags &Flags) { + IRBuilder<> Builder(Ctx); + return MDNode::get(Ctx, { + MDSt

[clang] [CIR] [NFC] Update CHECK pattern to use regex for new def of RV (PR #142218)

2025-05-30 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/142218 Found this minor nit: it was using a previously defined RV. >From 9199b6bf30ac87a38bb89c33126a101212ea4c9e Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Fri, 30 May 2025 16:16:12 -0500 Subject:

[clang] [CIR] [NFC] Update CHECK pattern to use regex for new def of RV (PR #142218)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clangir Author: None (Andres-Salamanca) Changes Found this minor nit: it was using a previously defined RV. --- Full diff: https://github.com/llvm/llvm-project/pull/142218.diff 1 Files Affected: - (modified) clang/test/CIR/

[clang] [CIR] Fix dso_local and comdat handling for global vars (PR #142214)

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

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-05-30 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: I think I understand the logic behind your approach. * Access between headers is enforced through decl-use, so you cannot access headers from a target that's not your direct dependency. * But some headers shouldn't be accessed outside of a target [regardless of the dependencies],

[clang] [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) (PR #142155)

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

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-05-30 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: What about the approach to provide all_textual.pcm to use.cpp and for clang to find foo.h in all_textual.pcm? It doesn't work right now but I'm not sure that it shouldn't (there can be good reasons why it shouldn't work, tbh). https://github.com/llvm/llvm-project/pull/138227 ___

[clang-tools-extra] [clang-doc] add tags to Mustache namespace template (PR #142045)

2025-05-30 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/142045 >From 7d94cff0737804c8d91712e7758439eb0cc07ff3 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Thu, 29 May 2025 14:44:29 -0700 Subject: [PATCH 1/4] [clang-doc] add tags to Mustache namespace template namespace

[clang-tools-extra] [clang-doc] add tags to Mustache namespace template (PR #142045)

2025-05-30 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/142045 ___ 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 tags to Mustache namespace template (PR #142045)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes namespace-template.mustache only rendered placeholder text. Enum and record tags were added to the template. Now, we can render an index.html for the global namespace and other namespaces. Added

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-05-30 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From eb000ef792f14fa0b59dddce1470ff98409dbe0e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/2] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [llvm] [HLSL][RootSignature] Metadata generation of RootFlags, RootConstants, RootDescriptors (PR #142010)

2025-05-30 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. https://github.com/llvm/llvm-project/pull/142010 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [cmake][clang-tools] Make split-file a dependency for tests (PR #142048)

2025-05-30 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/142048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream VectorType support in helper function (PR #142222)

2025-05-30 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/14 This change upstream supports VectorType in the helper function and adds a test for the Vector type of FP binary operations Issue https://github.com/llvm/llvm-project/issues/136487 >From 706cc1150052e2faf

[clang] [CIR] Upstream VectorType support in helper function (PR #142222)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change upstream supports VectorType in the helper function and adds a test for the Vector type of FP binary operations Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https:/

[clang] [CIR] Upstream VectorType support in helper function (PR #142222)

2025-05-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change upstream supports VectorType in the helper function and adds a test for the Vector type of FP binary operations Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-05-30 Thread Andy Kaylor via cfe-commits
@@ -14,6 +14,105 @@ namespace clang::CIRGen { +/// Record with information about how a bitfield should be accessed. This is +/// very similar to what LLVM codegen does, once CIR evolves it's possible we +/// can use a more higher level representation. +/// +/// Often we lay o

[clang] [Clang][Sema] Add fortify warnings for stpcpy (PR #141646)

2025-05-30 Thread Sharjeel Khan via cfe-commits
https://github.com/Sharjeel-Khan edited https://github.com/llvm/llvm-project/pull/141646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Enable support for nested struct members in C++ (PR #142205)

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

[clang-tools-extra] f1886b1 - [cmake][clang-tools] Make split-file a dependency for tests (#142048)

2025-05-30 Thread via cfe-commits
Author: Paul Kirth Date: 2025-05-30T16:02:43-07:00 New Revision: f1886b1d6d439a2b1adeb6ccdfe157532eed69e1 URL: https://github.com/llvm/llvm-project/commit/f1886b1d6d439a2b1adeb6ccdfe157532eed69e1 DIFF: https://github.com/llvm/llvm-project/commit/f1886b1d6d439a2b1adeb6ccdfe157532eed69e1.diff LO

[clang-tools-extra] [cmake][clang-tools] Make split-file a dependency for tests (PR #142048)

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

<    1   2   3   4