[clang] [clang][deps] Add module map describing compiled module to file dependencies. (PR #160226)

2025-11-19 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai closed https://github.com/llvm/llvm-project/pull/160226 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b39a9db - [clang][deps] Add module map describing compiled module to file dependencies. (#160226)

2025-11-19 Thread via cfe-commits
Author: Volodymyr Sapsai Date: 2025-11-19T20:17:43-08:00 New Revision: b39a9db3abc7abfa033a728ef29b5e5d3beb1cb5 URL: https://github.com/llvm/llvm-project/commit/b39a9db3abc7abfa033a728ef29b5e5d3beb1cb5 DIFF: https://github.com/llvm/llvm-project/commit/b39a9db3abc7abfa033a728ef29b5e5d3beb1cb5.di

[clang] [compiler-rt] [llvm] [X86] Sync multiversion features with libgcc and refactor internal feature tables (PR #168750)

2025-11-19 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > # 🐧 Linux x64 Test Results > The build failed before running any tests. Click on a failure below to see > the details. > > lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/X86TargetParser.cpp.o > ``` > FAILED: lib/TargetParser/CMakeFiles/LLVMTargetParser.dir/X86TargetParser.

[clang] [clang][bytecode] Implement case ranges (PR #168418)

2025-11-19 Thread Timm Baeder via cfe-commits
Marius =?utf-8?q?Dörner?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/168418 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7198279 - [clang][bytecode] Implement case ranges (#168418)

2025-11-19 Thread via cfe-commits
Author: marius doerner Date: 2025-11-20T04:50:32+01:00 New Revision: 7198279707cb77b7a81b54184a6293a49af16f7c URL: https://github.com/llvm/llvm-project/commit/7198279707cb77b7a81b54184a6293a49af16f7c DIFF: https://github.com/llvm/llvm-project/commit/7198279707cb77b7a81b54184a6293a49af16f7c.diff

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/168812 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-19 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: CC @alazarev @padriff https://github.com/llvm/llvm-project/pull/168812 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/168812 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Vitaly Buka (vitalybuka) Changes We don't have good use case for that, so revert it before we stuck with this API. This reverts commit a1209d868632b8aea10450cd2323848ab0b6776a. --- Full diff: https://github.com/llvm/llvm-project

[clang] [compiler-rt] Revert "[ubsan_minimal] Allow UBSan handler from Minimal runtime to accept arguments (#152192)" (PR #168812)

2025-11-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/168812 We don't have good use case for that, so revert it before we stuck with this API. This reverts commit a1209d868632b8aea10450cd2323848ab0b6776a. >From ba875db43f8dcdec89e568be22603e6c2f93f887 Mon Sep 17 00:

[clang] [SemaCXX] Fixed defaulted equality operator deletion issue (#97087)[SemaCXX] Fix defaulted equality operator being incorrectly deleted when using namespace (llvm#97087) (PR #166996)

2025-11-19 Thread Shafik Yaghmour via cfe-commits
@@ -8913,6 +8915,9 @@ bool Sema::CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *FD, // Perform any unqualified lookups we're going to need to default this // function. + if (!S) shafik wrote: Based on @zygoloid comment: https://github.com/l

[clang] [SemaCXX] Fixed defaulted equality operator deletion issue (#97087)[SemaCXX] Fix defaulted equality operator being incorrectly deleted when using namespace (llvm#97087) (PR #166996)

2025-11-19 Thread Erich Keane via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s +// expected-no-diagnostics + +struct X {}; +namespace NS { +bool operator==(X, X); +} +using namespace NS; +struct Y { +X x; +friend bool operator==(Y, Y); +}; +bool operator==(Y, Y) = default; -

[clang] [SemaCXX] Fixed defaulted equality operator deletion issue (#97087)[SemaCXX] Fix defaulted equality operator being incorrectly deleted when using namespace (llvm#97087) (PR #166996)

2025-11-19 Thread Erich Keane via cfe-commits
@@ -8913,6 +8915,9 @@ bool Sema::CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *FD, // Perform any unqualified lookups we're going to need to default this // function. + if (!S) erichkeane wrote: This doesn't align right with the comment. T

[clang] [SemaCXX] Fixed defaulted equality operator deletion issue (#97087)[SemaCXX] Fix defaulted equality operator being incorrectly deleted when using namespace (llvm#97087) (PR #166996)

2025-11-19 Thread Erich Keane via cfe-commits
@@ -8262,6 +8262,8 @@ class DefaultedComparisonAnalyzer /// resolution [...] CandidateSet.exclude(FD); + auto &Fns = this->Fns; erichkeane wrote: This has 2 problems: First, it is horrifyingly subtle (with the shadowing). Second, you have to us

[clang] [SemaCXX] Fixed defaulted equality operator deletion issue (#97087)[SemaCXX] Fix defaulted equality operator being incorrectly deleted when using namespace (llvm#97087) (PR #166996)

2025-11-19 Thread Erich Keane via cfe-commits
@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s erichkeane wrote: These two should just be in the same test file, there is no reason to have two separate tests for this. Perhaps find an existing test file for this to live in? https://gi

[clang] [Sema] Suggest missing format attributes (PR #166738)

2025-11-19 Thread via cfe-commits
https://github.com/apple-fcloutier edited https://github.com/llvm/llvm-project/pull/166738 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Suggest missing format attributes (PR #166738)

2025-11-19 Thread via cfe-commits
@@ -7064,40 +7078,68 @@ static void CheckMissingFormatAttributes(Sema *S, FormatStringType FormatType, : 0; break; case Sema::FormatArgumentPassingKind::FAPK_Elsewhere: -// Args are not passed to the callee. -return; +// The calle

[clang] [Sema] Suggest missing format attributes (PR #166738)

2025-11-19 Thread via cfe-commits
https://github.com/apple-fcloutier requested changes to this pull request. Thanks for the format_matches support (and reviewing again, I now see that ReleaseNotes.rst was updated very early on). The last bits that I'm still tracking: 1. -Wmissing-format-attribute should be a subgroup of -Wform

[clang] [Sema] Suggest missing format attributes (PR #166738)

2025-11-19 Thread via cfe-commits
@@ -7012,15 +7013,28 @@ bool Sema::CheckFormatString(const FormatMatchesAttr *Format, return false; } -static void CheckMissingFormatAttributes(Sema *S, FormatStringType FormatType, - unsigned FormatIdx, unsigned FirstArg, -

[clang] [Sema] Suggest missing format attributes (PR #166738)

2025-11-19 Thread via cfe-commits
https://github.com/apple-fcloutier edited https://github.com/llvm/llvm-project/pull/166738 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Remove unused headers (PR #168806)

2025-11-19 Thread Erick Velez via cfe-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/168806 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Remove unused headers (PR #168806)

2025-11-19 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 3053 tests passed * 7 tests skipped https://github.com/llvm/llvm-project/pull/168806 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listin

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #167552)

2025-11-19 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/167552 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Remove unused headers (PR #168806)

2025-11-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Removes unused headers or replaces them with headers that directly provide the symbol instead. For example, `Serialize.h` included `AST.h`, but it was actually `Serialize.cpp` that needed concept ex

[clang-tools-extra] [clang-doc] Remove unused headers (PR #168806)

2025-11-19 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/168806 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Remove unused headers (PR #168806)

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

[clang-tools-extra] [clang-doc] Remove unused headers (PR #168806)

2025-11-19 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/168806 Removes unused headers or replaces them with headers that directly provide the symbol instead. For example, `Serialize.h` included `AST.h`, but it was actually `Serialize.cpp` that needed concept expressions, so

[clang] [clang][bytecode] Check types when loading values (PR #165385)

2025-11-19 Thread Shafik Yaghmour via cfe-commits
@@ -101,6 +101,7 @@ inline constexpr bool isSignedType(PrimType T) { enum class CastKind : uint8_t { Reinterpret, + ReinterpretLike, shafik wrote: What does reinterpret like mean? https://github.com/llvm/llvm-project/pull/165385 _

[clang] [clang][TypePrinter] Replace AppendScope with printNestedNameSpecifier (PR #168534)

2025-11-19 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. LGTM, nice cleanup. https://github.com/llvm/llvm-project/pull/168534 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][TypePrinter] Replace AppendScope with printNestedNameSpecifier (PR #168534)

2025-11-19 Thread Adrian Prantl via cfe-commits
https://github.com/adrian-prantl approved this pull request. >From a debug info perspective this change LGTM. https://github.com/llvm/llvm-project/pull/168534 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailma

[clang] [clang][deps] Enable calling `DepScanFile::getBuffer()` repeatedly (PR #168789)

2025-11-19 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 closed https://github.com/llvm/llvm-project/pull/168789 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8359513 - [clang][deps] Enable calling `DepScanFile::getBuffer()` repeatedly (#168789)

2025-11-19 Thread via cfe-commits
Author: Jan Svoboda Date: 2025-11-19T16:03:30-08:00 New Revision: 835951325ec7aaf3336b19b53c9978d986e260df URL: https://github.com/llvm/llvm-project/commit/835951325ec7aaf3336b19b53c9978d986e260df DIFF: https://github.com/llvm/llvm-project/commit/835951325ec7aaf3336b19b53c9978d986e260df.diff L

[clang] [CIR][X86] Add support for kunpck builtins (PR #168757)

2025-11-19 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,92 @@ +// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-unknown-linux -target-feature +avx512f -target-feature +avx512bw -fclangir -emit-cir -o %t.cir -Wall -Werror +// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s +//

[clang] [CIR][X86] Add support for kunpck builtins (PR #168757)

2025-11-19 Thread Andy Kaylor via cfe-commits
@@ -33,6 +33,28 @@ static mlir::Value emitIntrinsicCallOp(CIRGenFunction &cgf, const CallExpr *e, .getResult(); } +static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Value mask, andykaylor wrote: This is function is also being added in

[clang] [CIR][X86] Add support for kunpck builtins (PR #168757)

2025-11-19 Thread Andy Kaylor via cfe-commits
@@ -33,6 +33,28 @@ static mlir::Value emitIntrinsicCallOp(CIRGenFunction &cgf, const CallExpr *e, .getResult(); } +static mlir::Value getMaskVecValue(CIRGenBuilderTy &builder, mlir::Value mask, + unsigned numElems) { + auto maskIntType

[clang] [Arm64EC][clang] Implement varargs support in clang. (PR #152411)

2025-11-19 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111348 tests passed * 4422 tests skipped https://github.com/llvm/llvm-project/pull/152411 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX512 mask predicate intrinsics to be used in constexpr (PR #165054)

2025-11-19 Thread via cfe-commits
https://github.com/sskzakaria updated https://github.com/llvm/llvm-project/pull/165054 >From 00115fd82621a909b6ee8bf049159fd09da3cba1 Mon Sep 17 00:00:00 2001 From: sskzakaria Date: Fri, 24 Oct 2025 18:01:57 -0400 Subject: [PATCH 01/11] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - a

[clang] [CIR] Upstream CIR codegen for `lzcnt` and `tzcnt` x86 builtins (PR #168479)

2025-11-19 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/168479 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 80f862b - [CIR] Upstream CIR codegen for `lzcnt` and `tzcnt` x86 builtins (#168479)

2025-11-19 Thread via cfe-commits
Author: Haocong Lu Date: 2025-11-19T16:01:56-08:00 New Revision: 80f862b6923f08b365d30c8480783aa91005e07a URL: https://github.com/llvm/llvm-project/commit/80f862b6923f08b365d30c8480783aa91005e07a DIFF: https://github.com/llvm/llvm-project/commit/80f862b6923f08b365d30c8480783aa91005e07a.diff LO

[clang] [CIR][NFC] Fix warnings in release builds (PR #168791)

2025-11-19 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 112055 tests passed * 4077 tests skipped https://github.com/llvm/llvm-project/pull/168791 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [CIR] Add CxxCTorAttr, CxxDTorAttr, CxxAssignAttr, CxxSpecialMemberAttr to cir::FuncOp (PR #167975)

2025-11-19 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/167975 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 03f4d4d - [CIR] Add CxxCTorAttr, CxxDTorAttr, CxxAssignAttr, CxxSpecialMemberAttr to cir::FuncOp (#167975)

2025-11-19 Thread via cfe-commits
Author: Hendrik Hübner Date: 2025-11-19T15:57:34-08:00 New Revision: 03f4d4d492b3f5e68645eac4e907f3f0fc7a4489 URL: https://github.com/llvm/llvm-project/commit/03f4d4d492b3f5e68645eac4e907f3f0fc7a4489 DIFF: https://github.com/llvm/llvm-project/commit/03f4d4d492b3f5e68645eac4e907f3f0fc7a4489.diff

[clang] [CIR] Add NYI cases to builtin switch statement and move existing cases into functions (PR #168699)

2025-11-19 Thread Andy Kaylor via cfe-commits
andykaylor wrote: I just merged https://github.com/llvm/llvm-project/pull/166037 which, unfortunately is going to require a bit of rebase work to fit with this change. On the plus side, it implements the correct builtin handling for `__builtin_isnan`. https://github.com/llvm/llvm-project/pull

[clang] [CIR] Upstream isfpclass op (PR #166037)

2025-11-19 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/166037 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1278d47 - [CIR] Upstream isfpclass op (#166037)

2025-11-19 Thread via cfe-commits
Author: Jasmine Tang Date: 2025-11-19T15:52:51-08:00 New Revision: 1278d47e9f9773972ff17deaf4d69db48dccdad8 URL: https://github.com/llvm/llvm-project/commit/1278d47e9f9773972ff17deaf4d69db48dccdad8 DIFF: https://github.com/llvm/llvm-project/commit/1278d47e9f9773972ff17deaf4d69db48dccdad8.diff

[clang-tools-extra] [clang-tidy] Add `IgnoredFilesList` option to `readability-duplicate-include` (PR #168196)

2025-11-19 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/168196 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 2aa2290 - [clang-tidy] Add `IgnoredFilesList` option to `readability-duplicate-include` (#168196)

2025-11-19 Thread via cfe-commits
Author: mitchell Date: 2025-11-20T07:52:39+08:00 New Revision: 2aa2290af51a033849878b30ee30aae5d11394f3 URL: https://github.com/llvm/llvm-project/commit/2aa2290af51a033849878b30ee30aae5d11394f3 DIFF: https://github.com/llvm/llvm-project/commit/2aa2290af51a033849878b30ee30aae5d11394f3.diff LOG:

[clang] C++26 Annotation (PR #166287)

2025-11-19 Thread via cfe-commits
@@ -934,6 +937,48 @@ def AlwaysInline : DeclOrStmtAttr { let Documentation = [AlwaysInlineDocs]; } +def CXX26Annotation : InheritableParamAttr { + let Spellings = []; + let Args = [ExprArgument<"Arg">]; + let AdditionalMembers = [{ +private: + APValue Value; + SourceLoc

[clang] [OpenACC][CIR] Handle 'declare' construct local lowering (&link clause) (PR #168793)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane updated https://github.com/llvm/llvm-project/pull/168793 >From 22caecc11fc0d5d6113bfd6ba24f3644316e5350 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Wed, 19 Nov 2025 13:28:18 -0800 Subject: [PATCH 1/2] [OpenACC][CIR] Handle 'declare' construct local lowering (&

[clang] [CIR] Add NYI cases to builtin switch statement and move existing cases into functions (PR #168699)

2025-11-19 Thread Andy Kaylor via cfe-commits
andykaylor wrote: > Sounds good. Can I make the check in the NYI helper an assertion, so it > produces a different error message when a builtin is reached that should > generate a libcall? Maybe just make it a different errorNYI message? It would also be nice to have a MissingFeatures assert

[clang] [OpenACC] Fix crash when checking an section in a 'link' clause (PR #168783)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/168783 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9b7fd00 - [OpenACC] Fix crash when checking an section in a 'link' clause (#168783)

2025-11-19 Thread via cfe-commits
Author: Erich Keane Date: 2025-11-19T22:47:23Z New Revision: 9b7fd0099e79b0f5b824027cbae8a25356486ac9 URL: https://github.com/llvm/llvm-project/commit/9b7fd0099e79b0f5b824027cbae8a25356486ac9 DIFF: https://github.com/llvm/llvm-project/commit/9b7fd0099e79b0f5b824027cbae8a25356486ac9.diff LOG: [

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-19 Thread Richard Smith via cfe-commits
@@ -0,0 +1,22 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++14 %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s +// RUN: %clang_cc1 -fsyntax-only -verif

[clang] [AMDGPU] Update log lowering to remove contract for AMDGCN backend (PR #168770)

2025-11-19 Thread Adel Ejjeh via cfe-commits
https://github.com/adelejjeh updated https://github.com/llvm/llvm-project/pull/168770 >From 925df13db78370da9785bcb0fa90b89c09ce2470 Mon Sep 17 00:00:00 2001 From: Adel Ejjeh Date: Wed, 19 Nov 2025 15:19:27 -0600 Subject: [PATCH] [AMDGPU] Update log lowering to remove contract for AMDGCN backe

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane reopened https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
erichkeane wrote: > Please proceed, I haven't actually reverted it, more of a misclick. Got it! Enabled auto-merge as well, so as soon as CI succeeds, this will merge https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list cfe-

[clang] [CIR] Upstream CIR codegen for mxcsr x86 builtins (PR #167948)

2025-11-19 Thread Thibault Monnier via cfe-commits
Thibault-Monnier wrote: Thanks for the patch! I was working on that issue. https://github.com/llvm/llvm-project/pull/167948 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier unassigned https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Thibault Monnier via cfe-commits
Thibault-Monnier wrote: Please proceed, I haven't actually reverted it, more of a misclick. https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #167552)

2025-11-19 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,302 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_disabled https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
erichkeane wrote: Looks like the problematic patch was reverted, so closing this! https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP][CodeGen] Use an else if instead of checking twice (PR #168776)

2025-11-19 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111347 tests passed * 4420 tests skipped https://github.com/llvm/llvm-project/pull/168776 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #167552)

2025-11-19 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,302 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Erich Keane (erichkeane) Changes It appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review. --- Full diff: https://github.com/llvm/llvm-project/pull/16878

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes It appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review. --- Full diff: https://github.com/llvm/llvm-project/pull/168781.

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/168781 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix build breakage from: #167948 (PR #168781)

2025-11-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane created https://github.com/llvm/llvm-project/pull/168781 It appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review. >From ff9f028bf38649df8762f85abfe8dac1b86a36e5 Mon Sep 17 00:00:00

[clang] [CIR] Upstream CIR codegen for mxcsr x86 builtins (PR #167948)

2025-11-19 Thread Erich Keane via cfe-commits
erichkeane wrote: FYI: https://github.com/llvm/llvm-project/pull/168781 https://github.com/llvm/llvm-project/pull/167948 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add misc-bool-bitwise-operation check (PR #167552)

2025-11-19 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,302 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [CIR] Upstream overflow builtins (PR #166643)

2025-11-19 Thread via cfe-commits
@@ -502,6 +530,154 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, cir::PrefetchOp::create(builder, loc, address, locality, isWrite); return RValue::get(nullptr); } + case Builtin::BI__builtin_add_overflow: + case Builtin::BI__bu

[clang] [Clang][Sema] Fix __builtin_infer_alloc_token() return type (PR #168773)

2025-11-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Marco Elver (melver) Changes Using the builtin failed on 32-bit architectures: | clang/lib/AST/ExprConstant.cpp:14299: [..]: Assertion `I.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) && "Invalid evaluation result."' failed. The re

[clang] [Clang][Sema] Fix __builtin_infer_alloc_token() return type (PR #168773)

2025-11-19 Thread Marco Elver via cfe-commits
https://github.com/melver created https://github.com/llvm/llvm-project/pull/168773 Using the builtin failed on 32-bit architectures: | clang/lib/AST/ExprConstant.cpp:14299: [..]: Assertion `I.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) && "Invalid evaluation result."' failed. The retur

[clang] [libc] Fix wrapper headers if std=c99 is set (PR #168386)

2025-11-19 Thread Dominik Adamski via cfe-commits
DominikAdamski wrote: Fixed by PR: https://github.com/llvm/llvm-project/pull/168438 https://github.com/llvm/llvm-project/pull/168386 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] Fix wrapper headers if std=c99 is set (PR #168386)

2025-11-19 Thread Dominik Adamski via cfe-commits
https://github.com/DominikAdamski closed https://github.com/llvm/llvm-project/pull/168386 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add misc-shadowed-namespace-function check (PR #168406)

2025-11-19 Thread Denis Mikhailov via cfe-commits
denzor200 wrote: > It would be nice to add some tests with nested namespace (`namespace A::B > {}`) and inline namespace. We have already had the test with nested namespace: https://github.com/denzor200/llvm-project/blob/b1bb0e351a5e2105e528dd2a509c28d30a78e025/clang-tools-extra/test/clang-tid

[clang] [HLSL][TableGen] Add `__hlsl_resource_t` to known built-in function types (PR #163465)

2025-11-19 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111343 tests passed * 4424 tests skipped https://github.com/llvm/llvm-project/pull/163465 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [CIR] Upstream CIR codegen for mxcsr x86 builtins (PR #167948)

2025-11-19 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier closed https://github.com/llvm/llvm-project/pull/167948 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] Update log lowering to remove contract for AMDGCN backend (PR #168770)

2025-11-19 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] f859427 - [CIR] Upstream CIR codegen for mxcsr x86 builtins (#167948)

2025-11-19 Thread via cfe-commits
Author: Thibault Monnier Date: 2025-11-19T21:34:49+01:00 New Revision: f85942728fe2edfc681831abf8ecd2f245e1 URL: https://github.com/llvm/llvm-project/commit/f85942728fe2edfc681831abf8ecd2f245e1 DIFF: https://github.com/llvm/llvm-project/commit/f85942728fe2edfc681831abf8ecd2f245e1.di

[clang] [AMDGPU] Update log lowering to remove contract for AMDGCN backend (PR #168770)

2025-11-19 Thread Adel Ejjeh via cfe-commits
https://github.com/adelejjeh created https://github.com/llvm/llvm-project/pull/168770 ## Problem Summary PyTorch's `test_warp_softmax_64bit_indexing` began failing after latest mainline promotion. The test failure manifested as a numerical precision error where `log(1.1422761679)` computed wi

[clang] [CIR] Upstream CIR codegen for undef x86 builtins (PR #167945)

2025-11-19 Thread Thibault Monnier via cfe-commits
Thibault-Monnier wrote: @andykaylor @bcardosolopes I am done. https://github.com/llvm/llvm-project/pull/167945 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR codegen for undef x86 builtins (PR #167945)

2025-11-19 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/167945 >From e2cc7e2adc9ef9c433c5f69fe51d6cb03ed024a7 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Thu, 13 Nov 2025 21:15:11 +0100 Subject: [PATCH 1/5] Upstream CIR codegen for undef x86 builtins ---

[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

2025-11-19 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/162361 >From 5f61932af5a90b52b5939406a929734dd6353316 Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Fri, 24 Oct 2025 08:18:09 +0200 Subject: [PATCH 1/8] [clang-tidy] Add new check 'bugprone-inconsistent-if

[clang] [AST] Support structural equivalence checking of attributes on Decls (PR #168769)

2025-11-19 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak created https://github.com/llvm/llvm-project/pull/168769 The structural equivalence checker currently treats any explicit attributes on a declaration as a reason to consider the declarations non-equivalent in C23 mode, even when both declarations carry the same attr

[clang] [CIR] Upstream CIR codegen for undef x86 builtins (PR #167945)

2025-11-19 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/167945 >From e2cc7e2adc9ef9c433c5f69fe51d6cb03ed024a7 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Thu, 13 Nov 2025 21:15:11 +0100 Subject: [PATCH 1/6] Upstream CIR codegen for undef x86 builtins ---

[clang] [AST] Support structural equivalence checking of attributes on Decls (PR #168769)

2025-11-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Akira Hatanaka (ahatanak) Changes The structural equivalence checker currently treats any explicit attributes on a declaration as a reason to consider the declarations non-equivalent in C23 mode, even when both declarations carry the same

[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

2025-11-19 Thread Davide Cunial via cfe-commits
@@ -0,0 +1,35 @@ +// RUN: %check_clang_tidy -std=c++20-or-later %s readability-inconsistent-ifelse-braces %t + +void do_something(const char *) {} + +// Positive tests. +void f(bool b) { + if (b) [[likely]] do_something("if-same-line"); + else { + } + // CHECK-MESSAGES: :[[@

[clang] [clang][DebugInfo] Attach `DISubprogram` to additional call variants (PR #166202)

2025-11-19 Thread J. Ryan Stinnett via cfe-commits
jryans wrote: > This is causing ~1.5% increase in bin size of clang when built internally in > Google and ~1.8% increase in dwp file. Thanks for the update. A bit more of an increase than [my own comparison](https://github.com/llvm/llvm-project/pull/166202#issuecomment-3481800307) above, but

[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

2025-11-19 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide edited https://github.com/llvm/llvm-project/pull/162361 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

2025-11-19 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide edited https://github.com/llvm/llvm-project/pull/162361 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR codegen for undef x86 builtins (PR #167945)

2025-11-19 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/167945 >From e2cc7e2adc9ef9c433c5f69fe51d6cb03ed024a7 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Thu, 13 Nov 2025 21:15:11 +0100 Subject: [PATCH 1/4] Upstream CIR codegen for undef x86 builtins ---

[clang] [CIR] Upstream CIR codegen for undef x86 builtins (PR #167945)

2025-11-19 Thread Thibault Monnier via cfe-commits
https://github.com/Thibault-Monnier updated https://github.com/llvm/llvm-project/pull/167945 >From e2cc7e2adc9ef9c433c5f69fe51d6cb03ed024a7 Mon Sep 17 00:00:00 2001 From: Thibault-Monnier Date: Thu, 13 Nov 2025 21:15:11 +0100 Subject: [PATCH 1/4] Upstream CIR codegen for undef x86 builtins ---

[clang] [BoundsSafety] Support late parsing for `counted_by` in type positions (PR #166491)

2025-11-19 Thread Aaron Ballman via cfe-commits
@@ -1161,10 +1161,13 @@ class Parser : public CodeCompletionHandler { IdentifierInfo *MacroII = nullptr; SourceLocation AttrNameLoc; SmallVector Decls; +unsigned NestedTypeLevel; AaronBallman wrote: > IOW, even if we stored both QualTypes and w

[clang] Adding support for iterator in motion clauses. (PR #159112)

2025-11-19 Thread Alexey Bataev via cfe-commits
@@ -8633,6 +8633,21 @@ class MappableExprsHandler { if (llvm::is_contained(C->getMotionModifiers(), OMPC_MOTION_MODIFIER_present)) Kind = Present; + if (llvm::is_contained(C->getMotionModifiers(), + OMP

[clang] [llvm] Provide a more seamless way to provide missing functions on z/OS (PR #167703)

2025-11-19 Thread Aiden Grossman via cfe-commits
@@ -0,0 +1,35 @@ +//===- string.h - Common z/OS Include File --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[libunwind] [libunwind] Call `__arm_za_disable` before entering EH (PR #160905)

2025-11-19 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: Closed in favor of https://github.com/llvm/llvm-project/pull/165451 https://github.com/llvm/llvm-project/pull/160905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][SpecialCaseList] Move most of implementation in cpp file (PR #167280)

2025-11-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/167280 >From da60e0a7b67c7ac6b8c641f3fe6e11df5dda7850 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Sun, 9 Nov 2025 23:19:56 -0800 Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20ch?= =?U

  1   2   3   4   5   6   7   8   9   10   >