[libclc] [libclc] Refine id in async_work_group_copy STRIDED_COPY (PR #151644)

2025-07-31 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/151644 Move id first along 0th dimension to achieve coalesced memory access when stride is 1. >From 1fe808b52e11dfe569c489a9dc8f1cdd3fa87afc Mon Sep 17 00:00:00 2001 From: Wenju He Date: Fri, 1 Aug 2025 07:45:50 +02

[clang] [HIP] Fix compression arguments being passed to linker wrapper (PR #151591)

2025-07-31 Thread Jacob Lambert via cfe-commits
lamb-j wrote: fwiw I got a green downstream psdb with this patch https://github.com/llvm/llvm-project/pull/151591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP] Improve HeuristicResolver further so it can replace most of getApproximateType() in SemaCodeComplete (PR #151643)

2025-07-31 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: (Not ready for review yet, just wanted to trigger a full set of CI checks.) https://github.com/llvm/llvm-project/pull/151643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [WIP] Improve HeuristicResolver further so it can replace most of getApproximateType() in SemaCodeComplete (PR #151643)

2025-07-31 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/151643 None >From 4e0c823ce353e8dbfc441e4fb48dcddb37677b53 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 7 Jul 2025 09:01:12 -0400 Subject: [PATCH] [WIP] Improve HeuristicResolver further so it can rep

[clang] [llvm] [RISC-V]Implement -m{,no}fence-tso (PR #151638)

2025-07-31 Thread Liao Chunyu via cfe-commits
ChunyuLiao wrote: > The link is the description is incomplete Thanks. Updated the link : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070959 https://github.com/llvm/llvm-project/pull/151638 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [llvm] [RISC-V]Implement -m{,no}fence-tso (PR #151638)

2025-07-31 Thread Liao Chunyu via cfe-commits
https://github.com/ChunyuLiao edited https://github.com/llvm/llvm-project/pull/151638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Use resolved path when filtering in IncludeInserter (PR #148371)

2025-07-31 Thread Nathan Ridge via cfe-commits
@@ -306,14 +306,14 @@ IncludeInserter::calculateIncludePath(const HeaderFile &InsertedHeader, return std::nullopt; bool IsAngled = false; for (auto &Filter : AngledHeaders) { -if (Filter(Suggested)) { +if (Filter(InsertedHeader.File)) { HighCom

[clang] [DTLTO][Clang][Docs] Update for COFF support (PR #149988)

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

[clang] [DTLTO][Clang][Docs] Update for COFF support (PR #149988)

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

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang,llvm` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/14585 Here is the relevant piece of the build

[clang] [clang][test] Split out staticanalyzer portion of Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-07-31 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: Thanks, I will merge this when CI allows it. https://github.com/llvm/llvm-project/pull/151259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] Split out staticanalyzer portion of Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-07-31 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance edited https://github.com/llvm/llvm-project/pull/151259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] Require staticanalyzer for Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-07-31 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance edited https://github.com/llvm/llvm-project/pull/151259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-07-31 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test] Require staticanalyzer for Modules/specializations-lazy-load-parentmap-crash.cpp (PR #151259)

2025-07-31 Thread Nathan Chancellor via cfe-commits
https://github.com/nathanchance updated https://github.com/llvm/llvm-project/pull/151259 >From 53b66607e46965a6fff0bd3dc825236bca1e4447 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Tue, 29 Jul 2025 17:03:41 -0700 Subject: [PATCH 1/2] [clang][test] Require staticanalyzer for Modules/s

[clang] [clang] Proofread InternalsManual.rst (PR #151626)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/151626.diff 1 Files Affected: - (modified) clang/docs/InternalsManual.rst (+5-5) ``diff diff --git a/clang/docs/InternalsManual.rs

[clang] [clang] Proofread InternalsManual.rst (PR #151626)

2025-07-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151626 None >From e71e3f5a7ff85e135cb30e5a667e4eedd48f5a63 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025 19:18:53 -0700 Subject: [PATCH] [clang] Proofread InternalsManual.rst --- clang/doc

[clang] [Analysis] Avoid creating a temporary instance of std::string (NFC) (PR #151625)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes hasName takes StringRef, so we don't need to create a temporary instance of std::string. --- Full diff: https://github.com/llvm/llvm-project/pull/151625.diff 1 Files Affected: - (modified) clang/lib

[clang] [Analysis] Avoid creating a temporary instance of std::string (NFC) (PR #151625)

2025-07-31 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/151625 hasName takes StringRef, so we don't need to create a temporary instance of std::string. >From 7840655c7f8db70b5105402598c154eb6f44966d Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 31 Jul 2025

[clang] Insert headers in global module fragment (PR #151624)

2025-07-31 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/151624 >From 51db5932277a81581ba5076a7f79eb0b124c2b92 Mon Sep 17 00:00:00 2001 From: Mythreya Kuricheti Date: Thu, 31 Jul 2025 19:14:22 -0700 Subject: [PATCH] [libtooling] Insert headers in global module fragment --

[clang] Insert headers in global module fragment (PR #151624)

2025-07-31 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK edited https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Insert headers in global module fragment (PR #151624)

2025-07-31 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: Fixes clangd/clangd#2450 https://github.com/llvm/llvm-project/pull/151624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-31 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From 79849c3ba76ebf66fd7856fa92cd98af56ac49a6 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/9] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[clang] Insert headers in global module fragment (PR #151624)

2025-07-31 Thread Mythreya Kuricheti via cfe-commits
https://github.com/MythreyaK created https://github.com/llvm/llvm-project/pull/151624 Currently a draft PR. Change to insert headers only in the global module fragment after skipping comments and any preprocessor directives. >From 1c1f7cca259e4da191e4ce6113a955e891c71692 Mon Sep 17 00:00:

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-31 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From 79849c3ba76ebf66fd7856fa92cd98af56ac49a6 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/8] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[clang] [llvm] [clang][CodeGen] Extends lifetime of coroutine promise(CWG2563) (PR #151067)

2025-07-31 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: I don't understand this: > Do not lower coro.end to ret void if its return value will be used. This > allows front end separate coro start section and resume section without early > return from resume function. Could elaborate it? Especially why it is safe to not lower `co

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: So, literally. It only works now when Sun is high above the Pacific, thanks it is big and crosses many timezones. But this is not a sustainable CI. https://github.com/llvm/llvm-project/pull/151616 ___ cfe-commits mailing list cfe-commi

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/151616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c7bb105 - [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (#151616)

2025-07-31 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-07-31T18:55:59-07:00 New Revision: c7bb105e97208295babd5e5efdc34f4fb72602b5 URL: https://github.com/llvm/llvm-project/commit/c7bb105e97208295babd5e5efdc34f4fb72602b5 DIFF: https://github.com/llvm/llvm-project/commit/c7bb105e97208295babd5e5efdc34f4fb72602

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-31 Thread Aaron Danen via cfe-commits
aadanen wrote: It is a little awkward for %help to use logAllUnhandledErrors because the message goes to stderr and then my test needs to do input redirection. There is likely a better way to do this but I haven't found it yet, unless it's the raw ostream thing from earlier https://github.com

[clang] [clang] Remove %T from tests (PR #151614)

2025-07-31 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. https://github.com/llvm/llvm-project/pull/151614 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-31 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From 79849c3ba76ebf66fd7856fa92cd98af56ac49a6 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/7] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[clang] [clang] Remove %T from tests (PR #151614)

2025-07-31 Thread Aiden Grossman via cfe-commits
@@ -1,10 +1,12 @@ -// RUN: %clangxx -S -ftime-trace -ftime-trace-granularity=0 -o %T/check-time-trace-ParseDeclarationOrFunctionDefinition %s -// RUN: cat %T/check-time-trace-ParseDeclarationOrFunctionDefinition.json \ +// RUN: mkdir -p %t.dir +// RUN: %clangxx -S -ftime-trace -f

[clang] [clang] Remove %T from tests (PR #151614)

2025-07-31 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/151614 >From bcf0fbab986c548840941da523987c8a8d5bedad Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Thu, 31 Jul 2025 23:55:14 + Subject: [PATCH 1/2] [clang] Remove %T from tests This patch removes %T

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Steven Perron via cfe-commits
https://github.com/s-perron edited https://github.com/llvm/llvm-project/pull/151554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/151554 >From 900c99b8b3f317adcb8d897dbdc5f90fb91b4ddf Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Thu, 31 Jul 2025 12:16:43 -0400 Subject: [PATCH 1/2] [SPIRV][HLSL] Add DXC compatibility option for extension T

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: Literally the only viable way to commit is to 'bypass rules' now. https://github.com/llvm/llvm-project/pull/151616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151616 >From ab3017a04a86f64329c37bf3ba22dc17a7630f3e Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Thu, 31 Jul 2025 17:14:33 -0700 Subject: [PATCH] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions --

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: Something has changed on github yesterday. Testing takes time and during this time someone would commit something. Not necessarily related. Then github says its cannot merge it and the branch needs a merge. Then it starts testing again, rinse and repeat. It does not seem to wor

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151616 >From ab3017a04a86f64329c37bf3ba22dc17a7630f3e Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Thu, 31 Jul 2025 17:14:33 -0700 Subject: [PATCH] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions --

[clang] [llvm] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions (PR #151616)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/151616 >From ab3017a04a86f64329c37bf3ba22dc17a7630f3e Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Thu, 31 Jul 2025 17:14:33 -0700 Subject: [PATCH] [AMDGPU] Add v_cvt_scale_pk8_* gfx1250 instructions --

[clang] [HLSL][SPIRV] Add vk::binding attribute (PR #150957)

2025-07-31 Thread Steven Perron via cfe-commits
@@ -4894,6 +4894,14 @@ def HLSLSV_GroupIndex: HLSLAnnotationAttr { let Documentation = [HLSLSV_GroupIndexDocs]; } +def HLSLVkBinding : InheritableAttr { + let Spellings = [CXX11<"vk", "binding">]; + let Subjects = SubjectList<[HLSLBufferObj, ExternalGlobalVar], ErrorDiag>;

[clang] [clang] Remove use of %T from crash-report-modules.m (PR #151615)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aiden Grossman (boomanaiden154) Changes This patch removes the use of %T from crash-report-modules.m. %T has been deprecated for about seven years, and is to be avoided as it can lead to races between tests. Posting this one as a separat

[clang] [clang] Remove use of %T from crash-report-modules.m (PR #151615)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Aiden Grossman (boomanaiden154) Changes This patch removes the use of %T from crash-report-modules.m. %T has been deprecated for about seven years, and is to be avoided as it can lead to races between tests. Posting this one as a

[clang] [clang] Remove use of %T from crash-report-modules.m (PR #151615)

2025-07-31 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/151615 This patch removes the use of %T from crash-report-modules.m. %T has been deprecated for about seven years, and is to be avoided as it can lead to races between tests. Posting this one as a separate pat

[clang] [clang] Remove %T from tests (PR #151614)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Aiden Grossman (boomanaiden154) Changes This patch removes %T from clang lit tests. %T has been deprecated for about seven years and is not reccomended as it is not unique to each test, which can lead to races. This patch is inten

[clang] [clang] Remove %T from tests (PR #151614)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Aiden Grossman (boomanaiden154) Changes This patch removes %T from clang lit tests. %T has been deprecated for about seven years and is not reccomended as it is not unique to each test, which ca

[clang] [clang] Remove %T from tests (PR #151614)

2025-07-31 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/151614 This patch removes %T from clang lit tests. %T has been deprecated for about seven years and is not reccomended as it is not unique to each test, which can lead to races. This patch is intended to remove

[clang] [llvm] [AMDGPU] Add gfx1250 cvt_pk|sr_fp8|bf8_f32 instructions (PR #151595)

2025-07-31 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec closed https://github.com/llvm/llvm-project/pull/151595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 49d89bc - [AMDGPU] Add gfx1250 cvt_pk|sr_fp8|bf8_f32 instructions (#151595)

2025-07-31 Thread via cfe-commits
Author: Stanislav Mekhanoshin Date: 2025-07-31T16:04:46-07:00 New Revision: 49d89bc9f43f967051920731f0ec138ca8aaf5ee URL: https://github.com/llvm/llvm-project/commit/49d89bc9f43f967051920731f0ec138ca8aaf5ee DIFF: https://github.com/llvm/llvm-project/commit/49d89bc9f43f967051920731f0ec138ca8aaf5

[clang] [CIR] Add diagnostic for NYI AST visitor handlers (PR #151561)

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

[clang] [CIR] Handle expression with cleanups (PR #151600)

2025-07-31 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/151600 This adds code to handle expressions with cleanup, including materializing a temporary object for the expression. >From d90efb878b2e27779099e21e63a105d14f99ba62 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Da

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-31 Thread Bill Wendling via cfe-commits
@@ -3929,6 +3929,14 @@ def CFICanonicalJumpTable : InheritableAttr { let SimpleHandler = 1; } +def CFISalt : DeclOrTypeAttr { + let Spellings = [Clang<"cfi_salt">]; + let Args = [StringArgument<"Salt">]; + let Subjects = SubjectList<[Function, Field, Var, TypedefName], Er

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > Looking at the > [CI](https://github.com/llvm/llvm-project/actions/runs/16659524063/job/47155439985?pr=151590#step:3:28856) > it seems the `clang/test/Format/docs_updated.test` test failed. This may be > due to incorrect formatting of your style option in > `ClangF

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Justin Stitt via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -1618,6 +1630,9 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) { LLVMStyle.InsertBraces = false; LLVMStyle.InsertNewlineAtEOF = false; LLVMStyle.InsertTrailingCommas = FormatStyle::TCS_None; + LLVMStyle.NumericLiteralCase = {/*PrefixCase=*/0, /*HexDi

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -3100,6 +3100,54 @@ struct FormatStyle { /// \version 11 TrailingCommaStyle InsertTrailingCommas; + /// Character case format for different components of a numeric literal. + /// + /// For all options, ``0`` leave the case unchanged, ``-1`` + /// uses lower case and

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -1093,6 +1104,7 @@ template <> struct MappingTraits { IO.mapOptional("InsertBraces", Style.InsertBraces); IO.mapOptional("InsertNewlineAtEOF", Style.InsertNewlineAtEOF); IO.mapOptional("InsertTrailingCommas", Style.InsertTrailingCommas); +IO.mapOptional("Nume

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks commented: A bit to do, but I like the proposed feature. https://github.com/llvm/llvm-project/pull/151590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -5424,6 +5472,7 @@ struct FormatStyle { IndentWrappedFunctionNames == R.IndentWrappedFunctionNames && InsertBraces == R.InsertBraces && InsertNewlineAtEOF == R.InsertNewlineAtEOF && + NumericLiteralCase == R.NumericLiteralCase && --

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -382,6 +383,16 @@ struct ScalarEnumerationTraits { } }; +template <> struct MappingTraits { HazardyKnusperkeks wrote: Sort https://github.com/llvm/llvm-project/pull/151590 ___ cfe-commits mailing list cfe-com

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -3100,6 +3100,54 @@ struct FormatStyle { /// \version 11 TrailingCommaStyle InsertTrailingCommas; + /// Character case format for different components of a numeric literal. + /// + /// For all options, ``0`` leave the case unchanged, ``-1`` + /// uses lower case and

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -0,0 +1,368 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- 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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
@@ -3872,6 +3887,10 @@ reformat(const FormatStyle &Style, StringRef Code, return IntegerLiteralSeparatorFixer().process(Env, Expanded); }); + Passes.emplace_back([&](const Environment &Env) { HazardyKnusperkeks wrote: Add a check, if any option is not

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks edited https://github.com/llvm/llvm-project/pull/151590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-07-31 Thread Justin Stitt via cfe-commits
@@ -5076,6 +5075,78 @@ the configuration (without a prefix: ``Auto``). For example: TESTSUITE +.. _NumericLiteralCase: + +**NumericLiteralCase** (``NumericLiteralCaseStyle``) :versionbadge:`clang-format 21` :ref:`¶ ` JustinStitt wrote: Let's go with `clan

[clang] [HIP] Fix compression arguments being passed to linker wrapper (PR #151591)

2025-07-31 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j approved this pull request. https://github.com/llvm/llvm-project/pull/151591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Add diagnostic for 'factor' width mismatch in 'unroll partial' (PR #139986)

2025-07-31 Thread ALBIN BABU VARGHESE via cfe-commits
albus-droid wrote: Thanks for the clarifications! I’ll try to get the changes in soon. https://github.com/llvm/llvm-project/pull/139986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SYCL] Restrict the sycl_kernel_entry_point attribute spelling to C++11 style. (PR #151405)

2025-07-31 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann updated https://github.com/llvm/llvm-project/pull/151405 >From 17fd9871a422cb2b4c3697b66011ae7f5c84379d Mon Sep 17 00:00:00 2001 From: Tom Honermann Date: Wed, 30 Jul 2025 14:52:03 -0700 Subject: [PATCH 1/2] [SYCL] Restrict the sycl_kernel_entry_point attribute s

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

2025-07-31 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,73 @@ +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s + +// This test code generation when sycl_external attribute is used + +// Function defined and not used - symbols emitted +[[clang::sycl_ex

[clang] [llvm] [clang] Introduce CallGraphSection codegen option (PR #117037)

2025-07-31 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/117037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Introduce CallGraphSection option (PR #117037)

2025-07-31 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/117037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Fix compression arguments being passed to linker wrapper (PR #151591)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Joseph Huber (jhuber6) Changes Summary: The new driver's behavior forwards all unrecognized command line arguments to the host linker. It only knew `--compress` so when `-compress` was passed it didn't forward it correctly. This patc

[clang] [HIP] Fix compression arguments being passed to linker wrapper (PR #151591)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: The new driver's behavior forwards all unrecognized command line arguments to the host linker. It only knew `--compress` so when `-compress` was passed it didn't forward it correctly. This patch chang

[clang] [HIP] Fix compression arguments being passed to linker wrapper (PR #151591)

2025-07-31 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/151591 Summary: The new driver's behavior forwards all unrecognized command line arguments to the host linker. It only knew `--compress` so when `-compress` was passed it didn't forward it correctly. This patch changes

[clang] [llvm] [PowerPC] Support `-fpatchable-function-entry` on PPC64LE (PR #151569)

2025-07-31 Thread Maryam Moghadas via cfe-commits
https://github.com/maryammo updated https://github.com/llvm/llvm-project/pull/151569 >From 30bbcebb5a3be58b55229f8eda80423813bcd623 Mon Sep 17 00:00:00 2001 From: Maryam Moghadas Date: Thu, 31 Jul 2025 17:54:42 + Subject: [PATCH] [PowerPC] Support `-fpatchable-function-entry` on PPC64LE Th

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-07-31 Thread Andy Kaylor via cfe-commits
@@ -570,6 +594,124 @@ ComplexExprEmitter::emitBinOps(const BinaryOperator *e, QualType promotionTy) { return binOpInfo; } +LValue ComplexExprEmitter::emitCompoundAssignLValue( +const CompoundAssignOperator *e, +mlir::Value (ComplexExprEmitter::*func)(const BinOpInfo

[clang] [clang-tools-extra] [flang] [lldb] NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (PR #151545)

2025-07-31 Thread James Y Knight via cfe-commits
https://github.com/jyknight closed https://github.com/llvm/llvm-project/pull/151545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] c7f3437 - NFC: Clean up of IntrusiveRefCntPtr construction from raw pointers. (#151545)

2025-07-31 Thread via cfe-commits
Author: James Y Knight Date: 2025-07-31T15:07:35-04:00 New Revision: c7f343750744fd0c928b1da67e9dd894a2fe52cf URL: https://github.com/llvm/llvm-project/commit/c7f343750744fd0c928b1da67e9dd894a2fe52cf DIFF: https://github.com/llvm/llvm-project/commit/c7f343750744fd0c928b1da67e9dd894a2fe52cf.diff

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-07-31 Thread Alex Voicu via cfe-commits
AlexVlx wrote: Gentle ping. https://github.com/llvm/llvm-project/pull/134016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] fix D3DCOLORtoUBYTE4 return type to be int (PR #151353)

2025-07-31 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` at step 2 "update-annotated-scripts". Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/17349 H

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-07-31 Thread Amr Hesham via cfe-commits
@@ -570,6 +594,124 @@ ComplexExprEmitter::emitBinOps(const BinaryOperator *e, QualType promotionTy) { return binOpInfo; } +LValue ComplexExprEmitter::emitCompoundAssignLValue( +const CompoundAssignOperator *e, +mlir::Value (ComplexExprEmitter::*func)(const BinOpInfo

[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

2025-07-31 Thread Aaron Danen via cfe-commits
https://github.com/aadanen updated https://github.com/llvm/llvm-project/pull/150348 >From 4e24cb20efa22e364d41026ae40aec470ff786aa Mon Sep 17 00:00:00 2001 From: Aaron Danen Date: Wed, 23 Jul 2025 18:01:14 -0700 Subject: [PATCH 01/16] added undo to docs in same format as %quit --- clang/docs/

[clang] [Clang] Dump minimization hints for namespaces (PR #151534)

2025-07-31 Thread Justin Stitt via cfe-commits
JustinStitt wrote: Hi Ilya, I did some testing and found an inconsistency in the behaviors between exporting entire namespaces or exporting declarations within a namespace piecemeal. See this test ```cpp export module some_lib; namespace piecemeal { // line 3 export int add_one(int n) { re

[clang] [CIR] Plus & Minus CompoundAssignment support for ComplexType (PR #150759)

2025-07-31 Thread Amr Hesham via cfe-commits
@@ -570,6 +594,124 @@ ComplexExprEmitter::emitBinOps(const BinaryOperator *e, QualType promotionTy) { return binOpInfo; } +LValue ComplexExprEmitter::emitCompoundAssignLValue( +const CompoundAssignOperator *e, +mlir::Value (ComplexExprEmitter::*func)(const BinOpInfo

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Chris B via cfe-commits
@@ -173,24 +173,78 @@ bool isLegalValidatorVersion(StringRef ValVersionStr, const Driver &D) { return true; } +std::string getSpirvExtOperand(llvm::StringRef SpvExtensionArg) { + // The extensions that are commented out are supported in DXC, but the SPIR-V + // backend do

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Chris B via cfe-commits
@@ -9428,8 +9428,12 @@ def fspv_target_env_EQ : Joined<["-"], "fspv-target-env=">, Group, def fspv_extension_EQ : Joined<["-"], "fspv-extension=">, Group, - HelpText<"Specify the available SPIR-V extensions. If this option is not " - "specified, t

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Chris B via cfe-commits
@@ -173,24 +173,78 @@ bool isLegalValidatorVersion(StringRef ValVersionStr, const Driver &D) { return true; } +std::string getSpirvExtOperand(llvm::StringRef SpvExtensionArg) { llvm-beanz wrote: nit: I would probably change this to take a `raw_ostream&` to

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. A couple nits to take or leave, otherwise this looks reasonable to me. https://github.com/llvm/llvm-project/pull/151554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-07-31 Thread Chris B via cfe-commits
https://github.com/llvm-beanz edited https://github.com/llvm/llvm-project/pull/151554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Basic] Enable `__has_feature(cfi)` (PR #151348)

2025-07-31 Thread via cfe-commits
https://github.com/moorabbit updated https://github.com/llvm/llvm-project/pull/151348 >From fe34b28a97875ed27ba768942d9624655950 Mon Sep 17 00:00:00 2001 From: moorabbit Date: Wed, 30 Jul 2025 10:50:58 -0400 Subject: [PATCH 1/2] [Clang][Basic] Enable `__has_feature(cfi)` Support `__has_fea

[clang] [llvm] [PowerPC] Support `-fpatchable-function-entry` on PPC64LE (PR #151569)

2025-07-31 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: Maryam Moghadas (maryammo) Changes This patch enables `-fpatchable-function-entry` on PPC64 little-endian Linux. It is mutually exclusive with existing XRay instrumentation on this target. --- Full diff: https://github.com/llvm/

[clang] [llvm] [PowerPC] Support `-fpatchable-function-entry` on PPC64LE (PR #151569)

2025-07-31 Thread Maryam Moghadas via cfe-commits
https://github.com/maryammo created https://github.com/llvm/llvm-project/pull/151569 This patch enables `-fpatchable-function-entry` on PPC64 little-endian Linux. It is mutually exclusive with existing XRay instrumentation on this target. >From 6a380fa9789412e561a1b5ae976f7b312090571f Mon Sep

[clang-tools-extra] [clang-tools-extra] Remove %T from lit tests (PR #151538)

2025-07-31 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang-tools-extra` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/21006

[clang] [CIR] Add diagnostic for NYI AST visitor handlers (PR #151561)

2025-07-31 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Should we get a test for the TagDeclRequired case? https://github.com/llvm/llvm-project/pull/151561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

  1   2   3   4   >