[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/148622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/146422 >From 69049bfcd81134f3787d1ee14ab3e5c6d91eb87d Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Thu, 3 Jul 2025 12:46:58 -0700 Subject: [PATCH 1/4] [clang][modules] Serialize `CodeGenOptions` --- clang-to

[clang-tools-extra] [clang-tidy] Speed up `misc-header-include-cycle` (PR #148757)

2025-07-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/148757 >From 7cab196f263cc4d1787fe74ae49d4340fcb88624 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 13 Jul 2025 11:30:49 -0700 Subject: [PATCH 1/2] [clang-tidy] Speed up `misc-header-include-cycle` --

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B created https://github.com/llvm/llvm-project/pull/148918 Since #116709 more libc++ code relies on std::declval() and it broke some CUDA compilations. The new wrapper adds GPU-side overloads for the declval() helper functions which allows it to continue working when

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-15 Thread Tom Honermann via cfe-commits
@@ -476,6 +476,48 @@ The SYCL kernel in the previous code sample meets these expectations. }]; } +def SYCLExternalDocs : Documentation { + let Category = DocCatFunction; + let Heading = "sycl_external"; + let Content = [{ +The ``sycl_external`` attribute indicates that a

[clang-tools-extra] [clang-tidy] Speed up `misc-header-include-cycle` (PR #148757)

2025-07-15 Thread Victor Chernyakin via cfe-commits
@@ -85,36 +81,26 @@ class CyclicDependencyCallbacks : public PPCallbacks { if (FileType != clang::SrcMgr::C_User) return; -llvm::StringRef FileName = llvm::sys::path::filename(FilePath); -NextToEnter = {FileID(), FileName, Range.getBegin()}; +NextToEnter

[clang] [llvm] [RISCV] Implement Builtins for XAndesBFHCvt extension. (PR #148804)

2025-07-15 Thread Craig Topper via cfe-commits
topperc wrote: Can't we use the fptrunc and fpext IR instructions for this? https://github.com/llvm/llvm-project/pull/148804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add support for `v_rcp_bf16` on gfx1250 (PR #148916)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Shilei Tian (shiltian) Changes Co-authored-by: Mekhanoshin, Stanislav --- Patch is 67.39 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/148916.diff 23

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-15 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/144745 >From 84fa3c97ea04f652729603bfaffa196e03a4e026 Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Fri, 13 Jun 2025 12:45:34 -0700 Subject: [PATCH] Fix IP2State tables style: revert one change Adjust tests ad

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
@@ -9293,7 +9344,10 @@ bool LValueExprEvaluator::VisitArraySubscriptExpr(const ArraySubscriptExpr *E) { } bool LValueExprEvaluator::VisitUnaryDeref(const UnaryOperator *E) { - return evaluatePointer(E->getSubExpr(), Result); + bool Success = evaluatePointer(E->getSubExpr(),

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
@@ -5242,7 +5281,10 @@ static bool EvaluateVarDecl(EvalInfo &Info, const VarDecl *VD) { if (InitE->isValueDependent()) return false; - if (!EvaluateInPlace(Val, Info, Result, InitE)) { + if (VD->getType()->isReferenceType() && shafik wrote: Can we a

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
@@ -10912,9 +10966,18 @@ bool RecordExprEvaluator::VisitCXXParenListOrInitListExpr( isa(Init)); APValue &FieldVal = Result.getStructField(Field->getFieldIndex()); -if (!EvaluateInPlace(FieldVal, Info, Subobject, Init) || -(Fie

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Mostly looks good but I think we need more testing and some additional comments. https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -73,8 +73,8 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> { } def LoweringPrepare : Pass<"cir-lowering-prepare"> { - let summary = "Lower to more fine-grained CIR operations before lowering to -other dialects"; + let summary = "Lower to more fine-grained CIR operatio

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/146422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-07-15 Thread via cfe-commits
https://github.com/ykhatav edited https://github.com/llvm/llvm-project/pull/146729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

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

[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)

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

[clang] [clang][CodeGen] Set `dead_on_return` on indirect pointer arguments (PR #148159)

2025-07-15 Thread Antonio Frighetto via cfe-commits
@@ -2852,8 +2852,17 @@ void CodeGenModule::ConstructAttributeList(StringRef Name, if (AI.getInReg()) Attrs.addAttribute(llvm::Attribute::InReg); - if (AI.getIndirectByVal()) + // Depending on the ABI, this may be either a byval or a dead_on_return +

[clang] [clang] Reduce the size of ParsedAttributesView and AttributePool (PR #148726)

2025-07-15 Thread Erich Keane via cfe-commits
@@ -808,7 +808,7 @@ class AttributePool { class ParsedAttributesView { friend class AttributePool; - using VecTy = llvm::SmallVector; + using VecTy = llvm::SmallVector; erichkeane wrote: Curious why '2' was found? Did you see perf-benefit from 2 over 0(a

[clang] [KeyInstr][Clang][NFC] Add test for array cookie store (PR #146517)

2025-07-15 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/146517 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-02` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/9297 Here is the relevant piece of the bui

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread via cfe-commits
@@ -89,14 +89,53 @@ they'll be tracked here. The focus of this documentation is on the scope and features of the tools for other tool developers; each tool should provide its own user-focused documentation. -``clang-tidy`` +``Clang-Doc`` +- + +`clang-doc

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

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

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/148690 >From ea41b2d036ec9f857be107408b3a2b557d377304 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Mon, 14 Jul 2025 10:44:56 -0700 Subject: [PATCH 1/6] [Clang] FunctionEffects: Make a separate diagnostic group fo

[clang-tools-extra] [clang-tidy] Speed up `misc-header-include-cycle` (PR #148757)

2025-07-15 Thread Victor Chernyakin via cfe-commits
localspook wrote: It doesn't seem like preprocessor-based checks appear in the profile. You can see this with an existing preprocessor check; running `clang-tidy --checks=-*,readability-redundant-preprocessor -enable-check-profile` produces no output. https://github.com/llvm/llvm-project/pull

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa updated https://github.com/llvm/llvm-project/pull/147060 >From d176aa31c18a4293be9b49da671270d349a323b7 Mon Sep 17 00:00:00 2001 From: juanbesa Date: Thu, 26 Jun 2025 07:42:55 -0700 Subject: [PATCH 1/9] Copied over everything --- .../readability/QualifiedAutoCheck.

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa edited https://github.com/llvm/llvm-project/pull/147060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`. matched against only the type name (i.e. ``Type``). E.g. to suppress reports for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string. The default is an empty string. + +.. option:

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -109,10 +109,32 @@ Note in the LLVM alias, the default value is `false`. auto bar = foo(); -If RespectOpaqueTypes is set to `false`, it will be transformed into: +If IgnoreAliasing is set to `true`, it will be transformed into: .. code-block:: c++ auto *bar = f

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -109,10 +109,32 @@ Note in the LLVM alias, the default value is `false`. auto bar = foo(); -If RespectOpaqueTypes is set to `false`, it will be transformed into: +If IgnoreAliasing is set to `true`, it will be transformed into: .. code-block:: c++ auto *bar = f

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
JuanBesa wrote: Updated to `IgnoreAliasing` name for the option (also updated the title here) Merged the testfile so that everythign runs in one file Added the Limitations section for the case discussed. https://github.com/llvm/llvm-project/pull/147060

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/148690 >From ea41b2d036ec9f857be107408b3a2b557d377304 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Mon, 14 Jul 2025 10:44:56 -0700 Subject: [PATCH 1/5] [Clang] FunctionEffects: Make a separate diagnostic group fo

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: Clang :: Driver/DTLTO/dtlto.c test is failing in our toolchain builders. See full log here: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8709270904931005265/+/u/clang/tests/stdout ``` Exit Code: 1 Command Output (stderr): -- /b/s/w/ir/x/w/llvm_build/bin/clan

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread via cfe-commits
bd1976bris wrote: @Prabhuk I might need some help here. Looking at the output for the `Clang :: Driver/DTLTO/dtlto.c test` on your buildbot LLD is being invoked with the argument `"--thinlto-remote-compiler=/b/s/w/ir/x/w/llvm_build/bin/llvm"`. That is clearly not the location of a Clang compil

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148871)

2025-07-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148871 getArgAsExpr already returns Expr *. >From 2462f593876d1b306d56341581602b16e5649218 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 15 Jul 2025 08:17:35 -0700 Subject: [PATCH] [Sema] Remove unnece

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148871)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getArgAsExpr already returns Expr *. --- Full diff: https://github.com/llvm/llvm-project/pull/148871.diff 4 Files Affected: - (modified) clang/lib/Sema/SemaDeclAttr.cpp (+1-1) - (modified) clang/li

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`. matched against only the type name (i.e. ``Type``). E.g. to suppress reports for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string. The default is an empty string. + +.. option:

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jul 15, 4:07 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/148865). https://github.com/llvm/llvm-project/pull/148865 _

[clang] be4d754 - [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (#148865)

2025-07-15 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-15T18:09:30+02:00 New Revision: be4d754fe6c79a9cc994703157979cbad01a743a URL: https://github.com/llvm/llvm-project/commit/be4d754fe6c79a9cc994703157979cbad01a743a DIFF: https://github.com/llvm/llvm-project/commit/be4d754fe6c79a9cc994703157979cbad01a743a.diff

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/148865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 55f1b91 - [Clang] Fix a crash when parsing an invalid `decltype` (#148798)

2025-07-15 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-07-15T18:09:51+02:00 New Revision: 55f1b91d50a0f3706ad62d497d3c8a5ec572d59e URL: https://github.com/llvm/llvm-project/commit/55f1b91d50a0f3706ad62d497d3c8a5ec572d59e DIFF: https://github.com/llvm/llvm-project/commit/55f1b91d50a0f3706ad62d497d3c8a5ec572d59e.diff

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Amr Hesham via cfe-commits
@@ -73,8 +73,8 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> { } def LoweringPrepare : Pass<"cir-lowering-prepare"> { - let summary = "Lower to more fine-grained CIR operations before lowering to -other dialects"; + let summary = "Lower to more fine-grained CIR operatio

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Bruno Cardoso Lopes via cfe-commits
@@ -515,5 +515,35 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> { ]; } +//===--===// +// AddressPointAttr +//===--==

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-clang` running on `bolt-worker` while building `clang` at step 6 "test-build-clang-bolt-stage2-clang-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/113/builds/8104 Here is

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Andy Kaylor via cfe-commits
@@ -73,8 +73,8 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> { } def LoweringPrepare : Pass<"cir-lowering-prepare"> { - let summary = "Lower to more fine-grained CIR operations before lowering to -other dialects"; + let summary = "Lower to more fine-grained CIR operatio

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/147663 >From 1e51f7bd82fe91d6d13bee6f634d7401a3ddbc8a Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 8 Jul 2025 23:35:26 -0700 Subject: [PATCH 1/2] [clang] Fix pointer comparisons between pointers to con

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148871)

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

[clang] [llvm] KISHAN KUMAR S D, HRUTHIK K K , KIRAN V-R V COLLEGE OF ENGINEERING(CSE 6TH SEM)-Implement Clang identifiers to retrieve the mangled name and the fully qualified name of functions #5 (PR

2025-07-15 Thread KISHAN KUMAR S D via cfe-commits
https://github.com/kishan-kumar-s-d-444 updated https://github.com/llvm/llvm-project/pull/145042 >From fdf7f676690f7af5109970f239eba8f34850442f Mon Sep 17 00:00:00 2001 From: KISHAN KUMAR S D Date: Fri, 20 Jun 2025 19:35:57 +0530 Subject: [PATCH 1/8] Update Expr.h --- clang/include/clang/AST/

[clang] [CIR][NFC] Fix typo in assertion message (Must) (PR #148704)

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

[clang] [clang][bytecode] Make union activation more granular (PR #148835)

2025-07-15 Thread Timm Baeder via cfe-commits
tbaederr wrote: A little better: https://llvm-compile-time-tracker.com/compare.php?from=952f225a7b575f1a431f8eed391605e7acc0d072&to=7b226fba8d1ff31356b6a6a62ee810ed8d7f98fd&stat=instructions:u https://github.com/llvm/llvm-project/pull/148835 ___ cfe-c

[clang] 67aee6b - [CIR] Refactor include guards to use a consistent naming (NFC) (#148849)

2025-07-15 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-15T16:15:49+02:00 New Revision: 67aee6bcb8c3f12b66631c5e4480717053c51157 URL: https://github.com/llvm/llvm-project/commit/67aee6bcb8c3f12b66631c5e4480717053c51157 DIFF: https://github.com/llvm/llvm-project/commit/67aee6bcb8c3f12b66631c5e4480717053c51157.diff

[clang] [llvm] Remove Native Client support (PR #133661)

2025-07-15 Thread Derek Schuff via cfe-commits
dschuff wrote: NaCl deprecation and removal from Chromium is now complete, so we can remove NaCl support from LLVM now. I don't know whether there might still be any other users of bundle alignment (I have heard of 1 or 2 over the years). If so, maybe we can figure something out for their use

[clang] [clang][bytecode] Make union activation more granular (PR #148835)

2025-07-15 Thread Timm Baeder via cfe-commits
tbaederr wrote: Unfortunately some negative impact on compile times: https://llvm-compile-time-tracker.com/compare.php?from=8fb3c271dafd158d36a17212ab609294d725c230&to=51547a1e34c8377d16090930b6af5509dd164a05&stat=instructions:u https://github.com/llvm/llvm-project/pull/148835 _

[clang] [CIR] Add rotate operation (PR #148426)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -2847,6 +2847,45 @@ def ByteSwapOp : CIR_BitOpBase<"byte_swap", CIR_UIntOfWidths<[16, 32, 64]>> { }]; } +//===--===// +// RotateOp +//===--

[clang] [libc] [llvm] [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (PR #144383)

2025-07-15 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse updated https://github.com/llvm/llvm-project/pull/144383 >From 63654fb7cf702a1d0c5fb5f8d526e926ec5a3470 Mon Sep 17 00:00:00 2001 From: Jeremy Morse Date: Fri, 13 Jun 2025 15:39:53 +0100 Subject: [PATCH] [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction T

[clang] [Clang] Fix a crash when parsing an invalid `decltype` (PR #148798)

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

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 1bb281fa82bbec8ed7759eef5ddf5b5f4991770c Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-15 Thread Djordje Todorovic via cfe-commits
djtodoro wrote: Is it okay to go as is? https://github.com/llvm/llvm-project/pull/146913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [llvm] [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (PR #144383)

2025-07-15 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse closed https://github.com/llvm/llvm-project/pull/144383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5977766 - [KeyInstr][Clang][NFC] Add test for array cookie store (#146517)

2025-07-15 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-07-15T14:21:04+01:00 New Revision: 5977766bf6753c525ccc12856ce159c5e45a8b06 URL: https://github.com/llvm/llvm-project/commit/5977766bf6753c525ccc12856ce159c5e45a8b06 DIFF: https://github.com/llvm/llvm-project/commit/5977766bf6753c525ccc12856ce159c5e45a8b

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
tyan0 wrote: > It looks like some linker options might still be missing or need adjustments: > > * `--enable-auto-import`, `--disable-high-entropy-va`, and > `--dll-search-prefix=cyg` are generally required on Cygwin. > * `-pie` has no effect when targeting PE/COFF and can be ignored. > > Also

[clang] 57a5f9c - [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (#144383)

2025-07-15 Thread via cfe-commits
Author: Jeremy Morse Date: 2025-07-15T15:34:10+01:00 New Revision: 57a5f9c47e063701ac7d13a5efd993e839e148eb URL: https://github.com/llvm/llvm-project/commit/57a5f9c47e063701ac7d13a5efd993e839e148eb DIFF: https://github.com/llvm/llvm-project/commit/57a5f9c47e063701ac7d13a5efd993e839e148eb.diff

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-15 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/146813 >From d98e3785a144ada9881cdbe24c86f273850eca20 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 3 Jul 2025 02:02:04 +0100 Subject: [PATCH 1/6] Add support for true globals. --- llvm/lib/Transforms/HipStdPa

[clang] [llvm] Remove Native Client support (PR #133661)

2025-07-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/133661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Speed up `misc-header-include-cycle` (PR #148757)

2025-07-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/148757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread Paul Kirth via cfe-commits
ilovepi wrote: > @Prabhuk I might need some help here. Looking at the output for the `Clang :: > Driver/DTLTO/dtlto.c test` on your buildbot LLD is being invoked with the > argument `"--thinlto-remote-compiler=/b/s/w/ir/x/w/llvm_build/bin/llvm"`. > That is clearly not the location of a Clang c

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-15 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: /cherry-pick 20c8e3c2a4744524396cc473a370cfb7855850b6 https://github.com/llvm/llvm-project/pull/147663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 approved this pull request. https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove Native Client support (PR #133661)

2025-07-15 Thread Brad Smith via cfe-commits
brad0 wrote: @MaskRay Let me know if it's Ok to go ahead. https://github.com/llvm/llvm-project/pull/133661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add diagnostic for usage of implicit constructor with pointer to bool convertion (PR #143990)

2025-07-15 Thread Aaron Ballman via cfe-commits
@@ -4397,6 +4397,9 @@ def ext_ms_impcast_fn_obj : ExtWarn< "implicit conversion between pointer-to-function and pointer-to-object is a " "Microsoft extension">, InGroup; +def warn_imp_constructor_pointer_to_bool : Warning< +"implicit conversion from %0 to %1 calls %q2;

[clang] 20c8e3c - [clang] Fix pointer comparisons between pointers to constexpr-unknown (#147663)

2025-07-15 Thread via cfe-commits
Author: Eli Friedman Date: 2025-07-15T10:01:27-07:00 New Revision: 20c8e3c2a4744524396cc473a370cfb7855850b6 URL: https://github.com/llvm/llvm-project/commit/20c8e3c2a4744524396cc473a370cfb7855850b6 DIFF: https://github.com/llvm/llvm-project/commit/20c8e3c2a4744524396cc473a370cfb7855850b6.diff

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic closed https://github.com/llvm/llvm-project/pull/147663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic milestoned https://github.com/llvm/llvm-project/pull/147663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6260d8f - [C++] Fix a failed assertion with nullability checking (#148881)

2025-07-15 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-07-15T13:06:45-04:00 New Revision: 6260d8ff8277d35ff783ba7c6febb1489eb94b24 URL: https://github.com/llvm/llvm-project/commit/6260d8ff8277d35ff783ba7c6febb1489eb94b24 DIFF: https://github.com/llvm/llvm-project/commit/6260d8ff8277d35ff783ba7c6febb1489eb94b24.diff

[clang] [C++] Fix a failed assertion with nullability checking (PR #148881)

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/148881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Allow array alignment on non-rectangular arrays (PR #143781)

2025-07-15 Thread Ben Dunkin via cfe-commits
bdunkin wrote: I will test my changes against those issues and see what happens. I would very much like to keep this feature, and am willing to spend some time to make it right. The issue of not changing existing tests still seems unresolved though. What happens if fixing some of those issues

[clang] Fix adding support for -X flag in Baremetal toolchain (PR #147804)

2025-07-15 Thread Petr Hosek via cfe-commits
@@ -613,8 +613,8 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA, return; } + CmdArgs.push_back("-X"); petrhosek wrote: I don't think this is a correct fix. In other drivers, we only set `-X` for RISC-V (and LoongArch). Ho

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Nikolas Klauser via cfe-commits
@@ -59,7 +59,7 @@ constexpr bool test() { { // bidi -int buffer[2] = {1, 2}; +int buffer[3] = {1, 2, 3}; philnik777 wrote: Ah, shit. You can't actually get the iterator. I think this is fine as-is. https://github.com/llvm/llvm-project/pull/143

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread via cfe-commits
bd1976bris wrote: > We use the multicall library. that is in fact our clang and lld (multicall is > basically like a busybox config). clang and lld exist in the build directory > and install as symlinks to the llvm binary. It's well supported in the CMake, > and has been used by us and others

[clang] [llvm] [AMDGPU] Add support for `v_rcp_bf16` on gfx1250 (PR #148916)

2025-07-15 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec approved this pull request. https://github.com/llvm/llvm-project/pull/148916 ___ 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 ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/148923 Passing RepositoryURL around as an optional reference triggered stack-use-after-return complaints. >From 18cda3f5075648db64d4105d4615a3008efb8fa4 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Tue, 15 Jul 202

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 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 -- clang/lib/Headers/cuda_wrappers/__utility/declval.h ```

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Passing RepositoryURL around as an optional reference triggered stack-use-after-return complaints. --- Full diff: https://github.com/llvm/llvm-project/pull/148923.diff 1 Files Affected: - (modif

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

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Justin Stitt (JustinStitt) Changes Introduce `OverflowBehaviorType` (OBT), a new type attribute in Clang that provides developers with fine-grained control over the overflow behavior of integer types. This feature allows for a more

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread Erick Velez via cfe-commits
evelez7 wrote: * **#148923** https://app.graphite.dev/github/pr/llvm/llvm-project/148923?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/1489

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

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

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Artem Belevich (Artem-B) Changes Since #116709 more libc++ code relies on std::declval() and it broke some CUDA compilations. The new wrapper adds GPU-side overloads for the declval() helper functions which allows it to continue working

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-15 Thread Sarah Spall via cfe-commits
@@ -46,6 +46,47 @@ static bool CheckAllArgsHaveSameType(Sema *S, CallExpr *TheCall) { return false; } +static bool CheckAllArgTypesAreCorrect( +Sema *S, CallExpr *TheCall, +llvm::ArrayRef< +llvm::function_ref> +Checks) { + unsigned NumArgs = TheCall

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-15 Thread Sarah Spall via cfe-commits
@@ -46,6 +46,47 @@ static bool CheckAllArgsHaveSameType(Sema *S, CallExpr *TheCall) { return false; } +static bool CheckAllArgTypesAreCorrect( +Sema *S, CallExpr *TheCall, +llvm::ArrayRef< +llvm::function_ref> +Checks) { + unsigned NumArgs = TheCall

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-15 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148141 >From c9cf9873e35205f9715acd545680713c0dd912aa Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 01:04:04 -0700 Subject: [PATCH 1/3] =?UTF-8?q?AMDGPU:=20Remove=20"gws"=20from=20the=20?= =?U

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread via cfe-commits
https://github.com/bd1976bris updated https://github.com/llvm/llvm-project/pull/147265 >From 737bb8c03620d668299a9b85d34eb659a30eebfb Mon Sep 17 00:00:00 2001 From: Dunbobbin Date: Thu, 5 Jun 2025 17:10:31 +0100 Subject: [PATCH 01/17] [DTLTO][Clang] Add support for Integrated Distributed ThinL

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread Fangrui Song via cfe-commits
@@ -2,42 +2,47 @@ /// Check DTLTO options are forwarded to the linker. -// RUN: echo "--target=x86_64-linux-gnu \ -// RUN: -Xthinlto-distributor=distarg1 \ -// RUN: -Xthinlto-distributor=distarg2,distarg3 \ -// RUN: -fuse-ld=lld" > %t.rsp - /// Check that options are f

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/147265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-07-15 Thread Ryotaro Kasuga via cfe-commits
@@ -5237,8 +5237,8 @@ width/count of the set of target architectures supported by your application. ... } -Specifying a width/count of 1 disables the optimization, and is equivalent to -``vectorize(disable)`` or ``interleave(disable)``. kasuga-fj wrote:

[clang] [WIP] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-07-15 Thread Ryotaro Kasuga via cfe-commits
@@ -643,9 +650,7 @@ void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx, case LoopHintAttr::Disable: switch (Option) { case LoopHintAttr::Vectorize: -// Disable vectorization by specifying a width of 1. -setVectorizeWidth(1); -

[clang] [WIP] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-07-15 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj edited https://github.com/llvm/llvm-project/pull/135163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-15 Thread via cfe-commits
@@ -2,42 +2,47 @@ /// Check DTLTO options are forwarded to the linker. -// RUN: echo "--target=x86_64-linux-gnu \ -// RUN: -Xthinlto-distributor=distarg1 \ -// RUN: -Xthinlto-distributor=distarg2,distarg3 \ -// RUN: -fuse-ld=lld" > %t.rsp - /// Check that options are f

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
@@ -107,3 +110,282 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList &DriverArgs, addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include"); addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include/w32api"); } + +static bool getStaticPIE(con

<    1   2   3   4   5   >