[clang] [llvm] [sanitizer] Document AddressSanitizer security considerations (PR #100937)

2024-10-07 Thread Florian Mayer via cfe-commits
https://github.com/fmayer approved this pull request. https://github.com/llvm/llvm-project/pull/100937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (PR #111360)

2024-10-07 Thread Alex Bradbury via cfe-commits
https://github.com/asb closed https://github.com/llvm/llvm-project/pull/111360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 975da02 - [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (#111360)

2024-10-07 Thread via cfe-commits
Author: Alex Bradbury Date: 2024-10-08T07:42:29+01:00 New Revision: 975da028f78546729f0e78711a4b92107c92ec8e URL: https://github.com/llvm/llvm-project/commit/975da028f78546729f0e78711a4b92107c92ec8e DIFF: https://github.com/llvm/llvm-project/commit/975da028f78546729f0e78711a4b92107c92ec8e.diff

[clang] [clang][RISCV] Extend intrinsic size check variable from 16 -> 32 bits. NFC (PR #111481)

2024-10-07 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/111481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2024-10-07 Thread via cfe-commits
https://github.com/PeterChou1 ready_for_review https://github.com/llvm/llvm-project/pull/111487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-07 Thread via cfe-commits
@@ -0,0 +1,189 @@ +//===--- Mustache.h -*- 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: Ap

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2024-10-07 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 62ae01201fc7185aca61d040c4f2df5303bae0ad 9c5966efe2e45bc4118fba6944a8e68dfad09419 --e

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-07 Thread via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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: Ap

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

2024-10-07 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev updated https://github.com/llvm/llvm-project/pull/108276 >From fff6064a63ddf85857ea5036333866317a156ffc Mon Sep 17 00:00:00 2001 From: Thomas Fransham Date: Tue, 10 Sep 2024 02:22:18 +0100 Subject: [PATCH 1/6] [Clang] Add explicit visibility symbol macros and updat

[clang-tools-extra] [clang-tools-extra] Fix add_clang_library usage (PR #109321)

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

[clang-tools-extra] 1f2c08b - [clang-tools-extra] Fix add_clang_library usage (#109321)

2024-10-07 Thread via cfe-commits
Author: Thomas Fransham Date: 2024-10-08T09:22:19+03:00 New Revision: 1f2c08b33b848dfdfeecdc7cee3644591407e219 URL: https://github.com/llvm/llvm-project/commit/1f2c08b33b848dfdfeecdc7cee3644591407e219 DIFF: https://github.com/llvm/llvm-project/commit/1f2c08b33b848dfdfeecdc7cee3644591407e219.dif

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-07 Thread via cfe-commits
ywgrit wrote: The relaxation-related code will be added later, except for alignment, which has been tested locally. https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (ywgrit) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/111488.diff 4 Files Affected: - (modified) clang/lib/Driver/ToolChains/Arch/LoongArch.cpp (+7) - (modified) lld/ELF/Writer.cpp (+4-1) - (modified)

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch @llvm/pr-subscribers-clang Author: None (ywgrit) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/111488.diff 4 Files Affected: - (modified) clang/lib/Driver/ToolChains/Arch/LoongArch.cpp (+7) - (modified) lld/ELF/

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-07 Thread via cfe-commits
ywgrit wrote: @MaskRay @SixWeining @wangleiat https://github.com/llvm/llvm-project/pull/111488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-07 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

2024-10-07 Thread via cfe-commits
https://github.com/ywgrit created https://github.com/llvm/llvm-project/pull/111488 None >From 32aae75a78fbd10c8238494b9b01b85f576a47a8 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Tue, 8 Oct 2024 14:03:51 +0800 Subject: [PATCH] [lld][LoongArch] Enable relaxation when --relax option is passed

[clang] [llvm] Thin3 (PR #108614)

2024-10-07 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/108614 >From 1cac61d42d7965a095aba3b47cca1f5e3c27fd82 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 13 Sep 2024 08:51:00 -0700 Subject: [PATCH 1/4] [CGData][ThinLTO] Global Outlining with Two-CodeGen Round

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #111427)

2024-10-07 Thread via cfe-commits
https://github.com/PeterChou1 closed https://github.com/llvm/llvm-project/pull/111427 ___ 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-10-07 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/109165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Insert a space between l_paren and ref-qualifier (PR #111465)

2024-10-07 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/111465 ___ 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-10-07 Thread Fangrui Song 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] [sanitizer] Document AddressSanitizer security considerations (PR #100937)

2024-10-07 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/100937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-10-07 Thread Rajveer Singh Bharadwaj via cfe-commits
Rajveer100 wrote: Thanks for the approval @cor3ntin, could you land this for me?! https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-07 Thread Peilin Ye via cfe-commits
peilin-ye wrote: Thanks for all your suggestions! Main changes in patchset v5: 1. use `-mcpu=v4` instead of `-mcpu=v5` 2. make both load-acquire and store-release `BPF_STX | BPF_ATOMIC` insns, instead of introducing new mode modifiers: `BPF_STX | BPF_ATOMIC` insns use a subset of `BPFArithOp<

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-07 Thread via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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: Ap

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-07 Thread via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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: Ap

[clang] [clang][RISCV] Extend intrinsic size check variable from 16 -> 32 bits. NFC (PR #111481)

2024-10-07 Thread Jerry Zhang Jian via cfe-commits
jerryzj wrote: > Why doesn't any test catch it? I suppose the [CI](https://github.com/riscv-non-isa/rvv-intrinsic-doc/actions/runs/11216383892/job/31175562939) of intrinsic doc should catch this, but it is not reporting errors as expected. I happen to notice the failures and working on a fix n

[clang] [clang][RISCV] Extend intrinsic size check variable from 16 -> 32 bits. NFC (PR #111481)

2024-10-07 Thread Craig Topper via cfe-commits
https://github.com/topperc commented: Why doesn't any test catch it? https://github.com/llvm/llvm-project/pull/111481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Extend intrinsic size check variable from 16 -> 32 bits. NFC (PR #111481)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes We currently have over 67000 intrinsics, uint16_t will overflow. --- Full diff: https://github.com/llvm/llvm-project/pull/111481.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaRISCV.cpp (+1

[clang] [clang][RISCV] Extend intrinsic size check variable from 16 -> 32 bits. NFC (PR #111481)

2024-10-07 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/111481 We currently have over 67000 intrinsics, uint16_t will overflow. >From f6a27f7de2459e22961555054b92a61a0e7ededf Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Mon, 7 Oct 2024 22:03:43 -0700 Subject: [PATCH] [

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-07 Thread Keith Packard via cfe-commits
keith-packard wrote: > With [my series to fix > `arch/powerpc`](https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git/log/?h=b4/powerpc-fix-stackprotector-test-clang) > for this implementation applied to Linux, `CONFIG_HAVE_STACKPROTECTOR` is > properly set and the Linux kernel dump

[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

2024-10-07 Thread via cfe-commits
@@ -0,0 +1,489 @@ +//===-- Mustache.cpp --===// +// +// 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: Ap

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/111466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-07 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: With [my series to fix `arch/powerpc`](https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git/log/?h=b4/powerpc-fix-stackprotector-test-clang) for this implementation applied to Linux, `CONFIG_HAVE_STACKPROTECTOR` is properly set and the Linux kernel dump test mod

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/111466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Correct the SEW operand of indexed/fault only first segment intrinsics (PR #111476)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes Indexed segment load/store intrinsics don't have SEW information encoded in the name, so we need to get the information from its pointer type argument at runtime. --- Patch is 38.46 MiB, truncated to

[clang] [clang][driver] Cleanup UEFI toolchain driver (PR #111473)

2024-10-07 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 d1335fb86466221b0499db5fc8f158f1f64d9542 c241379b66fc4bb9d640403efc7e86b609a7200c --e

[clang] [clang][driver] Cleanup UEFI toolchain driver (PR #111473)

2024-10-07 Thread via cfe-commits
https://github.com/Prabhuk created https://github.com/llvm/llvm-project/pull/111473 UEFI toolchain predefines clean up. Introducing new __PECOFF__ predefine for targets that produce PE COFF binaries. Updating UEFI header includes to not include system include directories. >From c241379b66fc4bb

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/111472 >From a321d32fd8f2d2ee2c760f7530dd5d9c6e7d4f00 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Mon, 7 Oct 2024 23:16:19 -0400 Subject: [PATCH] [clang-tidy][performance-move-const-arg] Fix crash when ar

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/111472 >From a321d32fd8f2d2ee2c760f7530dd5d9c6e7d4f00 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Mon, 7 Oct 2024 23:16:19 -0400 Subject: [PATCH] [clang-tidy][performance-move-const-arg] Fix crash when ar

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nicolas van Kempen (nicovank) Changes Fix #111450. When the argument type is forward-declared and there is no definition, `hasMoveConstructor` triggers the assert here: https://github.com/llvm-project/llvm-project/blob/7f6537

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Nicolas van Kempen (nicovank) Changes Fix #111450. When the argument type is forward-declared and there is no definition, `hasMoveConstructor` triggers the assert here: https://github.com/llvm-project/llvm-project/blob/7f65377880ce6

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/111472 >From 4936acf06c30c1e9a3a300ec712845a4c56d5cd0 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Mon, 7 Oct 2024 23:08:44 -0400 Subject: [PATCH] [clang-tidy][performance-move-const-arg] Fix crash when ar

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/111472 >From 4936acf06c30c1e9a3a300ec712845a4c56d5cd0 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Mon, 7 Oct 2024 23:08:44 -0400 Subject: [PATCH] [clang-tidy][performance-move-const-arg] Fix crash when ar

[clang-tools-extra] [clang-tidy][performance-move-const-arg] Fix crash when argument type has no definition (PR #111472)

2024-10-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/111472 Fix #111450. When the argument type is forward-declared and there is no definition, `hasMoveConstructor` triggers the assert here: https://github.com/llvm-project/llvm-project/blob/7f65377880ce6a0e5eaa4cb2591

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread Brandon Wu via cfe-commits
4vtomat wrote: > test? Added! https://github.com/llvm/llvm-project/pull/111466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/111466 >From cd79ab5782175de38adfa6b171270766d2544204 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Mon, 7 Oct 2024 19:33:41 -0700 Subject: [PATCH] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tupl

[clang] [Tooling] Avoid repeated hash lookups (NFC) (PR #111469)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/111469.diff 1 Files Affected: - (modified) clang/lib/Tooling/Inclusions/HeaderIncludes.cpp (+3-6) ``diff diff --git a/clang/lib/To

[clang] [Tooling] Avoid repeated hash lookups (NFC) (PR #111469)

2024-10-07 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/111469 None >From 63f32da83241327082af3baa57f59480d9825e47 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 7 Oct 2024 07:06:16 -0700 Subject: [PATCH] [Tooling] Avoid repeated hash lookups (NFC) --- clan

[clang] [Driver] Avoid repeated hash lookups (NFC) (PR #111468)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/111468.diff 1 Files Affected: - (modified) clang/lib/Driver/MultilibBuilder.cpp (+2-4) ``diff diff --git a/clang/lib/Driver/Multil

[clang] [Driver] Avoid repeated hash lookups (NFC) (PR #111468)

2024-10-07 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/111468 None >From 9bc29851603347edbc4324ccbdb4fef47a1c2626 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 7 Oct 2024 07:06:51 -0700 Subject: [PATCH] [Driver] Avoid repeated hash lookups (NFC) --- clang

[clang] [Basic] Avoid repeated hash lookups (NFC) (PR #111467)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/111467.diff 1 Files Affected: - (modified) clang/include/clang/Basic/PlistSupport.h (+4-7) ``diff diff --git a/clang/include/clang

[clang] [Basic] Avoid repeated hash lookups (NFC) (PR #111467)

2024-10-07 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/111467 None >From fd6654f61025f4dc5b38a02d5c4ec3b52fe2c726 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 7 Oct 2024 07:04:14 -0700 Subject: [PATCH] [Basic] Avoid repeated hash lookups (NFC) --- clang/

[clang] [compiler-rt] [lld] [llvm] [Coverage][WebAssembly] Add initial support for WebAssembly/WASI (PR #111332)

2024-10-07 Thread Yuta Saito via cfe-commits
https://github.com/kateinoigakukun updated https://github.com/llvm/llvm-project/pull/111332 >From 605e1ad180c9f75fd59d8b783ae2041cbaf34e50 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sat, 5 Oct 2024 16:54:57 + Subject: [PATCH 1/9] [compiler-rt][profile] Add initial support for WebAssem

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread Craig Topper via cfe-commits
topperc wrote: test? https://github.com/llvm/llvm-project/pull/111466 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes It's illegal if the index is 64 bits and is zero-extend to 32 bits. --- Full diff: https://github.com/llvm/llvm-project/pull/111466.diff 1 Files Affected: - (modified) cl

[clang] [clang][RISCV] Make the index of riscv_tuple_extract and riscv_tuple_insert be truncated rather than zero extended (PR #111466)

2024-10-07 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/111466 It's illegal if the index is 64 bits and is zero-extend to 32 bits. >From 6e11ffa9585cf189382501d44915f211abd4be46 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Mon, 7 Oct 2024 19:33:41 -0700 Subject: [PATCH

[clang] [clang-format] Insert a space between l_paren and ref-qualifier (PR #111465)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #111346. --- Full diff: https://github.com/llvm/llvm-project/pull/111465.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+4) - (modified) clang/unittests/Format/FormatTest

[clang] [clang-format] Insert a space between l_paren and ref-qualifier (PR #111465)

2024-10-07 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/111465 Fixes #111346. >From 9d9405d55fbaeea13d80bb394402fee2f0ef34ca Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 7 Oct 2024 19:34:16 -0700 Subject: [PATCH] [clang-format] Insert a space between l_paren and ref-

[clang] [Serialization] Handle uninitialized type constraints (PR #110496)

2024-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: I'll leave this to @cor3ntin https://github.com/llvm/llvm-project/pull/110496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (PR #111360)

2024-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Thanks. The underlying issue worths more investigating. But giving we don't have enough developers on modules and RV, maybe this is the best thing we can do now. https://github.com/llvm/llvm-project/pull/111360 _

[clang] [RFC][C++20][Modules] Relax ODR check in unnamed modules (PR #111160)

2024-10-07 Thread Chuanqi Xu via cfe-commits
@@ -2527,7 +2527,7 @@ class BitsUnpacker { inline bool shouldSkipCheckingODR(const Decl *D) { return D->getASTContext().getLangOpts().SkipODRCheckInGMF && - D->isFromGlobalModule(); + (D->isFromGlobalModule() || !D->isInNamedModule()); Chuanq

[clang] [RFC][C++20][Modules] Relax ODR check in unnamed modules (PR #111160)

2024-10-07 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: rm -fR %t +// RUN: split-file %s %t +// RUN: cd %t +// RUN: %clang_cc1 -verify -std=c++20 -fskip-odr-check-in-gmf -emit-header-unit -xc++-user-header bz0.h +// RUN: %clang_cc1 -verify -std=c++20 -fskip-odr-check-in-gmf -emit-header-unit -xc++-user-heade

[clang] [clang-format][NFC] Clean up AlignConsecutiveStyle (PR #111285)

2024-10-07 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/111285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6568827 - [clang-format][NFC] Clean up AlignConsecutiveStyle (#111285)

2024-10-07 Thread via cfe-commits
Author: Owen Pan Date: 2024-10-07T19:12:47-07:00 New Revision: 65688274b14f5d0e7dabbbaf9f3fd135646ef1d1 URL: https://github.com/llvm/llvm-project/commit/65688274b14f5d0e7dabbbaf9f3fd135646ef1d1 DIFF: https://github.com/llvm/llvm-project/commit/65688274b14f5d0e7dabbbaf9f3fd135646ef1d1.diff LOG:

[clang] [clang-format] Don't insert spaces after keywords in protobuf field o… (PR #111229)

2024-10-07 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/111229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4b6e41b - [clang-format] Don't insert spaces after keywords in protobuf field o… (#111229)

2024-10-07 Thread via cfe-commits
Author: Owen Pan Date: 2024-10-07T19:10:24-07:00 New Revision: 4b6e41b61e2edea2f80de3639e589301fe7c896c URL: https://github.com/llvm/llvm-project/commit/4b6e41b61e2edea2f80de3639e589301fe7c896c DIFF: https://github.com/llvm/llvm-project/commit/4b6e41b61e2edea2f80de3639e589301fe7c896c.diff LOG:

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
@@ -1631,13 +1631,39 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationName

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Thanks. LGTM with nits. https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
@@ -1631,13 +1631,39 @@ static bool allLookupResultsAreTheSame(const DeclContext::lookup_result &R) { static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { if (!RD.isLambda()) return nullptr; DeclarationName Name = -RD.getASTContext().DeclarationName

[clang] [Clang] Instantiate the correct lambda call operator (PR #110446)

2024-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/110446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement `WaveReadLaneAt` intrinsic (PR #111010)

2024-10-07 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/111010 >From 70089645ec5cf62b491a56df96ec46f4328fbc11 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Thu, 3 Oct 2024 11:43:51 -0700 Subject: [PATCH 1/8] [HLSL] Implement `WaveReadLaneAt` intrinsic - create a cl

[clang] [llvm] Thin3 (PR #108614)

2024-10-07 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/108614 >From 1bbb7e5291bb59d95d8b308a90620a4d70e35152 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 13 Sep 2024 08:51:00 -0700 Subject: [PATCH 1/5] [CGData][ThinLTO] Global Outlining with Two-CodeGen Round

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-07 Thread Keith Packard via cfe-commits
https://github.com/keith-packard updated https://github.com/llvm/llvm-project/pull/110928 >From ad3d5b03886aa7939d67aef10e31734db7c43834 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 6 Oct 2024 23:19:30 -0700 Subject: [PATCH 1/5] [CodeGen] Provide Module to useLoadStackGuardNode Use

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-07 Thread Peilin Ye via cfe-commits
https://github.com/peilin-ye edited https://github.com/llvm/llvm-project/pull/108636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-10-07 Thread via cfe-commits
isuckatcs wrote: I see. Hopefully someone will take a look then and we can merge the patch. https://github.com/llvm/llvm-project/pull/110099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2024-10-07 Thread Peilin Ye via cfe-commits
https://github.com/peilin-ye edited https://github.com/llvm/llvm-project/pull/108636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v5 (PR #108636)

2024-10-07 Thread Peilin Ye via cfe-commits
https://github.com/peilin-ye updated https://github.com/llvm/llvm-project/pull/108636 >From 7a3c9741ec7a5680b0a59ed7c0316a71c78ccf48 Mon Sep 17 00:00:00 2001 From: Peilin Ye Date: Sat, 5 Oct 2024 06:44:21 + Subject: [PATCH 1/3] [BPF] Rename isST*() and isLD*() functions in BPFMISimplifyPat

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

2024-10-07 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 d2457e6d8f62a12b3b74791cfd3f5808168c8a71 526a16a6b9692ddc121f4324e5e50653b75d82e9 --e

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-10-07 Thread via cfe-commits
EugeneZelenko wrote: @isuckatcs: I mostly check documentation, so will be good idea if somebody from active developers will take a look in addition to @5chmidti. https://github.com/llvm/llvm-project/pull/110099 ___ cfe-commits mailing list cfe-commits

[clang] [llvm] Thin2 (PR #106602)

2024-10-07 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/106602 >From d75c88f55a8e271ab8ad6c2a8ef3383dafdf8516 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Sun, 29 Sep 2024 18:28:15 -0700 Subject: [PATCH 1/5] [NFC] Refactor ThinBackend - Change it to a type from a

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-10-07 Thread via cfe-commits
isuckatcs wrote: @EugeneZelenko can you please take a look at the changes once again and let us know if you're happy with them? https://github.com/llvm/llvm-project/pull/110099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-10-07 Thread via cfe-commits
https://github.com/isuckatcs updated https://github.com/llvm/llvm-project/pull/110099 >From 570ce88b1e5a3839eca8adf4f567fc7547b6f661 Mon Sep 17 00:00:00 2001 From: isuckatcs <65320245+isucka...@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:43:10 +0200 Subject: [PATCH 1/7] [clang-tidy] Port

[clang] [llvm] [DirectX] Remove trivially dead functions at linkage finalize (PR #106146)

2024-10-07 Thread Greg Roth via cfe-commits
https://github.com/pow2clk updated https://github.com/llvm/llvm-project/pull/106146 >From 40224473a7b43bc4ffe2024ab51196c2130bedc7 Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Sun, 25 Aug 2024 12:00:03 -0600 Subject: [PATCH 1/4] [DirectX] Remove trivially dead functions at linkage finalize

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-07 Thread Bill Wendling via cfe-commits
bwendling wrote: > > This is why I believe the gcc behavior is correct. When it knows the size > > given to `malloc` it uses that. When it doesn't know that it simply returns > > INT_MAX. When you ask gcc for the `__bdos` of the FAM it will use the > > `count` to calculate the size. > > (nit:

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-07 Thread Bill Wendling via cfe-commits
bwendling wrote: > So, we would actually get gcc's behavior with this patch: > > ``` > diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp > index c864714182e0..21ffe7b46a6e 100644 > --- a/clang/lib/CodeGen/CGBuiltin.cpp > +++ b/clang/lib/CodeGen/CGBuiltin.cpp > @@ -10

[clang] [Clang] Fix __builtin_dynamic_object_size off by 4 (PR #111015)

2024-10-07 Thread Bill Wendling via cfe-commits
bwendling wrote: > After looking at the assembly produced by gcc more, it actually looks like > it's using the allocation size if it's known in the current context (for > example if the struct was just malloced in the same function) and otherwise > returns INT_MAX for the __bdos of a struct co

[clang] [clang] Finish implementation of P0522 (PR #96023)

2024-10-07 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: This will be fixed by https://github.com/llvm/llvm-project/pull/111457 https://github.com/llvm/llvm-project/pull/96023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libunwind] [AArch64] Fix nofp regressions in compiler-rt and libunwind (PR #111235)

2024-10-07 Thread Keith Packard via cfe-commits
@@ -6,7 +6,7 @@ #include "../assembly.h" -#ifdef __aarch64__ +#if defined(__aarch64__) && __ARM_FP != 0 keith-packard wrote: Yeah, I've updated the patch after adapting some tests to make sure these all work on non-FPU hardware. That leaves only `__arm_sc_m

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

2024-10-07 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 --

[compiler-rt] [libunwind] [AArch64] Fix nofp regressions in compiler-rt and libunwind (PR #111235)

2024-10-07 Thread Keith Packard via cfe-commits
https://github.com/keith-packard updated https://github.com/llvm/llvm-project/pull/111235 >From 08ed820b2bc6235998e47c49eb3029b7945b5fec Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 4 Oct 2024 21:06:37 -0700 Subject: [PATCH 1/2] [libunwind] Support aarch64 without FPU Skip save/rest

[clang-tools-extra] [clang-tidy] New option `CompilationArgsToRemoveRegex` to remove arguments from the command line (PR #111453)

2024-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Félix-Antoine Constantin (felix642) Changes When using clang-tidy from a compilation database, some options might not be recognized by clang if the compilation database was generated for another compiler. This forces the user

[clang-tools-extra] [clang-tidy] New option `CompilationArgsToRemoveRegex` to remove arguments from the command line (PR #111453)

2024-10-07 Thread Félix-Antoine Constantin via cfe-commits
https://github.com/felix642 created https://github.com/llvm/llvm-project/pull/111453 When using clang-tidy from a compilation database, some options might not be recognized by clang if the compilation database was generated for another compiler. This forces the user to add conditional code in

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-07 Thread Alexander Richardson via cfe-commits
@@ -10,15 +10,13 @@ // //===--===// +// clang-format off arichardson wrote: Why is this needed? Adding another newline should avoid the reordering. Alternatively, config.h should include st

[clang] [Clang] Check that we have the correct RecordDecl (PR #111448)

2024-10-07 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/111448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 39ac121 - [Clang] Check that we have the correct RecordDecl (#111448)

2024-10-07 Thread via cfe-commits
Author: Bill Wendling Date: 2024-10-07T22:53:00Z New Revision: 39ac121309f5c270c8fdc97c45a845542dd78681 URL: https://github.com/llvm/llvm-project/commit/39ac121309f5c270c8fdc97c45a845542dd78681 DIFF: https://github.com/llvm/llvm-project/commit/39ac121309f5c270c8fdc97c45a845542dd78681.diff LOG:

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-07 Thread Stewart Smith via cfe-commits
stewartsmith wrote: It's been a few years (and I've spent more time in 16bit x86 than powerpc for a while), but I'm pretty sure this looks good. While the POWER ISA may be lacking vowels, the lack of `r` denoting registers in the test llvm test suite is (at least for me) doing it on hard mode

[clang] Enable matrices in HLSL (PR #111415)

2024-10-07 Thread Chris B via cfe-commits
@@ -852,34 +852,50 @@ void TypePrinter::printExtVectorAfter(const ExtVectorType *T, raw_ostream &OS) { void TypePrinter::printConstantMatrixBefore(const ConstantMatrixType *T, raw_ostream &OS) { + if (Policy.UseHLSLTypes) +OS <

[clang] [Clang] Check that we have the correct RecordDecl (PR #111448)

2024-10-07 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM (I can't come up with a case where it actually fails off the top of my head, but for the sake of consistency, it probably makes sense.) https://github.com/llvm/llvm-project/pull/111448 ___

  1   2   3   4   5   >