[clang] 1f21e49 - Revert "Revert "[AMDGPU] const-fold imm operands of (#71669)

2023-11-08 Thread via cfe-commits
Author: Pravin Jagtap Date: 2023-11-09T10:09:22+05:30 New Revision: 1f21e49870feebe6971be4db8d32eee646368cc4 URL: https://github.com/llvm/llvm-project/commit/1f21e49870feebe6971be4db8d32eee646368cc4 DIFF: https://github.com/llvm/llvm-project/commit/1f21e49870feebe6971be4db8d32eee646368cc4.diff

[clang] 2186199 - [OpenMP] Cleanup and fixes for ABI agnostic DeviceRTL (#71234)

2023-11-08 Thread via cfe-commits
Author: Saiyedul Islam Date: 2023-11-09T10:34:35+05:30 New Revision: 21861991e760e7e845dc1be5b804c950543d699a URL: https://github.com/llvm/llvm-project/commit/21861991e760e7e845dc1be5b804c950543d699a DIFF: https://github.com/llvm/llvm-project/commit/21861991e760e7e845dc1be5b804c950543d699a.diff

[clang] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

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

[clang] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-08 Thread via cfe-commits
@@ -85,4 +86,31 @@ void z_test(void *p) { scanf("%Z", p); // expected-warning{{invalid conversion specifier 'Z'}} } +void w_int_test(void) { ZijunZhaoCCK wrote: 1. I can't find any tests to verify the print result is correct. Do I miss something? 2. One mo

[clang] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

2023-11-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 21861991e760e7e845dc1be5b804c950543d699a 06c4cf02dfb4b20c8349c5f3c7209276f6d56edf --

[clang] Llvm modules on demand bmi (PR #71773)

2023-11-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 21861991e760e7e845dc1be5b804c950543d699a 6fa533ecaef0f75c87554fb646b0e5dca8ea7255 --

[clang] b7b5907 - [Coroutines] Introduce [[clang::coro_only_destroy_when_complete]] (#71014)

2023-11-08 Thread via cfe-commits
Author: Chuanqi Xu Date: 2023-11-09T14:42:07+08:00 New Revision: b7b5907b56e98719b1dba8364ebcfb264fc09bfe URL: https://github.com/llvm/llvm-project/commit/b7b5907b56e98719b1dba8364ebcfb264fc09bfe DIFF: https://github.com/llvm/llvm-project/commit/b7b5907b56e98719b1dba8364ebcfb264fc09bfe.diff LO

[clang] 8feb083 - [clang][Interp] Consider bit width in IntegralAP::toAPSInt() (#71646)

2023-11-08 Thread via cfe-commits
Author: Timm Baeder Date: 2023-11-09T07:46:55+01:00 New Revision: 8feb0830cb5c731a34dc74ff6f0c1c4702bc4734 URL: https://github.com/llvm/llvm-project/commit/8feb0830cb5c731a34dc74ff6f0c1c4702bc4734 DIFF: https://github.com/llvm/llvm-project/commit/8feb0830cb5c731a34dc74ff6f0c1c4702bc4734.diff L

[lldb] [clang] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes This patch relands https://github.com/llvm/llvm-project/pull/70639 It was reverted because under certain conditions we triggered an assertion in `DIBuilder`. Specifically, in the original patch we called

[clang] ae74370 - [clang][dataflow][NFC] Fix stale comments. (#71654)

2023-11-08 Thread via cfe-commits
Author: martinboehme Date: 2023-11-09T08:39:06+01:00 New Revision: ae743705113d5ec818517aefa94e704a1257ec95 URL: https://github.com/llvm/llvm-project/commit/ae743705113d5ec818517aefa94e704a1257ec95 DIFF: https://github.com/llvm/llvm-project/commit/ae743705113d5ec818517aefa94e704a1257ec95.diff

[clang] [clang][dataflow][NFC] Fix stale comments. (PR #71654)

2023-11-08 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/71654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [InstCombine] Infer zext nneg flag (PR #71534)

2023-11-09 Thread via cfe-commits
mikaelholmen wrote: I think this patch causes miscompiles. Reproduce with ```opt bbi-88690.ll -passes=instcombine -S -o -``` So with this patch instcombine turns ``` @v_936 = global i16 -3276, align 1 @v_937 = global i24 0, align 1 define i16 @main() { entry: %0 = load i16, ptr @v_936, align 1

[clang] [llvm] [InstCombine] Infer zext nneg flag (PR #71534)

2023-11-09 Thread via cfe-commits
dyung wrote: We also have a couple of internal tests that seem to be failing after this commit. Consider the following code: ```c++ char print_tmp[1]; void print(char *, void *data, unsigned size) { unsigned char *bytes = (unsigned char *)data; for (unsigned i = 0; i != size; ++i) sprint

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

2023-11-09 Thread via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: https://github.com/DonatNagyE approved this pull request. Thanks for adding the missing TC! https://github.com/llvm/llvm-project/pull/71373 ___ cfe-commits mailing list cfe-commits@lists.llv

[llvm] [clang] [InstCombine] Infer zext nneg flag (PR #71534)

2023-11-09 Thread via cfe-commits
mikaelholmen wrote: > Should be fixed by > [1b1c817](https://github.com/llvm/llvm-project/commit/1b1c81772fe50a1cb2b2adf8d8cf442c0b73602f). I've confirmed that the instances of the problem that we saw are fixed by 1b1c81772fe50a. Thanks! https://github.com/llvm/llvm-project/pull/71534 ___

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matthew Devereau (MDevereau) Changes Adds the builtins: void svldr_zt(uint64_t zt, const void *rn) void svstr_zt(uint64_t zt, void *rn) And the intrinsics: call void @llvm.aarch64.sme.ldr.zt(i32, ptr) tail call void @llvm.aarch64.sme.str.z

[clang] [llvm] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Matthew Devereau (MDevereau) Changes Adds the builtins: void svldr_zt(uint64_t zt, const void *rn) void svstr_zt(uint64_t zt, void *rn) And the intrinsics: call void @llvm.aarch64.sme.ldr.zt(i32, ptr) tail call void @llvm.aarch64.sme.str

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-09 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 18bb9725619569687bec2c013768511105266a5e 9846bc9efd79e6e3c2662ea42367c102df88799d --

[clang] [clang][RISCV]: Enable --gcc-install-dir for bare metal targets (PR #71803)

2023-11-09 Thread via cfe-commits
https://github.com/mihailo-stojanovic created https://github.com/llvm/llvm-project/pull/71803 Fix the issue where Baremetal toolchain is created instead of the RISCVToolchain when GCC installation is explicitly passed via the gcc-install-dir option. >From cd5e6d82eb0eb0431f38c48a800c1951d8d4b

[clang] [clang][RISCV]: Enable --gcc-install-dir for bare metal targets (PR #71803)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: None (mihailo-stojanovic) Changes Fix the issue where Baremetal toolchain is created instead of the RISCVToolchain when GCC installation is explicitly passed via the gcc-install-dir option. --- Full diff: https://github.com/llvm

[clang] [clang][RISCV]: Enable --gcc-install-dir for bare metal targets (PR #71803)

2023-11-09 Thread via cfe-commits
https://github.com/mihailo-stojanovic closed https://github.com/llvm/llvm-project/pull/71803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV]: Enable --gcc-install-dir for bare metal targets (PR #71803)

2023-11-09 Thread via cfe-commits
https://github.com/mihailo-stojanovic reopened https://github.com/llvm/llvm-project/pull/71803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV]: Enable --gcc-install-dir for bare metal targets (PR #71803)

2023-11-09 Thread via cfe-commits
https://github.com/mihailo-stojanovic updated https://github.com/llvm/llvm-project/pull/71803 >From 3c73fdf962c2e4fc8d993a34595f21a3926710d0 Mon Sep 17 00:00:00 2001 From: Mihailo Stojanovic Date: Tue, 19 Sep 2023 14:30:00 +0300 Subject: [PATCH] [clang] Enable --gcc-install-dir for RISCV bareme

[clang] [clang] Enable --gcc-install-dir for RISCV baremetal toolchains (PR #71803)

2023-11-09 Thread via cfe-commits
https://github.com/mihailo-stojanovic edited https://github.com/llvm/llvm-project/pull/71803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
https://github.com/CarolineConcatto edited https://github.com/llvm/llvm-project/pull/71290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -420,6 +452,38 @@ let TargetGuard = "sve,bf16" in { def SVSTNT1_VNUM_BF : MInst<"svstnt1_vnum[_{d}]", "vPpld", "b", [IsStore], MemEltTyDefault, "aarch64_sve_stnt1">; } +let TargetGuard = "sve2p1" in { + // Contiguous truncating store from quadword (single vector). + de

[llvm] [clang] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -298,6 +298,38 @@ let TargetGuard = "sve,bf16" in { def SVBFMLALT_LANE : SInst<"svbfmlalt_lane[_{0}]", "MMddi", "b", MergeNone, "aarch64_sve_bfmlalt_lane_v2", [IsOverloadNone], [ImmCheck<3, ImmCheck0_7>]>; } +let TargetGuard = "sve2p1" in { + // Contiguous zero-extendin

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -9497,8 +9500,11 @@ Value *CodeGenFunction::EmitSVEScatterStore(const SVETypeFlags &TypeFlags, // mapped to . However, this might be incompatible with the // actual type being stored. For example, when storing doubles (i64) the // predicated should be instead. At the

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -298,6 +298,38 @@ let TargetGuard = "sve,bf16" in { def SVBFMLALT_LANE : SInst<"svbfmlalt_lane[_{0}]", "MMddi", "b", MergeNone, "aarch64_sve_bfmlalt_lane_v2", [IsOverloadNone], [ImmCheck<3, ImmCheck0_7>]>; } +let TargetGuard = "sve2p1" in { + // Contiguous zero-extendin

[llvm] [clang] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
https://github.com/CarolineConcatto commented: Hey Momchil, Thank you for the work. I left some comments. I did not finish it all. I still need to check the stores. But I will wait for the answers in the load, so I can keep checking the store. https://github.com/llvm/llvm-project/pull/71290 ___

[llvm] [clang] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -420,6 +452,38 @@ let TargetGuard = "sve,bf16" in { def SVSTNT1_VNUM_BF : MInst<"svstnt1_vnum[_{d}]", "vPpld", "b", [IsStore], MemEltTyDefault, "aarch64_sve_stnt1">; } +let TargetGuard = "sve2p1" in { + // Contiguous truncating store from quadword (single vector). + de

[clang] [llvm] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -1457,6 +1457,24 @@ class AdvSIMD_GatherLoad_VS_Intrinsic ], [IntrReadMem]>; +class AdvSIMD_GatherLoadQ_VS_Intrinsic +: DefaultAttrsIntrinsic<[llvm_anyvector_ty], +[ + llvm_nxv1i1_ty, + ll

[llvm] [clang] [AArch64] Add quadword gather load/scatter store intrinsics with unscaled vector offset (PR #71290)

2023-11-09 Thread via cfe-commits
@@ -420,6 +452,38 @@ let TargetGuard = "sve,bf16" in { def SVSTNT1_VNUM_BF : MInst<"svstnt1_vnum[_{d}]", "vPpld", "b", [IsStore], MemEltTyDefault, "aarch64_sve_stnt1">; } +let TargetGuard = "sve2p1" in { + // Contiguous truncating store from quadword (single vector). + de

[clang] [clang][Interp] Implement bitwise operations for IntegralAP (PR #71807)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71807.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/IntegralAP.h (+3-5) - (modified) clang/test/AST/Interp/intap.cpp (+9) ``

[clang-tools-extra] [clang-tidy] Improve `container-data-pointer` check to use `c_str()` (PR #71304)

2023-11-09 Thread via cfe-commits
https://github.com/EugeneZelenko requested changes to this pull request. https://github.com/llvm/llvm-project/pull/71304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `container-data-pointer` check to use `c_str()` (PR #71304)

2023-11-09 Thread via cfe-commits
https://github.com/EugeneZelenko edited https://github.com/llvm/llvm-project/pull/71304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `container-data-pointer` check to use `c_str()` (PR #71304)

2023-11-09 Thread via cfe-commits
@@ -3,13 +3,9 @@ readability-container-data-pointer == -Finds cases where code could use ``data()`` rather than the address of the -element at index 0 in a container. This pattern is commonly used to materialize -a pointer to the backing data of

[llvm] [clang] [AIX] Enable tests relating to 64-bit XCOFF object files (PR #71814)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jake Egan (jakeegan) Changes We now have 64-bit XCOFF object file support, so these tests can be enabled again. However, some tests still fail due to unsupported debug sections, so I cleaned up their comments. --- Patch is 24.37 KiB, t

[clang] [MS-ABI] create unique vftable name for vftable defined with internal alias. (PR #71748)

2023-11-09 Thread via cfe-commits
jyu2-git wrote: Hi @efriedma-quic, Thanks for looking into this. First for test case: We are having difficult to reproduce the problem with small test case, the error come from very big application, which related various heuristics to trigger in a specific way to get the symbol renaming to ha

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
@@ -0,0 +1,56 @@ +; REQUIRES: arm-registered-target +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m55 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
simpal01 wrote: > I think the commit title would make more sense at a glance if it was saying > what is being done instead of what's being fixed. How about: > > ``` > [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not > include MVE features > ``` > > Then the commit mess

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
simpal01 wrote: > I think the commit title would make more sense at a glance if it was saying > what is being done instead of what's being fixed. How about: > > ``` > [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not > include MVE features > ``` > > Then the commit mess

[clang] 3001d6d - [clang][dataflow] Fix buggy assertion: Compare an unqualified type to an unqualified type. (#71573)

2023-11-09 Thread via cfe-commits
Author: Samira Bazuzi Date: 2023-11-09T16:57:04+01:00 New Revision: 3001d6ddaa7809274e49b794cb7ec07d21da130e URL: https://github.com/llvm/llvm-project/commit/3001d6ddaa7809274e49b794cb7ec07d21da130e DIFF: https://github.com/llvm/llvm-project/commit/3001d6ddaa7809274e49b794cb7ec07d21da130e.diff

[clang] [clang][dataflow] Fix buggy assertion: Compare an unqualified type to an unqualified type. (PR #71573)

2023-11-09 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/71573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Fix buggy assertion: Compare an unqualified type to an unqualified type. (PR #71573)

2023-11-09 Thread via cfe-commits
martinboehme wrote: > Could you merge for me? I don't have write access. Done! https://github.com/llvm/llvm-project/pull/71573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-09 Thread via cfe-commits
https://github.com/jeanPerier created https://github.com/llvm/llvm-project/pull/71820 Patch 1/3 of the transition to use the HLFIR step by default in lowering as described in https://discourse.llvm.org/t/rfc-enabling-the-hlfir-lowering-by-default/72778/7 This option will allow to lower code w

[clang] [flang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (jeanPerier) Changes Patch 1/3 of the transition to use the HLFIR step by default in lowering as described in https://discourse.llvm.org/t/rfc-enabling-the-hlfir-lowering-by-default/72778/7 This option will allow to lower cod

[llvm] [libc] [flang] [clang] [libcxx] [compiler-rt] [clang-tools-extra] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From c7c02e2bea3cb6fb674a5e568b7d14998776c00f Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH] [ARM] .fpu equals fpv5-d16 disables floating point MVE which

[clang-tools-extra] 6fdb1bf - [clang-tidy] readability-identifier-naming: add support for concepts (#71586)

2023-11-09 Thread via cfe-commits
Author: nvartolomei Date: 2023-11-09T18:18:40+01:00 New Revision: 6fdb1bfbc7846f9978fe98c658deb440534d2ca0 URL: https://github.com/llvm/llvm-project/commit/6fdb1bfbc7846f9978fe98c658deb440534d2ca0 DIFF: https://github.com/llvm/llvm-project/commit/6fdb1bfbc7846f9978fe98c658deb440534d2ca0.diff L

[llvm] [flang] [libc] [clang] [libcxx] [compiler-rt] [clang-tools-extra] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From c7c02e2bea3cb6fb674a5e568b7d14998776c00f Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH 1/2] [ARM] .fpu equals fpv5-d16 disables floating point MVE wh

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/71545 >From e2b6fa1cb088f2c3cf05a38959a3f3d34eda92c5 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Tue, 7 Nov 2023 13:05:08 + Subject: [PATCH 1/2] [ARM] .fpu equals fpv5-d16 disables floating point MVE wh

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
@@ -0,0 +1,56 @@ +; REQUIRES: arm-registered-target +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m55 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-09 Thread via cfe-commits
@@ -0,0 +1,56 @@ +; REQUIRES: arm-registered-target +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m55 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s

[clang] [Driver][LTO] Copy fix empty stats filename to AIX (PR #71738)

2023-11-09 Thread via cfe-commits
https://github.com/diggerlin updated https://github.com/llvm/llvm-project/pull/71738 >From 592e0de1d87ad5dbfc7a1fb80974546ce161c02f Mon Sep 17 00:00:00 2001 From: zhijian Date: Wed, 8 Nov 2023 11:27:30 -0500 Subject: [PATCH 1/4] [Driver][LTO] Copy fix empty stats filename to AIX --- clang/lib

[clang] bc09ec6 - [CodeGen] Revamp counted_by calculations (#70606)

2023-11-09 Thread via cfe-commits
Author: Bill Wendling Date: 2023-11-09T10:18:17-08:00 New Revision: bc09ec696209b3aea74d49767b15c2f34e363933 URL: https://github.com/llvm/llvm-project/commit/bc09ec696209b3aea74d49767b15c2f34e363933 DIFF: https://github.com/llvm/llvm-project/commit/bc09ec696209b3aea74d49767b15c2f34e363933.diff

[flang] [clang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-09 Thread via cfe-commits
https://github.com/jeanPerier updated https://github.com/llvm/llvm-project/pull/71820 >From bf7d4afdde4cae23f28bd8725f9a09b7141b7ed1 Mon Sep 17 00:00:00 2001 From: Jean Perier Date: Thu, 9 Nov 2023 03:11:31 -0800 Subject: [PATCH 1/2] [flang][driver] add -flang-deprecated-no-hlfir hidden option

[flang] [clang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-09 Thread via cfe-commits
jeanPerier wrote: > Please could you also add testing in flang/Driver/frontend-forwarding.f90, > flang/test/HLFIR/hlfir-flang.f90 Thanks for the review @tblah. I could not find flang/test/HLFIR/hlfir-flang.f90 test, did you mean flang/test/HLFIR/hlfir-**flags**.f90 (in which case it is update

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
https://github.com/yonghong-song created https://github.com/llvm/llvm-project/pull/71856 Sometimes bpf developer might want to develop different codes based on particular cpu versioins. For example, cpu v1/v2/v3 branch target is 16bit while cpu v4 branch target is 32bit, thus cpu v4 allows mor

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yonghong-song) Changes Sometimes bpf developer might want to develop different codes based on particular cpu versioins. For example, cpu v1/v2/v3 branch target is 16bit while cpu v4 branch target is 32bit, thus cpu v4 allows more ag

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
yonghong-song wrote: cc @4ast @anakryiko https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add FixableGadget for AddAssign in UnspecifiedUntypedContext (PR #71862)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rashmi Mudduluru (t-rasmud) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71862.diff 3 Files Affected: - (modified) clang/include/clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def (+1) - (modified) clang/lib/Ana

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
https://github.com/eddyz87 approved this pull request. Hi Yonghong, Thank you for working on this. https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] Add FixableGadget for AddAssign in UnspecifiedUntypedContext (PR #71862)

2023-11-09 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 a2d9d2e1d96a3e81f4eed7f70e0a62cbc0e77cfd ec71495b80e209e7c2dffaaadb1f05814cfafaed --

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const { Builder.defineMacro("__bpf__"); Builder.defineMacro("__BPF__"); + + std::string CPU = getTargetOpts().CPU; + if (CPU == "pr

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

2023-11-09 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71677 >From d5934a4112166ce0375295b2347e7d5c43fdf5ed Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 8 Nov 2023 10:26:33 +0100 Subject: [PATCH 1/3] [clang] Avoid memcopy for small structure with p

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

2023-11-09 Thread via cfe-commits
@@ -1244,29 +1244,28 @@ static void emitStoresForConstant(CodeGenModule &CGM, const VarDecl &D, // If the initializer is small, use a handful of stores. if (shouldSplitConstantStore(CGM, ConstantSize)) { if (auto *STy = dyn_cast(Ty)) { - // FIXME: handle the case

[clang-tools-extra] [Clangd] Sanitize path before recording into IncludeStructure during buildPreamble (PR #70798)

2023-11-09 Thread via cfe-commits
https://github.com/Maddobun updated https://github.com/llvm/llvm-project/pull/70798 >From 0572afa42e4e6ca1d1de0e9df045828552cb4480 Mon Sep 17 00:00:00 2001 From: Leo Zhu Date: Wed, 8 Nov 2023 11:10:13 -0500 Subject: [PATCH 1/2] Convert URI to uppercase drive letter during parsing --- clang-to

[lldb] [clang] Reland "[clang][DebugInfo] Emit global variable definitions for static data members with constant initializers" (PR #71780)

2023-11-09 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 7c7882fcffbfd204f95a3613ce076abf7da294e8 4784e02edb23b23a6e2cabfa3f7eb20c3ee441c4 --

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const { Builder.defineMacro("__bpf__"); Builder.defineMacro("__BPF__"); + + std::string CPU = getTargetOpts().CPU; + if (CPU == "pr

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
https://github.com/yonghong-song edited https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

2023-11-09 Thread via cfe-commits
@@ -1244,29 +1244,28 @@ static void emitStoresForConstant(CodeGenModule &CGM, const VarDecl &D, // If the initializer is small, use a handful of stores. if (shouldSplitConstantStore(CGM, ConstantSize)) { if (auto *STy = dyn_cast(Ty)) { - // FIXME: handle the case

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

2023-11-09 Thread via cfe-commits
@@ -1506,8 +1497,16 @@ TEST_CUSTOM(unmatchedreverse, unmatchedreverse, { .c = 42 }); // CHECK-O0:call void @llvm.memcpy // CHECK-NOT: !annotation // CHECK-O0:call void @{{.*}}used{{.*}}%custom) -// PATTERN-O1: store i32 -1431655894, ptr {{.*}}, align 4 -// ZERO-O1:

[clang] [clang] Avoid memcopy for small structure with padding under -ftrivial-auto-var-init (PR #71677)

2023-11-09 Thread via cfe-commits
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/71677 >From d5934a4112166ce0375295b2347e7d5c43fdf5ed Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 8 Nov 2023 10:26:33 +0100 Subject: [PATCH 1/4] [clang] Avoid memcopy for small structure with p

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const { Builder.defineMacro("__bpf__"); Builder.defineMacro("__BPF__"); + + std::string CPU = getTargetOpts().CPU; + if (CPU == "pr

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
https://github.com/yonghong-song deleted https://github.com/llvm/llvm-project/pull/71856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts, MacroBuilder &Builder) const { Builder.defineMacro("__bpf__"); Builder.defineMacro("__BPF__"); + + std::string CPU = getTargetOpts().CPU; + if (CPU == "pr

[clang] [Clang] Correct handling of negative and out-of-bounds indices (PR #71877)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes GCC returns 0 for a negative index on an array in a structure. It also returns 0 for an array index that goes beyond the extent of the array. In addition. a pointer to a s

[clang] [Clang][BPF] Add __bpf_cpu_version__ macro (PR #71856)

2023-11-09 Thread via cfe-commits
https://github.com/yonghong-song updated https://github.com/llvm/llvm-project/pull/71856 >From fd2b39e869cf3b8395113bac409486cc052ca749 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Thu, 9 Nov 2023 15:16:03 -0800 Subject: [PATCH] [Clang][BPF] Add __bpf_cpu_version__ macro Sometimes bpf de

[clang] [clang][deps] Skip writing `DIAG_PRAGMA_MAPPINGS` record (PR #70874)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/70874.diff 3 Files Affected: - (modified) clang/include/clang/Lex/HeaderSearchOptions.h (+7-1) - (modified) clang/lib/Serialization/ASTWriter.

[clang] [clang] Remove fixed point arithmetic error (PR #71884)

2023-11-09 Thread via cfe-commits
https://github.com/PiJoules created https://github.com/llvm/llvm-project/pull/71884 Prior to this, clang would always report ``` compile with '-ffixed-point' to enable fixed point types ``` whenever it sees `_Accum`, `_Fract`, or `_Sat` when fixed point arithmetic is not enabled. This can bre

[clang] [clang] Remove fixed point arithmetic error (PR #71884)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (PiJoules) Changes Prior to this, clang would always report ``` compile with '-ffixed-point' to enable fixed point types ``` whenever it sees `_Accum`, `_Fract`, or `_Sat` when fixed point arithmetic is not enabled. This can break e

[clang] [clang] Remove fixed point arithmetic error (PR #71884)

2023-11-09 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 ea89965b3cfcb00a08941780da45c663cb4a6cab b1263d73347612acd2109a88c1188054e29e0082 --

[clang] 9774d0c - [CUDA][HIP] Make template implicitly host device (#70369)

2023-11-09 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-11-09T20:36:38-05:00 New Revision: 9774d0ce5fbd70288514da77072313b4f45b34bb URL: https://github.com/llvm/llvm-project/commit/9774d0ce5fbd70288514da77072313b4f45b34bb DIFF: https://github.com/llvm/llvm-project/commit/9774d0ce5fbd70288514da77072313b4f45b34bb.dif

[clang] df2725f - [Clang][OpenMP] Return empty QualType when a negative array was created (#71552)

2023-11-09 Thread via cfe-commits
Author: Baodi Date: 2023-11-09T20:42:59-05:00 New Revision: df2725f3d55ffdc8ca2f9580183956e376a30de7 URL: https://github.com/llvm/llvm-project/commit/df2725f3d55ffdc8ca2f9580183956e376a30de7 DIFF: https://github.com/llvm/llvm-project/commit/df2725f3d55ffdc8ca2f9580183956e376a30de7.diff LOG: [C

[clang] [clang][LoongArch] Don't imply -fdirect-access-external-data for non-PIC (PR #71887)

2023-11-09 Thread via cfe-commits
https://github.com/heiher created https://github.com/llvm/llvm-project/pull/71887 LoongArch does not and will not support copy relocation, so non-PIC code defaults to -fno-direct-access-external-data. Explicit `-fdirect-access-external-data` is acceptable, for example if the code is writable.

[clang] [clang][LoongArch] Don't imply -fdirect-access-external-data for non-PIC (PR #71887)

2023-11-09 Thread via cfe-commits
heiher wrote: Add @xry111 @xen0n https://github.com/llvm/llvm-project/pull/71887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Don't imply -fdirect-access-external-data for non-PIC (PR #71887)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: hev (heiher) Changes LoongArch does not and will not support copy relocation, so non-PIC code defaults to -fno-direct-access-external-data. Explicit `-fdirect-access-external-data` is acceptable, for example if the code is writabl

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-09 Thread via cfe-commits
=?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= , =?utf-8?q?Bal=C3=A1zs_K=C3=A9ri?= Message-ID: In-Reply-To: https://github.com/DonatNagyE approved this pull request. LGTM, but let's wait a bit for other reviewers before merging. https://github.com/llvm/llvm-project/pull/71392 _

[clang] [Clang] add user-level sizeless attribute (PR #71894)

2023-11-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: William Moses (wsmoses) Changes As discussed in [this RFC](https://discourse.llvm.org/t/rfc-attribute-no-sizeof/74695) this PR implements a. new user-level sizeless attribute. This prevents types or variables marked with this attribute f

[clang] 5c36f43 - [clang-format] Handle variable declarations in BreakAfterAttributes (#71755)

2023-11-09 Thread via cfe-commits
Author: Owen Pan Date: 2023-11-09T23:01:48-08:00 New Revision: 5c36f4332d93c6f9bd9b01a34149a635e07a00d3 URL: https://github.com/llvm/llvm-project/commit/5c36f4332d93c6f9bd9b01a34149a635e07a00d3 DIFF: https://github.com/llvm/llvm-project/commit/5c36f4332d93c6f9bd9b01a34149a635e07a00d3.diff LOG:

[clang] f229ba4 - [X86][AVX10] Permit AVX512 options/features used together with AVX10 (#71318)

2023-11-09 Thread via cfe-commits
Author: Phoebe Wang Date: 2023-11-10T15:21:05+08:00 New Revision: f229ba4e8d6bb24622b2d41b3c89585cb9005d8d URL: https://github.com/llvm/llvm-project/commit/f229ba4e8d6bb24622b2d41b3c89585cb9005d8d DIFF: https://github.com/llvm/llvm-project/commit/f229ba4e8d6bb24622b2d41b3c89585cb9005d8d.diff L

[clang-tools-extra] 0255b21 - [clangd] Add tweak for turning an unscoped into a scoped enum (#69481)

2023-11-10 Thread via cfe-commits
Author: ckandeler Date: 2023-11-10T10:02:05+01:00 New Revision: 0255b217c3766ce0aa23bd4fb050b447be2a1d26 URL: https://github.com/llvm/llvm-project/commit/0255b217c3766ce0aa23bd4fb050b447be2a1d26 DIFF: https://github.com/llvm/llvm-project/commit/0255b217c3766ce0aa23bd4fb050b447be2a1d26.diff LOG

[clang-tools-extra] [clangd] Add tweak for turning an unscoped into a scoped enum (PR #69481)

2023-11-10 Thread via cfe-commits
https://github.com/ckandeler closed https://github.com/llvm/llvm-project/pull/69481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add tweak for turning an unscoped into a scoped enum (PR #69481)

2023-11-10 Thread via cfe-commits
ckandeler wrote: Merged as per the review here: https://github.com/llvm/llvm-project/pull/67645 https://github.com/llvm/llvm-project/pull/69481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Endre Fülöp (gamesh411) Changes Thanks to recent improvements in #67663, InvalidPtr checker does not emit any false positives on the following OS projects: memcached, tmux, curl, twin, vim, openssl, sqlite, ffmpeg, postg

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-10 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. LGTM. The test results sound convincing and this is just a checker-rename commit that doesn't contain "actual" code changes that could've introduced bugs. https://github.com/llvm/llvm-project/pull/71912 __

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 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 49fd28d9601dde429436655ec74234e895c60b89 31b7482ffabda61c005a4cd90a07bcfec65c232e --

[clang] [clang][Interp] Diagnose reads from non-const global variables (PR #71919)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This fixes a long-standing FIXME item. Unfortunately it changes the diagnostic output of the tests added in `cxx23.cpp`, but they were wrong before and are wrong after, so no big deal. --- Full diff: https:

[clang] 9f265c3 - [flang][driver] add -flang-deprecated-no-hlfir hidden option (#71820)

2023-11-10 Thread via cfe-commits
Author: jeanPerier Date: 2023-11-10T11:54:10+01:00 New Revision: 9f265c38718ca5c6b2b2ba6a237db1ba5e2cac55 URL: https://github.com/llvm/llvm-project/commit/9f265c38718ca5c6b2b2ba6a237db1ba5e2cac55 DIFF: https://github.com/llvm/llvm-project/commit/9f265c38718ca5c6b2b2ba6a237db1ba5e2cac55.diff LO

<    1   2   3   4   5   6   7   8   9   10   >