[clang] 164d123 - [RISCV] Simplify reserse fixed regs (#104736)

2024-08-19 Thread via cfe-commits
Author: Pengcheng Wang Date: 2024-08-19T15:16:51+08:00 New Revision: 164d1230f78b32647e1a6e948245e75f557a8068 URL: https://github.com/llvm/llvm-project/commit/164d1230f78b32647e1a6e948245e75f557a8068 DIFF: https://github.com/llvm/llvm-project/commit/164d1230f78b32647e1a6e948245e75f557a8068.diff

[clang] [RISCV] Simplify reserse fixed regs (PR #104736)

2024-08-19 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp closed https://github.com/llvm/llvm-project/pull/104736 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)

2024-08-19 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw created https://github.com/llvm/llvm-project/pull/104741 This patch extends [D34590](https://reviews.llvm.org/D34590) to check assumption violations. >From e2ce302a0d3649594ff1a6b94420f815d0e1acde Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Mon, 19 Aug 2024

[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yingwei Zheng (dtcxzyw) Changes This patch extends [D34590](https://reviews.llvm.org/D34590) to check assumption violations. --- Full diff: https://github.com/llvm/llvm-project/pull/104741.diff 7 Files Affected: - (modified) clang/lib

[clang] [Sparc] Add flags to enable errata workaround pass for GR712RC and UT700 (PR #104742)

2024-08-19 Thread Daniel Cederman via cfe-commits
https://github.com/doac created https://github.com/llvm/llvm-project/pull/104742 This adds the flags -mfix-gr712rc and -mfix-ut700 which enables the necessary errata workarounds for the GR712RC and UT700 processors. The functionality enabled by the flags is the same as the functionality provide

[clang] [Sparc] Add flags to enable errata workaround pass for GR712RC and UT700 (PR #104742)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-backend-sparc Author: Daniel Cederman (doac) Changes This adds the flags -mfix-gr712rc and -mfix-ut700 which enables the necessary errata workarounds for the GR712RC and UT700 processors. The functionality enabled by t

[clang] [analyzer] Do not reason about locations passed as inline asm input (PR #103714)

2024-08-19 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: @mikaelholmen Thanks for the report! Will take a look today later. https://github.com/llvm/llvm-project/pull/103714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Collect local variables referenced within a functio… (PR #104459)

2024-08-19 Thread via cfe-commits
martinboehme wrote: > Looks good, but please add a test. Thanks! +1 on both counts. https://github.com/llvm/llvm-project/pull/104459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Detect cycles of length 1 (PR #103476)

2024-08-19 Thread Michael Kolupaev via cfe-commits
al13n321 wrote: The `clone` syscall, in newly created thread, adjusts stack pointer and stack contents, and there's logically no "caller" stack frame and no return address on the stack. `tools/add-cfi.x86_64.awk` doesn't know about any of that and autogenerates cfi as if it's just normal linea

[libunwind] [libunwind] Detect cycles of length 1 (PR #103476)

2024-08-19 Thread Michael Kolupaev via cfe-commits
al13n321 wrote: Feel free to close this PR if such change is not going to be accepted. https://github.com/llvm/llvm-project/pull/103476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-19 Thread Tomas Matheson via cfe-commits
tmatheson-arm wrote: /cherry-pick 362142c4bb5cc657151f592e507f552d5b9f7dde https://github.com/llvm/llvm-project/pull/104435 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-19 Thread via cfe-commits
llvmbot wrote: Failed to cherry-pick: 362142c4bb5cc657151f592e507f552d5b9f7dde https://github.com/llvm/llvm-project/actions/runs/10450539158 Please manually backport the fix and push it to your github fork. Once this is done, please create a [pull request](https://github.com/llvm/llvm-proje

[clang] [llvm] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-08-19 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises updated https://github.com/llvm/llvm-project/pull/94581 >From a3d3cf70e2c80683a73db5a93ae4223c2d64f597 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Thu, 6 Jun 2024 14:06:48 +0800 Subject: [PATCH 1/3] [PowerPC] Support -mno-red-zone option --- clang/lib/Driver/

[clang] [llvm] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-08-19 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises updated https://github.com/llvm/llvm-project/pull/94581 >From a3d3cf70e2c80683a73db5a93ae4223c2d64f597 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Thu, 6 Jun 2024 14:06:48 +0800 Subject: [PATCH 1/3] [PowerPC] Support -mno-red-zone option --- clang/lib/Driver/

[clang] [libcxx] [Clang] Implement CWG2369 "Ordering between constraints and substitution" (PR #102857)

2024-08-19 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @mordante I saw some tests are "unexpectedly passed" on ARM platforms: https://buildkite.com/llvm-project/libcxx-ci/builds/37165#0191685f-c770-41d1-a8a4-8819da1b1802 Is that something undesired / why did we mark them XFAIL previously? https://github.com/llvm/llvm-project/pull/10

[clang] de5deb7 - [PAC][ELF][AArch64] Encode several ptrauth features in PAuth core info (#102508)

2024-08-19 Thread via cfe-commits
Author: Daniil Kovalev Date: 2024-08-19T12:53:43+03:00 New Revision: de5deb7b07db39810c4b07870c75ccc8dccc5fe9 URL: https://github.com/llvm/llvm-project/commit/de5deb7b07db39810c4b07870c75ccc8dccc5fe9 DIFF: https://github.com/llvm/llvm-project/commit/de5deb7b07db39810c4b07870c75ccc8dccc5fe9.diff

[clang] [llvm] [PAC][ELF][AArch64] Encode several ptrauth features in PAuth core info (PR #102508)

2024-08-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 closed https://github.com/llvm/llvm-project/pull/102508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b6d1df2 - [PowerPC] Support -mno-red-zone option (#94581)

2024-08-19 Thread via cfe-commits
Author: Qiu Chaofan Date: 2024-08-19T17:58:08+08:00 New Revision: b6d1df2afd0a464f3f37055f16fb9321a3b2eaaf URL: https://github.com/llvm/llvm-project/commit/b6d1df2afd0a464f3f37055f16fb9321a3b2eaaf DIFF: https://github.com/llvm/llvm-project/commit/b6d1df2afd0a464f3f37055f16fb9321a3b2eaaf.diff L

[clang] [llvm] [PowerPC] Support -mno-red-zone option (PR #94581)

2024-08-19 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises closed https://github.com/llvm/llvm-project/pull/94581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][WebAssembly] Link crt2-command.o if available (PR #104755)

2024-08-19 Thread YAMAMOTO Takashi via cfe-commits
https://github.com/yamt created https://github.com/llvm/llvm-project/pull/104755 cf. https://github.com/WebAssembly/wasi-libc/pull/528 >From 9cd6ddd576c70dfd21c35ae4721ee9f2e03d986f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 19 Aug 2024 19:14:04 +0900 Subject: [PATCH] [clang][We

[clang] [clang][WebAssembly] Link crt2-command.o if available (PR #104755)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: YAMAMOTO Takashi (yamt) Changes cf. https://github.com/WebAssembly/wasi-libc/pull/528 --- Full diff: https://github.com/llvm/llvm-project/pull/104755.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/WebAssembly.cpp (+10-1

[clang] [clang][bytecode] Fix member pointers to IndirectFieldDecls (PR #104756)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104756 None >From d693d888ea030a67d4f55c46edecf4e413db77c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 19 Aug 2024 11:31:10 +0200 Subject: [PATCH] [clang][bytecode] Fix member pointers to

[clang] [clang][bytecode] Fix member pointers to IndirectFieldDecls (PR #104756)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/104756 >From 8720865019f753747cc5441741a6c6eb80f7f0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 19 Aug 2024 11:31:10 +0200 Subject: [PATCH] [clang][bytecode] Fix member pointers to Indire

[clang] [clang][bytecode] Fix member pointers to IndirectFieldDecls (PR #104756)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/104756.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/MemberPointer.cpp (+29-14) - (modified) clang/test/AST/ByteCode/memberpointers.c

[clang] [flang] [flang][driver] Add pre-processing type to `.i` (pre-processed) files (PR #104664)

2024-08-19 Thread Andrzej Warzyński via cfe-commits
banach-space wrote: For context, this PR documents the origins of .i in the context of `flang-new`: * https://github.com/llvm/llvm-project/commit/a65afce731c2fa91effcfa5d4917d6ad90a28bf0 If these files are already pre-processed, why would we add `phases::Preprocess` to the list of compilation

[clang] [clang][bytecode] Fix member pointers to IndirectFieldDecls (PR #104756)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/104756 >From f6787843ec316df6505274d3bb312d9d44c0de67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 19 Aug 2024 11:31:10 +0200 Subject: [PATCH] [clang][bytecode] Fix member pointers to Indire

[clang] [clang][ExtractAPI] Stop dropping fields of nested anonymous record types when they aren't attached to variable declaration (PR #104600)

2024-08-19 Thread Daniel Grumberg via cfe-commits
https://github.com/daniel-grumberg updated https://github.com/llvm/llvm-project/pull/104600 >From 8e3909ecb1bfe6aec6344cd89cbe1798d6cde7da Mon Sep 17 00:00:00 2001 From: Daniel Grumberg Date: Thu, 15 Aug 2024 17:42:02 +0100 Subject: [PATCH 1/4] [clang][ExtractAPI] Implement Record removal from

[clang] [clang][bytecode] Fix member pointers to IndirectFieldDecls (PR #104756)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/104756 >From 7b6c5687ffa8c619240420882d5edb9aa2854d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 19 Aug 2024 11:31:10 +0200 Subject: [PATCH] [clang][bytecode] Fix member pointers to Indire

[clang] [clang-cl] [AST] Reapply #102848 Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #104722)

2024-08-19 Thread via cfe-commits
https://github.com/zmodem approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/104722 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Use first FieldDecl instead of asserting (PR #104760)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104760 This assertion fails sometimes. We use the first decl for lookup later, so let's use the first decl here as well. >From c0beba1e750249fa9a8c0051218d21d8921acdb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20

[clang] [clang][bytecode] Use first FieldDecl instead of asserting (PR #104760)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This assertion fails sometimes. We use the first decl for lookup later, so let's use the first decl here as well. --- Full diff: https://github.com/llvm/llvm-project/pull/104760.diff 2 Files Affected: - (

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-19 Thread Hubert Tong via cfe-commits
@@ -0,0 +1,67 @@ +// RUN: %clang_cc1 -triple powerpc64le-unknown-linux -O2 -target-cpu pwr7 \ +// RUN: -emit-llvm -fshort-enums %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-64 +// RUN: %clang_cc1 -triple powerpc64-unknown-linux -O2 -target-cpu pwr7 \ +// RUN: -emit-llv

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-19 Thread Hubert Tong via cfe-commits
@@ -0,0 +1,123 @@ +; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux -mcpu=pwr7 \ hubert-reinterpretcast wrote: I am not sure the machine-codegen-from-IR test is necessary. We only changed the Clang front-end IR codegen. It stands to reason th

[clang] [llvm] [AArch64] Add a check for invalid default features (PR #104435)

2024-08-19 Thread Sam Elliott via cfe-commits
lenary wrote: Just closing a loop because I didn't have the info until today: the Oryon info in this patch is correct, the core does have SSBS and CCIDX. https://github.com/llvm/llvm-project/pull/104435 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [llvm] [clang][HLSL] Add WaveIsFirstLane() intrinsic (PR #103299)

2024-08-19 Thread Nathan Gauër via cfe-commits
@@ -18660,6 +18660,10 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: { llvm::FunctionType::get(IntTy, {}, false), "__hlsl_wave_get_lane_index", {}, false, true)); } + case Builtin::BI__builtin_hlsl_wave_is_first_lane: { +Intrinsic::ID ID = CGM.getH

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-08-19 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/104556 >From e0f1fca3cb2d0d7b3476913c20755219aa47c0af Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 19 Aug 2024 13:46:16 +0200 Subject: [PATCH] [clang] Diagnose dangling issues for cases where a gsl-pointer is c

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-08-19 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/104556 >From ea86000bcba54e542a9a0f940451f15ac521e32b Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 19 Aug 2024 13:46:16 +0200 Subject: [PATCH] [clang] Diagnose dangling issues for cases where a gsl-pointer is c

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-08-19 Thread Haojian Wu via cfe-commits
hokein wrote: I've refined the PR, and the new implementation eliminates the false positive mentioned above (I've also added a few more tests to verify this). Please take a look. The changes include some refactoring (I'm happy to split those out if they make the review process harder). https:

[clang] [Clang][HIP] Target-dependent overload resolution in declarators and specifiers (PR #103031)

2024-08-19 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/103031 >From 274aaef1847bbdd837213064113adb1182e5bb59 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Tue, 13 Aug 2024 05:27:45 -0400 Subject: [PATCH 1/2] [Clang][HIP] Target-dependent overload resolution in dec

[clang] [Driver] Have getTargetSubDirPath better match get_compiler_rt_target (PR #100091)

2024-08-19 Thread Rainer Orth via cfe-commits
@@ -766,9 +766,19 @@ ToolChain::getTargetSubDirPath(StringRef BaseDir) const { return {}; }; - if (auto Path = getPathForTriple(getTriple())) + llvm::Triple Triple = getTriple(); + + // Try triple as is. + if (auto Path = getPathForTriple(Triple)) return *Path;

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-08-19 Thread via cfe-commits
trcrsired wrote: > > no. I do not want that complicated file structure. I just want normal GNU > > style's sysroot. > > x86_64-windows-msvc sysroot should have exact the same file struct as > > x86_64-windows-gnu. > > The -msvc triples are designed to work with libraries from MSVC and the > W

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-08-19 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 57a0c4953d7351a7ec249d584bf3af219ec72dce Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [llvm] [BPF] introduce `__attribute__((bpf_fastcall))` (PR #101228)

2024-08-19 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > @AaronBallman the llvm side of change looks good to me! Then I think we're good to land! @eddyz87 do you need someone to land on your behalf? https://github.com/llvm/llvm-project/pull/101228 ___ cfe-commits mailing list cfe-comm

[clang] [clang][bytecode] Use first FieldDecl instead of asserting (PR #104760)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/104760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3e999bb - [clang][bytecode] Use first FieldDecl instead of asserting (#104760)

2024-08-19 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-19T15:14:44+02:00 New Revision: 3e999bbc2ddfc8be7b2d1a250c9905c905e6ce81 URL: https://github.com/llvm/llvm-project/commit/3e999bbc2ddfc8be7b2d1a250c9905c905e6ce81 DIFF: https://github.com/llvm/llvm-project/commit/3e999bbc2ddfc8be7b2d1a250c9905c905e6ce81.diff L

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

2024-08-19 Thread Julian Brown via cfe-commits
jtb20 wrote: ping? 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] [clang][OpenMP] Diagnose badly-formed collapsed imperfect loop nests (#60678) (PR #101305)

2024-08-19 Thread Julian Brown via cfe-commits
jtb20 wrote: Ping -- could this patch be applied please? https://github.com/llvm/llvm-project/pull/101305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -76,17 +76,22 @@ let ArchGuard = "defined(__aarch64__) || defined(__arm64ec__)", TargetGuard = "f def SCALAR_FCVTPUH : SInst<"vcvtp_u16", "(1U)1", "Sh">; def SCALAR_FCVTPUH1 : SInst<"vcvtp_u32", "(1U>)1", "Sh">; def SCALAR_FCVTPUH2 : SInst<"vcvtp_u64", "(1U>>)1", "Sh

[clang] [clang][CodeGen][SPIR-V][AMDGPU] Tweak AMDGCNSPIRV ABI to allow for the correct handling of aggregates passed to kernels / functions. (PR #102776)

2024-08-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/102776 >From d41faf6da8a9eed8c32f6a62fa9ebf38d5824c2c Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Sun, 11 Aug 2024 01:39:46 +0300 Subject: [PATCH 1/2] Tweak AMDGCNSPIRV ABI to allow for the correct handling of agg

[clang] Nameof operator (PR #104777)

2024-08-19 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 created https://github.com/llvm/llvm-project/pull/104777 This Pull Request introduces the `__nameof` operator, enabling users to obtain the symbolic name of any enumerator value. When the `__nameof` operator is used, the compiler will return the fully qualified nam

[clang] Nameof operator (PR #104777)

2024-08-19 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Nameof operator (PR #104777)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Urvi Rav (ravurvi20) Changes This Pull Request introduces the `__nameof` operator, enabling users to obtain the symbolic name of any enumerator value. When the `__nameof` operator is used, the compiler will return the fully qualified name

[clang] c6605a0 - [clang][bytecode] Fix member pointers to IndirectFieldDecls (#104756)

2024-08-19 Thread via cfe-commits
Author: Timm Baeder Date: 2024-08-19T15:28:12+02:00 New Revision: c6605a08681309188fa260a409bf5d37400876a0 URL: https://github.com/llvm/llvm-project/commit/c6605a08681309188fa260a409bf5d37400876a0 DIFF: https://github.com/llvm/llvm-project/commit/c6605a08681309188fa260a409bf5d37400876a0.diff L

[clang] [clang][bytecode] Fix member pointers to IndirectFieldDecls (PR #104756)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/104756 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Can you also add a release note to `clang/docs/ReleaseNotes.rst` so users know that the default has been bumped? https://github.com/llvm/llvm-project/pull/104717 ___ cfe-commits mailing list cfe-commits@lists

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-19 Thread Aaron Ballman via cfe-commits
@@ -7959,7 +7959,7 @@ def fapply_global_visibility_to_externs : Flag<["-"], "fapply-global-visibility- MarshallingInfoFlag>; def fbracket_depth : Separate<["-"], "fbracket-depth">, HelpText<"Maximum nesting level for parentheses, brackets, and braces">, - MarshallingInfoI

[clang] [clang] Increase the default expression nesting limit (PR #104717)

2024-08-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/104717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -0,0 +1,39 @@ +class ImmCheckType { + int Value = val; +} + +// These must be kept in sync with the flags in include/clang/Basic/TargetBuiltins.h +def ImmCheck0_31: ImmCheckType<0>; // 0..31 (used for e.g. predicate patterns) +def ImmCheck1_16

[clang] Nameof operator (PR #104777)

2024-08-19 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: I think this is a language extensions that requires an RFC on https://discource.llvm.org first. See https://clang.llvm.org/get_involved.html for details. https://github.com/llvm/llvm-project/pull/104777 ___ cfe-commits mailing list cfe-

[clang] [compiler-rt] [ubsan] Limit _BitInt ubsan tests to x86-64 platform only (PR #104494)

2024-08-19 Thread via cfe-commits
@@ -1,3 +1,4 @@ +// REQUIRES: x86_64-target-arch zmodem wrote: It seems the test does pass when there are 128-bit runtime routines available on Windows, which means the XFAIL breaks: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/87391977314

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -0,0 +1,39 @@ +class ImmCheckType { + int Value = val; +} + +// These must be kept in sync with the flags in include/clang/Basic/TargetBuiltins.h +def ImmCheck0_31: ImmCheckType<0>; // 0..31 (used for e.g. predicate patterns) +def ImmCheck1_16

[clang] Nameof operator (PR #104777)

2024-08-19 Thread via cfe-commits
cor3ntin wrote: Thanks! I think this requires an RFC. I am personally not convinced we should add introspective facilities specifically for C++ at this point given we will most likely start implementing reflections within the next 6 months https://github.com/llvm/llvm-project/pull/104777 _

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

2024-08-19 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: > FWIW, I don't think there's a reasonable, safe way to collapse loops like > this and maintain parallel semantics, but ICBW. I think, there is a proper way. Just annotate these instructions with something like: ``` if (first inner loop iteration) { arr[i][i] = ...; } `

[clang] 3188e9b - [clang][OpenMP] Diagnose badly-formed collapsed imperfect loop nests (#60678) (#101305)

2024-08-19 Thread via cfe-commits
Author: Julian Brown Date: 2024-08-19T09:37:32-04:00 New Revision: 3188e9b4e0f106abd683829906a21a98655bb794 URL: https://github.com/llvm/llvm-project/commit/3188e9b4e0f106abd683829906a21a98655bb794 DIFF: https://github.com/llvm/llvm-project/commit/3188e9b4e0f106abd683829906a21a98655bb794.diff

[clang] [clang][OpenMP] Diagnose badly-formed collapsed imperfect loop nests (#60678) (PR #101305)

2024-08-19 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev closed https://github.com/llvm/llvm-project/pull/101305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-19 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/101738 >From f25e4ab65ed16a1e1a3bde91efe24bd0d52e0e74 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Fri, 2 Aug 2024 13:58:37 -0400 Subject: [PATCH 01/15] [PowerPC] Fix codegen for transparent_union function params Up

[clang] Nameof operator (PR #104777)

2024-08-19 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: BTW, the PR description perfectly ignored what will be got if the enum value matches no enumerator or more than one enumerators. https://github.com/llvm/llvm-project/pull/104777 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-19 Thread Lei Huang via cfe-commits
@@ -0,0 +1,123 @@ +; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux -mcpu=pwr7 \ lei137 wrote: You are right. I verified that this pass even without this update to clang. Will remove this IR test from the PR. https://github.com/llvm/llvm-p

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-19 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/101738 >From f25e4ab65ed16a1e1a3bde91efe24bd0d52e0e74 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Fri, 2 Aug 2024 13:58:37 -0400 Subject: [PATCH 01/16] [PowerPC] Fix codegen for transparent_union function params Up

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-08-19 Thread Brandon Wu via cfe-commits
@@ -2206,6 +2206,21 @@ void Clang::AddRISCVTargetArgs(const ArgList &Args, << A->getSpelling() << Val; } } + + if (Arg *A = Args.getLastArg(options::OPT_mriscv_abi_vlen_EQ)) { +StringRef ABIVLenStr = A->getValue(); +unsigned ABIVLen; +const Driver &

[clang] [Clang] CWG722: nullptr to ellipses (PR #104704)

2024-08-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/104704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen][SPIR-V][AMDGPU] Tweak AMDGCNSPIRV ABI to allow for the correct handling of aggregates passed to kernels / functions. (PR #102776)

2024-08-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx commented: Gentle ping. https://github.com/llvm/llvm-project/pull/102776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen][SPIR-V][AMDGPU] Tweak AMDGCNSPIRV ABI to allow for the correct handling of aggregates passed to kernels / functions. (PR #102776)

2024-08-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/102776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][HIP] Target-dependent overload resolution in declarators and specifiers (PR #103031)

2024-08-19 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/103031 >From 274aaef1847bbdd837213064113adb1182e5bb59 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Tue, 13 Aug 2024 05:27:45 -0400 Subject: [PATCH 1/3] [Clang][HIP] Target-dependent overload resolution in dec

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -403,142 +368,183 @@ enum ArmSMEState : unsigned { ArmZT0Mask = 0b11 << 2 }; +bool SemaARM::CheckImmediateArg(CallExpr *TheCall, unsigned CheckTy, +unsigned ArgIdx, unsigned EltBitWidth, +unsigned VecBitWidth

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-08-19 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/100346 >From 15161b0b7637d52b6285624a4bf9f52a6664082c Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sun, 21 Jul 2024 09:49:11 -0700 Subject: [PATCH 1/6] [RISCV][VLS] Support RISCV VLS calling convention This patch a

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
https://github.com/SpencerAbson edited https://github.com/llvm/llvm-project/pull/100278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Emit -Wdangling diagnoses for cases where a gsl-pointer is construct from a gsl-owner object in a container. (PR #104556)

2024-08-19 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. LGTM, thanks for figuring this out! https://github.com/llvm/llvm-project/pull/104556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [clang][NFC] Split invalid-cpu-note tests (PR #104601)

2024-08-19 Thread Sam Elliott via cfe-commits
https://github.com/lenary updated https://github.com/llvm/llvm-project/pull/104601 >From b125071eeb35ee4a76e126967b7c29d86a1fae56 Mon Sep 17 00:00:00 2001 From: Sam Elliott Date: Fri, 16 Aug 2024 07:52:53 -0700 Subject: [PATCH] [clang][test] Split invalid-cpu-note tests This change does two ki

[clang] [clang][NFC] Split invalid-cpu-note tests (PR #104601)

2024-08-19 Thread Sam Elliott via cfe-commits
@@ -0,0 +1,90 @@ +// Use --implicit-check-not to ensure no additional CPUs are in this list + +// RUN: not %clang_cc1 -triple arm64--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --implicit-check-not={{[a-zA-Z0-9]}} +// RUN: not %clang_cc1 -triple arm64--- -tune-cp

[clang] [llvm] [RISCV] Add Hazard3 Core as taped out for RP2350 (PR #102452)

2024-08-19 Thread Sam Elliott via cfe-commits
https://github.com/lenary updated https://github.com/llvm/llvm-project/pull/102452 >From b125071eeb35ee4a76e126967b7c29d86a1fae56 Mon Sep 17 00:00:00 2001 From: Sam Elliott Date: Fri, 16 Aug 2024 07:52:53 -0700 Subject: [PATCH 1/2] [clang][test] Split invalid-cpu-note tests This change does tw

[clang] [clang][bytecode] Support ObjC blocks (PR #104551)

2024-08-19 Thread Aaron Ballman via cfe-commits
@@ -195,6 +195,48 @@ Function *ByteCodeEmitter::compileFunc(const FunctionDecl *FuncDecl) { return Func; } +/// Compile an ObjC block, i.e. ^(){}, that thing. +/// +/// We do not support calling the block though, so we create a function AaronBallman wrote:

[clang] [clang][bytecode] Support ObjC blocks (PR #104551)

2024-08-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/104551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Support ObjC blocks (PR #104551)

2024-08-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/104551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -0,0 +1,202 @@ +// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -target-feature +v8.3a -ffreestanding -fsyntax-only -verify %s SpencerAbson wrote: Moved :+1: https://github.com/llvm/llvm-project/pull/100278 ___

[clang] [X86][AVX10] Fix unexpected error and warning when using intrinsic (PR #104781)

2024-08-19 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/104781 E.g.: https://godbolt.org/z/G8zK5svjK Based on Evgenii's work. >From 9a0c15c9b0bb3d1df3902dcfe62d659803cba516 Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Mon, 19 Aug 2024 22:09:13 +0800 Subject: [PA

[clang] [clang][bytecode] Discard NullToPointer cast SubExpr (PR #104782)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/104782 So we still properly abort if they fail. >From 0485b480347f69565c9d494365bce65c4f9a7a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 19 Aug 2024 16:13:04 +0200 Subject: [PATCH] [clan

[clang] [X86][AVX10] Fix unexpected error and warning when using intrinsic (PR #104781)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phoebe Wang (phoebewang) Changes E.g.: https://godbolt.org/z/G8zK5svjK Based on Evgenii's work. --- Full diff: https://github.com/llvm/llvm-project/pull/104781.diff 11 Files Affected: - (modified) clang/lib/Basic/Targets/X86.cpp (+3-3)

[clang] [clang][bytecode] Discard NullToPointer cast SubExpr (PR #104782)

2024-08-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes So we still properly abort if they fail. --- Full diff: https://github.com/llvm/llvm-project/pull/104782.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+2) - (modified) clang/tes

[clang] [Clang] fix generic lambda inside requires-clause of friend function template (PR #99813)

2024-08-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. This seems correct to me. https://github.com/llvm/llvm-project/pull/99813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -1952,6 +1974,7 @@ void NeonEmitter::createIntrinsic(Record *R, bool BigEndianSafe = R->getValueAsBit("BigEndianSafe"); std::string ArchGuard = std::string(R->getValueAsString("ArchGuard")); std::string TargetGuard = std::string(R->getValueAsString("TargetGuard")); +

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -234,6 +235,9 @@ cl::opt Action( "Generate ARM NEON sema support for clang"), clEnumValN(GenArmNeonTest, "gen-arm-neon-test", "Generate ARM NEON tests for clang"), +clEnumValN(GenArmImmCheckTypes, "gen-arm-immcheck-types"

[clang] [llvm] [Clang][AArch64] Add customisable immediate range checking to NEON (PR #100278)

2024-08-19 Thread via cfe-commits
@@ -388,6 +372,9 @@ class SVEEmitter { /// Emit all the range checks for the immediates. void createRangeChecks(raw_ostream &o); + // Emit all the ImmCheckTypes to arm_immcheck_types.h SpencerAbson wrote: thanks! https://github.com/llvm/llvm-project/pul

[clang] [clang][CodeGen][SPIR-V][AMDGPU] Tweak AMDGCNSPIRV ABI to allow for the correct handling of aggregates passed to kernels / functions. (PR #102776)

2024-08-19 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/102776 >From d41faf6da8a9eed8c32f6a62fa9ebf38d5824c2c Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Sun, 11 Aug 2024 01:39:46 +0300 Subject: [PATCH 1/2] Tweak AMDGCNSPIRV ABI to allow for the correct handling of agg

[clang] [Clang][NFC] Fix potential null dereference in encodeTypeForFunctionPointerAuth (PR #104737)

2024-08-19 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann approved this pull request. Thanks, @smanna12! The change looks clearly correct since the type has already been verified. https://github.com/llvm/llvm-project/pull/104737 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] [llvm] [RISCV] Add Hazard3 Core as taped out for RP2350 (PR #102452)

2024-08-19 Thread Michael Maitland via cfe-commits
michaelmaitland wrote: Is this PR stacked on b125071eeb35ee4a76e126967b7c29d86a1fae56? https://github.com/llvm/llvm-project/pull/102452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Fix codegen for transparent_union function params (PR #101738)

2024-08-19 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/101738 >From c6a8dee17a0a2eeb3420e04fb445a633dfbee920 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Fri, 2 Aug 2024 13:58:37 -0400 Subject: [PATCH 01/16] [PowerPC] Fix codegen for transparent_union function params Up

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-08-19 Thread Janek van Oirschot via cfe-commits
@@ -40,12 +41,20 @@ class AMDGPUAsmPrinter final : public AsmPrinter { AMDGPUResourceUsageAnalysis *ResourceUsage; + std::unique_ptr RI; JanekvO wrote: Only was I was able to do so was by explicitly adding the `MCContext` as argument for every public met

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-08-19 Thread Janek van Oirschot via cfe-commits
@@ -3025,8 +3025,8 @@ define amdgpu_kernel void @dyn_extract_v5f64_s_s(ptr addrspace(1) %out, i32 %sel ; GPRIDX-NEXT: amd_machine_version_stepping = 0 ; GPRIDX-NEXT: kernel_code_entry_byte_offset = 256 ; GPRIDX-NEXT: kernel_code_prefetch_byte_size = 0 -; GPRIDX-NEX

[clang] [clang][bytecode] Support ObjC blocks (PR #104551)

2024-08-19 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/104551 >From bc203f20b373246dcf1628ff856a5dd2055d64f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 15 Aug 2024 20:31:38 +0200 Subject: [PATCH] [clang][Interp] Support blocks --- clang/lib/

  1   2   3   4   5   >