[clang] Better diagnostics when assertion fails in `consteval` (PR #130458)

2025-04-17 Thread JJ Marr via cfe-commits
https://github.com/jj-marr converted_to_draft https://github.com/llvm/llvm-project/pull/130458 ___ 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-remote-linux-win` running on `as-builder-10` while building `clang` at step 17 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/buil

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

2025-04-17 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Nice! https://github.com/llvm/llvm-project/pull/136256 ___ 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-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] [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] 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] 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] 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] [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] 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] 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] 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] [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] 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] [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] [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] [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] 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] [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] 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] 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] [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] [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] [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] [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: 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] [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] [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] 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] [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][SemaARM][NFC] clang-format aarch64 builtin check (PR #136188)

2025-04-17 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex ready_for_review https://github.com/llvm/llvm-project/pull/136188 ___ 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 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] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-04-17 Thread Philip Reames via cfe-commits
@@ -0,0 +1,276 @@ +//===-- RISCVInstrInfoXsfmm.td - SiFive matrix multiply *- tablegen -*-===// +// +// 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: Ap

[clang] Generate empty .clang-format-ignore before running tests (PR #136154)

2025-04-17 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr created https://github.com/llvm/llvm-project/pull/136154 Followup to #136022, this ensures formatting tests are run with an empty `.clang-format-ignore` in their root directory, to prevent failures if the file also exists higher in the tree. >From 804fcdd84e8551005b

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

2025-04-17 Thread Fangrui Song via cfe-commits
MaskRay wrote: You might want to change the `DisableFree` default for library uses so that users don't need to specify `-no-disable-free`. ``` // Clang calls BuryPointer on the internal AST and CodeGen-related elements like TargetMachine. // This will cause memory leaks if `compile` is exe

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

2025-04-17 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/136201 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 template na

[clang] [Clang] Fix crash when building a module with CC_PRINT_HEADERS_FORMAT=json (PR #136227)

2025-04-17 Thread Bob Wilson via cfe-commits
https://github.com/bob-wilson created https://github.com/llvm/llvm-project/pull/136227 There is no main file when building a module, so the code in HeaderIncludesJSONCallback::EndOfMainFile() needs to check for that to avoid crashing. >From 160e490852d9bcb85da0cf398a72698438ec5e77 Mon Sep 17

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

2025-04-17 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc updated https://github.com/llvm/llvm-project/pull/136213 >From 6c53f36e9306d5abc50b9afcc1fe6a204d67c6e1 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 16 Apr 2025 22:57:18 + Subject: [PATCH] Make the `-disable-free` flag more full featured This lets

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

2025-04-17 Thread Bill Wendling via cfe-commits
https://github.com/bwendling created https://github.com/llvm/llvm-project/pull/136239 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; int arr

[clang] 20cd74a - [sanitizer] Apply AlwaysIn/Out in parseSanitizeArgs (#129405)

2025-04-17 Thread via cfe-commits
Author: Thurston Dang Date: 2025-04-17T15:14:52-07:00 New Revision: 20cd74a1c1555385e65d26ff22de7ef75fcb4090 URL: https://github.com/llvm/llvm-project/commit/20cd74a1c1555385e65d26ff22de7ef75fcb4090 DIFF: https://github.com/llvm/llvm-project/commit/20cd74a1c1555385e65d26ff22de7ef75fcb4090.diff

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

2025-04-17 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen edited https://github.com/llvm/llvm-project/pull/136202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add builtin_get_vtable_pointer and virtual_member_address (PR #135469)

2025-04-17 Thread Oliver Hunt via cfe-commits
@@ -0,0 +1,41 @@ +// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-calls -emit-llvm -no-enable-noundef-analysis -o - %s | FileCheck %s --check-prefixes CHECK,CHECK-AUTH +// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -no-enable-noundef-analysis -o - %s | FileCheck %

[clang] [Clang] Bypass TAD during overload resolution if a perfect match exists (PR #136203)

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

[clang] 8c5a307 - [Clang] Bypass TAD during overload resolution if a perfect match exists (#136203)

2025-04-17 Thread via cfe-commits
Author: cor3ntin Date: 2025-04-18T06:10:58+02:00 New Revision: 8c5a307bd8d406e6167a5cd3ce3c74e2e3bfb2a6 URL: https://github.com/llvm/llvm-project/commit/8c5a307bd8d406e6167a5cd3ce3c74e2e3bfb2a6 DIFF: https://github.com/llvm/llvm-project/commit/8c5a307bd8d406e6167a5cd3ce3c74e2e3bfb2a6.diff LOG:

[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 closed 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] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-17 Thread Owen Pan via cfe-commits
https://github.com/owenca edited 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] [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` running on `doug-worker-1a` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/181/builds/17844 Here is the re

[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 `arc-builder` running on `arc-worker` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/14699 Here is the relevant piece of the build

[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-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/3703 Here is the rele

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

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Finn Plummer (inbelic) Changes Reverts llvm/llvm-project#133800 Reverting to resolve the introduced naming collisions. --- Full diff: https://github.com/llvm/llvm-project/pull/136252.diff 5 Files Affected: - (modified) clang/include/cla

[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 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] [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

[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] [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] [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 `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 `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 `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] [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-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] [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] [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] [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] [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] [clang][OpenMP] Fix/enforce order-concurrent-nestable rules (PR #135463)

2025-04-17 Thread Zahira Ammarguellat via cfe-commits
zahiraam wrote: if @alexey-bataev doesn't have additional comments, I or he can merge it in for you. https://github.com/llvm/llvm-project/pull/135463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[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 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; int

[clang] [llvm] [RISCV] Add processor definition for XiangShan-KunMingHu-V2R2 (PR #123193)

2025-04-17 Thread Pengcheng Wang via cfe-commits
wangpc-pp wrote: LGTM in general, but I have a question here: can you clarify the naming strategy? The name used in `-mcpu` is `xiangshan-kunminghu`, which corresponds to the `V2R2` version now apparently. Then, will there be `V2R3`/`V3R2`/...? If so, what should we use in `-mcpu`? https://gi

[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 created https://github.com/llvm/llvm-project/pull/136247 Adds the rest of the targets which support UEFI according to the [spec](https://uefi.org/sites/default/files/resources/UEFI_Spec_2_10_Aug29.pdf). >From fe082622b38f5b4e00a5be7076523ad2adb104a4 Mon Sep 1

[libclc] [libclc] Set OpenCL C version for each target (PR #135733)

2025-04-17 Thread Wenju He via cfe-commits
wenju-he wrote: > I'd expect the libclc build (or any other runtime support library) to > consistently use the same language version independent of the target. If the > target doesn't support that version (which IIRC isn't actually a hard error > anywhere) and fails to compile on some feature,

[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] [llvm] AMDGPU: Mark workitem ID intrinsics with range attribute (PR #136196)

2025-04-17 Thread Matt Arsenault via cfe-commits
arsenm wrote: * **#136196** https://app.graphite.dev/github/pr/llvm/llvm-project/136196?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/13619

[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] Make the `-disable-free` flag more full featured (PR #136213)

2025-04-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang 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 diff: http

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

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 -- clang/lib/CodeGen/CGBuiltin.cpp clang/test/CodeGen/

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

2025-04-17 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/135703 >From d4b1210c16b4fccc6faa9445bee457a1e330a025 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 14 Apr 2025 16:49:07 -0700 Subject: [PATCH 1/5] Initial commit. --- .../DependencyScanningFilesystem.h

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

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
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/14684 Here is the relevant piece of the build lo

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

2025-04-17 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/136239 >From b656baa1efb1de934121e19539a4e3a5d4305eb5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 17 Apr 2025 18:18:37 -0700 Subject: [PATCH 1/2] [Clang][counted_by] Support casting the array to a differ

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

2025-04-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 7 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/3698 Here is the re

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

2025-04-17 Thread Bill Wendling via cfe-commits
bwendling wrote: I added testcases and also ran tests to make sure that the correct value's returned by __bdos. https://github.com/llvm/llvm-project/pull/136239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

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

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 clang/lib/CodeGen/TargetBu

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

2025-04-17 Thread Bill Wendling via cfe-commits
bwendling wrote: Also, I'm going to have a larger patch coming after this which will support __bdos on pointers with __counted_by. It contains some refactoring which will help readability a bit more. https://github.com/llvm/llvm-project/pull/136239 _

[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-format] Fix a bug in FormatToken::isObjCAccessSpecifier() (PR #136109)

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

[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] [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] [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] [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] 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] [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] [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-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] [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-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] 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] [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/

  1   2   3   4   5   >