[clang] [Clang][X86] Add avx512 __builtin_ia32_select* constexpr handling (PR #152705)

2025-08-13 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: ping? https://github.com/llvm/llvm-project/pull/152705 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-08-13 Thread Aditi Medhane via cfe-commits
@@ -0,0 +1,29 @@ +// NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +// REQUIRES: powerpc-registered-target +// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -O2 -target-cpu pwr9 \ +// RUN: -emit-llvm %s -o - | FileCheck

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-08-13 Thread Aditi Medhane via cfe-commits
@@ -580,6 +580,8 @@ TARGET_BUILTIN(__builtin_ppc_bcdsub_p, "iiV16UcV16Uc", "", "isa-v207-instructions") // P9 Binary-coded decimal (BCD) builtins. +TARGET_BUILTIN(__builtin_ppc_bcdcopysign, "V16UcV16UcV16Uc", "",

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-08-13 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/144874 >From 8e287c19723361b0141c7bf9d1de34b145b9782c Mon Sep 17 00:00:00 2001 From: Aditi-Medhane Date: Thu, 19 Jun 2025 11:04:12 + Subject: [PATCH 1/6] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Suppor

[clang] [llvm] [ARM] enable FENV_ACCESS pragma support for hard-float targets (PR #137101)

2025-08-13 Thread David Green via cfe-commits
davemgreen wrote: > Will it be enough to add strict fp tests similar to those made for AArch64? Yeah I think so for the most part. There is the added complication of soft-fp but it should mostly be a case of testing all the strict-fp operations under a couple of configs to make sure everything

[clang] [clang-format] Add option to omit wrapping for empty records (PR #151970)

2025-08-13 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina Message-ID: In-Reply-To: owenca

[clang] [flang] [flang] Adding support of -fcoarray flang and init PRIF (PR #151675)

2025-08-13 Thread Jean-Didier PAILLEUX via cfe-commits
JDPailleux wrote: Thanks for the review ! https://github.com/llvm/llvm-project/pull/151675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Adding support of -fcoarray flang and init PRIF (PR #151675)

2025-08-13 Thread Jean-Didier PAILLEUX via cfe-commits
https://github.com/JDPailleux updated https://github.com/llvm/llvm-project/pull/151675 >From 9ade3f40ca81edf6620e3edd72cd928d84a06d5d Mon Sep 17 00:00:00 2001 From: Jean-Didier Pailleux Date: Tue, 12 Aug 2025 19:28:38 +0200 Subject: [PATCH] [flang] Adding support of -fcoarray flang and init PRI

[clang] [flang] [flang] Adding support of -fcoarray flang and init PRIF (PR #151675)

2025-08-13 Thread Jean-Didier PAILLEUX via cfe-commits
https://github.com/JDPailleux updated https://github.com/llvm/llvm-project/pull/151675 >From 9ade3f40ca81edf6620e3edd72cd928d84a06d5d Mon Sep 17 00:00:00 2001 From: Jean-Didier Pailleux Date: Tue, 12 Aug 2025 19:28:38 +0200 Subject: [PATCH] [flang] Adding support of -fcoarray flang and init PRI

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-13 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Would also probably make sense to add a very simple "Fix me" comment isn't it ? (skipping them as such conveys that those particular tests probably shouldn't work for emscripten) https://github.com/llvm/llvm-project/pull/150977 ___

[clang] [Sema] Fix false positive warnings for misaligned member access (PR #150025)

2025-08-13 Thread Vladimir Vuksanovic via cfe-commits
https://github.com/vvuksanovic updated https://github.com/llvm/llvm-project/pull/150025 >From 118f0c1aff19b7e9db01da349e3089846afd015d Mon Sep 17 00:00:00 2001 From: Vladimir Vuksanovic Date: Fri, 11 Jul 2025 04:14:43 -0700 Subject: [PATCH 1/4] [Sema] Fix false positive warnings for misaligned

[clang] [Sema] Fix false positive warnings for misaligned member access (PR #150025)

2025-08-13 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_disabled https://github.com/llvm/llvm-project/pull/150025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-13 Thread via cfe-commits
owenca wrote: Please run `git clang-format` or build `clang-format-check-format` before `git push`. https://github.com/llvm/llvm-project/pull/151590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-13 Thread Anutosh Bhat via cfe-commits
@@ -38,8 +38,10 @@ class InterpreterTestBase : public ::testing::Test { } void SetUp() override { +#ifndef __EMSCRIPTEN__ if (!HostSupportsJIT()) GTEST_SKIP(); +#endif anutosh491 wrote: So trying to understand this better, HostSupportsJIT() wo

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-13 Thread via cfe-commits
@@ -0,0 +1,354 @@ +//===- unittest/Format/NumericLiteralCaseTest.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: Apache-2

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-13 Thread via cfe-commits
@@ -47,14 +47,21 @@ TEST_F(NumericLiteralInfoTest, IntegerLiteral) { // Hexadecimal. EXPECT_TRUE(verifyInfo(NumericLiteralInfo("0xF"), 1)); EXPECT_TRUE(verifyInfo(NumericLiteralInfo("0XfZ"), 1, npos, npos, 3)); + + // C++ suffixes. + EXPECT_TRUE(verifyInfo(NumericLitera

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-13 Thread via cfe-commits
@@ -0,0 +1,354 @@ +//===- unittest/Format/NumericLiteralCaseTest.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: Apache-2

[clang] ab5a5a9 - [C++20] [Modules] Fix incorrect diagnostic for using befriend target

2025-08-13 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-08-14T14:23:14+08:00 New Revision: ab5a5a90c03d25392fcc486a8c587d0dd9b7a0c6 URL: https://github.com/llvm/llvm-project/commit/ab5a5a90c03d25392fcc486a8c587d0dd9b7a0c6 DIFF: https://github.com/llvm/llvm-project/commit/ab5a5a90c03d25392fcc486a8c587d0dd9b7a0c6.diff LO

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-13 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. This looks like a reasonable incremental improvement to me. Thank you @mcbarton! https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-13 Thread Jessica Paquette via cfe-commits
@@ -0,0 +1,354 @@ +//===- unittest/Format/NumericLiteralCaseTest.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: Apache-2

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Baranov Victor via cfe-commits
@@ -331,6 +331,104 @@ An overview of all the command-line options: some-check.SomeOption: 'some value' ... +Clang-Tidy Automation += + +:program:`clang-tidy` can analyze multiple source files by specifying them on the +command line. For large

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Baranov Victor via cfe-commits
@@ -331,6 +331,104 @@ An overview of all the command-line options: some-check.SomeOption: 'some value' ... +Clang-Tidy Automation += + +:program:`clang-tidy` can analyze multiple source files by specifying them on the +command line. For large

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Baranov Victor via cfe-commits
@@ -331,6 +331,104 @@ An overview of all the command-line options: some-check.SomeOption: 'some value' ... +Clang-Tidy Automation += + +:program:`clang-tidy` can analyze multiple source files by specifying them on the +command line. For large

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Baranov Victor via cfe-commits
@@ -331,6 +331,104 @@ An overview of all the command-line options: some-check.SomeOption: 'some value' ... +Clang-Tidy Automation += + +:program:`clang-tidy` can analyze multiple source files by specifying them on the +command line. For large

[clang-tools-extra] [clang-tidy][doc] Improve documentation of the -line-filter flag (PR #153372)

2025-08-13 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/153372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 3b6d879 - [clang-tidy][doc] Improve documentation of the -line-filter flag (#153372)

2025-08-13 Thread via cfe-commits
Author: Carlos Galvez Date: 2025-08-14T07:55:20+02:00 New Revision: 3b6d8798ba0752b78d6c3d1ae13e08fb40a5e4dc URL: https://github.com/llvm/llvm-project/commit/3b6d8798ba0752b78d6c3d1ae13e08fb40a5e4dc DIFF: https://github.com/llvm/llvm-project/commit/3b6d8798ba0752b78d6c3d1ae13e08fb40a5e4dc.diff

[clang] [llvm] [ARM] enable FENV_ACCESS pragma support for hard-float targets (PR #137101)

2025-08-13 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 HEAD~1 HEAD --extensions cpp,c -- clang/lib/Basic/Targets/ARM.cpp clang/test/Parser/p

[clang] [clang][PAC] Disallow -pedantic-errors in conjunction with pointer au… (PR #153503)

2025-08-13 Thread Oliver Hunt via cfe-commits
ojhunt wrote: I think closing this is the correct approach and taking some variation of https://github.com/llvm/llvm-project/pull/153506 - essentially working to resolve the ODR/ABI impact of -pedantic-errors https://github.com/llvm/llvm-project/pull/153503

[clang] [clang][PAC] Disallow -pedantic-errors in conjunction with pointer au… (PR #153503)

2025-08-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/153503 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] ptrauth_qualifier must be considered a feature (PR #153291)

2025-08-13 Thread Oliver Hunt via cfe-commits
ojhunt wrote: I think closing this is the correct approach and taking some variation of https://github.com/llvm/llvm-project/pull/153506 - essentially working to resolve the ODR/ABI impact of -pedantic-errors https://github.com/llvm/llvm-project/pull/153291

[clang] [clang][PAC] ptrauth_qualifier must be considered a feature (PR #153291)

2025-08-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/153291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Harshil Solanki via cfe-commits
https://github.com/HARSHIL2836R updated https://github.com/llvm/llvm-project/pull/153166 >From 6c7a972b2e1d01fccf9cc0d1ef562c11525f7d77 Mon Sep 17 00:00:00 2001 From: HARSHIL2836R Date: Tue, 12 Aug 2025 16:22:48 +0530 Subject: [PATCH 1/9] [clang-tidy] Add documentation for running Clang-Tidy on

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Harshil Solanki via cfe-commits
https://github.com/HARSHIL2836R updated https://github.com/llvm/llvm-project/pull/153166 >From 6c7a972b2e1d01fccf9cc0d1ef562c11525f7d77 Mon Sep 17 00:00:00 2001 From: HARSHIL2836R Date: Tue, 12 Aug 2025 16:22:48 +0530 Subject: [PATCH 1/8] [clang-tidy] Add documentation for running Clang-Tidy on

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Harshil Solanki via cfe-commits
https://github.com/HARSHIL2836R updated https://github.com/llvm/llvm-project/pull/153166 >From 6c7a972b2e1d01fccf9cc0d1ef562c11525f7d77 Mon Sep 17 00:00:00 2001 From: HARSHIL2836R Date: Tue, 12 Aug 2025 16:22:48 +0530 Subject: [PATCH 1/7] [clang-tidy] Add documentation for running Clang-Tidy on

[clang-tools-extra] [clang-tidy][docs] Add documentation for Clang-Tidy Automation (PR #153166)

2025-08-13 Thread Harshil Solanki via cfe-commits
https://github.com/HARSHIL2836R updated https://github.com/llvm/llvm-project/pull/153166 >From 6c7a972b2e1d01fccf9cc0d1ef562c11525f7d77 Mon Sep 17 00:00:00 2001 From: HARSHIL2836R Date: Tue, 12 Aug 2025 16:22:48 +0530 Subject: [PATCH 1/6] [clang-tidy] Add documentation for running Clang-Tidy on

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-13 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152497 >From b48993d25136a769b3b7bf8e8730be1a92ace067 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Aug 2025 00:24:55 +0800 Subject: [PATCH 1/2] [clang] constexpr __builtin_elementwise_abs support Added consta

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-13 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152497 >From b48993d25136a769b3b7bf8e8730be1a92ace067 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Aug 2025 00:24:55 +0800 Subject: [PATCH 1/2] [clang] constexpr __builtin_elementwise_abs support Added consta

[clang-tools-extra] [clang-tidy] `modernize-use-trailing-return-type`: add an option to apply to `void`-returning functions as well (PR #129406)

2025-08-13 Thread Baranov Victor via cfe-commits
@@ -566,6 +574,24 @@ ostream& operator<<(ostream& ostream, int i); // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use a trailing return type for this function [modernize-use-trailing-return-type] // CHECK-FIXES: {{^}}ostream& operator<<(ostream& ostream, int i);{{$}} +// +// Wa

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-13 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152497 >From b48993d25136a769b3b7bf8e8730be1a92ace067 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Aug 2025 00:24:55 +0800 Subject: [PATCH 1/2] [clang] constexpr __builtin_elementwise_abs support Added consta

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/152978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d8850ee - [clang][Obj-C][PAC] Add support for authenticating block metadata (#152978)

2025-08-13 Thread via cfe-commits
Author: Oliver Hunt Date: 2025-08-13T22:01:24-07:00 New Revision: d8850ee6c08fe38d992fb6f61d55a6afcaad6e6a URL: https://github.com/llvm/llvm-project/commit/d8850ee6c08fe38d992fb6f61d55a6afcaad6e6a DIFF: https://github.com/llvm/llvm-project/commit/d8850ee6c08fe38d992fb6f61d55a6afcaad6e6a.diff L

[clang-tools-extra] [clang-tidy] `modernize-use-trailing-return-type`: add an option to apply to `void`-returning functions as well (PR #129406)

2025-08-13 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/129406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][doc] Improve documentation of the -line-filter flag (PR #153372)

2025-08-13 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/153372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread John McCall via cfe-commits
https://github.com/rjmccall approved this pull request. https://github.com/llvm/llvm-project/pull/152978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Migrate clang-rename to OptTable parsing (PR #89167)

2025-08-13 Thread Jordan Rupprecht via cfe-commits
https://github.com/rupprecht closed https://github.com/llvm/llvm-project/pull/89167 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread Oliver Hunt via cfe-commits
@@ -4540,6 +4540,7 @@ defm aarch64_jump_table_hardening: OptInCC1FFlag<"aarch64-jump-table-hardening", defm ptrauth_objc_isa : OptInCC1FFlag<"ptrauth-objc-isa", "Enable signing and authentication of Objective-C object's 'isa' field">; defm ptrauth_objc_interface_sel : OptInCC1

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/145221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-13 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 HEAD~1 HEAD --extensions cpp,c -- clang/lib/AST/ByteCode/InterpBuiltin.cpp clang/lib/

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/145221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/145221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-13 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152497 >From b48993d25136a769b3b7bf8e8730be1a92ace067 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Aug 2025 00:24:55 +0800 Subject: [PATCH 1/2] [clang] constexpr __builtin_elementwise_abs support Added consta

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Naveen Seth Hanig via cfe-commits
@@ -188,13 +192,23 @@ class FullDependencyConsumer : public DependencyConsumer { ContextHash = std::move(Hash); } + void handleProvidedAndRequiredStdCXXModules( + std::optional Provided, + std::vector Requires) override { +ModuleName = Provided ? Provided-

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/152978 >From f5ab1451ccde9fdb14f5f933143c26e8154c4ff2 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sat, 9 Aug 2025 21:28:40 -0700 Subject: [PATCH] [clang][Obj-C][PAC] Add support for authenticating block metadata

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-13 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152497 >From b48993d25136a769b3b7bf8e8730be1a92ace067 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Aug 2025 00:24:55 +0800 Subject: [PATCH 1/2] [clang] constexpr __builtin_elementwise_abs support Added consta

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,157 @@ +// RUN: %clang_cc1 -fsycl-is-host -std=c++17 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsycl-is-device -std=c++17 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsycl-is-host -std=c++20 -fsyntax-only -verify -DCPP20 %s +// RUN: %clang_cc1 -fsycl-is-device -st

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -250,6 +250,20 @@ static bool CheckSYCLKernelName(Sema &S, SourceLocation Loc, return false; } +void SemaSYCL::CheckSYCLExternalFunctionDecl(FunctionDecl *FD) { + const auto *SEAttr = FD->getAttr(); + assert(SEAttr && "Missing sycl_external attribute"); + if (!FD->isE

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,157 @@ +// RUN: %clang_cc1 -fsycl-is-host -std=c++17 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsycl-is-device -std=c++17 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsycl-is-host -std=c++20 -fsyntax-only -verify -DCPP20 %s +// RUN: %clang_cc1 -fsycl-is-device -st

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,78 @@ +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s + +// This test code generation when sycl_external attribute is used + +// Function defined and not used - symbols emitted +[[clang::sycl_ex

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,78 @@ +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s + +// This test code generation when sycl_external attribute is used + +// Function defined and not used - symbols emitted +[[clang::sycl_ex

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann edited https://github.com/llvm/llvm-project/pull/140282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,157 @@ +// RUN: %clang_cc1 -fsycl-is-host -std=c++17 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsycl-is-device -std=c++17 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsycl-is-host -std=c++20 -fsyntax-only -verify -DCPP20 %s +// RUN: %clang_cc1 -fsycl-is-device -st

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann requested changes to this pull request. Suggestions to address the diagnostic issues with explicit and implicit template instantiations as well as a couple of additional tests. https://github.com/llvm/llvm-project/pull/140282 __

[clang] [clang-format] Allow breaking before bit-field colons (PR #153529)

2025-08-13 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/153529 Fixes #153448 >From a2ae89cec74b1151680dfa1270ceca336dc5b8a7 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 13 Aug 2025 20:09:36 -0700 Subject: [PATCH] [clang-format] Allow breaking before bit-field colons

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread John McCall via cfe-commits
@@ -4540,6 +4540,7 @@ defm aarch64_jump_table_hardening: OptInCC1FFlag<"aarch64-jump-table-hardening", defm ptrauth_objc_isa : OptInCC1FFlag<"ptrauth-objc-isa", "Enable signing and authentication of Objective-C object's 'isa' field">; defm ptrauth_objc_interface_sel : OptInCC1

[clang] [clang-format] Allow breaking before bit-field colons (PR #153529)

2025-08-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes Fixes #153448 --- Full diff: https://github.com/llvm/llvm-project/pull/153529.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+2-1) - (modified) clang/unittests/Format/FormatTest.

[clang] [CIR] Add `InlineAsmOp` (PR #153362)

2025-08-13 Thread Iris Shi via cfe-commits
@@ -2406,6 +2406,208 @@ OpFoldResult RotateOp::fold(FoldAdaptor adaptor) { return IntAttr::get(input.getContext(), input.getType(), resultValue); } +//===--===// +// InlineAsmOp +//===---

[clang] [CIR] Add `InlineAsmOp` (PR #153362)

2025-08-13 Thread Iris Shi via cfe-commits
@@ -2239,6 +2239,89 @@ def CIR_StackRestoreOp : CIR_Op<"stackrestore"> { let assemblyFormat = "$ptr attr-dict `:` qualified(type($ptr))"; } +//===--===// +// InlineAsmOp +//===---

[clang] [CIR] Add `InlineAsmOp` (PR #153362)

2025-08-13 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/153362 >From fc90a55f870ef7ac91628f3538121b28616a070f Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Wed, 13 Aug 2025 13:18:57 +0800 Subject: [PATCH 1/3] [CIR] Add `InlineAsmOp` --- clang/include/clang/CIR/

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-08-13 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,77 @@ +// RUN: %clang_cc1 -fsycl-is-device -triple spir64-unknown-unknown -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s + +// This test code generation when sycl_external attribute is used + +// Function defined and not used - symbols emitted +[[clang::sycl_ex

[clang] [clang-format] Allow breaking before bit-field colons (PR #153529)

2025-08-13 Thread via cfe-commits
https://github.com/owenca milestoned https://github.com/llvm/llvm-project/pull/153529 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't annotate class specifiers as StartOfName (PR #153525)

2025-08-13 Thread via cfe-commits
https://github.com/owenca milestoned https://github.com/llvm/llvm-project/pull/153525 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/145221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Shafik Yaghmour via cfe-commits
@@ -188,13 +192,23 @@ class FullDependencyConsumer : public DependencyConsumer { ContextHash = std::move(Hash); } + void handleProvidedAndRequiredStdCXXModules( + std::optional Provided, + std::vector Requires) override { +ModuleName = Provided ? Provided-

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Apologies for t https://github.com/llvm/llvm-project/pull/145221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

2025-08-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/145221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Clarify some SourceManager related code (PR #153527)

2025-08-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged the columns - 1 code, it was correct but the assumption was not obvious. I document the assumption w/ assertions. While digging through related code I found getColumnNumber that loo

[clang] [Clang][NFC] Clarify some SourceManager related code (PR #153527)

2025-08-13 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/153527 Static analysis flagged the columns - 1 code, it was correct but the assumption was not obvious. I document the assumption w/ assertions. While digging through related code I found getColumnNumber that looks wro

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-13 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't annotate class specifiers as StartOfName (PR #153525)

2025-08-13 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/153525 Fixes #153443 >From 5d2bdf267bace3a1e6314fc82ad2e1b110b1ffb4 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 13 Aug 2025 19:21:29 -0700 Subject: [PATCH] [clang-format] Don't annotate class specifiers as Start

[clang] [clang-format] Don't annotate class specifiers as StartOfName (PR #153525)

2025-08-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes Fixes #153443 --- Full diff: https://github.com/llvm/llvm-project/pull/153525.diff 2 Files Affected: - (modified) clang/lib/Format/TokenAnnotator.cpp (+3) - (modified) clang/unittests/Format/TokenAnnotato

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-13 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/153501 >From 8fef1b8dd9d91513c705c460e868ac5507eb4aea Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Wed, 13 Aug 2025 09:18:36 -0400 Subject: [PATCH] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-13 Thread Yaxun Liu via cfe-commits
@@ -159,6 +159,119 @@ Value *EmitAMDGPUGridSize(CodeGenFunction &CGF, unsigned Index) { llvm::MDNode::get(CGF.getLLVMContext(), {})); return LD; } +// Lowers __builtin_amdgcn_ds_bpermute to the corresponding LLVM intrinsic with +// careful bit-level coercio

[clang] [Clang] Honor -flax-vector-conversions=none on some tests (PR #153433)

2025-08-13 Thread Phoebe Wang via cfe-commits
@@ -1,11 +1,11 @@ -// RUN: %clang_cc1 %s -emit-llvm -o - +// RUN: %clang_cc1 %s -emit-llvm -flax-vector-conversions=none -o - typedef float __m128 __attribute__((__vector_size__(16))); typedef long long __v2di __attribute__((__vector_size__(16))); typedef int __v4si __attrib

[clang] [Clang] Honor -flax-vector-conversions=none on some tests (PR #153433)

2025-08-13 Thread Phoebe Wang via cfe-commits
@@ -1,16 +1,16 @@ // REQUIRES: x86-registered-target -// RUN: %clang_cc1 %s -triple=i686-apple-darwin -target-feature +ssse3 -O1 -S -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple=i686-apple-darwin -target-feature +ssse3 -O1 -S -flax-vector-conversions=none -o - | FileCheck

[libclc] [libclc] Use __ocml_cos/sin/tan/exp*/lgamma/log*/fmax/fmin/sqrt for AMDGPU (PR #153328)

2025-08-13 Thread Wenju He via cfe-commits
wenju-he wrote: > If you want to use these implementations, I'd rather merge the OCML content > into libclc and migrate over to using it. Tag @frasercrmck The amdgcn implementation probably needs improvement to use llvm elementwise builtin for e.g. half/float exp* https://github.com/llvm/llv

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-13 Thread Yaxun Liu via cfe-commits
@@ -18,6 +18,132 @@ #include "llvm/Support/AtomicOrdering.h" #include +namespace { + +using llvm::StringRef; +using namespace clang; + +/// Attempts to apply a user-defined conversion on Arg at ArgIndex to a +/// 32-bit-compatible type. If successful, updates TheCall's argume

[clang] [Clang] Honor -flax-vector-conversions=none on some tests (PR #153433)

2025-08-13 Thread Phoebe Wang via cfe-commits
@@ -56,11 +56,6 @@ namespace Vector { static_assert(__builtin_vectorelements(v2) == (32 / sizeof(double)), ""); } -namespace { - typedef float __attribute__((vector_size(16))) VI42; - constexpr VI42 A2 = A; phoebewang wrote: Can we change it to `A2 = {1.f

[libclc] [NFC][libclc] add missing __CLC_ prefix all internal macros (PR #153523)

2025-08-13 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Wenju He (wenju-he) Changes This unifies naming scheme of macros to address review comment https://github.com/intel/llvm/pull/19779#discussion_r2272194357 math constant value macros are not changed, e.g. `#define AU0 -9.864942924

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-13 Thread Brandon Wu via cfe-commits
4vtomat wrote: rebase https://github.com/llvm/llvm-project/pull/150724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-13 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/150724 >From 2443b99d779a8a8fcb958ca991928ea261fae75c Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Fri, 25 Jul 2025 16:49:54 -0700 Subject: [PATCH 1/3] [RISCV][llvm] Support fixed-length vector inline assembly cons

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-13 Thread via cfe-commits
TianYe717 wrote: @RKSimon I've updated the patch against trunk, applied clang-format, and ensured the tests run for both C and C++ constexpr cases. Could you please take another look? https://github.com/llvm/llvm-project/pull/153363 ___ cfe-commits m

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread Oliver Hunt via cfe-commits
@@ -4540,6 +4540,7 @@ defm aarch64_jump_table_hardening: OptInCC1FFlag<"aarch64-jump-table-hardening", defm ptrauth_objc_isa : OptInCC1FFlag<"ptrauth-objc-isa", "Enable signing and authentication of Objective-C object's 'isa' field">; defm ptrauth_objc_interface_sel : OptInCC1

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-13 Thread via cfe-commits
https://github.com/TianYe717 updated https://github.com/llvm/llvm-project/pull/153363 >From 614af4a5e03568205e52e01007f5c84b65c520ff Mon Sep 17 00:00:00 2001 From: Ye Tian <939808...@qq.com> Date: Wed, 13 Aug 2025 15:26:48 +0800 Subject: [PATCH] [Headers][X86] Allow AVX2/AVX512 broadcast intrins

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread John McCall via cfe-commits
@@ -4540,6 +4540,7 @@ defm aarch64_jump_table_hardening: OptInCC1FFlag<"aarch64-jump-table-hardening", defm ptrauth_objc_isa : OptInCC1FFlag<"ptrauth-objc-isa", "Enable signing and authentication of Objective-C object's 'isa' field">; defm ptrauth_objc_interface_sel : OptInCC1

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-13 Thread via cfe-commits
https://github.com/link-xyq updated https://github.com/llvm/llvm-project/pull/151706 From bc0277022da5020cf8e4903e4d518bbd844026a5 Mon Sep 17 00:00:00 2001 From: xuqian Date: Fri, 1 Aug 2025 22:26:16 +0800 Subject: [PATCH 01/15] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) exten

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread John McCall via cfe-commits
https://github.com/rjmccall commented: Generally LGTM https://github.com/llvm/llvm-project/pull/152978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Obj-C][PAC] Add support for authenticating block metadata (PR #152978)

2025-08-13 Thread John McCall via cfe-commits
https://github.com/rjmccall edited https://github.com/llvm/llvm-project/pull/152978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-13 Thread Shilei Tian via cfe-commits
@@ -159,6 +159,119 @@ Value *EmitAMDGPUGridSize(CodeGenFunction &CGF, unsigned Index) { llvm::MDNode::get(CGF.getLLVMContext(), {})); return LD; } +// Lowers __builtin_amdgcn_ds_bpermute to the corresponding LLVM intrinsic with +// careful bit-level coercio

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-13 Thread Shilei Tian via cfe-commits
@@ -159,6 +159,119 @@ Value *EmitAMDGPUGridSize(CodeGenFunction &CGF, unsigned Index) { llvm::MDNode::get(CGF.getLLVMContext(), {})); return LD; } +// Lowers __builtin_amdgcn_ds_bpermute to the corresponding LLVM intrinsic with +// careful bit-level coercio

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-13 Thread Yaxun Liu via cfe-commits
@@ -159,6 +159,119 @@ Value *EmitAMDGPUGridSize(CodeGenFunction &CGF, unsigned Index) { llvm::MDNode::get(CGF.getLLVMContext(), {})); return LD; } +// Lowers __builtin_amdgcn_ds_bpermute to the corresponding LLVM intrinsic with +// careful bit-level coercio

  1   2   3   >