[clang] [flang] [compiler-rt] [libcxx] [llvm] [libc] Ensure `lli --force-interpreter` disables the OrcJIT too (PR #73717)

2023-12-01 Thread via cfe-commits
zmodem wrote: Looks very reasonable to me, but it's not really my area. @lhames can you double check? https://github.com/llvm/llvm-project/pull/73717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[flang] [libcxx] [lld] [libc] [clang] [lldb] [llvm] [clang][NFC] Refactor expected directives in C++ DRs 100-199 (PR #74061)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch continues the work started with ea5b1ef016d020c37f903d6c7d4f623be975dab8. See that commit and its corresponding PR for details. --- Patch is 54.76 KiB, truncated to 20.00 KiB below, full v

[clang] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,13 @@ +//===--- arm_vector_type.td - ARM Fixed vector types compiler interface ---===// CarolineConcatto wrote: We need for the file in CMakeLists.txt lang_generate_header(-gen-arm-vector-type arm_vector_types.td arm_vector_types.h) https://github.

[clang] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-01 Thread via cfe-commits
@@ -2546,6 +2548,44 @@ void NeonEmitter::runFP16(raw_ostream &OS) { OS << "#endif /* __ARM_FP16_H */\n"; } +void NeonEmitter::runVectorType(raw_ostream &OS) { + OS << "/*=== arm_vector_type - ARM vector type " +"--===\n" +" *\n" +" *\n" +

[clang] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-01 Thread via cfe-commits
@@ -2546,6 +2548,44 @@ void NeonEmitter::runFP16(raw_ostream &OS) { OS << "#endif /* __ARM_FP16_H */\n"; } +void NeonEmitter::runVectorType(raw_ostream &OS) { + OS << "/*=== arm_vector_type - ARM vector type " +"--===\n" +" *\n" +" *\n" +

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #74064)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes This PR adds a warning that's emitted when a non-streaming or non-streaming-compatible builtin is called in an unsuitable function. Uses work by Kerry McLaughlin. --- Full diff: https://github.com/llvm/llvm

[clang] [AArch64][SME] Warn when using a streaming builtin from a non-streaming function (PR #74064)

2023-12-01 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 9468de48fcd413aa0895a78bd6f1aeb161b39294 f6a990a000b555d7f8ef0b2a99e3fea98420e899 --

[compiler-rt] [llvm] [mlir] [clang-tools-extra] [clang] [clang] Fix a bug with qualified name lookup into current instantiation (PR #73018)

2023-12-01 Thread via cfe-commits
john-brawn-arm wrote: As a result of this commit clang no longer gives an error for ``` template struct X { enum E { a }; }; template struct Y : X { Y::E m; }; ``` where gcc (though not msvc) gives an error: https://godbolt.org/z/qGfnzhfsK https://github.com/llvm/llvm-project/pull/73018 _

[clang] [AArch64][SME2] Add intrinsics & builtins for S/URSHL (single, multi) (PR #74066)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Patch by: Kerry McLaughlin --- Patch is 130.62 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/74066.diff 2 Files Affected

[clang] 8727982 - [Driver] Add exclusive-group feature to multilib.yaml. (#69447)

2023-12-01 Thread via cfe-commits
Author: Simon Tatham Date: 2023-12-01T12:00:18Z New Revision: 8727982bdfb84ce4adbd138c146a6b7ecaf98fdb URL: https://github.com/llvm/llvm-project/commit/8727982bdfb84ce4adbd138c146a6b7ecaf98fdb DIFF: https://github.com/llvm/llvm-project/commit/8727982bdfb84ce4adbd138c146a6b7ecaf98fdb.diff LOG:

[clang] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-01 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/73258 >From e0f245e8d6a395afac5de471b55358c7b730a170 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 22 Nov 2023 10:03:50 + Subject: [PATCH 1/3] [Clang][AArch64] Add fix vector types to header

[clang] [clang][ExtractAPI] Ensure LocationFileChecker doesn't try to traverse VFS when determining file path (PR #74071)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Grumberg (daniel-grumberg) Changes As part of https://reviews.llvm.org/D154130 the logic of LocationFileChecker changed slightly to try and get the absolute external file path instead of the name as requested when the file was open

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/73860 >From a7138289989afaa1348185e52469d670c316eb45 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 29 Nov 2023 21:32:55 + Subject: [PATCH 1/4] [clang][dataflow] Defer initialization of `Environment`

[clang] 6ab7662 - [clang][NFC] Refactor expected directives in C++ DRs 100-199 (#74061)

2023-12-01 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2023-12-01T17:56:27+04:00 New Revision: 6ab7662f35bb5bc1d19a7e68ec0a710bbf71c2c4 URL: https://github.com/llvm/llvm-project/commit/6ab7662f35bb5bc1d19a7e68ec0a710bbf71c2c4 DIFF: https://github.com/llvm/llvm-project/commit/6ab7662f35bb5bc1d19a7e68ec0a710bbf71c2c4.

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -492,6 +492,56 @@ transferCFGBlock(const CFGBlock &Block, AnalysisContext &AC, return State; } +static Environment initializeEnvironment(const Environment &InitEnv) { martinboehme wrote: > Why not include this function as part of the Environment API? G

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -492,6 +492,56 @@ transferCFGBlock(const CFGBlock &Block, AnalysisContext &AC, return State; } +static Environment initializeEnvironment(const Environment &InitEnv) { + Environment ResultEnv = InitEnv.fork(); martinboehme wrote: Now that this code has

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -92,11 +96,39 @@ class DataflowAnalysisContext { /*Logger=*/nullptr}); ~DataflowAnalysisContext(); + /// Sets a callback that returns the names and types of the synthetic fields + /// to add to a `RecordStorageLocation` of a given type. +

[clang] [clang] Catch missing format attributes (PR #70024)

2023-12-01 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 f1d0276e4c42301155e900424ea734aca7ec97a8 a70de331784f4058f11ab6e01efaa025263bd232 --

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -92,11 +96,39 @@ class DataflowAnalysisContext { /*Logger=*/nullptr}); ~DataflowAnalysisContext(); + /// Sets a callback that returns the names and types of the synthetic fields + /// to add to a `RecordStorageLocation` of a given type. +

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -73,7 +73,13 @@ class ScalarStorageLocation final : public StorageLocation { /// /// Contains storage locations for all modeled fields of the record (also /// referred to as "children"). The child map is flat, so accessible members of -/// the base class are directly accesib

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -54,6 +54,18 @@ void clang::dataflow::copyRecord(RecordStorageLocation &Src, } } + for (const auto &[Name, PropLocSrc] : Src.synthetic_fields()) { +if (PropLocSrc->getType()->isRecordType()) { + copyRecord(*cast(PropLocSrc), + cast(Dst.getSyn

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -92,11 +96,39 @@ class DataflowAnalysisContext { /*Logger=*/nullptr}); ~DataflowAnalysisContext(); + /// Sets a callback that returns the names and types of the synthetic fields + /// to add to a `RecordStorageLocation` of a given type. +

[clang] [clang][dataflow] Add synthetic fields to `RecordStorageLocation` (PR #73860)

2023-12-01 Thread via cfe-commits
@@ -88,12 +94,12 @@ class ScalarStorageLocation final : public StorageLocation { class RecordStorageLocation final : public StorageLocation { public: using FieldToLoc = llvm::DenseMap; + using SyntheticFieldMap = llvm::StringMap; martinboehme wrote: This is

[clang] e59a0cd - [AArch64][SME2] Add SME2 builtins for zero { zt0 } (#72274)

2023-12-01 Thread via cfe-commits
Author: Matthew Devereau Date: 2023-12-01T14:30:39Z New Revision: e59a0cd7d80a9f1ab803c4ff7416c77e9a34ed1d URL: https://github.com/llvm/llvm-project/commit/e59a0cd7d80a9f1ab803c4ff7416c77e9a34ed1d DIFF: https://github.com/llvm/llvm-project/commit/e59a0cd7d80a9f1ab803c4ff7416c77e9a34ed1d.diff L

[clang] [llvm] [SME2] Add LUTI2 and LUTI4 quad Builtins and Intrinsics (PR #73317)

2023-12-01 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 076ec9f5f5bf03983f43f703e3f9d4600bad9653 5a18e55780467b2a07de60da0b6cc50933a5d2d1 --

[clang] [clang][dataflow] Retrieve members from accessors called using member… (PR #73978)

2023-12-01 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 ff485a0e77a55847cb50768b01c04fe45a6879ea 120bdd51496dd69c601181bccae072effb547920 --

[clang] 14e9917 - [clang][ExtractAPI] Ensure LocationFileChecker doesn't try to traverse VFS when determining file path (#74071)

2023-12-01 Thread via cfe-commits
Author: Daniel Grumberg Date: 2023-12-01T15:54:36Z New Revision: 14e991740b5425680d49d75336132e793f1315e8 URL: https://github.com/llvm/llvm-project/commit/14e991740b5425680d49d75336132e793f1315e8 DIFF: https://github.com/llvm/llvm-project/commit/14e991740b5425680d49d75336132e793f1315e8.diff LO

[clang] [AArch64][SME2] Add _x2/_x4 svqrshr builtins. (PR #74100)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Patch by: Kerry McLaughlin --- Patch is 30.66 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/74100.diff 2 Files Affected:

[clang-tools-extra] [clang] [llvm] Report pass name when -llvm-verify-each reports breakage (PR #71447)

2023-12-01 Thread via cfe-commits
https://github.com/chrulski-intel updated https://github.com/llvm/llvm-project/pull/71447 >From c7a15dcfed077f95470eaa5781a24d54fd3c Mon Sep 17 00:00:00 2001 From: chrulski-intel Date: Mon, 6 Nov 2023 09:39:33 -0800 Subject: [PATCH 1/3] Report pass name when -llvm-verify-each reports breaka

[clang] f40d251 - [Clang] Implement P2308R1 - Template Parameter Initialization. (#73103)

2023-12-01 Thread via cfe-commits
Author: cor3ntin Date: 2023-12-01T17:44:22+01:00 New Revision: f40d25151c25e257f3ebd2696e0bf133fe2a30ff URL: https://github.com/llvm/llvm-project/commit/f40d25151c25e257f3ebd2696e0bf133fe2a30ff DIFF: https://github.com/llvm/llvm-project/commit/f40d25151c25e257f3ebd2696e0bf133fe2a30ff.diff LOG:

[clang] [Clang] Implement P2308R1 - Template Parameter Initialization. (PR #73103)

2023-12-01 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/73103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Bug #69214 fix (PR #73861)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd updated https://github.com/llvm/llvm-project/pull/73861 >From 9eb00076c22197f223649b420994176a170a2671 Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Wed, 29 Nov 2023 16:26:33 -0500 Subject: [PATCH 1/2] [Clang][OpenMP] Bug #69214 fix --- clang/lib/CodeGen/CGStmtOp

[llvm] [compiler-rt] [clang] [clang-tools-extra] [mlir] [clang] Fix a bug with qualified name lookup into current instantiation (PR #73018)

2023-12-01 Thread via cfe-commits
john-brawn-arm wrote: I'm not completely sure if we should be giving an error for the example I gave above. Looking through the C++20 standard I see temp.res paragraph 2: > A name used in a template declaration or definition and that is dependent on > a template-parameter is assumed not to nam

[clang] [Clang][OpenMP] Bug #69214 fix (PR #73861)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd updated https://github.com/llvm/llvm-project/pull/73861 >From 8396dd8a1343451f786a2391df864636925eb11a Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Fri, 1 Dec 2023 11:57:47 -0500 Subject: [PATCH] Update test --- clang/lib/CodeGen/CGStmtOpenMP.cpp| 2

[clang] [Clang][OpenMP] Bug #69214 fix (PR #73861)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd closed https://github.com/llvm/llvm-project/pull/73861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd created https://github.com/llvm/llvm-project/pull/74105 Fix https://github.com/llvm/llvm-project/issues/69214. In emitOMPSimdRegion, the EmitOMPPrivateLoopCounters should be after EmitOMPPrivateClause. >From 8396dd8a1343451f786a2391df864636925eb11a Mon Sep 17 00:00:

[llvm] [clang-tools-extra] [clang] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-12-01 Thread via cfe-commits
https://github.com/elizabethandrews updated https://github.com/llvm/llvm-project/pull/71706 >From 534fad70af45a6a22ba2d03f474089e896f4fcd6 Mon Sep 17 00:00:00 2001 From: Elizabeth Andrews Date: Thu, 26 Oct 2023 08:53:54 -0700 Subject: [PATCH 1/3] [Clang] Fix linker error for function multivers

[clang] [clang] Fix crash when declaring invalid lambda member (PR #74110)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes I've come across this while working on implementing lambdas in C++03. --- Full diff: https://github.com/llvm/llvm-project/pull/74110.diff 2 Files Affected: - (modified) clang/lib/AST/DeclCXX.cpp (+3

[clang-tools-extra] [llvm] [clang] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-12-01 Thread via cfe-commits
elizabethandrews wrote: > > I requested some minor changes. > > Can we document the `.ifunc` symbols as a deprecated feature? With this > > change, they will never be referenced except by code compiled by older > > compiler versions. Maybe plan to deprecate them a year from now? > > How/where

[clang-tools-extra] [llvm] [clang] [Clang] Fix linker error for function multiversioning (PR #71706)

2023-12-01 Thread via cfe-commits
elizabethandrews wrote: Hmm the build fails with: ⚠️ Warning: Checkout failed! checking out commit "af600cbf98ce1bf55c51ef88ddf94cd9114181c2": exit status 128 (Attempt 3/3) 🚨 Error: checking out commit "af600cbf98ce1bf55c51ef88ddf94cd9114181c2": exit status 128 Would anyone happen to know

[clang] [clang][CodeGen] Emit atomic IR instead of libcalls for misaligned po… (PR #73176)

2023-12-01 Thread via cfe-commits
https://github.com/Logikable updated https://github.com/llvm/llvm-project/pull/73176 >From 5d4b6cac10d84bf8bf76d50730fdd5ef65261076 Mon Sep 17 00:00:00 2001 From: Sean Luchen Date: Fri, 17 Nov 2023 17:29:52 + Subject: [PATCH] [clang][CodeGen] Emit atomic IR instead of libcalls for misalign

[clang] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd updated https://github.com/llvm/llvm-project/pull/74105 >From 8396dd8a1343451f786a2391df864636925eb11a Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Fri, 1 Dec 2023 11:57:47 -0500 Subject: [PATCH 1/2] Update test --- clang/lib/CodeGen/CGStmtOpenMP.cpp

[flang] [clang] Revert "[flang][Driver] Let the linker fail on multiple definitions of main()" (PR #74120)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver @llvm/pr-subscribers-clang-driver Author: Tom Eccles (tblah) Changes Reverts llvm/llvm-project#73124 This caused a regression building programs which implement `main()` in C and then call into some Fortran code, and which link using `flang

[clang] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd ready_for_review https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Baodi (lwshanbd) Changes Fix #69214 In `emitOMPSimdRegion`, the `EmitOMPPrivateLoopCounters` should be after `EmitOMPPrivateClause`. --- Patch is 266.43 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/l

[clang] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Baodi (lwshanbd) Changes Fix #69214 In `emitOMPSimdRegion`, the `EmitOMPPrivateLoopCounters` should be after `EmitOMPPrivateClause`. --- Patch is 266.41 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-proj

[clang] [Clang][OpenMP]Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Bug fix #69214 (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] work around more __noinline__ conflicts with libc++ (PR #74123)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Artem Belevich (Artem-B) Changes https://github.com/llvm/llvm-project/pull/73838 --- Full diff: https://github.com/llvm/llvm-project/pull/74123.diff 3 Files Affected: - (modified) clang/lib/Headers/CMakeLists.txt (+2) - (added) clang/l

[clang] [Clang][OpenMP] Fix private variables registration (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Fix private variables registration (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Fix private variables registration in `simd` (PR #74105)

2023-12-01 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/74105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang] Report pass name when -llvm-verify-each reports breakage (PR #71447)

2023-12-01 Thread via cfe-commits
chrulski-intel wrote: @aeubanks Thanks for merging this. https://github.com/llvm/llvm-project/pull/71447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e817966 - [RISCV] Collapse fast unaligned access into a single feature [nfc-ish] (#73971)

2023-12-01 Thread via cfe-commits
Author: Philip Reames Date: 2023-12-01T11:00:59-08:00 New Revision: e81796671890b59c110f8e41adc7ca26f8484d20 URL: https://github.com/llvm/llvm-project/commit/e81796671890b59c110f8e41adc7ca26f8484d20 DIFF: https://github.com/llvm/llvm-project/commit/e81796671890b59c110f8e41adc7ca26f8484d20.diff

[llvm] [lld] [clang] [SHT_LLVM_BB_ADDR_MAP] Allow basic-block-sections and labels be used … (PR #74128)

2023-12-01 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 ca2d79f9cad48b7165bf81a7cc24b67f277915f1 3f82059172f7e9020ff14e41063208c6d67b7cce --

[clang] [clang] Fix crash when declaring invalid lambda member (PR #74110)

2023-12-01 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/74110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix crash when declaring invalid lambda member (PR #74110)

2023-12-01 Thread via cfe-commits
https://github.com/cor3ntin commented: The tests changes look mostly unrelated to this PR https://github.com/llvm/llvm-project/pull/74110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [clang-tools-extra] [lld] [libunwind] [lldb] [libcxx] [libc] [compiler-rt] [flang] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-12-01 Thread via cfe-commits
@@ -286,7 +286,33 @@ clang::analyze_format_string::ParseLengthModifier(FormatSpecifier &FS, lmKind = LengthModifier::AsInt3264; break; case 'w': - lmKind = LengthModifier::AsWide; ++I; break; + ++I; + if (I == E) return false; + if (*I == 'f

[clang] [flang][driver] Add -fno-fortran-main (link time) option to remove Fortran_main from link line (PR #74139)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Michael Klemm (mjklemm) Changes This is related to PR #74120 and (merged) PR #73124. This PR adds the `-fno-fortran-main` command line option to remove `Fortran_main.a` from the link and to allow for link

[clang] [flang][driver] Add -fno-fortran-main (link time) option to remove Fortran_main from link line (PR #74139)

2023-12-01 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 1f8f9e3163f6367258281f50b9d0492855c996e8 44b684ae43a6da37bb56c5b699628c6807257ad9 --

[clang-tools-extra] [clang-tidy] Fix false-positives in readability-container-size-empty (PR #74140)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes Added support for size-like method returning signed type, and corrected false positive caused by always-false check for size bellow zero. Closes #72619 --- Full diff: https://github.com/llvm/llvm-proje

[clang] [analyzer] Let the checkers query upper and lower bounds on symbols (PR #74141)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (DonatNagyE) Changes This commit extends the class `SValBuilder` with the methods `getMinValue()` and `getMaxValue()` to that work like `SValBuilder::getKnownValue()` but return the minima

[clang] a4d8549 - [HIP] fix stack marking for -fgpu-rdc (#72782)

2023-12-01 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-12-01T16:22:16-05:00 New Revision: a4d85490e029e797d22881b37d476c2050d0d6a2 URL: https://github.com/llvm/llvm-project/commit/a4d85490e029e797d22881b37d476c2050d0d6a2 DIFF: https://github.com/llvm/llvm-project/commit/a4d85490e029e797d22881b37d476c2050d0d6a2.dif

[clang] 2b76e20 - [CUDA][HIP] allow trivial ctor/dtor in device var init (#73140)

2023-12-01 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-12-01T16:24:01-05:00 New Revision: 2b76e20ea782790a78ec58d5f94ce88a173bab7f URL: https://github.com/llvm/llvm-project/commit/2b76e20ea782790a78ec58d5f94ce88a173bab7f DIFF: https://github.com/llvm/llvm-project/commit/2b76e20ea782790a78ec58d5f94ce88a173bab7f.dif

[clang-tools-extra] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
https://github.com/pizzud updated https://github.com/llvm/llvm-project/pull/67467 >From 6d5d35e1273f595e8a0382053d5183cbce7a9d8a Mon Sep 17 00:00:00 2001 From: David Pizzuto Date: Tue, 26 Sep 2023 10:45:42 -0700 Subject: [PATCH 1/2] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

[clang-tools-extra] [openmp] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
https://github.com/pizzud updated https://github.com/llvm/llvm-project/pull/67467 >From 6d5d35e1273f595e8a0382053d5183cbce7a9d8a Mon Sep 17 00:00:00 2001 From: David Pizzuto Date: Tue, 26 Sep 2023 10:45:42 -0700 Subject: [PATCH 1/2] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

[clang-tools-extra] [openmp] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 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 d22944d1cc54a3384a88d654d144ef62a693df16 528146e8d1fae56d2d4cc2d32a0823aa1f9cbc2b --

[clang] [clang][modules] Reset codegen options. (PR #74006)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juergen Ributzka (ributzka) Changes CodeGen options do not affect the AST, so they usually can be ignored. The only exception to the rule is when a PCM is created with `-gmodules`. In that case the Clang module format is switched to object

[openmp] [clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,60 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[llvm] [openmp] [clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
https://github.com/pizzud updated https://github.com/llvm/llvm-project/pull/67467 >From 6d5d35e1273f595e8a0382053d5183cbce7a9d8a Mon Sep 17 00:00:00 2001 From: David Pizzuto Date: Tue, 26 Sep 2023 10:45:42 -0700 Subject: [PATCH 1/3] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

[clang-tools-extra] [openmp] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,37 @@ +//===--- MoveSharedPointerContentsCheck.h - clang-tidy --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[llvm] [openmp] [clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,60 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [openmp] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,60 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[openmp] [clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,37 @@ +//===--- MoveSharedPointerContentsCheck.h - clang-tidy --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [openmp] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,37 @@ +//===--- MoveSharedPointerContentsCheck.h - clang-tidy --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [openmp] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
@@ -0,0 +1,17 @@ +.. title:: clang-tidy - bugprone-move-shared-pointer-contents + +bugprone-move-shared-pointer-contents += + +Detects calls to move the contents out of a ``std::shared_ptr`` rather than +moving the pointer itself. In other words

[openmp] [clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2023-12-01 Thread via cfe-commits
pizzud wrote: > I noticed a problem with your matcher, so I reviewed the rest of it while I > was at it. > > The problem is that you do not consider a type-dependent `std::shared_ptr` > and the following test case fails: > > ```c++ > template > void dependentType() { > std::shared_ptr p; >

[flang] [clang-tools-extra] [llvm] [libcxx] [libc] [lld] [lldb] [clang] [compiler-rt] [mlir] [libunwind] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-12-01 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/71771 >From 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 9 Nov 2023 02:21:46 + Subject: [PATCH 1/3] Fix clang to recognize new C23 modifiers %w and %wf when pri

[flang] [clang-tools-extra] [llvm] [libcxx] [libc] [lld] [lldb] [clang] [compiler-rt] [mlir] [libunwind] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-12-01 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/71771 >From 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Thu, 9 Nov 2023 02:21:46 + Subject: [PATCH 1/4] Fix clang to recognize new C23 modifiers %w and %wf when pri

[flang] [clang-tools-extra] [llvm] [libcxx] [libc] [lld] [lldb] [clang] [compiler-rt] [mlir] [libunwind] Fix clang to recognize new C23 modifiers %w and %wf when printing and scanning (PR #71771)

2023-12-01 Thread via cfe-commits
https://github.com/ZijunZhaoCCK edited https://github.com/llvm/llvm-project/pull/71771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in `git-clang-format --binary` (PR #74176)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixed #74165. --- Full diff: https://github.com/llvm/llvm-project/pull/74176.diff 1 Files Affected: - (modified) clang/tools/clang-format/git-clang-format (+1) ``diff diff --git a/clang/tools/

[clang] [Driver][LTO] Copy fix empty stats filename to AMDGPU, HIPAMD, MinGW (PR #74178)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes Copying https://github.com/llvm/llvm-project/commit/1881832994840baa6e42f908b8822ce4d15ab632 to the last of the targets that use LTO. But I am not sure about tests for these targets, especially the AMD toolchai

[clang] [clang][RISCVVEmitter] Remove no-op ptr-to-ptr bitcast (NFC) (PR #74179)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Youngsuk Kim (JOE1994) Changes Remove ptr-to-ptr bitcast which was added back in 939352b6ec31db4e8defe07856868438fbc5340d . With opaque pointers, the bitcast is now redundant. Opaque ptr cleanup effort. --- Full diff: https://github.com

[llvm] [clang] Revert HWASAN failure (#74163) (PR #74180)

2023-12-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kirill Stoimenov (kstoimenov) Changes This is the failure: https://lab.llvm.org/buildbot/#/builders/236/builds/7728/steps/10/logs/stdio This started with eef8e1d206dc01c081a0ca29b7f9e0c39d33446e, but because there were a couple of

[llvm] [clang] Revert HWASAN failure (#74163) (PR #74180)

2023-12-01 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 28eead018d80a5384b8be6f259c3d2e2b849e8cf ef876c72f3d828055ce58d0f22ec40c7468bc6c1 --

[clang] 37da4e3 - [clang-fuzzer] Remove GCC 4.x pre GCC 4.9 workaround to silence warning (#73974)

2023-12-02 Thread via cfe-commits
Author: Brad Smith Date: 2023-12-02T05:15:30-05:00 New Revision: 37da4e3d80d7136121e74e2b8d23afb14ae7ab69 URL: https://github.com/llvm/llvm-project/commit/37da4e3d80d7136121e74e2b8d23afb14ae7ab69 DIFF: https://github.com/llvm/llvm-project/commit/37da4e3d80d7136121e74e2b8d23afb14ae7ab69.diff LO

[clang] [clang] Accept lambdas in C++03 as an extensions (PR #73376)

2023-12-02 Thread via cfe-commits
@@ -92,14 +94,14 @@ namespace ImplicitCapture { [] { return ref_i; }; // expected-error {{variable 'ref_i' cannot be implicitly captured in a lambda with no capture-default specified}} expected-note {{lambda expression begins here}} expected-note 2 {{capture 'ref_i' by}} e

[clang] [clang] Accept lambdas in C++03 as an extensions (PR #73376)

2023-12-02 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/73376 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] Support CFE flags for APX features (PR #74199)

2023-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-x86 Author: Shengchen Kan (KanRobert) Changes Positive options: -mapx-features= Negative options: -mno-apx-features= -m[no-]apx-features is designed to be able to con

[clang] 1fa35f0 - [clang] Avoid recalculating TBAA base type info (#73264)

2023-12-02 Thread via cfe-commits
Author: Nathan Sidwell Date: 2023-12-02T11:54:59-05:00 New Revision: 1fa35f0b5dc2f3427fbade0eaaca6e2d8c32caef URL: https://github.com/llvm/llvm-project/commit/1fa35f0b5dc2f3427fbade0eaaca6e2d8c32caef DIFF: https://github.com/llvm/llvm-project/commit/1fa35f0b5dc2f3427fbade0eaaca6e2d8c32caef.diff

[clang] [clang] Strict aliasing warning ala GCC [PR50066] (PR #74155)

2023-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Nathan Sidwell (urnathan) Changes This implements -Wstrict-aliasing(=[123])? along the same lines as GCC. It's not 100% the same for reasons expanded on below. The default is level 3, and I have verified

[clang] [clang-tools-extra] [llvm] [mlir] [mlir] Fix a zero stride canonicalizer crash (PR #74200)

2023-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-memref @llvm/pr-subscribers-mlir-tensor Author: Rik Huijzer (rikhuijzer) Changes This PR fixes https://github.com/llvm/llvm-project/issues/73383 and is another shot at the refactoring proposed in https://github.com/llvm/llvm-project/pull/72885. -

[clang] c638161 - [clang][RISCVVEmitter] Remove no-op ptr-to-ptr bitcast (NFC) (#74179)

2023-12-02 Thread via cfe-commits
Author: Youngsuk Kim Date: 2023-12-02T13:50:58-05:00 New Revision: c6381615ef9bc869a708ab8f786c4350f7e00ee7 URL: https://github.com/llvm/llvm-project/commit/c6381615ef9bc869a708ab8f786c4350f7e00ee7 DIFF: https://github.com/llvm/llvm-project/commit/c6381615ef9bc869a708ab8f786c4350f7e00ee7.diff

[clang] b3e80d8 - [clang-format] Add space in Verilog tagged unions (#71354)

2023-12-02 Thread via cfe-commits
Author: sstwcw Date: 2023-12-02T19:26:07Z New Revision: b3e80d8ed251bfdad4a49fee19b8354eba407d1d URL: https://github.com/llvm/llvm-project/commit/b3e80d8ed251bfdad4a49fee19b8354eba407d1d DIFF: https://github.com/llvm/llvm-project/commit/b3e80d8ed251bfdad4a49fee19b8354eba407d1d.diff LOG: [clang

[clang] [clang-format] Add space in Verilog tagged unions (PR #71354)

2023-12-02 Thread via cfe-commits
https://github.com/sstwcw closed https://github.com/llvm/llvm-project/pull/71354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [lldb] [llvm] [libc] [libcxx] [flang] [compiler-rt] Work around GCC test failure that is caused by enabling optimizations. (PR #73998)

2023-12-02 Thread via cfe-commits
https://github.com/EricWF updated https://github.com/llvm/llvm-project/pull/73998 >From 2e7676bac9fb0c8694dd1ee635508ae4d4a6421d Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 30 Nov 2023 17:23:37 -0500 Subject: [PATCH] Work around GCC test failure that is caused by enabling optimizat

[clang] [lld] [lldb] [llvm] [libc] [libcxx] [flang] [compiler-rt] Work around GCC test failure that is caused by enabling optimizations. (PR #73998)

2023-12-02 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 7ec4f6094e54911794c142b5d88496a220d807d6 aaa004f3bd13743195865d5ab09f5ed81757b2a7 --

[compiler-rt] [lldb] [libc] [clang] [lld] [llvm] [libcxx] [flang] Work around GCC test failure that is caused by enabling optimizations. (PR #73998)

2023-12-02 Thread via cfe-commits
https://github.com/EricWF updated https://github.com/llvm/llvm-project/pull/73998 >From 2e7676bac9fb0c8694dd1ee635508ae4d4a6421d Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 30 Nov 2023 17:23:37 -0500 Subject: [PATCH 1/2] Work around GCC test failure that is caused by enabling optim

[llvm] [clang] [RISCV] Remove experimental from Vector Crypto extensions (PR #74213)

2023-12-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Eric Biggers (ebiggers) Changes This is an updated version of https://github.com/llvm/llvm-project/pull/69000, which hasn't had activity in a few weeks --- Patch is 272.35 KiB, truncated to 20.00 KiB below, full version: https:

<    36   37   38   39   40   41   42   43   44   45   >