[lld] [llvm] [compiler-rt] [libc] [clang] [flang] [libunwind] [clang-tools-extra] [libcxx] [lldb] [GVN] Disable GVN PRE on target hasBranchDivergence (PR #77069)

2024-01-08 Thread via cfe-commits
https://github.com/fengfeng09 updated https://github.com/llvm/llvm-project/pull/77069 >From 17a9072758d9f443d0f7bca8862fec5a793c3dba Mon Sep 17 00:00:00 2001 From: "feng.feng" Date: Mon, 11 Dec 2023 15:14:32 +0800 Subject: [PATCH] [GVN] Disable GVN PRE on target hasBranchDivergence Signed-off-

[clang] 27f5479 - [clang-format] Break after string literals with trailing line breaks (#76795)

2024-01-08 Thread via cfe-commits
Author: kadir çetinkaya Date: 2024-01-08T11:11:02+01:00 New Revision: 27f547968cce89d4706ae2b27a0c15254d1670ee URL: https://github.com/llvm/llvm-project/commit/27f547968cce89d4706ae2b27a0c15254d1670ee DIFF: https://github.com/llvm/llvm-project/commit/27f547968cce89d4706ae2b27a0c15254d1670ee.dif

[clang] [clang][Interp] Implement ComplexToReal casts (PR #77294)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Add a new emitComplexReal() helper function and use that for the new casts as well as the old __real implementation. --- Full diff: https://github.com/llvm/llvm-project/pull/77294.diff 3 Files Affected: -

[clang] [clang][Interp] Fix discarded integral and floating casts (PR #77295)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We need to handle this at the CastExpr level. --- Full diff: https://github.com/llvm/llvm-project/pull/77295.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/ByteCodeExprGen.cpp (+7) - (modified)

[clang] 10b5b5d - [clang] Fix a crash when referencing the result if the overload fails (#77288)

2024-01-08 Thread via cfe-commits
Author: Haojian Wu Date: 2024-01-08T11:49:36+01:00 New Revision: 10b5b5d6e2df25dab86fe89a78c5df6f507f6e50 URL: https://github.com/llvm/llvm-project/commit/10b5b5d6e2df25dab86fe89a78c5df6f507f6e50 DIFF: https://github.com/llvm/llvm-project/commit/10b5b5d6e2df25dab86fe89a78c5df6f507f6e50.diff LO

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

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

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

2024-01-08 Thread via cfe-commits
https://github.com/martinboehme requested changes to this pull request. https://github.com/llvm/llvm-project/pull/76746 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

2024-01-08 Thread via cfe-commits
@@ -27,9 +27,13 @@ static bool areEquivalentIndirectionValues(const Value &Val1, } bool areEquivalentValues(const Value &Val1, const Value &Val2) { - return &Val1 == &Val2 || (Val1.getKind() == Val2.getKind() && -(isa(&Val1) || -

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

2024-01-08 Thread via cfe-commits
@@ -53,8 +53,8 @@ TEST(ValueTest, EquivalentValuesWithDifferentPropsEquivalent) { TopBoolValue V2(A.makeAtomRef(Atom(3))); V1.setProperty("foo", Prop1); V2.setProperty("bar", Prop2); - EXPECT_TRUE(areEquivalentValues(V1, V2)); - EXPECT_TRUE(areEquivalentValues(V2, V1))

[clang] [clang] Fix assertion failure when initializing union with FAM (PR #77298)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikita Popov (nikic) Changes When initializing a union that constrain a struct with a flexible array member, and the initializer list is empty, we currently trigger an assertion failure. This happens because getFlexibleArrayInitChars() as

[libc] [libcxx] [compiler-rt] [llvm] [lld] [clang] [clang-tools-extra] [lldb] [mlir] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #71555)

2024-01-08 Thread via cfe-commits
https://github.com/muneebkhan85 updated https://github.com/llvm/llvm-project/pull/71555 >From 7bb2f9793b2a2cccbaa401f6e2ac850b587f2b59 Mon Sep 17 00:00:00 2001 From: Muneeb Khan Date: Tue, 7 Nov 2023 23:52:17 +0800 Subject: [PATCH 01/11] [MLIR][LLVM] Add Continuous Loop Peeling transform to SC

[clang] [clang][Interp] Implement __builtin_addressof (PR #77303)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We don't need to do anything here, since the input is already a Pointer. The only complexity is that we pre-classify the parameters as PT_Ptr, but they might end up being of a different pointer type, e.g. PT

[clang] [CLANG] Add warning when comparing to INF or NAN in fast math mode. (PR #76873)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zahira Ammarguellat (zahiraam) Changes Check for comparisons to INF and NaN when in ffast-math mode and generate a warning. --- Full diff: https://github.com/llvm/llvm-project/pull/76873.diff 5 Files Affected: - (modified) clang/includ

[llvm] [clang] [ASan][Driver] Add sanitize-target flag to support enabling ASan in device or host compilation (PR #76127)

2024-01-08 Thread via cfe-commits
jinge90 wrote: Hi, @MaskRay and @AaronBallman Kind ping~. Thanks very much. https://github.com/llvm/llvm-project/pull/76127 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-08 Thread via cfe-commits
agozillon wrote: > Thanks for the discussion! > > > It defaults to on if it finds the `libc` wrapper headers in the `clang` > > resource directory, > > `lib/clang/18/include/llvm_libc_wrappers/llvm-libc-decls`. I'm assuming > > that Fortran doesn't have this? > > It shouldn't, which means th

[clang] [ARM] arm_acle.h add Coprocessor Instrinsics (PR #75440)

2024-01-08 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/75440 >From ee562f7e8e8577ee93631a8425efd80e7ce64c18 Mon Sep 17 00:00:00 2001 From: hstk30-hw Date: Thu, 14 Dec 2023 15:40:03 +0800 Subject: [PATCH] feat: arm_acle.h add Coprocessor Instrinsics --- clang/lib/Basic/

[clang] [flang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-08 Thread via cfe-commits
agozillon wrote: > > I am gonna sign off for the weekend as it's quite late here, so I'll reply > > in a little more detail on Monday and update the PR further. but I'd be > > happy to add a further flang test, although not too sure what it'd be, so > > suggestions are welcome. > > I tested th

[clang] [AST] Teach TextNodeDumper to print the "implicit" bit for coroutine AST nodes (PR #77311)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/77311.diff 3 Files Affected: - (modified) clang/include/clang/AST/TextNodeDumper.h (+2) - (modified) clang/lib/AST/TextNodeDumper.cpp (+10) - (added

[clang] [clang] pop explicit to keep context stack balance (PR #77312)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qizhi Hu (jcsxky) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/77312.diff 1 Files Affected: - (modified) clang/lib/Parse/ParseDecl.cpp (+6-1) ``diff diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/

[clang] [AST] Teach TextNodeDumper to print the "implicit" bit for coroutine AST nodes (PR #77311)

2024-01-08 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 d02c7931d1be794a230943e300fec4172032e6a8 b0efa2e20f1ca7bc9e18b81231574895fe2281c3 --

[flang] [mlir] [clang] [Flang][OpenMP][MLIR] Add support for -nogpulib option (PR #71045)

2024-01-08 Thread via cfe-commits
agozillon wrote: It would be very nice to have this option added to Flang in the near future, as this option would allow the OpenMP libomptarget runtime tests for offload to be ran without failure due to this missing option. I believe we are currently in the process of setting up a buildbot th

[clang] [Clang] Fix IsOverload for function templates (PR #77323)

2024-01-08 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/77323 Functions which correspond but have different template parameter lists are not redeclarations. Fixes a regression introduced by af4751 (The patch just moves the template parameters check above if the signature

[clang] [Clang] Fix IsOverload for function templates (PR #77323)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Functions which correspond but have different template parameter lists are not redeclarations. Fixes a regression introduced by af4751 (The patch just moves the template parameters check above if the signature

[clang] 16cd344 - [RISCV] Fix collectNonISAExtFeature returning negative extension features (#76962)

2024-01-08 Thread via cfe-commits
Author: Luke Lau Date: 2024-01-08T22:11:54+07:00 New Revision: 16cd344380aa89a4bc47939ae65fd59fe8c77181 URL: https://github.com/llvm/llvm-project/commit/16cd344380aa89a4bc47939ae65fd59fe8c77181 DIFF: https://github.com/llvm/llvm-project/commit/16cd344380aa89a4bc47939ae65fd59fe8c77181.diff LOG:

[clang] [clang] pop explicit to keep context stack balance (PR #77312)

2024-01-08 Thread via cfe-commits
cor3ntin wrote: Can you explain why this change is needed, and provide a test case? (in `clang/test/Parser`) Thanks https://github.com/llvm/llvm-project/pull/77312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [flang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-08 Thread via cfe-commits
https://github.com/agozillon updated https://github.com/llvm/llvm-project/pull/77135 >From 71fee19666806c331555fdb9453d792063f8ffd8 Mon Sep 17 00:00:00 2001 From: Andrew Gozillon Date: Fri, 5 Jan 2024 14:16:16 -0600 Subject: [PATCH 1/2] [Flang][Driver] Enable gpulibc/nogpulibc options for Flan

[clang] [flang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-08 Thread via cfe-commits
agozillon wrote: Added a similar test for the options to Flang's omp-driver-offload.f90 in the last commit, happy to add more tests if desired, just might need some suggestions if that's the case! https://github.com/llvm/llvm-project/pull/77135 ___

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
https://github.com/sethp created https://github.com/llvm/llvm-project/pull/77326 Prior to this commit, it was impossible to use the simple string matching directives to look for most content that contains `{{`, such as: ``` // expected-note {{my_struct{{1}, 2}}} ``` Which would parse like so:

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 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 i

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (sethp) Changes Prior to this commit, it was impossible to use the simple string matching directives to look for most content that contains `{{`, such as: ``` // expected-note {{my_struct{{1}, 2}}} ``` Which would parse like so: ``

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

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

[clang] e6b7c8c - [OpenACC] Implement 'if' clause

2024-01-08 Thread via cfe-commits
Author: erichkeane Date: 2024-01-08T07:33:28-08:00 New Revision: e6b7c8c4951a470cc63a1721bc5f5ac7f3748a2f URL: https://github.com/llvm/llvm-project/commit/e6b7c8c4951a470cc63a1721bc5f5ac7f3748a2f DIFF: https://github.com/llvm/llvm-project/commit/e6b7c8c4951a470cc63a1721bc5f5ac7f3748a2f.diff LO

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-08 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/74852 >From f281d34a51f662c934f158e4770774b0dc3588a2 Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Thu, 7 Dec 2023 08:45:51 -0800 Subject: [PATCH 1/6] [Clang][Sema] Print more static_assert exprs This change intro

[clang] [llvm] [Clang][RISCV] Move getVScaleRange logic into libLLVMFrontendDriver. NFC (PR #77327)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Luke Lau (lukel97) Changes In #77277, we would like to be able to reuse the logic for calculating the vscale_range in Flang. This is currently in clang::TargetInfo which is quite C specific, and given that only two targets impleme

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Looks reasonable to me, thanks! https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix IsOverload for function templates (PR #77323)

2024-01-08 Thread via cfe-commits
cor3ntin wrote: @erichkeane https://github.com/llvm/llvm-project/pull/77323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-08 Thread via cfe-commits
@@ -245,6 +245,30 @@ class PPCSubtarget : public PPCGenSubtargetInfo { /// True if the GV will be accessed via an indirect symbol. bool isGVIndirectSymbol(const GlobalValue *GV) const; + bool tocDataChecks(unsigned PointerSize, const GlobalVariable *GV) const { --

[clang] [llvm] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-08 Thread via cfe-commits
@@ -245,6 +245,30 @@ class PPCSubtarget : public PPCGenSubtargetInfo { /// True if the GV will be accessed via an indirect symbol. bool isGVIndirectSymbol(const GlobalValue *GV) const; + bool tocDataChecks(unsigned PointerSize, const GlobalVariable *GV) const { --

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2024-01-08 Thread via cfe-commits
@@ -2520,7 +2520,9 @@ void PPCAIXAsmPrinter::emitGlobalVariable(const GlobalVariable *GV) { // If the Global Variable has the toc-data attribute, it needs to be emitted // when we emit the .toc section. if (GV->hasAttribute("toc-data")) { -TOCDataGlobalVars.push_back

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
sethp wrote: Ah, I was looking for those docs, thank you! I'll be sure to tweak the description there. https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] 34dbadd - [clang][ASTImporter] Only reorder fields of RecordDecls (#77079)

2024-01-08 Thread via cfe-commits
Author: Michael Buch Date: 2024-01-08T15:57:53Z New Revision: 34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3 URL: https://github.com/llvm/llvm-project/commit/34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3 DIFF: https://github.com/llvm/llvm-project/commit/34dbaddc6fa1ce0892ecf3ca06866e7038b2a9b3.diff LOG:

[clang] 69066ab - [Clang] Fix IsOverload for function templates (#77323)

2024-01-08 Thread via cfe-commits
Author: cor3ntin Date: 2024-01-08T16:58:48+01:00 New Revision: 69066ab31959968ebcbca71f3872bdedef8fb8cd URL: https://github.com/llvm/llvm-project/commit/69066ab31959968ebcbca71f3872bdedef8fb8cd DIFF: https://github.com/llvm/llvm-project/commit/69066ab31959968ebcbca71f3872bdedef8fb8cd.diff LOG:

[clang] [Clang] Fix IsOverload for function templates (PR #77323)

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

[clang] [flang] [mlir] [llvm] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #77328)

2024-01-08 Thread via cfe-commits
https://github.com/muneebkhan85 created https://github.com/llvm/llvm-project/pull/77328 This patch adds continuous loop peeling to scf loop transforms in the MLIR backend. This transforms the target loop into a chain of loops, with step sizes that are powers of two and decrease exponentially a

[llvm] [mlir] [clang] [flang] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #77328)

2024-01-08 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 i

[clang-tools-extra] [libcxxabi] [flang] [lldb] [mlir] [llvm] [openmp] [compiler-rt] [libcxx] [clang] [libc] [OpenMP] Patch for Support to loop bind clause : Checking Parent Region (PR #76938)

2024-01-08 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/76938 >From 1dcd4703002acdde370a285089008e409043717b Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 4 Jan 2024 04:08:28 -0600 Subject: [PATCH 1/3] Changes uploaded to the phabricator on Dec 16th a

[clang] [llvm] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

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

[clang] [clang][analyzer] Add function 'ungetc' to StreamChecker. (PR #77331)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Balázs Kéri (balazske) Changes `StdLibraryFunctionsChecker` is updated too with `ungetc`. --- Full diff: https://github.com/llvm/llvm-project/pull/77331.diff 7 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2-2) - (modified

[clang] [clang][analyzer] Add function 'ungetc' to StreamChecker. (PR #77331)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Kéri (balazske) Changes `StdLibraryFunctionsChecker` is updated too with `ungetc`. --- Full diff: https://github.com/llvm/llvm-project/pull/77331.diff 7 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (

[clang-tools-extra] [clang-tidy]unused using decls only check cpp files (PR #77335)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes using decls can be used in cpp --- Full diff: https://github.com/llvm/llvm-project/pull/77335.diff 2 Files Affected: - (modified) clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.h (+4-1)

[clang-tools-extra] [clang-tidy]unused using decls only check cpp files (PR #77335)

2024-01-08 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 bda562519b89ea3832be00d8ac75cfcdb924dce2 39fae7adcdc97b4781911097f5f09c5bf8266d1c --

[clang] [Clang] Rename and enable boolean get, set, create and undef for sme2 (PR #77338)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes This patch renames the get, set, create and undef functions that deal with tuples of booleans to match the ACLE at https://github.com/ARM-software/acle/pull/257/files . It also enables them for SME2. --- P

[llvm] [clang] [AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (PR #65996)

2024-01-08 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 f9aba820eb6478a617145eb690ba8b06490d7ac5 c4e7c86eb967b4313e19587e33fdc6b50c8cd6a7 --

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

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

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
sethp wrote: @shafik I can, though I'm not quite sure where: my actual use-case is in a file that [doesn't exist yet](https://github.com/llvm/llvm-project/pull/74852/files#diff-f097ac693293d4002c0f9613238b5eaad14b46e30e8c2c9b1f43d8bdedfb06e1R10-R11). There's already accidentally a couple of po

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
cor3ntin wrote: actually, we could add tests in `test/Frontend/verify.c`, probably. https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
sethp wrote: Ah, perfect! I'll look into that, thank you! https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add function 'ungetc' to StreamChecker. (PR #77331)

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

[clang] [clang][analyzer] Add function 'ungetc' to StreamChecker. (PR #77331)

2024-01-08 Thread via cfe-commits
@@ -916,6 +922,44 @@ void StreamChecker::evalFputx(const FnDescription *Desc, const CallEvent &Call, C.addTransition(StateFailed); } +void StreamChecker::evalUngetc(const FnDescription *Desc, const CallEvent &Call, + CheckerContext &C) const {

[clang] [clang][analyzer] Add function 'ungetc' to StreamChecker. (PR #77331)

2024-01-08 Thread via cfe-commits
https://github.com/NagyDonat approved this pull request. At first glance LGTM. https://github.com/llvm/llvm-project/pull/77331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add function 'ungetc' to StreamChecker. (PR #77331)

2024-01-08 Thread via cfe-commits
@@ -916,6 +922,44 @@ void StreamChecker::evalFputx(const FnDescription *Desc, const CallEvent &Call, C.addTransition(StateFailed); } +void StreamChecker::evalUngetc(const FnDescription *Desc, const CallEvent &Call, + CheckerContext &C) const {

[clang] a146505 - [Sema] Clean up -Wc++11-narrowing-const-reference code after #76094. NFC (#77278)

2024-01-08 Thread via cfe-commits
Author: Fangrui Song Date: 2024-01-08T09:31:57-08:00 New Revision: a14650572c2752c0e08a66ce94c43578abf378f8 URL: https://github.com/llvm/llvm-project/commit/a14650572c2752c0e08a66ce94c43578abf378f8 DIFF: https://github.com/llvm/llvm-project/commit/a14650572c2752c0e08a66ce94c43578abf378f8.diff

[clang] [llvm] [CMake][Release] Add option for enabling LTO to cache file (PR #77035)

2024-01-08 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 597086c60959dd5b3c032552e8b42dd1d053f233...df8296d418eac2b4db9d955a0aec25c4c1c22a9c clang

[clang] [CMake][PGO] Use check-clang target to generate profdata for PGO builds (PR #77347)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tom Stellard (tstellar) Changes When doing a multi-stage PGO build of clang, run the check-clang and check-llvm targets using the instrumented clang and use that profile data for building the final stage2 clang. This is what is recommend

[clang] [CMake][PGO] Use check-clang target to generate profdata for PGO builds (PR #77347)

2024-01-08 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 597086c60959dd5b3c032552e8b42dd1d053f233...127e2ae83f33843cfb9c5cca314afa2fc9844239 clang

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/77326 >From cd0b9aed2d9e53f9b38aaa0f73336acae06bfbee Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Sat, 6 Jan 2024 07:54:31 -0800 Subject: [PATCH 1/3] [Clang] Wide delimiters ('{{{') for expect strings Prior to th

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
@@ -157,3 +157,33 @@ unexpected b; // expected-error@33 1-1 {{unknown type}} // what-error {{huh?}} // CHECK9: error: 'what-error' diagnostics expected but not seen: #endif + +#ifdef TEST_WIDE_DELIM +// RUN: not %clang_cc1 -DTEST_WIDE_DELIM -verify %s 2>&1 | FileCheck -check-p

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
@@ -157,3 +157,33 @@ unexpected b; // expected-error@33 1-1 {{unknown type}} // what-error {{huh?}} // CHECK9: error: 'what-error' diagnostics expected but not seen: #endif + +#ifdef TEST_WIDE_DELIM +// RUN: not %clang_cc1 -DTEST_WIDE_DELIM -verify %s 2>&1 | FileCheck -check-p

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
@@ -157,3 +157,33 @@ unexpected b; // expected-error@33 1-1 {{unknown type}} // what-error {{huh?}} // CHECK9: error: 'what-error' diagnostics expected but not seen: #endif + +#ifdef TEST_WIDE_DELIM +// RUN: not %clang_cc1 -DTEST_WIDE_DELIM -verify %s 2>&1 | FileCheck -check-p

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
@@ -157,3 +157,33 @@ unexpected b; // expected-error@33 1-1 {{unknown type}} // what-error {{huh?}} // CHECK9: error: 'what-error' diagnostics expected but not seen: #endif + +#ifdef TEST_WIDE_DELIM +// RUN: not %clang_cc1 -DTEST_WIDE_DELIM -verify %s 2>&1 | FileCheck -check-p

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-08 Thread via cfe-commits
@@ -3458,8 +3461,34 @@ A range can also be specified by ``-``. For example: In this example, the diagnostic may appear only once, if at all. +.. _DiagnosticMatching: + +Matching Modes +~~ + +The default matching mode is simple string, which looks for the expected

[clang] [compiler-rt] [libcxx] [polly] [llvm] [flang] [libcxxabi] [mlir] [lldb] [openmp] [libc] [clang-tools-extra] [OpenMP] Patch for Support to loop bind clause : Checking Parent Region (PR #76938)

2024-01-08 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/76938 >From 1dcd4703002acdde370a285089008e409043717b Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 4 Jan 2024 04:08:28 -0600 Subject: [PATCH 1/4] Changes uploaded to the phabricator on Dec 16th a

[clang] f4bc70e - [clang][modules] Remove `_Private` suffix from framework auto-link hints. (#77120)

2024-01-08 Thread via cfe-commits
Author: Juergen Ributzka Date: 2024-01-08T11:04:22-08:00 New Revision: f4bc70e886f2eb1b646d84871b93897db749c826 URL: https://github.com/llvm/llvm-project/commit/f4bc70e886f2eb1b646d84871b93897db749c826 DIFF: https://github.com/llvm/llvm-project/commit/f4bc70e886f2eb1b646d84871b93897db749c826.di

[clang] [CUDA][HIP] warn incompatible redeclare (PR #77359)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes nvcc warns about the following code: `void f(); __device__ void f() {}` but clang does not since clang allows device function to overload host function. Users want clang to emit similar warning to help

[flang] [clang] [flang][Driver] Support -pthread in the frontend (PR #77360)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Tarun Prabhu (tarunprabhu) Changes The -pthread option is supported by both clang and gfortran. The -pthread option seems to be extensively tested for various platforms by clang. We should be able to piggy-back on those tests since

[clang] [flang] [flang][Driver] Support -pthread in the frontend (PR #77360)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tarun Prabhu (tarunprabhu) Changes The -pthread option is supported by both clang and gfortran. The -pthread option seems to be extensively tested for various platforms by clang. We should be able to piggy-back on those tests since we use

[clang] [clang-format] Handle templated elaborated type specifier in function… (PR #77013)

2024-01-08 Thread via cfe-commits
@@ -3903,6 +3903,15 @@ void UnwrappedLineParser::parseRecord(bool ParseAsExpr) { parseParens(); } + auto IsTemplate = [&] { +FormatToken *Tok = InitialToken.Previous; +while (Tok) { + if (Tok->is(tok::kw_template)) +return true; + Tok = Tok->

[clang] [flang] [Flang][Driver] Enable gpulibc/nogpulibc options for Flang, which allows linking of GPU LIBC for the fortran and OpenMP runtime (PR #77135)

2024-01-08 Thread via cfe-commits
agozillon wrote: Thank you very much for your time and review @banach-space and @jhuber6 I'll land this tomorrow afternoon (for EU timezones) so that I can more easily babysit the buildbots on the very small chance something goes wrong. https://github.com/llvm/llvm-project/pull/77135

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

2024-01-08 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/6] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

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

2024-01-08 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/7] [clang-tidy] Add bugprone-move-shared-pointer-contents check.

[llvm] [clang] New calling convention preserve_none (PR #76868)

2024-01-08 Thread via cfe-commits
https://github.com/weiguozhi updated https://github.com/llvm/llvm-project/pull/76868 >From 90e14918a0eb13e2187f8548416ac72491d966c1 Mon Sep 17 00:00:00 2001 From: Guozhi Wei Date: Thu, 21 Dec 2023 19:04:44 + Subject: [PATCH 1/2] New calling convention preserve_none The new calling conventi

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

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

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

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

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

2024-01-08 Thread via cfe-commits
pizzud wrote: A coworker was able to help me get this working by rebasing against upstream, so I think we're good to go at this point. Thanks for all the feedback! https://github.com/llvm/llvm-project/pull/67467 ___ cfe-commits mailing list cfe-commit

[clang] [flang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Leandro Lupori (luporl) Changes If DEFAULT_SYSROOT is not specfied when building flang, then the -isysroot flag is needed to link binaries against system libraries on Darwin. It's also needed when linking against a non-default sysroot. --

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

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

[clang] 87f67c2 - [OpenACC] Implement 'self' clause parsing

2024-01-08 Thread via cfe-commits
Author: erichkeane Date: 2024-01-08T12:10:13-08:00 New Revision: 87f67c2599410786ea3600d388fd1d2df13e60af URL: https://github.com/llvm/llvm-project/commit/87f67c2599410786ea3600d388fd1d2df13e60af DIFF: https://github.com/llvm/llvm-project/commit/87f67c2599410786ea3600d388fd1d2df13e60af.diff LO

[flang] [openmp] [clang-tools-extra] [clang] [compiler-rt] [llvm] [OpenMP][libomptarget] Enable automatic unified shared memory executi… (PR #75999)

2024-01-08 Thread via cfe-commits
https://github.com/carlobertolli updated https://github.com/llvm/llvm-project/pull/75999 >From b5494e48f13d7938c1b5a5ade401669ee4806ee6 Mon Sep 17 00:00:00 2001 From: Carlo Bertolli Date: Tue, 19 Dec 2023 15:38:40 -0600 Subject: [PATCH] [OpenMP][libomptarget] Enable automatic unified shared mem

[clang] [clang-format][Docs] Remove duplicated words in AlignCaseColons description (PR #77368)

2024-01-08 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 i

[clang] [clang-format][Docs] Remove duplicated words in AlignCaseColons description (PR #77368)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yehezkel Bernat (YehezkelShB) Changes A few words got duplicated in the documentation of AlignCaseColons option for AlignConsecutiveShortCaseStatements Remove them to improve readability --- Full diff: https://github.com/llvm/llvm-projec

[flang] [openmp] [clang-tools-extra] [clang] [compiler-rt] [llvm] [OpenMP][libomptarget] Enable automatic unified shared memory executi… (PR #75999)

2024-01-08 Thread via cfe-commits
https://github.com/carlobertolli closed https://github.com/llvm/llvm-project/pull/75999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6684a09 - [Driver] Add the --gcc-triple option (#73214)

2024-01-08 Thread via cfe-commits
Author: Tom Stellard Date: 2024-01-08T12:20:17-08:00 New Revision: 6684a09ca84b44f320052a77cb01cb4216e6511b URL: https://github.com/llvm/llvm-project/commit/6684a09ca84b44f320052a77cb01cb4216e6511b DIFF: https://github.com/llvm/llvm-project/commit/6684a09ca84b44f320052a77cb01cb4216e6511b.diff

[llvm] [clang] New calling convention preserve_none (PR #76868)

2024-01-08 Thread via cfe-commits
@@ -1056,6 +1056,22 @@ def CC_Intel_OCL_BI : CallingConv<[ CCDelegateTo ]>; +def CC_X86_64_Preserve_None : CallingConv<[ + // We don't preserve general registers, so all of them can be used to pass + // arguments except + // - RBP frame pointer weiguoz

[clang] [clang] Update cxx_dr_status.html (PR #77372)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch updates cxx_dr_status.html with the latest changes from CWG, while also changing status of tests written for unresolved issues. The latter part requires review from their author. --- Patch

[lldb] [libcxxabi] [libunwind] [flang] [lld] [clang] [compiler-rt] [libc] [libcxx] [mlir] [polly] [llvm] [clang-tools-extra] Make clang report invalid target versions. (PR #75373)

2024-01-08 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/75373 >From 74f256d8a77ee2ba8e0d5bbb6519aa2729cf94d5 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 13 Dec 2023 20:07:45 + Subject: [PATCH 01/13] Make clang report garbage target versions. Clang always s

[llvm] [compiler-rt] [mlir] [libcxx] [clang] [lldb] [libunwind] [clang-tools-extra] [polly] [libc] [flang] [lld] [libcxxabi] Make clang report invalid target versions. (PR #75373)

2024-01-08 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/75373 >From 74f256d8a77ee2ba8e0d5bbb6519aa2729cf94d5 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 13 Dec 2023 20:07:45 + Subject: [PATCH 01/14] Make clang report garbage target versions. Clang always s

[lldb] [libcxxabi] [libunwind] [flang] [lld] [clang] [compiler-rt] [libc] [libcxx] [mlir] [polly] [llvm] [clang-tools-extra] Make clang report invalid target versions. (PR #75373)

2024-01-08 Thread via cfe-commits
@@ -1430,6 +1430,18 @@ Compilation *Driver::BuildCompilation(ArrayRef ArgList) { const ToolChain &TC = getToolChain( *UArgs, computeTargetTriple(*this, TargetTriple, *UArgs)); + if (TC.getTriple().isAndroid()) { +llvm::Triple Triple = TC.getTriple(); +unsigned

[clang] Set dllstorage on ObjectiveC ivar offsets (PR #77385)

2024-01-08 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 i

[clang] Set dllstorage on ObjectiveC ivar offsets (PR #77385)

2024-01-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Frederik Carlier (qmfrederik) Changes Mark instance variable offset symbols with `dllexport`/`dllimport` if they are not hidden and the interface declaration is marked with `dllexport`/`dllimport`, when

[clang] f5145f4 - [Clang][NFC] Fix out-of-bounds access (#77193)

2024-01-08 Thread via cfe-commits
Author: Krystian Stasiowski Date: 2024-01-08T18:21:16-05:00 New Revision: f5145f4dc819d73ff8bebcfba3779533b150884e URL: https://github.com/llvm/llvm-project/commit/f5145f4dc819d73ff8bebcfba3779533b150884e DIFF: https://github.com/llvm/llvm-project/commit/f5145f4dc819d73ff8bebcfba3779533b150884e

<    47   48   49   50   51   52   53   54   55   56   >