[clang] [llvm] AMDGPU: Mark workitem ID intrinsics with range attribute (PR #136196)

2025-04-17 Thread Nikita Popov via cfe-commits
nikic wrote: > This avoids the need to have special handling at every use site. > Unfortunately this means we unnecessarily emit AssertZext in the DAG (where > we already directly understand the range of the intrinsic), andt we regress > in undefined cases as we don't fold out asserts on undef

[clang-tools-extra] [clang-tidy][NFC] fix `clang-tidy` warnings in `clang-tools-extra/clang-tidy` directory (PR #136097)

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

[clang] [clang] fix unresolved dependent template specialization mangling (PR #136201)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes a regression introduced in #133610 which was reported here #133610 (comment) and in #136119 This redoes previous attempt in #135111 When mangling a DTST which appears in the prefix, the templ

[clang] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-17 Thread Chandler Carruth via cfe-commits
@@ -7889,9 +7889,13 @@ def code_completion_with_fixits : Flag<["-"], "code-completion-with-fixits">, def skip_function_bodies : Flag<["-"], "skip-function-bodies">, HelpText<"Skip function bodies when possible">, MarshallingInfoFlag>; -def disable_free : Flag<["-"], "disab

[clang] [ARM, AArch64] Fix passing of structures with aligned base classes (PR #135564)

2025-04-17 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk closed https://github.com/llvm/llvm-project/pull/135564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/C++] Fix clang_File_isEqual for in-memory files (PR #135773)

2025-04-17 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Have we documented exact requirements for this anywhere? Also not sure what the point of stability would be here: `clang_File_isEqual` returns `True` for all comparisons of in-memory file, which just makes this useless in practice. Any code that relies on this would be wrong

[clang] [Modules] Fix the inconsistency of which `Decl` should be serialized for an identifier. (PR #135887)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-x86_64-windows` running on `minipc-ryzen-win` while building `clang` at step 8 "test-build-unified-tree-check-flang-rt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/166/builds/1158 Here is

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Michele Scandale via cfe-commits
michele-scandale wrote: Putting aside for now the naming issue (https://github.com/llvm/llvm-project/pull/136038#discussion_r2049703902), is there anything left for the changes proposed in this PR? https://github.com/llvm/llvm-project/pull/136038 ___

[clang] [llvm] [RISCV] Add Andes XAndesperf (Andes Performance) extension. (PR #135110)

2025-04-17 Thread Jim Lin via cfe-commits
tclin914 wrote: > Do you have plan send PR to > https://github.com/riscv-non-isa/riscv-toolchain-conventions? PR: [https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/84](https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/84) https://github.com/llvm/llvm-project/

[clang] [Clang][counted_by] Support casting the array to a different type (PR #136239)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Bill Wendling (bwendling) Changes C allows the programmer to cast the base array to a different type before applying the index. We need to handle that situation. struct annotated { unsigned long flags; int count;

[clang] c99ffe5 - [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (#136109)

2025-04-17 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-17T19:07:14-07:00 New Revision: c99ffe58af23251d83073b8ad002536edc3864ae URL: https://github.com/llvm/llvm-project/commit/c99ffe58af23251d83073b8ad002536edc3864ae DIFF: https://github.com/llvm/llvm-project/commit/c99ffe58af23251d83073b8ad002536edc3864ae.diff LOG:

[clang] [clang] fix unresolved dependent template specialization mangling (PR #135111)

2025-04-17 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @usx95 that reproducer is fixed by https://github.com/llvm/llvm-project/pull/136201 as well. https://github.com/llvm/llvm-project/pull/135111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Chandler Carruth (chandlerc) Changes This lets us pass `-no-disable-free` to re-enable freeing memory for example. This is especially helpful for library users of Clang where it is important to not slowly leak memory. --- Full dif

[clang] 909a9fe - [Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (#135135)

2025-04-17 Thread via cfe-commits
Author: Yingwei Zheng Date: 2025-04-17T23:23:30+08:00 New Revision: 909a9feda9292be8a7322f07dd167a603309b541 URL: https://github.com/llvm/llvm-project/commit/909a9feda9292be8a7322f07dd167a603309b541 DIFF: https://github.com/llvm/llvm-project/commit/909a9feda9292be8a7322f07dd167a603309b541.diff

[clang] [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (PR #135703)

2025-04-17 Thread Jan Svoboda via cfe-commits
@@ -108,6 +108,32 @@ DependencyScanningFilesystemSharedCache::getShardForUID( return CacheShards[Hash % NumShards]; } +void DependencyScanningFilesystemSharedCache:: +diagnoseInvalidNegativeStatCachedPaths( +std::vector &InvalidPaths, +llvm::vfs::FileSyst

[clang] [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (PR #135703)

2025-04-17 Thread Jan Svoboda via cfe-commits
@@ -108,6 +108,32 @@ DependencyScanningFilesystemSharedCache::getShardForUID( return CacheShards[Hash % NumShards]; } +void DependencyScanningFilesystemSharedCache:: +diagnoseInvalidNegativeStatCachedPaths( jansvoboda11 wrote: This function no longer di

[clang] [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (PR #135703)

2025-04-17 Thread Jan Svoboda via cfe-commits
@@ -108,6 +108,32 @@ DependencyScanningFilesystemSharedCache::getShardForUID( return CacheShards[Hash % NumShards]; } +void DependencyScanningFilesystemSharedCache:: +diagnoseInvalidNegativeStatCachedPaths( +std::vector &InvalidPaths, jansvoboda1

[clang] Revert "[Fuchsia] Not building llvm-mt when LIBXML2 is not enabled." (PR #136216)

2025-04-17 Thread Daniel Thornburgh via cfe-commits
https://github.com/mysterymath approved this pull request. https://github.com/llvm/llvm-project/pull/136216 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9af61f5 - Revert "[Fuchsia] Not building llvm-mt when LIBXML2 is not enabled." (#136216)

2025-04-17 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-17T15:43:57-07:00 New Revision: 9af61f500c438df9bcbe2eab47c89d25cc5db759 URL: https://github.com/llvm/llvm-project/commit/9af61f500c438df9bcbe2eab47c89d25cc5db759 DIFF: https://github.com/llvm/llvm-project/commit/9af61f500c438df9bcbe2eab47c89d25cc5db759.diff LO

[clang] [CIR] Upstream SelectOp and ShiftOp (PR #133405)

2025-04-17 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/133405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Fuchsia] Not building llvm-mt when LIBXML2 is not enabled." (PR #136216)

2025-04-17 Thread Daniel Thornburgh via cfe-commits
https://github.com/mysterymath closed https://github.com/llvm/llvm-project/pull/136216 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-17 Thread Bruno Cardoso Lopes via cfe-commits
@@ -229,4 +229,32 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// RecordLayoutAttr +//===---

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Michele Scandale via cfe-commits
@@ -8623,6 +8624,13 @@ inline bool Type::isIntegralOrEnumerationType() const { inline bool Type::isBooleanType() const { if (const auto *BT = dyn_cast(CanonicalType)) return BT->getKind() == BuiltinType::Bool; + if (const EnumType *ET = dyn_cast(CanonicalType)) { +//

[clang] Reapply "[NFC][CFI] Avoid clang error in CFI tests" (#136030) (PR #136177)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16371 Her

[clang] cdad39b - [llvm][docs] Replace `Optional` with `std::optional`

2025-04-17 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2025-04-17T13:18:11-07:00 New Revision: cdad39b7e007aa2a597f6fbeda28a6b269406916 URL: https://github.com/llvm/llvm-project/commit/cdad39b7e007aa2a597f6fbeda28a6b269406916 DIFF: https://github.com/llvm/llvm-project/commit/cdad39b7e007aa2a597f6fbeda28a6b269406916.diff L

[clang] [clang] Implement StmtPrinter for EmbedExpr (PR #135957)

2025-04-17 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/135957 >From b194133f44768a61a7af6486dc40deae2de73f9a Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Wed, 16 Apr 2025 05:59:24 -0700 Subject: [PATCH 1/6] [clang] Implement StmtPrinter for EmbedExpr Tr

[clang] [clang][deps] Make dependency directives getter thread-safe (PR #136178)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes This PR fixes two issues in one go: 1. The dependency directives getter (a `std::function`) was being stored in `PreprocessorOptions`. The goes against the principle where the options classes are suppose

[clang] Revert "[Fuchsia] Not building llvm-mt when LIBXML2 is not enabled." (PR #136216)

2025-04-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/136216 Reverts llvm/llvm-project#135877 This is causing some problems on Fuchsia's windows CI. We'll need a different solution to triage other builders. https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clan

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/136036 >From fbe118b75d5edf8077b46d2a4fdbf94b6f2395c6 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 16 Apr 2025 13:44:04 -0700 Subject: [PATCH 1/2] [CIR] Upstream support for record packing and padding This

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-17 Thread Andy Kaylor via cfe-commits
@@ -225,17 +235,88 @@ void RecordType::complete(ArrayRef members, bool packed, bool padded) { //===--===// llvm::TypeSize -RecordType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout, -

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-17 Thread Andy Kaylor via cfe-commits
@@ -225,17 +235,88 @@ void RecordType::complete(ArrayRef members, bool packed, bool padded) { //===--===// llvm::TypeSize -RecordType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout, -

[clang] 0f5c66c - [OpenACC][CIR] Fix build error from CIR upstreaming

2025-04-17 Thread Michael Liao via cfe-commits
Author: Michael Liao Date: 2025-04-17T20:28:40-04:00 New Revision: 0f5c66c364a6702edf65214a4f975c3e3f326d9a URL: https://github.com/llvm/llvm-project/commit/0f5c66c364a6702edf65214a4f975c3e3f326d9a DIFF: https://github.com/llvm/llvm-project/commit/0f5c66c364a6702edf65214a4f975c3e3f326d9a.diff

[clang] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-17 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc closed https://github.com/llvm/llvm-project/pull/136213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-17 Thread Andy Kaylor via cfe-commits
@@ -2336,16 +2336,9 @@ bool Type::isArithmeticType() const { } bool Type::hasBooleanRepresentation() const { - if (isBooleanType()) -return true; - - if (const EnumType *ET = getAs()) -return ET->getDecl()->getIntegerType()->isBooleanType(); - - if (const AtomicType

[clang] feb1fb5 - Make the `-disable-free` flag more full featured (#136213)

2025-04-17 Thread via cfe-commits
Author: Chandler Carruth Date: 2025-04-17T17:27:50-07:00 New Revision: feb1fb5f0473eb949b35fb25e15c4d32465cd6d7 URL: https://github.com/llvm/llvm-project/commit/feb1fb5f0473eb949b35fb25e15c4d32465cd6d7 DIFF: https://github.com/llvm/llvm-project/commit/feb1fb5f0473eb949b35fb25e15c4d32465cd6d7.di

[clang] [Clang] Fix crash when -header-include-filtering is not specified (PR #136232)

2025-04-17 Thread Bob Wilson via cfe-commits
https://github.com/bob-wilson created https://github.com/llvm/llvm-project/pull/136232 If you specify -header-include-format=json, the only filtering option currently supported is -header-include-filtering=only-direct-system. If you specify some other filtering option, Clang gives an error mes

[clang-tools-extra] [NFC][clang-tidy] Remove {{^}} clauses in some tests (2/N) (PR #135824)

2025-04-17 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/135824 ___ 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 regression test for test comments in macros (PR #132510)

2025-04-17 Thread via cfe-commits
@@ -0,0 +1,35 @@ +// Regression test for https://github.com/llvm/llvm-project/issues/59819 + +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/MyClass.md --check-prefix=MD-MYC

[clang-tools-extra] [clangd] Store documentation when indexing standard library (PR #133681)

2025-04-17 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/133681 >From bd514d4ab9a593f33ef36f9bc3fa888a17b633d7 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 31 Mar 2025 02:25:45 -0400 Subject: [PATCH] [clangd] Store documentation when indexing standard librar

[clang] [llvm] [Mips] Implement MipsInstrInfo::getNop() operation (PR #135524)

2025-04-17 Thread Brad Smith via cfe-commits
brad0 wrote: cc @MaskRay https://github.com/llvm/llvm-project/pull/135524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Mips] Implement MipsInstrInfo::getNop() operation (PR #135524)

2025-04-17 Thread via cfe-commits
@@ -87,6 +87,14 @@ MipsInstrInfo::GetMemOperand(MachineBasicBlock &MBB, int FI, MFI.getObjectAlign(FI)); } +MCInst MipsInstrInfo::getNop() const { + MCInst Nop; + // using Mips::NOP gives + // "fatal error: error in backend: Not supported in

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2025-04-17 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/117671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Add triples for managarm (PR #87845)

2025-04-17 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. The patch mixes the following changes * Triple * llvm/lib/Support/Unix * clang/lib/Driver I think we need 3 PRs. The Triple and Support code looks good. I will have limited internet access between April 20th and May 4th, and my response t

[clang] cc7fc99 - [clang] Add source range to 'use of undeclared identifier' diagnostics (#117671)

2025-04-17 Thread via cfe-commits
Author: Timm Baeder Date: 2025-04-18T08:27:15+02:00 New Revision: cc7fc9978fc8c9b8e1da2e283026feaf85807ea5 URL: https://github.com/llvm/llvm-project/commit/cc7fc9978fc8c9b8e1da2e283026feaf85807ea5 DIFF: https://github.com/llvm/llvm-project/commit/cc7fc9978fc8c9b8e1da2e283026feaf85807ea5.diff L

[clang] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-17 Thread Chandler Carruth via cfe-commits
@@ -7889,9 +7889,13 @@ def code_completion_with_fixits : Flag<["-"], "code-completion-with-fixits">, def skip_function_bodies : Flag<["-"], "skip-function-bodies">, HelpText<"Skip function bodies when possible">, MarshallingInfoFlag>; -def disable_free : Flag<["-"], "disab

[clang] 7772198 - [clang-format] Fix shared build. NFC

2025-04-17 Thread Michael Liao via cfe-commits
Author: Michael Liao Date: 2025-04-17T22:49:50-04:00 New Revision: 77721986d8bd48182ba355bf166a5fa3ffbfe6b6 URL: https://github.com/llvm/llvm-project/commit/77721986d8bd48182ba355bf166a5fa3ffbfe6b6 DIFF: https://github.com/llvm/llvm-project/commit/77721986d8bd48182ba355bf166a5fa3ffbfe6b6.diff

[clang] [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (PR #136109)

2025-04-17 Thread Owen Pan via cfe-commits
@@ -3963,6 +3963,12 @@ TEST_F(TokenAnnotatorTest, UTF8StringLiteral) { EXPECT_TOKEN(Tokens[1], tok::utf8_string_literal, TT_Unknown); } +TEST_F(TokenAnnotatorTest, IdentifierPackage) { + auto Tokens = annotate("auto package;"); + ASSERT_EQ(Tokens.size(), 4u) << Tokens; +

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: 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

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-17 Thread Owen Pan via cfe-commits
@@ -102,9 +102,9 @@ def main(): filename = None lines_by_file = {} for line in sys.stdin: -match = re.search(r"^\+\+\+\ (.*?/){%s}(\S*)" % args.p, line) +match = re.search(r"^\+\+\+\s+(?:.*?/){%s}(.+)$" % args.p, line) owenca wrote:

[clang] [clang] Use llvm::append_range (NFC) (PR #136256)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes This patch replaces: llvm::copy(Src, std::back_inserter(Dst)); with: llvm::append_range(Dst, Src); for breavity. One side benefit is that llvm::append_range eve

[clang] [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (PR #136109)

2025-04-17 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/136109 >From ca6de153829c0c79e08f823fe472aee1a502d67c Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 17 Apr 2025 01:40:48 -0700 Subject: [PATCH 1/2] [clang-format] Fix a bug in FormatToken::isObjCAccessSpecifier()

[clang] [clang] Use llvm::append_range (NFC) (PR #136256)

2025-04-17 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136256 This patch replaces: llvm::copy(Src, std::back_inserter(Dst)); with: llvm::append_range(Dst, Src); for breavity. One side benefit is that llvm::append_range eventually calls llvm::SmallVector::res

[clang] [llvm] [mlir] [NVPTX] Add support for Shared Cluster Memory address space. (PR #135444)

2025-04-17 Thread via cfe-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 'HEAD~1' HEAD llvm/test/CodeGen/NVPTX/ad

[clang] [lldb] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-17 Thread Selim Keles via cfe-commits
https://github.com/selimkeles updated https://github.com/llvm/llvm-project/pull/135779 >From 235ef7b9d0e5f8cb9329400a01fa1b51c74626e7 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Tue, 15 Apr 2025 11:40:07 +0200 Subject: [PATCH] Fix filename parsing in clang-format-diff.py for paths with spac

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-17 Thread Selim Keles via cfe-commits
@@ -102,9 +102,9 @@ def main(): filename = None lines_by_file = {} for line in sys.stdin: -match = re.search(r"^\+\+\+\ (.*?/){%s}(\S*)" % args.p, line) +match = re.search(r"^\+\+\+\s+(?:.*?/){%s}(.+)$" % args.p, line) selimkeles wro

[clang] [llvm] [mlir] [NVPTX] Add support for Shared Cluster Memory address space. (PR #135444)

2025-04-17 Thread via cfe-commits
modiking wrote: Made the requested changes, @AlexMaclean/@Artem-B PTAL when you get the chance--thanks! https://github.com/llvm/llvm-project/pull/135444 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [llvm] [Mips] Implement MipsInstrInfo::getNop() operation (PR #135524)

2025-04-17 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,13 @@ +// REQUIRES: mips-registered-target MaskRay wrote: https://maskray.me/blog/2021-08-08-toolchain-testing#the-test-checks-too-little#the-test-checks-at-the-wrong-layer Should generally avoid clang/test/CodeGen test for lib/Target changes. llvm/t

[clang] [Clang][Docs] Add release note for execute-only support on AArch64 (PR #134802)

2025-04-17 Thread Csanád Hajdú via cfe-commits
https://github.com/Il-Capitano updated https://github.com/llvm/llvm-project/pull/134802 From f41bcb085ac07ed5a05c1246a13048896e63d54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csan=C3=A1d=20Hajd=C3=BA?= Date: Tue, 8 Apr 2025 09:47:46 +0200 Subject: [PATCH 1/2] [Clang][Docs] Add release note for

[clang] [llvm] [Mips] Implement MipsInstrInfo::getNop() operation (PR #135524)

2025-04-17 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,13 @@ +// REQUIRES: mips-registered-target MaskRay wrote: `clang++ -target "mipsel-w64-windows-gnu" -c test.cpp` avoid deprecated `-target `. Use `--target=` https://github.com/llvm/llvm-project/pull/135524 ___

[clang] [llvm] [llvm] Add triples for managarm (PR #87845)

2025-04-17 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,227 @@ +//===--- Managarm.h - Managarm ToolChain Implementations *- C++ -*-===// MaskRay wrote: For new files, just use `//===--===//` per latest https://llvm.org/docs/Coding

[clang] [llvm] [llvm] Add triples for managarm (PR #87845)

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

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-17 Thread Selim Keles via cfe-commits
https://github.com/selimkeles updated https://github.com/llvm/llvm-project/pull/135779 >From 92e47b84df20351e644deb38c8fc4c5d56a7e73f Mon Sep 17 00:00:00 2001 From: "selim.keles" Date: Fri, 18 Apr 2025 09:01:59 +0300 Subject: [PATCH] Fix filename parsing in clang-format-diff.py for paths with

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-17 Thread Selim Keles via cfe-commits
https://github.com/selimkeles reopened https://github.com/llvm/llvm-project/pull/135779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Add triples for managarm (PR #87845)

2025-04-17 Thread Fangrui Song via cfe-commits
@@ -395,6 +395,36 @@ class LLVM_LIBRARY_VISIBILITY LinuxTargetInfo : public OSTargetInfo { } }; +// Managarm Target +template +class LLVM_LIBRARY_VISIBILITY ManagarmTargetInfo : public OSTargetInfo { +protected: + void getOSDefines(const LangOptions &Opts, const llvm::Tr

[clang] [llvm] [Mips] Implement MipsInstrInfo::getNop() operation (PR #135524)

2025-04-17 Thread Hervé Poussineau via cfe-commits
@@ -87,6 +87,14 @@ MipsInstrInfo::GetMemOperand(MachineBasicBlock &MBB, int FI, MFI.getObjectAlign(FI)); } +MCInst MipsInstrInfo::getNop() const { + MCInst Nop; + // using Mips::NOP gives + // "fatal error: error in backend: Not supported in

[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

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

[clang] [Clang] enhance loop analysis to handle variable changes inside lambdas (PR #135573)

2025-04-17 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, Thanks! https://github.com/llvm/llvm-project/pull/135573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds

[clang] [clang] Add source range to 'use of undeclared identifier' diagnostics (PR #117671)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `clang` at step 16 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/bu

[clang] 1dbc8ef - [clang][ptrauth] Make ptrauth feature detection tests more robust (#136204)

2025-04-17 Thread via cfe-commits
Author: Oliver Hunt Date: 2025-04-17T17:53:34-07:00 New Revision: 1dbc8ef5538e25f61664d807fda236f7d983cc69 URL: https://github.com/llvm/llvm-project/commit/1dbc8ef5538e25f61664d807fda236f7d983cc69 DIFF: https://github.com/llvm/llvm-project/commit/1dbc8ef5538e25f61664d807fda236f7d983cc69.diff L

[clang] [clang][ptrauth] Make ptrauth feature detection tests more robust (PR #136204)

2025-04-17 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/136204 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] Enable `-m32`, `-maix32` and `-maix64` for Flang on AIX. (PR #136202)

2025-04-17 Thread Tarun Prabhu via cfe-commits
@@ -733,11 +733,16 @@ static llvm::Triple computeTargetTriple(const Driver &D, Target.setEnvironment(llvm::Triple::GNUX32); } else if (A->getOption().matches(options::OPT_m32) || A->getOption().matches(options::OPT_maix32)) { - AT = Target.get32B

[clang] [flang] Enable `-m32`, `-maix32` and `-maix64` for Flang on AIX. (PR #136202)

2025-04-17 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. Other than the missing braces around the `if`, LGTM. Thanks. https://github.com/llvm/llvm-project/pull/136202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-17 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/136234 fixes #135654 In #128613 we added safe guards to prevent the lowering of just any intrinsic in the backend. We used `DiagnosticInfoUnsupported` to do this. What we found was when using `opt` the diagnostic pri

[clang] 7daa501 - [NVPTX] Cleanup and document nvvm.fabs intrinsics, adding f16 support (#135644)

2025-04-17 Thread via cfe-commits
Author: Alex MacLean Date: 2025-04-17T07:37:24-07:00 New Revision: 7daa5010ab6a2ae77ac88ffd84e2cc37a2e11faa URL: https://github.com/llvm/llvm-project/commit/7daa5010ab6a2ae77ac88ffd84e2cc37a2e11faa DIFF: https://github.com/llvm/llvm-project/commit/7daa5010ab6a2ae77ac88ffd84e2cc37a2e11faa.diff

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Farzon Lotfi (farzonl) Changes fixes #135654 In #128613 we added safe guards to prevent the lowering of just any intrinsic in the backend. We used `DiagnosticInfoUnsupported` to do this. What we found was when using `opt` the d

[clang] [ARM, AArch64] Fix passing of structures with aligned base classes (PR #135564)

2025-04-17 Thread John McCall via cfe-commits
https://github.com/rjmccall approved this pull request. Thanks, that addresses my testing concern. https://github.com/llvm/llvm-project/pull/135564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang-tools-extra] [clangd] Header not found error message now contains file path (PR #136096)

2025-04-17 Thread Tongsheng Wu via cfe-commits
https://github.com/tongshengw updated https://github.com/llvm/llvm-project/pull/136096 >From fa866721e59707060165d588d3797acd49792837 Mon Sep 17 00:00:00 2001 From: Tongsheng Wu Date: Thu, 17 Apr 2025 03:25:36 -0400 Subject: [PATCH] [clangd] Header not found error message now contains file pat

[clang] [HLSL] Handle incomplete array types (PR #133508)

2025-04-17 Thread Chris B via cfe-commits
https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/133508 >From 6234f442adfebaaf73328d2c09ee443facc848b0 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 27 Mar 2025 09:26:31 -0500 Subject: [PATCH 1/6] [HLSL] Handle incomplete array types This refactors the

[clang] [libclang/C++] Fix clang_File_isEqual for in-memory files (PR #135773)

2025-04-17 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: LGTM, but how this fares against our stability guarantees for libclang APIs? Do we need `clang_File_isEqual2`? https://github.com/llvm/llvm-project/pull/135773 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [Clang] Fix crash when -header-include-filtering is not specified (PR #136232)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bob Wilson (bob-wilson) Changes If you specify -header-include-format=json, the only filtering option currently supported is -header-include-filtering=only-direct-system. If you specify some other filtering option, Clang gives an error me

[clang-tools-extra] [clangd] Header not found error message now contains file path (PR #136096)

2025-04-17 Thread Tongsheng Wu via cfe-commits
https://github.com/tongshengw closed https://github.com/llvm/llvm-project/pull/136096 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] IncludeCleaner include not found error now contains path (PR #136237)

2025-04-17 Thread Tongsheng Wu via cfe-commits
https://github.com/tongshengw created https://github.com/llvm/llvm-project/pull/136237 IncludeCleaner header not found messages now show file path. [https://github.com/clangd/clangd/issues/2334](https://github.com/clangd/clangd/issues/2334) New error messages: ``` E[03:32:43.219] IncludeCleane

[clang] [libclang/C++] Fix clang_File_isEqual for in-memory files (PR #135773)

2025-04-17 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Also cc @Endilll https://github.com/llvm/llvm-project/pull/135773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-17 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/136247 >From fe082622b38f5b4e00a5be7076523ad2adb104a4 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 17 Apr 2025 20:06:51 -0700 Subject: [PATCH 1/2] [clang][uefi] add arm, aarch64, x86, loongarch64, ris

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

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

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

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

[clang] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-17 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/136247 >From fe082622b38f5b4e00a5be7076523ad2adb104a4 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 17 Apr 2025 20:06:51 -0700 Subject: [PATCH 1/2] [clang][uefi] add arm, aarch64, x86, loongarch64, ris

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/8023 Here is th

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/6836 Here is the r

[clang] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-17 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,c,h -- clang/lib/Basic/Targets.cpp clang/lib/Driver/Driv

[clang] [llvm] [HLSL][RootSignature] Add infastructure to parse parameters (PR #133800)

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

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/6814 Here is the r

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/builds/17377 Here is

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,llvm` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/17759 Here is the relevant piece of the build l

[clang] [llvm] [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (PR #133800)

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/21478 Here is th

[clang] 64de852 - [HLSL][RootSignature] Implement initial parsing of the descriptor table clause params (#133800)

2025-04-17 Thread via cfe-commits
Author: Finn Plummer Date: 2025-04-17T20:50:51-07:00 New Revision: 64de8528dbd89cdafe32d754f37cf3da4fb5403e URL: https://github.com/llvm/llvm-project/commit/64de8528dbd89cdafe32d754f37cf3da4fb5403e DIFF: https://github.com/llvm/llvm-project/commit/64de8528dbd89cdafe32d754f37cf3da4fb5403e.diff

[clang] [llvm] Revert "[HLSL][RootSignature] Implement initial parsing of the descriptor table clause params" (PR #136252)

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

[clang] c134e99 - Revert "[HLSL][RootSignature] Implement initial parsing of the descriptor table clause params" (#136252)

2025-04-17 Thread via cfe-commits
Author: Finn Plummer Date: 2025-04-17T20:58:16-07:00 New Revision: c134e99a2adf6ac3f0d7a5f15a2f384f174c80a5 URL: https://github.com/llvm/llvm-project/commit/c134e99a2adf6ac3f0d7a5f15a2f384f174c80a5 DIFF: https://github.com/llvm/llvm-project/commit/c134e99a2adf6ac3f0d7a5f15a2f384f174c80a5.diff

[clang] [llvm] Revert "[HLSL][RootSignature] Implement initial parsing of the descriptor table clause params" (PR #136252)

2025-04-17 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/136252 Reverts llvm/llvm-project#133800 Reverting to resolve the introduce naming collisions. >From c410a82b85a63274f7849de434d133a0f8706269 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 17 Apr 2025 20:56:49

<    1   2   3   4   5   >