[clang] [compiler-rt] [llvm] [FMV][AArch64] Remove feature sha1 from FMV. (PR #108383)

2024-09-23 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: ping https://github.com/llvm/llvm-project/pull/108383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-23 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From d2096a6445b803a74bd8cb56653f4ca1791d1d9f Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/5] [clang-repl] Simplify the value printing logic to enable

[clang] [clang-tools-extra] [lldb] [llvm] [SystemZ][z/OS] Propagate IsText parameter to open text files as text (PR #107906)

2024-09-23 Thread kadir çetinkaya via cfe-commits
kadircet wrote: i think limiting this to `RealFileSystem::openFileForRead` LG, but can we make sure `IsText` defaults to `false` and we can only set it in `#ifdef __MVS__` block to make sure this is really a no-op for other platforms. e.g.: ```cppp auto OpenFlags = sys::fs::OF_None; #ifdef __MV

[clang] [llvm] [CMake] Preserve clang-prebolt (PR #109351)

2024-09-23 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: This commit is breaking LTO-PGO-BOLT build while optimizing clang with BOLT. ``` [3064/3065] Merging BOLT fdata Using legacy profile format. Profile from 2 files merged. [3064/3065] Optimizing Clang with BOLT BOLT-INFO: shared object or position-independent executable detecte

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-23 Thread Kito Cheng via cfe-commits
@@ -2841,6 +2841,10 @@ def fcf_protection : Flag<["-"], "fcf-protection">, Group, Visibility<[ClangOption, CLOption, CC1Option]>, Alias, AliasArgs<["full"]>, HelpText<"Enable cf-protection in 'full' mode">; +def fcf_branch_label_scheme_EQ : Joined<["-"], "fcf-branch-labe

[clang] [Clang][Driver] Add option to provide path for multilib's YAML config file (PR #109640)

2024-09-23 Thread Victor Campos via cfe-commits
vhscampos wrote: LGTM from the Arm target perspective, but not sure about the impact on the workflow of other targets. I suggest this waits for others' reviews. https://github.com/llvm/llvm-project/pull/109640 ___ cfe-commits mailing list cfe-commits@

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-23 Thread via cfe-commits
@@ -935,7 +935,7 @@ defm FAMIN_4Z4Z : sme2_fp_sve_destructive_vector_vg4_multi<"famin", 0b0010101>; } //[HasSME2, HasFAMINMAX] let Predicates = [HasSME2, HasSME_LUTv2] in { CarolineConcatto wrote: I will do this in another patch, because it is related to mor

[clang] [Clang][Driver] Add option to provide path for multilib's YAML config file (PR #109640)

2024-09-23 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard approved this pull request. Nice cleanup, thanks! https://github.com/llvm/llvm-project/pull/109640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-23 Thread via cfe-commits
@@ -2899,6 +2899,15 @@ let TargetPrefix = "aarch64" in { [llvm_i32_ty], [IntrNoMem, IntrHasSideEffects]>; + def int_aarch64_sme_write_lane_zt CarolineConcatto wrote: So ZT0 is a register and not a memory. I believe the correct way to mod

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-23 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/97602 >From 70d1ec0e1c1bd896cf753510a8452325b086430e Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 3 Jul 2024 15:55:45 + Subject: [PATCH 1/5] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME

[clang] bad5444 - [clang][bytecode][NFC] Remove an outdated comment

2024-09-23 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-09-23T11:54:00+02:00 New Revision: bad544461a72cdf0e8301b0e80eef4e6661eee2b URL: https://github.com/llvm/llvm-project/commit/bad544461a72cdf0e8301b0e80eef4e6661eee2b DIFF: https://github.com/llvm/llvm-project/commit/bad544461a72cdf0e8301b0e80eef4e6661eee2b.diff LO

[clang-tools-extra] Add clang-tidy external examples (PR #106675)

2024-09-23 Thread via cfe-commits
https://github.com/MichelleCDjunaidi updated https://github.com/llvm/llvm-project/pull/106675 >From 08324e3586acb16cbf010fd6013c21f2b5faa64e Mon Sep 17 00:00:00 2001 From: MichelleCDjunaidi <87893361+michellecdjuna...@users.noreply.github.com> Date: Fri, 30 Aug 2024 14:55:16 +0800 Subject: [PATC

[clang] [clang] Detect dangling assignment for "Container" case. (PR #108205)

2024-09-23 Thread Gábor Horváth via cfe-commits
@@ -601,17 +601,23 @@ void test() { std::optional o4 = std::optional(s); // FIXME: should work for assignment cases - v1 = {std::string()}; - o1 = std::string(); + v1 = {std::string()}; // expected-warning {{object backing the pointer}} + o1 = std::string(); // expect

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-23 Thread Piyou Chen via cfe-commits
@@ -3056,6 +3056,45 @@ bool Sema::checkTargetVersionAttr(SourceLocation LiteralLoc, Decl *D, enum SecondParam { None }; enum ThirdParam { Target, TargetClones, TargetVersion }; llvm::SmallVector Features; + if (Context.getTargetInfo().getTriple().isRISCV()) { + +llv

[clang-tools-extra] Add clang-tidy external examples (PR #106675)

2024-09-23 Thread via cfe-commits
MichelleCDjunaidi wrote: I asked in the forums. https://discourse.llvm.org/t/fix-error-in-upstream-doc-generation-due-to-addition-of-new-section/81368. Hopefully someone knows what to add... https://github.com/llvm/llvm-project/pull/106675 ___ cfe-co

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-23 Thread Vassil Vassilev via cfe-commits
@@ -39,11 +44,13 @@ class IncrementalCUDADeviceParser : public IncrementalParser { ~IncrementalCUDADeviceParser(); protected: - IncrementalParser &HostParser; + std::unique_ptr DeviceCI; int SMVersion; llvm::SmallString<1024> PTXCode; llvm::SmallVector FatbinCont

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-23 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/107737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a72d7ee - [clang-repl] Simplify the value printing logic to enable out-of-process. (#107737)

2024-09-23 Thread via cfe-commits
Author: Vassil Vassilev Date: 2024-09-23T12:00:43+02:00 New Revision: a72d7eea5413444249670579fecea6823fb3c564 URL: https://github.com/llvm/llvm-project/commit/a72d7eea5413444249670579fecea6823fb3c564 DIFF: https://github.com/llvm/llvm-project/commit/a72d7eea5413444249670579fecea6823fb3c564.dif

[clang] [llvm] [RISCV] Mark Zacas as non-experimental (PR #109651)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Alex Bradbury (asb) Changes The extension has been ratified for some time, but we kept it experimental (see #99898) due to ;. The ABI issue has been resolved by #10

[clang] [llvm] [RISCV] Mark Zacas as non-experimental (PR #109651)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Alex Bradbury (asb) Changes The extension has been ratified for some time, but we kept it experimental (see #99898) due to ;. The ABI issue has been resolved by #1010

[clang] [llvm] [RISCV] Mark Zacas as non-experimental (PR #109651)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Bradbury (asb) Changes The extension has been ratified for some time, but we kept it experimental (see #99898) due to ;. The ABI issue has been resolved by #101023 so I

[libclc] [libclc] use default paths with find_program when possible (PR #105969)

2024-09-23 Thread Harald van Dijk via cfe-commits
hvdijk wrote: Apologies, but I'm having a bit of trouble understanding the scenario that this PR addresses. It looks like it's meant to handle the case where `LLVM_TOOLS_BINARY_DIR` does not contain the LLVM binaries, is that right? In that case, why can `LLVM_TOOLS_BINARY_DIR` not instead be

[clang] [llvm] [RISCV] Mark Zacas as non-experimental (PR #109651)

2024-09-23 Thread Alex Bradbury via cfe-commits
https://github.com/asb created https://github.com/llvm/llvm-project/pull/109651 The extension has been ratified for some time, but we kept it experimental (see #99898) due to . The ABI issue has been resolved by #101023 so I belie

[libclc] [libclc] use default paths with find_program when possible (PR #105969)

2024-09-23 Thread Harald van Dijk via cfe-commits
@@ -55,7 +55,7 @@ if( LIBCLC_STANDALONE_BUILD OR CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DI # Import required tools if( NOT EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} ) foreach( tool IN ITEMS clang llvm-as llvm-link opt ) - find_program( LLVM_TOOL_${tool

[clang] [clang][bytecode] Implement placement-new (PR #107033)

2024-09-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/6308 Here is the

[clang] [llvm] [RISCV] Mark Zacas as non-experimental (PR #109651)

2024-09-23 Thread Alex Bradbury via cfe-commits
https://github.com/asb updated https://github.com/llvm/llvm-project/pull/109651 >From 6e0e21779c13007ec8e102a6171636189550e770 Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Mon, 23 Sep 2024 12:28:12 +0100 Subject: [PATCH 1/2] [RISCV] Mark Zacas as non-experimental The extension has been ra

[clang] [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]] attributes to the STL template specialization declarations. (PR #109653)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Fixes #109442 --- Full diff: https://github.com/llvm/llvm-project/pull/109653.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+3) - (modified) clang/lib/Sema/SemaTemplate.cpp (+1) - (modifi

[clang] [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]] attributes to the STL template specialization declarations. (PR #109653)

2024-09-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/109653 Fixes #109442 >From ff56c38c032496277dd31a1c3f158e6eacb9fd7d Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 23 Sep 2024 13:50:39 +0200 Subject: [PATCH] [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]]

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-09-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/100347 >From 4cbec87032166083624251f868ab1c60a7a266b4 Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Wed, 24 Jul 2024 11:16:20 + Subject: [PATCH 1/3] [AArch64] Implement NEON vscale intrinsics --- clang/includ

[clang] [llvm] [SPARC] Align i128 to 16 bytes in SPARC datalayouts (PR #106951)

2024-09-23 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/106951 >From 3eb96009b0b483553c2255893d26e59b8c4f6574 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Mon, 2 Sep 2024 12:01:04 +0700 Subject: [PATCH 1/4] [SPARC] Align i128 to 16 bytes in SPARC datalayouts Align i128s to

[clang] [llvm] [RISCV] Mark Zacas as non-experimental (PR #109651)

2024-09-23 Thread Alex Bradbury via cfe-commits
https://github.com/asb updated https://github.com/llvm/llvm-project/pull/109651 >From 6e0e21779c13007ec8e102a6171636189550e770 Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Mon, 23 Sep 2024 12:28:12 +0100 Subject: [PATCH 1/3] [RISCV] Mark Zacas as non-experimental The extension has been ra

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto created https://github.com/llvm/llvm-project/pull/109655 Fixes #107852 Make it explicit that the checker skips alloca regions to avoid the risc of producing false positives for code that has advnaced memory management. StackAddrEscapeChecker already used this strategy

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Arseniy Zaostrovnykh (necto) Changes Fixes #107852 Make it explicit that the checker skips alloca regions to avoid the risc of producing false positives for code that has advnaced memory manage

[clang] [lldb] [AMDGPU] Specify width and align for all AMDGPU builtin types. NFC. (PR #109656)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Jay Foad (jayfoad) Changes This will be used in ASTContext::getTypeInfo which needs this information for all builtin types, not just pointers. --- Patch is 20.84 KiB, truncated to 20.00 KiB below, full version: https://github.co

[clang] [lldb] [AMDGPU] Specify width and align for all AMDGPU builtin types. NFC. (PR #109656)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-lldb Author: Jay Foad (jayfoad) Changes This will be used in ASTContext::getTypeInfo which needs this information for all builtin types, not just pointers. --- Patch is 20.84 KiB, trunc

[clang] [lldb] [AMDGPU] Specify width and align for all AMDGPU builtin types. NFC. (PR #109656)

2024-09-23 Thread Jay Foad via cfe-commits
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/109656 This will be used in ASTContext::getTypeInfo which needs this information for all builtin types, not just pointers. >From 0ef4ea17a711a1ee95080bc1635ae9aa824df596 Mon Sep 17 00:00:00 2001 From: Jay Foad Date:

[clang] [lldb] [AMDGPU] Specify width and align for all AMDGPU builtin types. NFC. (PR #109656)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jay Foad (jayfoad) Changes This will be used in ASTContext::getTypeInfo which needs this information for all builtin types, not just pointers. --- Patch is 20.84 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/l

[clang] [C++20][Modules] NFC Reworked handling of inline for functions defined in-class (PR #109470)

2024-09-23 Thread via cfe-commits
https://github.com/tomasz-kaminski-sonarsource edited https://github.com/llvm/llvm-project/pull/109470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] NFC Reworked handling of inline for functions defined in class (PR #109470)

2024-09-23 Thread via cfe-commits
https://github.com/tomasz-kaminski-sonarsource edited https://github.com/llvm/llvm-project/pull/109470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]] attributes to the STL template specialization declarations. (PR #109653)

2024-09-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/109653 >From ea66fe54a0c820cb5671b0ee10a521da8d483714 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Mon, 23 Sep 2024 13:50:39 +0200 Subject: [PATCH] [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]] attributes to

[clang] [C++20][Modules] NFC Reworked handling of inline for functions defined in class (PR #109470)

2024-09-23 Thread via cfe-commits
https://github.com/tomasz-kaminski-sonarsource edited https://github.com/llvm/llvm-project/pull/109470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver][AArch64] Add support for aarch64-amazon-linux triple (PR #109263)

2024-09-23 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm approved this pull request. Whilst I understand the rational for requesting an alternate solution, it feels unfair. If the PR was to add a new OS or Vendor I'd have more sympathy but here we're talking about extending the existing OS-Vendor support to cover a

[clang] f8f41bf - [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]] attributes to the STL template specialization declarations. (#109653)

2024-09-23 Thread via cfe-commits
Author: Haojian Wu Date: 2024-09-23T14:59:30+02:00 New Revision: f8f41bf92c92ebc9b113a2a573d12880b86d5af3 URL: https://github.com/llvm/llvm-project/commit/f8f41bf92c92ebc9b113a2a573d12880b86d5af3 DIFF: https://github.com/llvm/llvm-project/commit/f8f41bf92c92ebc9b113a2a573d12880b86d5af3.diff LO

[clang] [clang] Apply the [[gsl::Owner]] or [[gsl::Pointer]] attributes to the STL template specialization declarations. (PR #109653)

2024-09-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/109653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread Donát Nagy via cfe-commits
@@ -1,4 +1,9 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s -Wno-undefined-bool-conversion +// RUN: %clang_analyze_cc1 \ +// RUN: -analyzer-checker=core,debug.ExprInspection,unix.Malloc \ +// RUN: -verify %s \ +// RUN: -Wno-undefined-b

[clang] [Clang][Driver][AArch64] Add support for aarch64-amazon-linux triple (PR #109263)

2024-09-23 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/109263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Lifetime of locals must end before musttail call (PR #109255)

2024-09-23 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. Thanks, still looks good. https://github.com/llvm/llvm-project/pull/109255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-23 Thread Piyou Chen via cfe-commits
https://github.com/BeMg edited https://github.com/llvm/llvm-project/pull/99040 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0b0a37e - [clang] Lifetime of locals must end before musttail call (#109255)

2024-09-23 Thread via cfe-commits
Author: Oliver Stannard Date: 2024-09-23T10:04:08+01:00 New Revision: 0b0a37e158bcf6d0667b4744b3d335f91578e0c9 URL: https://github.com/llvm/llvm-project/commit/0b0a37e158bcf6d0667b4744b3d335f91578e0c9 DIFF: https://github.com/llvm/llvm-project/commit/0b0a37e158bcf6d0667b4744b3d335f91578e0c9.dif

[clang] [clang] Lifetime of locals must end before musttail call (PR #109255)

2024-09-23 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard closed https://github.com/llvm/llvm-project/pull/109255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CMake] Preserve clang-prebolt (PR #109351)

2024-09-23 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: Here are CMAKE variables we use downstream.  ``` -DLLVM_ENABLE_PROJECTS=bolt;clang;openmp;lld    

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-23 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/107737 >From 2aa7527b52656d064c39aec94c9f1001ed10f7d8 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 6 Sep 2024 09:52:36 + Subject: [PATCH 1/5] [clang-repl] Simplify the value printing logic to enable

[clang] 898fd39 - [clang][bytecode] Check allocation size limit for operator new (#109590)

2024-09-23 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-23T09:59:41+02:00 New Revision: 898fd396b836600ef857464941220d07894b859b URL: https://github.com/llvm/llvm-project/commit/898fd396b836600ef857464941220d07894b859b DIFF: https://github.com/llvm/llvm-project/commit/898fd396b836600ef857464941220d07894b859b.diff L

[clang] [clang][bytecode] Check allocation size limit for operator new (PR #109590)

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

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (PR #97755)

2024-09-23 Thread via cfe-commits
@@ -350,3 +350,8 @@ void test_svdot_multi_za32_bad_lane(uint32_t slice_base, svuint16_t z_u16, svsudot_lane_za32_s8_vg1x2(slice_base, z_s8x2, z_u8, 4); // expected-error {{argument value 4 is outside the valid range [0, 3]}} svsudot_lane_za32_s8_vg1x4(slice_base, z_s8x4, z

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (PR #97755)

2024-09-23 Thread via cfe-commits
@@ -5415,6 +5423,11 @@ void AArch64DAGToDAGISel::Select(SDNode *Node) { SelectMultiVectorLuti(Node, 2, Opc, 3); return; } +case Intrinsic::aarch64_sme_luti4_zt_x4: { + // Does not have immediate but it has 2ZPR input + SelectMultiVectorLuti(Node,

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (PR #97755)

2024-09-23 Thread via cfe-commits
@@ -410,7 +410,7 @@ class AArch64DAGToDAGISel : public SelectionDAGISel { } void SelectMultiVectorLuti(SDNode *Node, unsigned NumOutVecs, unsigned Opc, - uint32_t MaxImm); + uint32_t MaxImm, bool IsMultiVector = false

[clang] [Clang][Driver] Add option to provide path for multilib's YAML config file (PR #109640)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Lucas Duarte Prates (pratlucas) Changes Since the introduction of the use of a YAML file to configure the selection of multilibs for baremetal, the path for that file has been hardcoded into the clang driver code. This makes it diffi

[clang] [Clang][Driver] Add option to provide path for multilib's YAML config file (PR #109640)

2024-09-23 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas created https://github.com/llvm/llvm-project/pull/109640 Since the introduction of the use of a YAML file to configure the selection of multilibs for baremetal, the path for that file has been hardcoded into the clang driver code. This makes it difficult to provide a

[clang] [compiler-rt] [llvm] [PGO] Initialize GOV Writeout and Reset Functions in the Runtime on AIX (PR #108570)

2024-09-23 Thread Rainer Orth via cfe-commits
rorth wrote: I've now tested the patch on both `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`: no failures. https://github.com/llvm/llvm-project/pull/108570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [llvm] [AArch64] Implement intrinsics for SME2 FSCALE (PR #100128)

2024-09-23 Thread via cfe-commits
https://github.com/Lukacma updated https://github.com/llvm/llvm-project/pull/100128 >From ea280c4177aa64c29a921ea40c95fc7024ce24ed Mon Sep 17 00:00:00 2001 From: Marian Lukac Date: Tue, 23 Jul 2024 14:11:49 + Subject: [PATCH 1/2] [AArch64] Implement intrinsics for SME2 FSCALE --- clang/in

[clang-tools-extra] Add clang-tidy external examples (PR #106675)

2024-09-23 Thread via cfe-commits
MichelleCDjunaidi wrote: Well, the documentation builds now thanks to @HerrCai0907. Does it look fine @SimplyDanny @5chmidti ? https://github.com/llvm/llvm-project/pull/106675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [C++20][Modules] Restore inliness of constexpr/consteval functions defined in-class (PR #109470)

2024-09-23 Thread via cfe-commits
tomasz-kaminski-sonarsource wrote: I tested this on 19.0.1 and missed the fact that it was fixed on main by https://github.com/llvm/llvm-project/commit/74ac96ae1a81c7ecc0e27ff6f45309cff1f2df97. I will rework this in NFC comment, that would add tests. https://github.com/llvm/llvm-project/pull/10

[clang] [llvm] [Coroutines] Change `llvm.coro.noop` to accept `llvm_anyptr_ty` instead (PR #102096)

2024-09-23 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 reopened https://github.com/llvm/llvm-project/pull/102096 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][HIP] Warn when __AMDGCN_WAVEFRONT_SIZE is used in host code without relying on target-dependent overload resolution (PR #109663)

2024-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fabian Ritter (ritter-x2a) Changes This is a proposal for an alternative to PR #91478 that would make PRs #93546 and #103031 unnecessary. Please let me know if this one is preferrable over PRs #91478 and #103031. The `__AMDGCN_WAVEFRONT_

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

2024-09-23 Thread Fabian Ritter via cfe-commits
@@ -0,0 +1,703 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -verify=expected,onhost %s +// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fsyntax-only -fcuda-is-device -verify=expected,ondevice %s + + +// Tests to ensure that functions with host and device

[clang] [Clang][HIP] Warn when __AMDGCN_WAVEFRONT_SIZE is used in host code without relying on target-dependent overload resolution (PR #109663)

2024-09-23 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a created https://github.com/llvm/llvm-project/pull/109663 This is a proposal for an alternative to PR #91478 that would make PRs #93546 and #103031 unnecessary. Please let me know if this one is preferrable over PRs #91478 and #103031. The `__AMDGCN_WAVEFRONT_SIZE

[clang] [AST] Avoid repeated hash lookups (NFC) (PR #109603)

2024-09-23 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/109603 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Ignore inline namespace for `hasName` (PR #109147)

2024-09-23 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I have no problem with the code here, but don't know enough about ASTMatchers to be able to review this for 'well justified'. Do we have someone besides Aaron who does? Also, it needs a release note I think for the matcher change. https://github.com/ll

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto updated https://github.com/llvm/llvm-project/pull/109655 >From b69749ab1854b0c12a69821c35bff1b866d6f307 Mon Sep 17 00:00:00 2001 From: Arseniy Zaostrovnykh Date: Mon, 23 Sep 2024 14:21:31 +0200 Subject: [PATCH 1/3] [analyzer][StackAddrEscapeChecker] Fix assert failure f

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto updated https://github.com/llvm/llvm-project/pull/109655 >From b69749ab1854b0c12a69821c35bff1b866d6f307 Mon Sep 17 00:00:00 2001 From: Arseniy Zaostrovnykh Date: Mon, 23 Sep 2024 14:21:31 +0200 Subject: [PATCH 1/2] [analyzer][StackAddrEscapeChecker] Fix assert failure f

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -846,3 +851,25 @@ void top(char **p) { foo(); // no-warning FIXME: p binding is reclaimed before the function end } } // namespace early_reclaim_dead_limitation + +using size_t = decltype(sizeof(int)); +void * malloc(size_t size); +void free(void*); necto

[clang] [analyzer][StackAddrEscapeChecker] Fix assert failure for alloca regions (PR #109655)

2024-09-23 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -1,4 +1,9 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s -Wno-undefined-bool-conversion +// RUN: %clang_analyze_cc1 \ +// RUN: -analyzer-checker=core,debug.ExprInspection,unix.Malloc \ +// RUN: -verify %s \ +// RUN: -Wno-undefined-b

[clang] ff9f1a6 - [Rewrite] Avoid repeated hash lookups (NFC) (#109605)

2024-09-23 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-23T06:42:46-07:00 New Revision: ff9f1a6ea2a0031387d23ce510d43edd81a18a1e URL: https://github.com/llvm/llvm-project/commit/ff9f1a6ea2a0031387d23ce510d43edd81a18a1e DIFF: https://github.com/llvm/llvm-project/commit/ff9f1a6ea2a0031387d23ce510d43edd81a18a1e.diff L

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #109605)

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

[clang] [Rewrite] Avoid repeated hash lookups (NFC) (PR #109605)

2024-09-23 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > LGTM, but it would probably make sense to make BlockByCopyDecls a SetVector, > instead of having separate vector and set. > > Edit: Also worth noting that this pattern also exists here: > https://github.com/llvm/llvm-project/blob/50ce6d0114f8abd4b5580d2c277525eebdf25874

[clang] [llvm] [CMake] Preserve clang-prebolt (PR #109351)

2024-09-23 Thread Amir Ayupov via cfe-commits
aaupov wrote: > This commit is breaking LTO-PGO-BOLT build while optimizing clang with BOLT. > > > > ``` > > [3064/3065] Merging BOLT fdata > > Using legacy profile format. > > Profile from 2 files merged. > > [3064/3065] Optimizing Clang with BOLT > > BOLT-INFO: shared object or positio

[clang] d6a6e25 - [AST] Avoid repeated hash lookups (NFC) (#109603)

2024-09-23 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-23T06:45:59-07:00 New Revision: d6a6e25c5158be8a1b820aedf067fce394f7a313 URL: https://github.com/llvm/llvm-project/commit/d6a6e25c5158be8a1b820aedf067fce394f7a313 DIFF: https://github.com/llvm/llvm-project/commit/d6a6e25c5158be8a1b820aedf067fce394f7a313.diff L

[clang] [AST] Avoid repeated hash lookups (NFC) (PR #109603)

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

[clang] [SystemZ][z/OS] fix ppc-xmmintrin.c on z/OS (PR #109676)

2024-09-23 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/109676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][flang] Support -time in both clang and flang (PR #109165)

2024-09-23 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/109165 >From 9bb43511fc688501730eeff0bec882d05d286278 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Wed, 18 Sep 2024 09:49:26 -0600 Subject: [PATCH 1/2] [clang][flang] Support -time in both clang and flang The

[clang] [flang] [clang][flang] Support -time in both clang and flang (PR #109165)

2024-09-23 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/109165 >From 9bb43511fc688501730eeff0bec882d05d286278 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Wed, 18 Sep 2024 09:49:26 -0600 Subject: [PATCH 1/4] [clang][flang] Support -time in both clang and flang The

[clang] [flang] [clang][flang] Support -time in both clang and flang (PR #109165)

2024-09-23 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/109165 >From 9bb43511fc688501730eeff0bec882d05d286278 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Wed, 18 Sep 2024 09:49:26 -0600 Subject: [PATCH 1/3] [clang][flang] Support -time in both clang and flang The

[clang] [flang] [clang][flang] Support -time in both clang and flang (PR #109165)

2024-09-23 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,24 @@ +// The -time option prints timing information for the various subcommands in a +// format similar to that used by gcc. When compiling and linking, this will +// include the time to call clang-${LLVM_VERSION_MAJOR} and the linker. Since +// the name of the linker

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-23 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/97602 >From 70d1ec0e1c1bd896cf753510a8452325b086430e Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 3 Jul 2024 15:55:45 + Subject: [PATCH 1/6] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-23 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/97602 >From 70d1ec0e1c1bd896cf753510a8452325b086430e Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 3 Jul 2024 15:55:45 + Subject: [PATCH 1/7] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME

[clang] [llvm] [NVPTX] Remove nvvm.bitcast.* intrinsics (PR #107936)

2024-09-23 Thread Alex MacLean via cfe-commits
@@ -599,14 +599,6 @@ TARGET_BUILTIN(__nvvm_e4m3x2_to_f16x2_rn_relu, "V2hs", "", AND(SM_89,PTX81)) TARGET_BUILTIN(__nvvm_e5m2x2_to_f16x2_rn, "V2hs", "", AND(SM_89,PTX81)) TARGET_BUILTIN(__nvvm_e5m2x2_to_f16x2_rn_relu, "V2hs", "", AND(SM_89,PTX81)) -// Bitcast

[clang] [Clang][Sema] Refactor collection of multi-level template argument lists (PR #106585)

2024-09-23 Thread Krystian Stasiowski via cfe-commits
sdkrystian wrote: I've manually reduced the standalone reproducer to the following: ```cpp template struct A { template static constexpr bool f(); }; template<> template constexpr bool A<0>::f() { return A<1>::f(); } template<> template constexpr bool A<1>::f() { return true; }

[clang] Add support for aligning BlockComments in declarations (PR #109497)

2024-09-23 Thread via cfe-commits
https://github.com/JessehMSFT updated https://github.com/llvm/llvm-project/pull/109497 >From 38333491868dfad9c84719d9dd8fd872a2aa7584 Mon Sep 17 00:00:00 2001 From: Jesse Harvey Date: Fri, 20 Sep 2024 16:40:35 -0700 Subject: [PATCH 1/2] Add support for aligning BlockComments in declarations --

[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-23 Thread Michael Buch via cfe-commits
@@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) { cast(VD->getDeclContext())->isImplicit()); } +static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) { + if (!D) +return false; + + if (auto *attr = D->get

[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-23 Thread Michael Buch via cfe-commits
@@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) { cast(VD->getDeclContext())->isImplicit()); } +static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) { + if (!D) +return false; + + if (auto *attr = D->get

[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-23 Thread Michael Buch via cfe-commits
@@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) { cast(VD->getDeclContext())->isImplicit()); } +static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) { + if (!D) +return false; + + if (auto *attr = D->get

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-23 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,69 @@ +//===-- clang/Support/Compiler.h - Compiler abstraction support -*- 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] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-23 Thread Saleem Abdulrasool via cfe-commits
@@ -0,0 +1,69 @@ +//===-- clang/Support/Compiler.h - Compiler abstraction support -*- 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] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-23 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/109490 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-23 Thread Saleem Abdulrasool via cfe-commits
@@ -7,6 +7,7 @@ # //======// set(LLVM_LINK_COMPONENTS Support) -add_clang_tool(nvptx-arch NVPTXArch.cpp) +add_clang_tool(nvptx-arch DISABLE_CLANG_LINK_DYLIB compnerd wrote: Likewise https:/

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-23 Thread Saleem Abdulrasool via cfe-commits
@@ -8,6 +8,7 @@ set(LLVM_LINK_COMPONENTS Support) -add_clang_tool(amdgpu-arch AMDGPUArch.cpp AMDGPUArchByHSA.cpp AMDGPUArchByHIP.cpp) +add_clang_tool(amdgpu-arch DISABLE_CLANG_LINK_DYLIB compnerd wrote: Why is this not allowed? Can we add a note about this?

[clang] [Clang] Add explicit visibility symbol macros (PR #108276)

2024-09-23 Thread Saleem Abdulrasool via cfe-commits
@@ -26,7 +26,7 @@ if(NOT CLANG_BUILT_STANDALONE) set(tablegen_deps intrinsics_gen LinkerWrapperOpts) endif() -add_clang_tool(clang-linker-wrapper +add_clang_tool(clang-linker-wrapper DISABLE_CLANG_LINK_DYLIB compnerd wrote: Similar https://github.com/llvm/

[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-23 Thread Michael Buch via cfe-commits
@@ -4160,6 +4178,8 @@ llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD, if (Stub) { Flags |= getCallSiteRelatedAttrs(); SPFlags |= llvm::DISubprogram::SPFlagDefinition; +if (usesDebugTransparent(FD, CGM)) Michael137 wrote:

[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-23 Thread Michael Buch via cfe-commits
@@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) { cast(VD->getDeclContext())->isImplicit()); } +static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) { + if (!D) +return false; + + if (auto *attr = D->get

  1   2   3   4   5   >