[clang] Update ExternalPreprocessorSource.h (PR #96144)

2024-06-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Danial Klimkin (dklimkin) Changes Add missing includes. --- Full diff: https://github.com/llvm/llvm-project/pull/96144.diff 1 Files Affected: - (modified) clang/include/clang/Lex/ExternalPreprocessorSource.h (+3) ``diff diff

[clang] Update ExternalPreprocessorSource.h (PR #96144)

2024-06-20 Thread Danial Klimkin via cfe-commits
https://github.com/dklimkin created https://github.com/llvm/llvm-project/pull/96144 Add missing includes. >From bd4f6d50b57680f520ed22b5c5108ae6d9506ca3 Mon Sep 17 00:00:00 2001 From: Danial Klimkin Date: Thu, 20 Jun 2024 09:18:18 +0200 Subject: [PATCH] Update ExternalPreprocessorSource.h

[clang] [clang][Sema] Refine unused-member-function diagnostic message for constructors (PR #84515)

2024-06-20 Thread via cfe-commits
guillem-bartina-sonarsource wrote: Ping https://github.com/llvm/llvm-project/pull/84515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86]Add support for __outbyte/word/dword and __inbyte/word/dword (PR #93774)

2024-06-20 Thread Malay Sanghi via cfe-commits
https://github.com/MalaySanghi updated https://github.com/llvm/llvm-project/pull/93774 >From 17c3fc95c0753ec013b22ce0c539992b24b21055 Mon Sep 17 00:00:00 2001 From: Malay Sanghi Date: Wed, 29 May 2024 22:40:47 -0700 Subject: [PATCH 1/5] Add support for _outp{|w|d} ---

[clang] [clang][dataflow] Add a callback run on the pre-transfer state. (PR #96140)

2024-06-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes At the same time, rename `PostVisitCFG` to the more descriptive `PostAnalysisCallbacks` (which emphasizes the fact that these callbacks are run after the dataflow analysis itself has converged). Before this

[clang] [clang][dataflow] Add a callback run on the pre-transfer state. (PR #96140)

2024-06-20 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/96140 At the same time, rename `PostVisitCFG` to the more descriptive `PostAnalysisCallbacks` (which emphasizes the fact that these callbacks are run after the dataflow analysis itself has converged). Before this

[clang-tools-extra] [clang-tidy] add option to avoid "no checks enabled" error (PR #96122)

2024-06-20 Thread Danny Mösch via cfe-commits
@@ -325,6 +325,14 @@ option is recognized. )"), cl::init(false), cl::cat(ClangTidyCategory)); +static cl::opt AllowEmptyCheckList("allow-empty-checks", desc(R"( SimplyDanny wrote: Should the option names be in sync?

[clang] [clang-format[NFC] Clean up AnnotatingParser::rParenEndsCast() (PR #96128)

2024-06-20 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/96128 >From 420cde9e46d8eb3f3043d18cf78fbaef0f89ccbb Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 19 Jun 2024 18:07:56 -0700 Subject: [PATCH] [clang-format[NFC] Clean up AnnotatingParser::rParenEndsCast() ---

[clang] [X86]Add support for __outbyte/word/dword and __inbyte/word/dword (PR #93774)

2024-06-20 Thread Phoebe Wang via cfe-commits
@@ -330,24 +330,35 @@ static __inline__ void __DEFAULT_FN_ATTRS __halt(void) { __asm__ volatile("hlt"); } -static inline int _inp(unsigned short port) { - int ret; +static inline unsigned char __inbyte(unsigned short port) { + unsigned char ret; __asm__ volatile("inb

[clang] [X86]Add support for __outbyte/word/dword and __inbyte/word/dword (PR #93774)

2024-06-20 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang commented: LGTM. https://github.com/llvm/llvm-project/pull/93774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86]Add support for __outbyte/word/dword and __inbyte/word/dword (PR #93774)

2024-06-20 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/93774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86]Add support for __outbyte/word/dword and __inbyte/word/dword (PR #93774)

2024-06-20 Thread Malay Sanghi via cfe-commits
https://github.com/MalaySanghi edited https://github.com/llvm/llvm-project/pull/93774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86]Add support for __outbyte/word/dword and __inbyte/word/dword (PR #93774)

2024-06-20 Thread Malay Sanghi via cfe-commits
https://github.com/MalaySanghi edited https://github.com/llvm/llvm-project/pull/93774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86]Add support for _outp{|w|d} (PR #93774)

2024-06-20 Thread Malay Sanghi via cfe-commits
https://github.com/MalaySanghi updated https://github.com/llvm/llvm-project/pull/93774 >From 17c3fc95c0753ec013b22ce0c539992b24b21055 Mon Sep 17 00:00:00 2001 From: Malay Sanghi Date: Wed, 29 May 2024 22:40:47 -0700 Subject: [PATCH 1/4] Add support for _outp{|w|d} ---

[clang] [clang][Interp] Implement dynamic memory allocation handling (PR #70306)

2024-06-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/70306 >From 34b15ca688eef0fd0c23298957faaa6342d15cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 25 Oct 2023 08:33:30 +0200 Subject: [PATCH] [clang][Interp] Implement dynamic memory

[clang] [flang] [flang] Implement -mcmodel flag (PR #95411)

2024-06-19 Thread Thirumalai Shaktivel via cfe-commits
Thirumalai-Shaktivel wrote: Yes, thank you! https://github.com/llvm/llvm-project/pull/95411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2024-06-19 Thread Timm Baeder via cfe-commits
tbaederr wrote: I've resorted to do this in `ThreadSafety.cpp` now, since all other places where we merge function definition and declaration happen before we have the late-parsed attributes available. >From a diagnostic POV, this seems quite complicated since we have N >declarations and

[clang] [serialization] No transitive type change (PR #92511)

2024-06-19 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/92511 >From e8f756ec7f8ea7e5bf18cc122a965fb2f258fd15 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 14 May 2024 15:33:12 +0800 Subject: [PATCH 1/3] [Serialization] No transitive identifier change ---

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2024-06-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67520 >From 800ce47e967593ec149e0187abf6d2cb3ee1b1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 20 Jun 2024 07:39:20 +0200 Subject: [PATCH] Warn on RequiresCapability attribute mismatch

[clang] [X86]Add support for _outp{|w|d} (PR #93774)

2024-06-19 Thread Malay Sanghi via cfe-commits
@@ -348,6 +348,20 @@ static inline unsigned long _inpd(unsigned short port) { return ret; } +static inline int _outp(unsigned short port, int data) { MalaySanghi wrote: There's 2 differences between _outp and __outbyte. First, the newer intrinsics don't

[clang] fd88089 - -fsanitize=vptr: Change hash function and simplify bit mixer

2024-06-19 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-06-19T22:39:54-07:00 New Revision: fd88089151e66a4cb1d90aaa224e4cb4e7a748f4 URL: https://github.com/llvm/llvm-project/commit/fd88089151e66a4cb1d90aaa224e4cb4e7a748f4 DIFF: https://github.com/llvm/llvm-project/commit/fd88089151e66a4cb1d90aaa224e4cb4e7a748f4.diff

[clang] [serialization] No transitive type change (PR #92511)

2024-06-19 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/92511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2f2ea35 - [Serialization] No transitive identifier change (#92085)

2024-06-19 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-06-20T13:30:05+08:00 New Revision: 2f2ea3557bfe5aa773ae12a7f0a01a26f1791349 URL: https://github.com/llvm/llvm-project/commit/2f2ea3557bfe5aa773ae12a7f0a01a26f1791349 DIFF: https://github.com/llvm/llvm-project/commit/2f2ea3557bfe5aa773ae12a7f0a01a26f1791349.diff

[clang] [Serialization] No transitive identifier change (PR #92085)

2024-06-19 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/92085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] No transitive identifier change (PR #92085)

2024-06-19 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/92085 >From a2f883278bafb311eb290015a9cf04affeb8d760 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Tue, 14 May 2024 15:33:12 +0800 Subject: [PATCH] [Serialization] No transitive identifier change ---

[clang] da2ad44 - [HeaderSearch] Introduce LazyIdentifierInfoPtr for Controlling Macro in HeaderFileInfo

2024-06-19 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-06-20T13:13:47+08:00 New Revision: da2ad44119edf13eb944f7e685469352aa840e63 URL: https://github.com/llvm/llvm-project/commit/da2ad44119edf13eb944f7e685469352aa840e63 DIFF: https://github.com/llvm/llvm-project/commit/da2ad44119edf13eb944f7e685469352aa840e63.diff

[clang] [llvm] [Serialization] Use stable hash functions (PR #96136)

2024-06-19 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: This looks generally good. > Some check-clang-modules tests still fail (@ChuanqiXu9) What does this mean? Do you mean there are some failures after this patch? What are they? Or are these tests failing before this patch? https://github.com/llvm/llvm-project/pull/96136

[clang] [llvm] [Serialization] Use stable hash functions (PR #96136)

2024-06-19 Thread Fangrui Song via cfe-commits
MaskRay wrote: This patch fixes most clangSerialization issues if we make `llvm::hash_combine`/`llvm::hash_value` non-deterministic. https://github.com/MaskRay/llvm-project/tree/hashing-seed Some check-clang-modules tests still fail (@ChuanqiXu9) along with other failures (e.g. HIP @jhuber6 )

[clang] [llvm] [Serialization] Use stable hash functions (PR #96136)

2024-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Fangrui Song (MaskRay) Changes clangSerialization currently uses hash_combine/hash_value from Hashing.h, which are not guaranteed to be deterministic. Replace these uses with xxh3_64bits. --- Full diff:

[clang] [llvm] [Serialization] Use stable hash functions (PR #96136)

2024-06-19 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/96136 clangSerialization currently uses hash_combine/hash_value from Hashing.h, which are not guaranteed to be deterministic. Replace these uses with xxh3_64bits. >From 8faa9f42a01a3a832cb197465a68f02f9c0f3509 Mon

[clang] [TBAA] Emit int TBAA metadata on FP math libcalls (PR #96025)

2024-06-19 Thread via cfe-commits
vfdff wrote: > Can we restrict this to targets where libm actually modifies errno? Do you mean it is better to have a function list, which actually modifies `errno` ? For example, we should restrict to `__exp10`, but but not a general top call `__exp `?

[clang-tools-extra] [clang-doc] Add --asset option to clang-doc (PR #94717)

2024-06-19 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/94717 ___ 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 --asset option to clang-doc (PR #94717)

2024-06-19 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,2 @@ +// RUN: clang-doc --format=html --executor=standalone %s -output=%t/docs | FileCheck %s +// CHECK: Using default asset: {{.*}}%{pathsep}share%{pathsep}clang ilovepi wrote: hmm, maybe I've sent you down the wrong path. I don't know if the

[clang] [llvm] [RISCV] Add Syntacore SCR3 processor definition (PR #95953)

2024-06-19 Thread Michael Maitland via cfe-commits
https://github.com/michaelmaitland approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/95953 ___ 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 --asset option to clang-doc (PR #94717)

2024-06-19 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/94717 >From eeb334620df72c395a5ad27f44a864a6a0c194a5 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 6 Jun 2024 23:18:12 -0400 Subject: [PATCH 01/20] [clang][clang-doc] add asset path ---

[clang] [clang] Define ptrauth_string_discriminator builtin. (PR #93903)

2024-06-19 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/93903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format[NFC] Clean up AnnotatingParser::rParenEndsCast() (PR #96128)

2024-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/96128.diff 1 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+46-35) ``diff diff --git

[clang] [clang-format[NFC] Clean up AnnotatingParser::rParenEndsCast() (PR #96128)

2024-06-19 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/96128 None >From 04618d27f9ebd045dfae5bfc341056c483fab0d1 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 19 Jun 2024 18:07:56 -0700 Subject: [PATCH] [clang-format[NFC] Clean up AnnotatingParser::rParenEndsCast()

[clang] [PPC][InlineASM] Mark the 'a' constraint as unsupported (PR #96109)

2024-06-19 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 approved this pull request. LGTM except a nit. https://github.com/llvm/llvm-project/pull/96109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PPC][InlineASM] Mark the 'a' constraint as unsupported (PR #96109)

2024-06-19 Thread Chen Zheng via cfe-commits
@@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -emit-llvm -triple powerpc64le-unknown-unknown -verify %s chenzheng1030 wrote: nit: can you also add run lines for AIX 32 and 64 bit? https://github.com/llvm/llvm-project/pull/96109

[clang] [PPC][InlineASM] Mark the 'a' constraint as unsupported (PR #96109)

2024-06-19 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 edited https://github.com/llvm/llvm-project/pull/96109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Correctly annotate l_brace after TypenameMacro (PR #96026)

2024-06-19 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/96026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fa00e8b - [clang-format] Correctly annotate l_brace after TypenameMacro (#96026)

2024-06-19 Thread via cfe-commits
Author: Owen Pan Date: 2024-06-19T17:49:35-07:00 New Revision: fa00e8bb6a14d39e273f85a77308923ad28329f0 URL: https://github.com/llvm/llvm-project/commit/fa00e8bb6a14d39e273f85a77308923ad28329f0 DIFF: https://github.com/llvm/llvm-project/commit/fa00e8bb6a14d39e273f85a77308923ad28329f0.diff

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

2024-06-19 Thread Kohei Asano via cfe-commits
khei4 wrote: I confirmed [the update of WebKit Code Style Guideline for empty braces](https://github.com/WebKit/WebKit/pull/29668). I make WebKit style insert a space in any empty braces. I also updated document by script. https://github.com/llvm/llvm-project/pull/93634

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

2024-06-19 Thread Kohei Asano via cfe-commits
https://github.com/khei4 updated https://github.com/llvm/llvm-project/pull/93634 >From c4932b225fefc6adc0bfe158e4ccba5f249baf94 Mon Sep 17 00:00:00 2001 From: Kohei Asano Date: Mon, 3 Jun 2024 09:15:44 +0900 Subject: [PATCH] [clang-format] add an option to insert a space only for empty braces

[clang] [clang-format] add an option to insert a space only for non-code block empty braces, not for empty parentheses (PR #93634)

2024-06-19 Thread Kohei Asano via cfe-commits
https://github.com/khei4 updated https://github.com/llvm/llvm-project/pull/93634 >From 8018dafc9878bcf3ad5f041dc90d9908b816925f Mon Sep 17 00:00:00 2001 From: Kohei Asano Date: Mon, 3 Jun 2024 09:15:44 +0900 Subject: [PATCH] [clang-format] add an option to insert a space only for empty braces

[clang] [llvm] [polly] [LLVM] Add InsertPosition union-type to remove overloads of Instruction-creation (PR #94226)

2024-06-19 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. https://github.com/llvm/llvm-project/pull/94226 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TBAA] Emit int TBAA metadata on FP math libcalls (PR #96025)

2024-06-19 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/96025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [TBAA] Emit int TBAA metadata on FP math libcalls (PR #96025)

2024-06-19 Thread Eli Friedman via cfe-commits
@@ -707,7 +707,38 @@ static RValue emitLibraryCall(CodeGenFunction , const FunctionDecl *FD, const CallExpr *E, llvm::Constant *calleeValue) { CodeGenFunction::CGFPOptionsRAII FPOptsRAII(CGF, E); CGCallee callee =

[clang] [TBAA] Emit int TBAA metadata on FP math libcalls (PR #96025)

2024-06-19 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: Ideally we could identify errno more precisely somehow, but I guess this is better than nothing. Can we restrict this to targets where libm actually modifies errno? How does this interact with StrictFP?

[clang-tools-extra] [clang-tidy] add option to avoid "no checks enabled" error (PR #96122)

2024-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes When clang-tidy get an empty checks, it will throw "no checks enabled" error and exit with non-zero return value. It make clang-tidy's wrapper program confused

[clang-tools-extra] [clang-tidy] add option to avoid "no checks enabled" error (PR #96122)

2024-06-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/96122 When clang-tidy get an empty checks, it will throw "no checks enabled" error and exit with non-zero return value. It make clang-tidy's wrapper program confused when in big project some files don't want to

[clang] [Clang][Driver] Expose `-fno-eliminate-unused-debug-types` to clang-cl (PR #95259)

2024-06-19 Thread Alexandre Ganea via cfe-commits
aganea wrote: > Yes, feel free to take over that part, thanks! @amykhuang : I took a look at https://reviews.llvm.org/D89286. It works but doesn't fix the most problematic case where the `constexpr` member needs an evaluation that relies on dependent values: ``` template struct C {

[libunwind] [libc][libunwind] support build libunwind with libc (PR #84509)

2024-06-19 Thread Schrodinger ZHU Yifan via cfe-commits
https://github.com/SchrodingerZhu updated https://github.com/llvm/llvm-project/pull/84509 >From c7aa9678d9d9df752490c635810428ae37766fd3 Mon Sep 17 00:00:00 2001 From: Schrodinger ZHU Yifan Date: Fri, 8 Mar 2024 11:14:39 -0500 Subject: [PATCH] [libc][libunwind] support build libunwind with

[clang] [Clang][Sanitizers] Enable NSAN on Linux only (PR #96120)

2024-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Alexander Shaposhnikov (alexander-shaposhnikov) Changes Enable nsan on Linux only. Adding support for X86_64 MacOS requires minimal efforts (might need to copy some bits from other sanitizers (in compiler-rt)). Currently the

[clang] [Clang][Sanitizers] Enable NSAN on Linux only (PR #96120)

2024-06-19 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov created https://github.com/llvm/llvm-project/pull/96120 Enable nsan on Linux only. Adding support for X86_64 MacOS requires minimal efforts (might need to copy some bits from other sanitizers (in compiler-rt)). Currently the functionality has been

[clang-tools-extra] [clang-doc] Add --asset option to clang-doc (PR #94717)

2024-06-19 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,2 @@ +// RUN: clang-doc --format=html --executor=standalone %s -output=%t/docs | FileCheck %s +// CHECK: Using default asset: {{.*}}%{pathsep}share%{pathsep}clang ilovepi wrote: The regular expression doesn't look right to me. I assume that `pathsep`

[clang] [hexagon] Add {con, de}structive interference size defn (PR #94877)

2024-06-19 Thread Brian Cain via cfe-commits
androm3da wrote: I was mistaken: it appears that the cache line size is not the same among all CPUs. I'll revise this PR. Since I'm away from the office for a couple of weeks, I've switched this PR to a draft. I'll revisit it when I return and promote it when updated.

[clang] [hexagon] Add {con, de}structive interference size defn (PR #94877)

2024-06-19 Thread Brian Cain via cfe-commits
https://github.com/androm3da converted_to_draft https://github.com/llvm/llvm-project/pull/94877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm][AArch64] SVE2 is an optional feature in ARMv9.0a (PR #96007)

2024-06-19 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs updated https://github.com/llvm/llvm-project/pull/96007 >From b18411c28ed9b89660fac6311596408dafb7f40e Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Tue, 18 Jun 2024 15:26:32 -0700 Subject: [PATCH 1/2] [llvm][AArch64] SVE2 is an optional feature in ARMv9.0a ---

[clang] [llvm] [polly] [LLVM] Add InsertPosition union-type to remove overloads of Instruction-creation (PR #94226)

2024-06-19 Thread Stephen Tozer via cfe-commits
SLTozer wrote: > I think some of the overloads for constructing an instruction aren't quite > right: That's reasonable - I defaulted to adding nullptr-defaults in the case where it didn't cause incorrect overloads, but it's easier to keep only the existing defaults and let any others be

[clang-tools-extra] [clang-doc] Add --asset option to clang-doc (PR #94717)

2024-06-19 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/94717 >From eeb334620df72c395a5ad27f44a864a6a0c194a5 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 6 Jun 2024 23:18:12 -0400 Subject: [PATCH 01/19] [clang][clang-doc] add asset path ---

[clang] [clang] Implement CWG2877 "Type-only lookup for using-enum-declarator" (PR #95399)

2024-06-19 Thread Vlad Serebrennikov via cfe-commits
@@ -738,16 +738,47 @@ Parser::DeclGroupPtrTy Parser::ParseUsingDeclaration( return nullptr; } -if (!Tok.is(tok::identifier)) { +Decl *UED = nullptr; + +if (Tok.is(tok::identifier)) { Endilll wrote: We agreed offline that adding FIXME

[clang] [clang] Implement CWG2877 "Type-only lookup for using-enum-declarator" (PR #95399)

2024-06-19 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/95399 >From a7b6a8b667d48d8e70f3e5fcbaaa44a72ad885db Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Thu, 13 Jun 2024 14:35:08 +0300 Subject: [PATCH 1/4] [clang] Implement CWG2877 "Type-only lookup for

[clang-tools-extra] [Ignore] (PR #96115)

2024-06-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank edited https://github.com/llvm/llvm-project/pull/96115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Ignore] (PR #96115)

2024-06-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank edited https://github.com/llvm/llvm-project/pull/96115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [clang][lldb] Don't assert structure layout correctness for layouts provided by LLDB (PR #93809)

2024-06-19 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: It's not that hard to compute "no-data": non-RecordDecls are never no-data, RecordDecls are no-data if they don't have a vtable pointer (isDynamicClass()), and all fields are no-data. We can save it in the CGRecordLayout. Assuming that's the route we want to go, of

[clang-tools-extra] My Commit, Second commit. (PR #96115)

2024-06-19 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Oops, was demoing something. Closing. https://github.com/llvm/llvm-project/pull/96115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] My Commit, Second commit. (PR #96115)

2024-06-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank closed https://github.com/llvm/llvm-project/pull/96115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] My Commit, Second commit. (PR #96115)

2024-06-19 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/96115 My Commit, Second commit. >From 3a4de668b952c4db849f41b34c0f9e7869506c96 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Wed, 19 Jun 2024 16:40:37 -0400 Subject: [PATCH] My Commit, Second commit. ---

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

2024-06-19 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok converted_to_draft https://github.com/llvm/llvm-project/pull/96113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

2024-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mital Ashok (MitalAshok) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/96113.diff 2 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+3-2) - (modified) clang/lib/Sema/SemaDecl.cpp

[clang] [Clang] Do not allow `[[clang::lifetimebound]]` on explicit object member functions (PR #96113)

2024-06-19 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok edited https://github.com/llvm/llvm-project/pull/96113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Do not allow `[[clang::lifetime_bound]]` on explicit object member functions (PR #96113)

2024-06-19 Thread Mital Ashok via cfe-commits
https://github.com/MitalAshok created https://github.com/llvm/llvm-project/pull/96113 None >From 4a10adf7d9f51d023ae78d02693fc767ac278ea6 Mon Sep 17 00:00:00 2001 From: Mital Ashok Date: Wed, 19 Jun 2024 21:03:34 +0100 Subject: [PATCH] [Clang] Do not allow `[[clang::lifetime_bound]]` on

[clang] [PPC][InlineASM] Mark the 'a' constraint as unsupported (PR #96109)

2024-06-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kamau Bridgeman (kamaub) Changes 'a' is an input/ouput constraint for restraining assembly variables to an indexed or indirect address operand. It previously was marked as supported but would throw an assertion for unknown constraint type

[clang] [PPC][InlineASM] Mark the 'a' constraint as unsupported (PR #96109)

2024-06-19 Thread Kamau Bridgeman via cfe-commits
https://github.com/kamaub created https://github.com/llvm/llvm-project/pull/96109 'a' is an input/ouput constraint for restraining assembly variables to an indexed or indirect address operand. It previously was marked as supported but would throw an assertion for unknown constraint type in the

[clang] [llvm] [polly] [LLVM] Add InsertPosition union-type to remove overloads of Instruction-creation (PR #94226)

2024-06-19 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: I think some of the overloads for constructing an instruction aren't quite right: in some cases, we require a non-null insertion-point so we can retrieve the DataLayout from the insertion-point. (Particularly instructions that have an explicitly specified alignment.) In

[clang] [clang-format] Add a new style for the clang-format source code (PR #69814)

2024-06-19 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > Where is the documentation for the value? CLion reports `clang-format` option > as an error by the reason. No doc, no schema rule. There: > I don't want to "advertise" this new style in the documentation but am > willing to be overruled by the majority. There is

[clang] [clang-format] Correctly annotate l_brace after TypenameMacro (PR #96026)

2024-06-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/96026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add inlay hints for default function arguments and implicit lambda captures (PR #95712)

2024-06-19 Thread Tor Shepherd via cfe-commits
torshepherd wrote: Ok I took a stab at doing lambda captures as hover instead. - Targeting the exact '=' or '&' is nontrivial since the capture list isn't in the AST, the lambda is just `LambdaExpr` with children for the parameters and the CompoundStmt body. - `auto MyLambda = [...` already

[clang] [HLSL][clang] Add elementwise builtins for trig intrinsics (PR #95999)

2024-06-19 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/95999 >From b1876f32ab37e9812142bd0d181c16a2679c1fce Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Tue, 18 Jun 2024 17:47:13 -0400 Subject: [PATCH] [HLSL][clang] Add elementwise builtins for trig intrinsics This

[clang] [libc] [llvm] [NVPTX] Implement variadic functions using IR lowering (PR #96015)

2024-06-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/96015 >From 0cae8db24812b2ab5539cc581fbc461af072b5fd Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 17 Jun 2024 15:32:31 -0500 Subject: [PATCH] [NVPTX] Implement variadic functions using IR lowering Summary:

[clang] eb8d036 - [clang-linker-wrapper] Use MapVector to stabilize iteration order

2024-06-19 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-06-19T11:46:52-07:00 New Revision: eb8d036565496d4466ad9974fdf8ff91812feefb URL: https://github.com/llvm/llvm-project/commit/eb8d036565496d4466ad9974fdf8ff91812feefb DIFF: https://github.com/llvm/llvm-project/commit/eb8d036565496d4466ad9974fdf8ff91812feefb.diff

[clang] [clang] Fix missing installed header (PR #95979)

2024-06-19 Thread Daniel Otero via cfe-commits
danielotero wrote: I forgot to say I don't have commit access, so feel free to merge this. https://github.com/llvm/llvm-project/pull/95979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [HLSL][clang] Add elementwise builtins for trig intrinsics (PR #95999)

2024-06-19 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. https://github.com/llvm/llvm-project/pull/95999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] Implement CWG2398 provisional TTP matching to class templates (PR #94981)

2024-06-19 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Sure. https://github.com/llvm/llvm-project/pull/94981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Clarify diagnostic notes for implicitly generated deduction guides (PR #96084)

2024-06-19 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Changes to DR tests look fine. https://github.com/llvm/llvm-project/pull/96084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0ea6b8e - [clang-linker-wrapper] Use MapVector to stabilize iteration order

2024-06-19 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-06-19T11:03:39-07:00 New Revision: 0ea6b8e476c28746f4434db6515fcffe2f9cbe4b URL: https://github.com/llvm/llvm-project/commit/0ea6b8e476c28746f4434db6515fcffe2f9cbe4b DIFF: https://github.com/llvm/llvm-project/commit/0ea6b8e476c28746f4434db6515fcffe2f9cbe4b.diff

[clang] [Clang] Fix parsing of reversible type traits in template arguments (PR #95969)

2024-06-19 Thread via cfe-commits
@@ -141,3 +141,15 @@ namespace r360308_regression { return a == b; } } + +namespace GH95598 { +template +struct __is_pointer {}; +// expected-warning@-1 {{keyword '__is_pointer' will be made available as an identifier for the remainder of the translation unit}}

[clang] [Clang] Move the builtin workaround logic to the lexer (PR #96097)

2024-06-19 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/96097 None >From b77b2d9b10ad90ee67893904732003bf11eec21d Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 19 Jun 2024 19:47:43 +0200 Subject: [PATCH] [Clang] Move the builtin workaround logic to the lexer

[clang] [llvm] [OpenMP] Diagnostic check for imperfect loop collapse (PR #96087)

2024-06-19 Thread Julian Brown via cfe-commits
https://github.com/jtb20 edited https://github.com/llvm/llvm-project/pull/96087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Sean Perry via cfe-commits
@@ -0,0 +1,84 @@ +// RUN: %clang_cc1 -triple s390x-ibm-zos -fzos-extensions -emit-llvm -O2 < %s | FileCheck %s --check-prefix=X64 perry-ca wrote: Does this test need to be some complicated? https://github.com/llvm/llvm-project/pull/96063

[clang] [llvm] [SystemZ][z/OS] __ptr32 support for z/OS in Clang (PR #96063)

2024-06-19 Thread Sean Perry via cfe-commits
@@ -7097,10 +7098,14 @@ static bool handleMSPointerTypeQualifierAttr(TypeProcessingState , else if (Attrs[attr::UPtr]) ASIdx = LangAS::ptr32_uptr; } else if (PtrWidth == 64 && Attrs[attr::Ptr32]) { -if (Attrs[attr::UPtr]) +if (Triple.isOSzOS()) {

[clang] [llvm] [polly] [LLVM] Add InsertPosition union-type to remove overloads of Instruction-creation (PR #94226)

2024-06-19 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/94226 ___ 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 basic e2e test (PR #93928)

2024-06-19 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/93928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 70ec841 - [clang-doc] Add basic e2e test (#93928)

2024-06-19 Thread via cfe-commits
Author: PeterChou1 Date: 2024-06-19T10:06:33-07:00 New Revision: 70ec8419dd722abeddf09e11f01500ae62334394 URL: https://github.com/llvm/llvm-project/commit/70ec8419dd722abeddf09e11f01500ae62334394 DIFF: https://github.com/llvm/llvm-project/commit/70ec8419dd722abeddf09e11f01500ae62334394.diff

[clang] [clang-format] Correctly annotate l_brace after TypenameMacro (PR #96026)

2024-06-19 Thread Owen Pan via cfe-commits
@@ -3180,6 +3180,18 @@ TEST_F(TokenAnnotatorTest, FunctionTryBlock) { EXPECT_TOKEN(Tokens[36], tok::l_brace, TT_FunctionLBrace); } +TEST_F(TokenAnnotatorTest, TypenameMacro) { + auto Style = getLLVMStyle(); + Style.TypenameMacros.push_back("STRUCT"); + + auto Tokens =

[clang] [CodeGen] Remove extraneous ArrayRef (NFC) (PR #96085)

2024-06-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/96085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 09f88da - [CodeGen] Remove extraneous ArrayRef (NFC) (#96085)

2024-06-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-06-19T09:49:26-07:00 New Revision: 09f88da966c8117c3ee9780aaa4cbaa7f4f0da5c URL: https://github.com/llvm/llvm-project/commit/09f88da966c8117c3ee9780aaa4cbaa7f4f0da5c DIFF: https://github.com/llvm/llvm-project/commit/09f88da966c8117c3ee9780aaa4cbaa7f4f0da5c.diff

[clang] [clang][Interp] Implement dynamic memory allocation handling (PR #70306)

2024-06-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/70306 >From c36e40f5454ebb50e8ec6b83d50ac988f8aa780c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 25 Oct 2023 08:33:30 +0200 Subject: [PATCH] [clang][Interp] Implement dynamic memory

<    9   10   11   12   13   14   15   16   17   18   >