[clang] [llvm] [llvm][AArch64][TableGen] Create a ProcessorAlias record (PR #96249)

2024-06-28 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs closed https://github.com/llvm/llvm-project/pull/96249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/97103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Implement resource binding type prefix mismatch errors (PR #87578)

2024-06-28 Thread Joshua Batista via cfe-commits
bob80905 wrote: This PR was based on code from April 3, and the branch is far too stale to update at this point. I'm closing this, and have moved the implementation over to this PR: https://github.com/llvm/llvm-project/pull/97103 https://github.com/llvm/llvm-project/pull/87578

[clang] [llvm] Implement resource binding type prefix mismatch errors (PR #87578)

2024-06-28 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 closed https://github.com/llvm/llvm-project/pull/87578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] Add query for a target's flat address space (PR #95728)

2024-06-28 Thread Matt Arsenault via cfe-commits
arsenm wrote: I still think we should not need this. DefaultIsPrivate is junk that needs to be deleted. Querying for LangAS::Default should always give the answer 0 for AMDGPU, which is what this is working around. This clang notion of address space has nothing to do with your troubles with l

[clang] [NFC] [clang][SPIR-V] Use AMDGPU prefix to avoid confusion (PR #96962)

2024-06-28 Thread Jinsong Ji via cfe-commits
https://github.com/jsji closed https://github.com/llvm/llvm-project/pull/96962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4713bd4 - [NFC] [clang][SPIR-V] Use AMDGPU prefix to avoid confusion (#96962)

2024-06-28 Thread via cfe-commits
Author: Jinsong Ji Date: 2024-06-28T15:58:11-04:00 New Revision: 4713bd4ccc0c0d568f92916e7851d993291742c0 URL: https://github.com/llvm/llvm-project/commit/4713bd4ccc0c0d568f92916e7851d993291742c0 DIFF: https://github.com/llvm/llvm-project/commit/4713bd4ccc0c0d568f92916e7851d993291742c0.diff LO

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #97105)

2024-06-28 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/97105 This patch prevents dereferencing a null enum definition by returning `nullptr` if `getDefinition()` fails in `CreateTypeDefinition()`. >From 5a4f0207afa9a473ba8ebf1e24a75730cd13a553 Mon Sep 17 00:00:00 2001 Fr

[clang] [Clang] Fix null pointer dereference in enum debug info generation (PR #97105)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: None (smanna12) Changes This patch prevents dereferencing a null enum definition by returning `nullptr` if `getDefinition()` fails in `CreateTypeDefinition()`. --- Full diff: https://github.com/llvm/llvm

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Gheorghe-Teodor Bercea via cfe-commits
@@ -0,0 +1,57 @@ +// clang-format off +// RUN: %libomptarget-compilexx-generic && %libomptarget-run-generic 2>&1 | %fcheck-generic +// clang-format on + +// UNSUPPORTED: aarch64-unknown-linux-gnu +// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO +// UNSUPPORTED: x86_64-pc-linux-gnu

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Gheorghe-Teodor Bercea via cfe-commits
@@ -0,0 +1,84 @@ +// clang-format off +// RUN: %libomptarget-compile-generic && %libomptarget-run-generic 2>&1 | %fcheck-generic +// clang-format on + +// UNSUPPORTED: aarch64-unknown-linux-gnu +// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO +// UNSUPPORTED: x86_64-pc-linux-gnu +/

[clang] [clang-repl] Fix RuntimeInterfaceBuilder for 32-bit systems (PR #97071)

2024-06-28 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/97071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix RuntimeInterfaceBuilder for 32-bit systems (PR #97071)

2024-06-28 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. Oh, that's a good catch. Any chance of adding a test case? Maybe something like: ```enum X : short {...}```? https://github.com/llvm/llvm-project/pull/97071 ___ cfe-commits mailing list cfe-com

[clang] [clang-repl] Fix RuntimeInterfaceBuilder for 32-bit systems (PR #97071)

2024-06-28 Thread Vassil Vassilev via cfe-commits
@@ -673,10 +673,12 @@ class InterfaceKindVisitor } private: - // Force cast these types to uint64 to reduce the number of overloads of - // `__clang_Interpreter_SetValueNoAlloc`. + // Force cast these types to the uint that fits the register size. That way we + // reduc

[clang] [C23] Add INFINITY and NAN macros to (PR #96659)

2024-06-28 Thread Eli Friedman via cfe-commits
@@ -47,6 +47,8 @@ (defined(__cplusplus) && __cplusplus >= 201103L) || \ (__STDC_HOSTED__ && defined(_AIX) && defined(_ALL_SOURCE)) #undef DECIMAL_DIG +#undef INFINITY efriedma-quic wrote: The define guarding the undefs n

[clang] [C23] Add INFINITY and NAN macros to (PR #96659)

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

[clang] [C23] Add INFINITY and NAN macros to (PR #96659)

2024-06-28 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: We already have `-Wnan-infinity-disabled`, which I think is sufficient on the warning side? Haven't checked carefully to see what cases it covers. https://github.com/llvm/llvm-project/pull/96659 ___ cfe-com

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

2024-06-28 Thread Mats Petersson via cfe-commits
https://github.com/Leporacanthicus updated https://github.com/llvm/llvm-project/pull/95411 >From 0ef4b61d0429517b92f7b6de7fa52c516f3a1468 Mon Sep 17 00:00:00 2001 From: David Truby Date: Thu, 13 Jun 2024 14:01:36 + Subject: [PATCH 1/3] [flang] Implement -mcmodel flag This patch implements

[clang] [Clang] fix cast failures by adjusting the resolution of record declaration contexts to handle semantic and lexical distinctions (PR #96228)

2024-06-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/96228 >From 9e2730da07df0ee5102912490a687ba40bf06def Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 24 Jun 2024 18:55:51 +0300 Subject: [PATCH] [Clang] fix cast failures by adjusting the resolution of record

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Johannes Doerfert via cfe-commits
@@ -444,28 +445,77 @@ template struct omptarget_nvptx_LoopSupport { // KMP interface implementation (dyn loops) -// TODO: This is a stopgap. We probably want to expand the dispatch API to take

[clang] [clang-repl] Support wasm execution (PR #86402)

2024-06-28 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Thank you for letting this move forward! https://github.com/llvm/llvm-project/pull/86402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Johannes Doerfert via cfe-commits
@@ -444,28 +445,77 @@ template struct omptarget_nvptx_LoopSupport { // KMP interface implementation (dyn loops) -// TODO: This is a stopgap. We probably want to expand the dispatch API to take

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Johannes Doerfert via cfe-commits
@@ -444,28 +445,77 @@ template struct omptarget_nvptx_LoopSupport { // KMP interface implementation (dyn loops) -// TODO: This is a stopgap. We probably want to expand the dispatch API to take

[clang] [clang] Improve diagnostics for constraints of inline asm (NFC) (PR #96363)

2024-06-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: What exactly does it mean for a constraint to conflict with a feature? The only thing I can think of is if it somehow involves a register class that doesn't exist on the target with the current set of target features. I guess we could try to diagnose that, but I'm not su

[clang] [Clang] use const references for function parameters in operator== and operator!= overloads in Redeclarable.h (PR #92963)

2024-06-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/92963 >From c94e7cbe04c0f23094a7f2a3d2a7cbd103750301 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Tue, 21 May 2024 22:56:06 +0300 Subject: [PATCH] [Clang] use const references for function parameters in operato

[clang] [Clang] improve RewriteModernObjC code quality by using const reference for function parameters (PR #93252)

2024-06-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/93252 >From d160eb6c869d41ac64ff27442d2f8d964beb3ebf Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Fri, 24 May 2024 01:39:35 +0300 Subject: [PATCH] [Clang] improve RewriteModernObjC code quality by using const r

[clang] [clang][OpenMP] Implement `isOpenMPExecutableDirective` (PR #97089)

2024-06-28 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/97089 >From 789ec614d285e3fe632aae6280f6c4cf01746cdf Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 28 Jun 2024 12:27:10 -0500 Subject: [PATCH 1/2] [clang][OpenMP] Implement `isOpenMPExecutableDirective

[clang] [clang][NFC] Use range-based for loops (PR #96831)

2024-06-28 Thread via cfe-commits
https://github.com/MagentaTreehouse updated https://github.com/llvm/llvm-project/pull/96831 >From bdffd46532a1f4356f51b788aba6b9c52672d053 Mon Sep 17 00:00:00 2001 From: Mingyi Chen Date: Wed, 26 Jun 2024 19:21:27 -0400 Subject: [PATCH 1/3] [clang][NFC] Use range-based for loops --- clang/lib

[clang] [clang][NFC] Use range-based for loops (PR #96831)

2024-06-28 Thread via cfe-commits
@@ -2056,40 +2056,41 @@ void CXXRecordDecl::completeDefinition() { completeDefinition(nullptr); } +static bool hasPureVirtualFinalOverrider( +const CXXRecordDecl &RD, const CXXFinalOverriderMap *FinalOverriders) { + auto ExistsIn = [](const CXXFinalOverriderMap &FinalOv

[clang] [clang] Improve diagnostics for constraints of inline asm (NFC) (PR #96363)

2024-06-28 Thread Evgenii Kudriashov via cfe-commits
e-kud wrote: > What exactly does it mean for a constraint to conflict with a feature? The > only thing I can think of is if it somehow involves a register class that > doesn't exist on the target with the current set of target features. I guess > we could try to diagnose that, but I'm not sure

[clang] [llvm] [SPIRV][HLSL] Add lowering of frac to SPIR-V (PR #97111)

2024-06-28 Thread Andrii Levytskyi via cfe-commits
https://github.com/aabysswalker created https://github.com/llvm/llvm-project/pull/97111 Implements frac lowering to SPIR-V. Closes #88059 >From bbfbb1d9bcd53ae78c1d31e7870ea97173db8d82 Mon Sep 17 00:00:00 2001 From: aabysswalker Date: Fri, 28 Jun 2024 23:54:05 +0300 Subject: [PATCH] Lowering

[clang] [llvm] [SPIRV][HLSL] Add lowering of frac to SPIR-V (PR #97111)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Andrii Levytskyi (aabysswalker) Changes Implements frac lowering to SPIR-V. Closes #88059 --- Full diff: https://github.com/llvm/llvm-project/pull/97111.diff 6 Files Affected

[clang] [llvm] [SPIRV][HLSL] Add lowering of frac to SPIR-V (PR #97111)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-spir-v Author: Andrii Levytskyi (aabysswalker) Changes Implements frac lowering to SPIR-V. Closes #88059 --- Full diff: https://github.com/llvm/llvm-project/pull/97111.diff 6 Files Affected: - (modified) clang/lib/CodeGen/CGBuiltin.cpp (+4-

[clang] [NFC] [clang][SPIR-V] Use AMDGPU prefix to avoid confusion (PR #96962)

2024-06-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/733 Here is the relevant piece of the bui

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 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] [clang] Improve diagnostics for constraints of inline asm (NFC) (PR #96363)

2024-06-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: If there's some subset of cases that's easy to diagnose, like SSE registers without SSE, maybe we can do that. I mostly care that we don't write a bunch of code to check complicated edge cases, like trying to diagnose if you're using too many registers. https://github.com

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-nvptx Author: None (Chengjunp) Changes This change supports the 128-bit operands for inline ptx asm, both input and output.\ \ The major changes are: - Tablegen:\     Define Int128Regs in NVPTXRegisterInfo.td. But this register does not set

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Chengjunp) Changes This change supports the 128-bit operands for inline ptx asm, both input and output.\ \ The major changes are: - Tablegen:\     Define Int128Regs in NVPTXRegisterInfo.td. But this register does not set as gener

[clang] [NFC] [clang][SPIR-V] Use AMDGPU prefix to avoid confusion (PR #96962)

2024-06-28 Thread Jinsong Ji via cfe-commits
jsji wrote: > LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` > running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Flaky failure. https://github.com/llvm/llvm-project/pull/96962 ___ cfe-commits

[clang] [Clang] Fix potential null pointer dereferences in Sema::AddInitializerToDecl (PR #94368)

2024-06-28 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/94368 >From b6d45ded3d0d1ad6a50a1292d4f8275081089150 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Tue, 4 Jun 2024 08:33:51 -0700 Subject: [PATCH 1/5] [Clang] Fix potential null pointer dereferences in Sema::Ad

[clang] 2264544 - [clang][CodeGen] Remove unnecessary ShouldLinkFiles conditional (#96951)

2024-06-28 Thread via cfe-commits
Author: Jacob Lambert Date: 2024-06-28T14:35:29-07:00 New Revision: 2264544e2d13957f36fd19864d9633a3278a9d74 URL: https://github.com/llvm/llvm-project/commit/2264544e2d13957f36fd19864d9633a3278a9d74 DIFF: https://github.com/llvm/llvm-project/commit/2264544e2d13957f36fd19864d9633a3278a9d74.diff

[clang] [clang][CodeGen] Remove unnecessary ShouldLinkFiles conditional (PR #96951)

2024-06-28 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j closed https://github.com/llvm/llvm-project/pull/96951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread Justin Lebar via cfe-commits
https://github.com/jlebar requested changes to this pull request. This needs to be documented in the langref in this section, right? https://llvm.org/docs/LangRef.html#supported-constraint-code-list https://github.com/llvm/llvm-project/pull/97113 ___

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread Justin Lebar via cfe-commits
https://github.com/jlebar commented: LGTM other than the previous comment. https://github.com/llvm/llvm-project/pull/97113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread via cfe-commits
Chengjunp wrote: > This needs to be documented in the langref in this section, right? > https://llvm.org/docs/LangRef.html#supported-constraint-code-list Oh, you are right. Thank you for pointing this out. Which file should I modify? Is it `llvm/docs/LangRef.rst`? Thanks! https://github.com/l

[clang] [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions (PR #97115)

2024-06-28 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j created https://github.com/llvm/llvm-project/pull/97115 Follow up to https://github.com/llvm/llvm-project/commit/2264544e2d13957f36fd19864d9633a3278a9d74 >From 6131f15194e0f97fea381d896f5f9847ad4ba786 Mon Sep 17 00:00:00 2001 From: Jacob Lambert Date: Fri, 28 Jun 202

[clang] [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions (PR #97115)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jacob Lambert (lamb-j) Changes Follow up to https://github.com/llvm/llvm-project/commit/2264544e2d13957f36fd19864d9633a3278a9d74 --- Full diff: https://github.com/llvm/llvm-project/pull/97115.diff 2 Files Affected: - (modified) clang/l

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread Justin Lebar via cfe-commits
jlebar wrote: > Which file should I modify? Use `git grep` to find where the text from that section of the langref lives? https://github.com/llvm/llvm-project/pull/97113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov created https://github.com/llvm/llvm-project/pull/97118 This PR adds `f8E4M3` type which follows IEEE 754 convention ```c f8E4M3 (IEEE 754) - Exponent: 4 - Mantissa: 3 - Exponent bias: 7 - Follows IEEE 754 conventions for representation of special values - Has Posi

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alexander Pivovarov (apivovarov) Changes This PR adds `f8E4M3` type which follows IEEE 754 convention ```c f8E4M3 (IEEE 754) - Exponent: 4 - Mantissa: 3 - Exponent bias: 7 - Follows IEEE 754 conventions for representation of special values

[clang] 6644975 - [CodeGen] Use MapVector to stabilize iteration order

2024-06-28 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-06-28T15:10:53-07:00 New Revision: 664497557ae7e726b424d325533cdce8104b3337 URL: https://github.com/llvm/llvm-project/commit/664497557ae7e726b424d325533cdce8104b3337 DIFF: https://github.com/llvm/llvm-project/commit/664497557ae7e726b424d325533cdce8104b3337.diff

[clang] [llvm] [NVPTX] Support inline asm with 128-bit operand in NVPTX backend (PR #97113)

2024-06-28 Thread Justin Lebar via cfe-commits
https://github.com/jlebar approved this pull request. https://github.com/llvm/llvm-project/pull/97113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 982c547 - [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions (#97115)

2024-06-28 Thread via cfe-commits
Author: Jacob Lambert Date: 2024-06-28T15:22:42-07:00 New Revision: 982c54719289c1d85d03be3ad9e95bbfd2862aee URL: https://github.com/llvm/llvm-project/commit/982c54719289c1d85d03be3ad9e95bbfd2862aee DIFF: https://github.com/llvm/llvm-project/commit/982c54719289c1d85d03be3ad9e95bbfd2862aee.diff

[clang] [clang][CodeGen] Cleanup missed ShouldLinkFiles definitions (PR #97115)

2024-06-28 Thread Jacob Lambert via cfe-commits
https://github.com/lamb-j closed https://github.com/llvm/llvm-project/pull/97115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Hashing] Use a non-deterministic seed if LLVM_ENABLE_ABI_BREAKING_CHECKS (PR #96282)

2024-06-28 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/96282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Hashing] Use a non-deterministic seed if LLVM_ENABLE_ABI_BREAKING_CHECKS (PR #96282)

2024-06-28 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/96282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert approved this pull request. LG, @shiltian, OK? https://github.com/llvm/llvm-project/pull/97065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] Remove unnecessary ShouldLinkFiles conditional (PR #96951)

2024-06-28 Thread Lei Huang via cfe-commits
lei137 wrote: I'm getting a build failure with `-Werror` on powerpc from this: ``` ~llvm-project/clang/lib/CodeGen/LinkInModulesPass.cpp:24:19: error: field 'ShouldLinkFiles' is uninitialized when used here [-Werror,-Wuninitialized] 407324 | ShouldLinkFiles(ShouldLinkFiles) {} 4074 |

[clang] [llvm] [MC,llvm-readobj,yaml2obj] Support CREL relocation format (PR #91280)

2024-06-28 Thread Fangrui Song via cfe-commits
@@ -86,6 +86,8 @@ DYNAMIC_TAG(RELRSZ, 35) // Size of Relr relocation table. DYNAMIC_TAG(RELR, 36)// Address of relocation table (Relr entries). DYNAMIC_TAG(RELRENT, 37) // Size of a Relr relocation entry. +DYNAMIC_TAG(CREL, 38) // CREL relocation table + --

[clang-tools-extra] [clang-doc] Improve performance by adding a short circuit (PR #96809)

2024-06-28 Thread via cfe-commits
PeterChou1 wrote: Here's the diff for the doc output for the different branches https://drive.google.com/file/d/1QS0YgNaB5gkJqM1HPqm2RziGXA88nqMM/view?usp=sharing https://github.com/llvm/llvm-project/pull/96809 ___ cfe-commits mailing list cfe-commits

[clang] [llvm] [MC,llvm-readobj,yaml2obj] Support CREL relocation format (PR #91280)

2024-06-28 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/91280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MC,llvm-readobj,yaml2obj] Support CREL relocation format (PR #91280)

2024-06-28 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/91280 >From a0cfafb82db825512b0ca44778fa9d4bb435563d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 6 May 2024 15:37:50 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-

[clang] [llvm] [MC,llvm-readobj,yaml2obj] Support CREL relocation format (PR #91280)

2024-06-28 Thread Fangrui Song via cfe-commits
MaskRay wrote: > Just noting that I've taken another look through the whole thing and I have > no new comments. Thanks for the review! @dwblaikie @jh7370 @smithp35 If the current version looks good to you, may I get explicit approval? https://github.com/llvm/llvm-project/pull/91280 __

[clang] [clang][CodeGen] Zero init unspecified fields in initializers in C (#78034) (PR #97121)

2024-06-28 Thread via cfe-commits
https://github.com/yabinc created https://github.com/llvm/llvm-project/pull/97121 When an initializer is provided to a variable, the Linux kernel relies on clang to zero-initialize unspecified fields. But clang doesn't guarantee this: 1. For a union type, if an empty initializer is given, clang

[clang] [clang][CodeGen] Zero init unspecified fields in initializers in C (#78034) (PR #97121)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (yabinc) Changes When an initializer is provided to a variable, the Linux kernel relies on clang to zero-initialize unspecified fields. But clang doesn't guarantee this: 1. For a union type, if an empty initializer is given, c

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97118 >From f6d1c7120bbb382a5b38bd2172e743e7808e304c Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 19:33:21 + Subject: [PATCH 1/2] Rename f8E4M3 to f8E4M3FN in mlir.extras.types py pa

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97118 >From 8b0671585864e13d26596b9e8ada39364c542517 Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 19:33:21 + Subject: [PATCH 1/2] Rename f8E4M3 to f8E4M3FN in mlir.extras.types py pa

[clang-tools-extra] [clang-doc] add async loading (PR #93276)

2024-06-28 Thread via cfe-commits
https://github.com/PeterChou1 edited https://github.com/llvm/llvm-project/pull/93276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent null pointer dereference in template deduction guide creation (PR #97097)

2024-06-28 Thread via cfe-commits
https://github.com/antangelo approved this pull request. https://github.com/llvm/llvm-project/pull/97097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread Alexander Pivovarov via cfe-commits
apivovarov wrote: Reed, Benjamin, Can you look at this PR too? @reedwm @d0k https://github.com/llvm/llvm-project/pull/97118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

2024-06-28 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/96921 >From f2251efabbc1a59e87b25285f7173161e6f63d22 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 27 Jun 2024 09:13:01 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-8

[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

2024-06-28 Thread Paul Kirth via cfe-commits
@@ -56,7 +56,7 @@ class HTMLTag { operator bool() = delete; bool IsSelfClosing() const; - llvm::SmallString<16> ToString() const; + const char* toString() const; ilovepi wrote: done https://github.com/llvm/llvm-project/pull/96921 __

[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

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

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97103 >From c784272b3f66ca06be4ab8e72a0963e5ebb6a869 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 28 Jun 2024 12:40:56 -0700 Subject: [PATCH 1/2] update tests, update code --- clang/include/clang/Basic/A

[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

2024-06-28 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff e55aa027f813679ca63c9b803690ce792a3d7b28 f48c15c8a6e8fb992a2089fcd95e51dc32a76375 --

[clang] [clang][CodeGen] Remove unnecessary ShouldLinkFiles conditional (PR #96951)

2024-06-28 Thread Jacob Lambert via cfe-commits
lamb-j wrote: Should be fixed with https://github.com/llvm/llvm-project/commit/982c54719289c1d85d03be3ad9e95bbfd2862aee https://github.com/llvm/llvm-project/pull/96951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

2024-06-28 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/96921 >From f2251efabbc1a59e87b25285f7173161e6f63d22 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 27 Jun 2024 09:13:01 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF-8

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 319e11daee807981db61dad3da90d9bf36317e03 8e20fce2dbb0e88bc6c286815d36339f37d34d80 --

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Shilei Tian via cfe-commits
https://github.com/shiltian commented: The code changes look good now, but I'd prefer to have a non-SPMD mode test case. https://github.com/llvm/llvm-project/pull/97065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/97103 >From c784272b3f66ca06be4ab8e72a0963e5ebb6a869 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Fri, 28 Jun 2024 12:40:56 -0700 Subject: [PATCH 1/3] update tests, update code --- clang/include/clang/Basic/A

[clang-tools-extra] [clang-doc] add async loading (PR #93276)

2024-06-28 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/93276 >From 0b6d536133f63e078fbde491a8c92c7ec916cb47 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Fri, 24 May 2024 05:18:05 -0400 Subject: [PATCH 1/2] [clang-doc] make loading of json side bar async --- clang-t

[clang-tools-extra] [clang-doc] add async loading (PR #93276)

2024-06-28 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/93276 >From 0b6d536133f63e078fbde491a8c92c7ec916cb47 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Fri, 24 May 2024 05:18:05 -0400 Subject: [PATCH 1/3] [clang-doc] make loading of json side bar async --- clang-t

[clang-tools-extra] [clang-doc] add async loading (PR #93276)

2024-06-28 Thread via cfe-commits
https://github.com/PeterChou1 edited https://github.com/llvm/llvm-project/pull/93276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Xiang Li via cfe-commits
@@ -437,7 +460,206 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct register_binding_flags { + bool resource = false; + bool udt = false; + bool other = false; + bool basic = false; + + bool srv = false; + bool uav =

[clang] [llvm] [openmp] [OpenMP][offload] Fix dynamic schedule tracking (PR #97065)

2024-06-28 Thread Gheorghe-Teodor Bercea via cfe-commits
doru1004 wrote: > The code changes look good now, but I'd prefer to have a non-SPMD mode test > case. Done https://github.com/llvm/llvm-project/pull/97065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

2024-06-28 Thread Xiang Li via cfe-commits
@@ -21,6 +21,7 @@ #include "clang/Basic/IdentifierTable.h" #include "clang/Basic/SourceLocation.h" #include "clang/Sema/Scope.h" +#include "clang/Sema/Sema.h" python3kgae wrote: What led us to include Sema.h? https://github.com/llvm/llvm-project/pull/97103 __

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread Maksim Levental via cfe-commits
makslevental wrote: Ah so this is the reason for the previous PR :) https://github.com/llvm/llvm-project/pull/97118 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix __is_trivially_equality_comparable returning true with ineligebile defaulted overloads (PR #93113)

2024-06-28 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: @ZequanWu I can't successfully build your reproducer with clang trunk. Would it be possible to provide the full test case or a fully reduced one? https://github.com/llvm/llvm-project/pull/93113 ___ cfe-commits mailing list cfe-commit

[clang] [llvm] [mlir] Add f8E4M3 IEEE 754 type (PR #97118)

2024-06-28 Thread Alexander Pivovarov via cfe-commits
https://github.com/apivovarov updated https://github.com/llvm/llvm-project/pull/97118 >From 8b0671585864e13d26596b9e8ada39364c542517 Mon Sep 17 00:00:00 2001 From: Alexander Pivovarov Date: Fri, 28 Jun 2024 19:33:21 + Subject: [PATCH 1/2] Rename f8E4M3 to f8E4M3FN in mlir.extras.types py pa

[clang] [llvm] [WebAssembly] support getVT from `externref` and `funcref` (PR #97080)

2024-06-28 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/97080 >From b49737505ad3ad84e977787daf141b98fe3e6607 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 29 Jun 2024 00:24:30 +0800 Subject: [PATCH] [WebAssembly] support getVT from wasm externref and funcref -

[clang] Fix compatibility version in test (PR #97128)

2024-06-28 Thread Richard Smith via cfe-commits
https://github.com/zygoloid created https://github.com/llvm/llvm-project/pull/97128 The mangling compatibility being tested here changed between Clang 17 and 18, not between 16 and 17, so change the "old" version to 17. As requested by @ahatanak in [post-commit review](https://github.com/llvm

[clang] Fix compatibility version in test (PR #97128)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Richard Smith (zygoloid) Changes The mangling compatibility being tested here changed between Clang 17 and 18, not between 16 and 17, so change the "old" version to 17. As requested by @ahatanak in [post-commit review](https://github.com

[clang] [llvm] [polly] Revert "[IR] Don't include Module.h in Analysis.h (NFC) (#97023)" (PR #97129)

2024-06-28 Thread via cfe-commits
https://github.com/ZijunZhaoCCK created https://github.com/llvm/llvm-project/pull/97129 This reverts commit 4169338e75cdce73d34063532db598c95ee82ae4. This will causes incomplete type errors. ```/[tmpfs/src/git/out/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp:1022](https

[clang] [llvm] [polly] Revert "[IR] Don't include Module.h in Analysis.h (NFC) (#97023)" (PR #97129)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: None (ZijunZhaoCCK) Changes This reverts commit 4169338e75cdce73d34063532db598c95ee82ae4. This will causes incomplete type errors. ```/[tmpfs/src/git/out/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp:1022]

[clang] [llvm] [polly] Revert "[IR] Don't include Module.h in Analysis.h (NFC) (#97023)" (PR #97129)

2024-06-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlgo @llvm/pr-subscribers-backend-amdgpu Author: None (ZijunZhaoCCK) Changes This reverts commit 4169338e75cdce73d34063532db598c95ee82ae4. This will causes incomplete type errors. ```/[tmpfs/src/git/out/llvm-project/llvm/lib/Target/WebAssembly/WebAssem

[clang] [llvm] [polly] Revert "[IR] Don't include Module.h in Analysis.h (NFC) (#97023)" (PR #97129)

2024-06-28 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 0991bd7887a313d4d6bb66ca44d11939ad71b660 e277504246c0f077fec20e917c29ac8e5c193325 --

[clang-tools-extra] [clang-doc] add async loading (PR #93276)

2024-06-28 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/93276 >From 0b6d536133f63e078fbde491a8c92c7ec916cb47 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Fri, 24 May 2024 05:18:05 -0400 Subject: [PATCH 1/4] [clang-doc] make loading of json side bar async --- clang-t

[clang-tools-extra] [clang-doc] add async loading (PR #93276)

2024-06-28 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/93276 >From 0b6d536133f63e078fbde491a8c92c7ec916cb47 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Fri, 24 May 2024 05:18:05 -0400 Subject: [PATCH 1/5] [clang-doc] make loading of json side bar async --- clang-t

<    1   2   3   4   5   >