[clang] a9a4a83 - [clang-format] Add test to ensure formatting options docs are updated (#118154)

2024-12-04 Thread via cfe-commits
Author: Aiden Grossman Date: 2024-12-04T23:41:12-08:00 New Revision: a9a4a83b6132f076fd14ac31268deaa4bf1381d5 URL: https://github.com/llvm/llvm-project/commit/a9a4a83b6132f076fd14ac31268deaa4bf1381d5 DIFF: https://github.com/llvm/llvm-project/commit/a9a4a83b6132f076fd14ac31268deaa4bf1381d5.diff

[clang] [clang-format] Add test to ensure formatting options docs are updated (PR #118154)

2024-12-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/118154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add test to ensure formatting options docs are updated (PR #118154)

2024-12-04 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/118154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
@@ -53,3 +53,13 @@ foreach (file IN LISTS files) endforeach () add_custom_target(clang-format-check-format DEPENDS ${check_format_depends}) + +set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst) +add_custom_command(OUTPUT ${style_options_depends} +

[clang] [llvm] [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
@@ -53,3 +53,13 @@ foreach (file IN LISTS files) endforeach () add_custom_target(clang-format-check-format DEPENDS ${check_format_depends}) + +set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst) +add_custom_command(OUTPUT ${style_options_depends} --

[clang] [llvm] [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
@@ -53,3 +53,13 @@ foreach (file IN LISTS files) endforeach () add_custom_target(clang-format-check-format DEPENDS ${check_format_depends}) + +set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst) +add_custom_command(OUTPUT ${style_options_depends} +

[clang] 6bec180 - [clang-format] Add plurals.txt to DEPENDS of style_options_depends

2024-12-04 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2024-12-04T23:02:02-08:00 New Revision: 6bec1806c9cc90f6e72fc04698f4221c86c5f95e URL: https://github.com/llvm/llvm-project/commit/6bec1806c9cc90f6e72fc04698f4221c86c5f95e DIFF: https://github.com/llvm/llvm-project/commit/6bec1806c9cc90f6e72fc04698f4221c86c5f95e.diff LOG:

[clang] [llvm] [clang-format] Add new cmake target, `clang-format-style-options`, for updating ClangFormatStyleOptions.rst. (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
@@ -53,3 +53,13 @@ foreach (file IN LISTS files) endforeach () add_custom_target(clang-format-check-format DEPENDS ${check_format_depends}) + +set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst) +add_custom_command(OUTPUT ${style_options_depends} +

[clang] [clang-format] Add test to ensure formatting options docs are updated (PR #118154)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format @llvm/pr-subscribers-clang Author: Aiden Grossman (boomanaiden154) Changes This patch adds a lit test to clang format to ensure that the ClangFormatStyleOptions doc page has been updated appropriately. The test just runs the automatic upda

[clang] [clang-format] Add test to ensure formatting options docs are updated (PR #118154)

2024-12-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 ready_for_review https://github.com/llvm/llvm-project/pull/118154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][CMake] Generate formatting options docs during build (PR #113739)

2024-12-04 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: Closing in favor of #111513 / #118154. https://github.com/llvm/llvm-project/pull/113739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][CMake] Generate formatting options docs during build (PR #113739)

2024-12-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/113739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang-format] Add new cmake target, `clang-format-style-options`, for updating ClangFormatStyleOptions.rst. (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
@@ -53,3 +53,13 @@ foreach (file IN LISTS files) endforeach () add_custom_target(clang-format-check-format DEPENDS ${check_format_depends}) + +set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst) +add_custom_command(OUTPUT ${style_options_depends} +

[clang] [llvm] [clang-format] Add new cmake target, `clang-format-style-options`, for updating ClangFormatStyleOptions.rst. (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
@@ -53,3 +53,13 @@ foreach (file IN LISTS files) endforeach () add_custom_target(clang-format-check-format DEPENDS ${check_format_depends}) + +set(style_options_depends ${CLANG_SOURCE_DIR}/docs/ClangFormatStyleOptions.rst) +add_custom_command(OUTPUT ${style_options_depends} --

[clang] [llvm] [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (PR #111513)

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

[clang] f7560ee - [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (#111513)

2024-12-04 Thread via cfe-commits
Author: Iuri Chaer Date: 2024-12-04T22:50:01-08:00 New Revision: f7560ee97b7441eb3f5b2d0744aad857fafa5855 URL: https://github.com/llvm/llvm-project/commit/f7560ee97b7441eb3f5b2d0744aad857fafa5855 DIFF: https://github.com/llvm/llvm-project/commit/f7560ee97b7441eb3f5b2d0744aad857fafa5855.diff LO

[clang] [llvm] [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/111513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Support for dispatch construct (Sema & Codegen) support. (PR #117904)

2024-12-04 Thread via cfe-commits
SunilKuravinakop wrote: I have addressed all the previous comments. Can you please take a look? https://github.com/llvm/llvm-project/pull/117904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [llvm] [clang-format] Add cmake target clang-format-style-options for updating ClangFormatStyleOptions.rst (PR #111513)

2024-12-04 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/111513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][driver] Special care for linker flags in config files (PR #117573)

2024-12-04 Thread Fangrui Song via cfe-commits
@@ -297,6 +297,9 @@ class Driver { /// Object that stores strings read from configuration file. llvm::StringSaver Saver; + /// Linker inputs originated from configuration file. + std::unique_ptr CfgLinkerInputs; MaskRay wrote: `CfgLinkerInputs` is not a

[clang] [clang][ExprConst] Add diagnostics for invalid binary arithmetic (PR #118475)

2024-12-04 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/118475 >From ce52d3d0c04fc53b814debdcd2c5019f488eddc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 3 Dec 2024 11:5

[clang] abc2703 - [clang][bytecode] Pass __builtin_memcpy size along (#118649)

2024-12-04 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-05T06:55:18+01:00 New Revision: abc27039be63ce31afe42fc10510921b559db4fe URL: https://github.com/llvm/llvm-project/commit/abc27039be63ce31afe42fc10510921b559db4fe DIFF: https://github.com/llvm/llvm-project/commit/abc27039be63ce31afe42fc10510921b559db4fe.diff L

[clang] [flang] [clang][driver] Special care for linker flags in config files (PR #117573)

2024-12-04 Thread Fangrui Song via cfe-commits
MaskRay wrote: It's worth spending more time discussing the metacharacter. `^` can be interpreted as `^` in regex, which means the beginning. `$`, on the other side, suggests the end. In CCC_OVERRIDE_OPTIONS (clang/lib/Driver/Driver.cpp), `^` is to add an option at the beginning, but there is

[clang] [clang][bytecode] Pass __builtin_memcpy size along (PR #118649)

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

[clang] [clang-tools-extra] [clang] Avoid re-evaluating field bitwidth (PR #117732)

2024-12-04 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/117732 >From 90929a23af50f7b209e68055abf4deb903a490cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 27 Nov 2024 08:

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: David Olsen (dkolsen-pgi) Changes Add integral types to ClangIR. These are the first ClangIR types, so the change includes some infrastructure for managing ClangIR types. So that the integral types can be used somewhere, generate Clang

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Olsen (dkolsen-pgi) Changes Add integral types to ClangIR. These are the first ClangIR types, so the change includes some infrastructure for managing ClangIR types. So that the integral types can be used somewhere, generate ClangIR

[clang] [CIR] Integral types; simple global variables (PR #118743)

2024-12-04 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi created https://github.com/llvm/llvm-project/pull/118743 Add integral types to ClangIR. These are the first ClangIR types, so the change includes some infrastructure for managing ClangIR types. So that the integral types can be used somewhere, generate ClangIR f

[clang] [clang][ExprConst] Add diagnostics for invalid binary arithmetic (PR #118475)

2024-12-04 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/118475 >From ce52d3d0c04fc53b814debdcd2c5019f488eddc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 3 Dec 2024 11:5

[clang] [clang-format] Fix an assertion failure in RemoveSemicolon (PR #117472)

2024-12-04 Thread Owen Pan via cfe-commits
owenca wrote: Ping @mydeveloperday @HazardyKnusperkeks https://github.com/llvm/llvm-project/pull/117472 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake] Allow parametrizing of the static libraries in Cross ARM CMake cache. NFC. (PR #118737)

2024-12-04 Thread Vladimir Vereschaka via cfe-commits
https://github.com/vvereschaka closed https://github.com/llvm/llvm-project/pull/118737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a996a15 - [CMake] Allow parametrizing of the static libraries in Cross ARM CMake cache. NFC. (#118737)

2024-12-04 Thread via cfe-commits
Author: Vladimir Vereschaka Date: 2024-12-04T21:04:29-08:00 New Revision: a996a15b4c5287892f79c0ae029ea9319c8e44a5 URL: https://github.com/llvm/llvm-project/commit/a996a15b4c5287892f79c0ae029ea9319c8e44a5 DIFF: https://github.com/llvm/llvm-project/commit/a996a15b4c5287892f79c0ae029ea9319c8e44a5

[clang] 44be794 - [clang][bytecode] Not all null pointers are 0 (#118601)

2024-12-04 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-05T06:03:50+01:00 New Revision: 44be794658f9cd477ffd718b0322d1970c534274 URL: https://github.com/llvm/llvm-project/commit/44be794658f9cd477ffd718b0322d1970c534274 DIFF: https://github.com/llvm/llvm-project/commit/44be794658f9cd477ffd718b0322d1970c534274.diff L

[clang] [clang][bytecode] Not all null pointers are 0 (PR #118601)

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

[clang] [clang][bytecode] Not all null pointers are 0 (PR #118601)

2024-12-04 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/118601 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Pack relocations for Android API >= 28 (PR #117624)

2024-12-04 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: breaks this bot https://lab.llvm.org/buildbot/#/builders/186/builds/4581 https://github.com/llvm/llvm-project/pull/117624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] Revert "Reapply "[Clang][Sema] Refactor collection of multi-level template argument lists (#106585, #111173)" (#111852)" (PR #115159)

2024-12-04 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @sdkrystian Friendly ping. Any chance for you to reapply this patch recently? thanks https://github.com/llvm/llvm-project/pull/115159 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-04 Thread Chandler Carruth via cfe-commits
chandlerc wrote: Discussion thread about the MSVC version change: https://discourse.llvm.org/t/rfc-raising-minimum-msvc-version-by-one-patch-release/83490 https://github.com/llvm/llvm-project/pull/118734 ___ cfe-commits mailing list cfe-commits@lists.

[clang] Make the `CHECK` lines here resistent to `chandlerc` (PR #118736)

2024-12-04 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/118736 Specifically, usernames containing `handle`, such as `chandlerc`, often end up in paths, including the path of this test file which contains the word `overflow`. Combined, they create a match for `handle.*ove

[clang] [CMake] Allow parametrizing of the static libraries in Cross ARM CMake cache. NFC. (PR #118737)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vladimir Vereschaka (vvereschaka) Changes In order to support the cross-arm remote tests for LLDB project (see 'lldb-remote-linux-*' public builders for details). --- Full diff: https://github.com/llvm/llvm-project/pull/118737.diff 1 Fi

[clang] [CMake] Allow parametrizing of the static libraries in Cross ARM CMake cache. NFC. (PR #118737)

2024-12-04 Thread Vladimir Vereschaka via cfe-commits
https://github.com/vvereschaka created https://github.com/llvm/llvm-project/pull/118737 In order to support the cross-arm remote tests for LLDB project (see 'lldb-remote-linux-*' public builders for details). >From d8264b55cb84b5a7c9f1534f7c7f81e3f5c6738c Mon Sep 17 00:00:00 2001 From: Vladimi

[clang] Make the `CHECK` lines here resistent to `chandlerc` (PR #118736)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chandler Carruth (chandlerc) Changes Specifically, usernames containing `handle`, such as `chandlerc`, often end up in paths, including the path of this test file which contains the word `overflow`. Combined, they create a match for `hand

[clang] [mutation analyzer][NFC] combine `ConditionalOperator` `BinaryConditionalOperator` (PR #118602)

2024-12-04 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/118602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f98c9a9 - [mutation analyzer][NFC] combine `ConditionalOperator` `BinaryConditionalOperator` (#118602)

2024-12-04 Thread via cfe-commits
Author: Congcong Cai Date: 2024-12-05T11:17:45+08:00 New Revision: f98c9a9b3665c75a6bf01577734f16185710009d URL: https://github.com/llvm/llvm-project/commit/f98c9a9b3665c75a6bf01577734f16185710009d DIFF: https://github.com/llvm/llvm-project/commit/f98c9a9b3665c75a6bf01577734f16185710009d.diff

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm Author: Chandler Carruth (chandlerc) Changes The Clang binary (and any binary linking Clang as a library), when built using PIE, ends up with a pretty shocking number of dynamic relocations to apply to the executable image: roughly 400k. E

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-msp430 Author: Chandler Carruth (chandlerc) Changes The Clang binary (and any binary linking Clang as a library), when built using PIE, ends up with a pretty shocking number of dynamic relocations to apply to the executable image: roughly 400k.

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-sparc Author: Chandler Carruth (chandlerc) Changes The Clang binary (and any binary linking Clang as a library), when built using PIE, ends up with a pretty shocking number of dynamic relocations to apply to the executable image: roughly 400k.

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Chandler Carruth (chandlerc) Changes The Clang binary (and any binary linking Clang as a library), when built using PIE, ends up with a pretty shocking number of dynamic relocations to apply to the executable image: roughly 400k.

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-04 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/118734 The Clang binary (and any binary linking Clang as a library), when built using PIE, ends up with a pretty shocking number of dynamic relocations to apply to the executable image: roughly 400k. Each of these

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

2024-12-04 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,785 @@ +//===-- 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-cl][flang][dxc] Fix opts exposed to clang-cl/dxc by mistake (PR #118640)

2024-12-04 Thread Haohai Wen via cfe-commits
https://github.com/HaohaiWen edited https://github.com/llvm/llvm-project/pull/118640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl][flang][dxc] Fix opts exposed to clang-cl/dxc by mistake (PR #118640)

2024-12-04 Thread Haohai Wen via cfe-commits
HaohaiWen wrote: Better to double check with author who specified those CL flags. https://github.com/llvm/llvm-project/pull/118640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME] Fix bug on SMELd1St1 (PR #118109)

2024-12-04 Thread via cfe-commits
wwwatermiao wrote: > > I thought that this fix will automatically pull from main to other branch > > at some tiime > > main is the basis for all future release branches (20.x and later), but we > don't automatically pull fixes into release branches that are already created > (19.x). > > See

[clang] [clang-cl][flang][dxc] Fix opts exposed to clang-cl/dxc by mistake (PR #118640)

2024-12-04 Thread Haohai Wen via cfe-commits
@@ -1055,11 +1055,11 @@ def z : Separate<["-"], "z">, Flags<[LinkerInput]>, def offload_link : Flag<["--"], "offload-link">, Group, HelpText<"Use the new offloading linker to perform the link job.">; def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]

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

2024-12-04 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,785 @@ +//===-- 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-12-04 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. Modulo a few small things, I think this is in pretty decent shape now. https://github.com/llvm/llvm-project/pull/105893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

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

2024-12-04 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,785 @@ +//===-- 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-12-04 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/105893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add ByteAddressBuffer, RWByteAddressBuffer and RasterizerOrderedByteAddressBuffer definitions to HLSLExternalSemaSource #113477 (PR #116699)

2024-12-04 Thread Helena Kotas via cfe-commits
@@ -540,10 +555,10 @@ struct BuiltinTypeMethodBuilder { // create method decl auto *TSInfo = AST.getTrivialTypeSourceInfo(MethodTy, SourceLocation()); -Method = -CXXMethodDecl::Create(AST, DeclBuilder.Record, SourceLocation(), -

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: I see, thanks for looking into it! To be honest I think `file_name_re` could be removed, `--source-filter` already takes in a regex and filters files based on it, which is more clear. The `files` arguments could just be taken as-is as a list of file paths (or maybe optionally d

[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)

2024-12-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/16586 He

[clang] [libcxx] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-12-04 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: @ldionne @mordante ping~ https://github.com/llvm/llvm-project/pull/114382 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Downgrade error to warning for inconsistent language flags (PR #117840)

2024-12-04 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > Some other thoughts about false-positive error diagnostics. I am wondering, > > if we don't want false-positive error diagnostics at all, then we have to > > do what I proposed in this PR (to downgrade errors to warnings for > > inconsistent flags). Otherwise, we can alwa

[clang] [Darwin][Driver][clang] Prioritise command line args over `DEFAULT_SYSROOT` (PR #115993)

2024-12-04 Thread Carlo Cabrera via cfe-commits
carlocab wrote: > It's unclear to me how homebrew gets into a situation where there are > conflicting sdks passed for `sysroot` and `isysroot` when you effectively > want to ignore whatever is passed to `sysroot`. Maybe this has already been answered, but just in case. You get conflicting SDK

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Mike Hommey via cfe-commits
glandium wrote: I found what's going on. It kind of worked by chance before in our setup, but that somehow shows an existing flaw in the run-clang-tidy script. So, our compilation database contains absolute paths with forward slashes. And the paths we pass to the command line are also with forw

[clang] [Darwin][Driver][clang] Prioritise command line args over `DEFAULT_SYSROOT` (PR #115993)

2024-12-04 Thread Carlo Cabrera via cfe-commits
carlocab wrote: > Maybe instead, the logic in the patch should be setting `-syslibroot` for > linker in following order: > > * `--sysroot` > * `-isysroot` > * `C.getSysRoot()`, which is basically DEFAULT_SYSROOT as other cases is > handled in `--sysroot` Thanks, pushed a change that I think s

[clang] [Darwin][Driver][clang] Prioritise command line args over `DEFAULT_SYSROOT` (PR #115993)

2024-12-04 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab edited https://github.com/llvm/llvm-project/pull/115993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Darwin][Driver][clang] Prioritise `-isysroot` over `--sysroot` consistently (PR #115993)

2024-12-04 Thread Carlo Cabrera via cfe-commits
https://github.com/carlocab updated https://github.com/llvm/llvm-project/pull/115993 >From e257a7924d15e3f19fe483ea81d792feb4644874 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Wed, 13 Nov 2024 13:09:59 +0800 Subject: [PATCH] [Darwin][Driver][clang] Prioritise command line flags over `DE

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-12-04 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/114062 >From d2d2d3d5db3f639aab178f9ca9a20db2842d2b65 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 29 Oct 2024 14:20:44 + Subject: [PATCH 01/11] `sret` args should always point to the `alloca` AS, so we ca

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Mike Hommey via cfe-commits
glandium wrote: The change in 315561c86778 causes problems on Windows, and I thought that's what it was, but it turns out it's not. Sorry for the noise. I'm still digging as to what exactly is going wrong on our setup. https://github.com/llvm/llvm-project/pull/118718 __

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Mike Hommey via cfe-commits
https://github.com/glandium closed https://github.com/llvm/llvm-project/pull/118718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Is there a reason to bring it back? Is it causing issues? IIRC this was on purpose because from `os.path.abspath`: > On most platforms, this is equivalent to calling the function > [normpath()](https://docs.python.org/3/library/os.path.html#os.path.normpath) > as follows: normpa

[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)

2024-12-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/7687 Here is the

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2024-12-04 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: Spill f16 using float instructions into 4-byte stack slots: - Seems to work to use a RegInfoByHwMode to reset the SpillSize for FP16 to 32 bits. By using two HwMode:s, the spill size can still be 16 bits with vector support. - Using new LE16/STE16 opcodes seems easier than ex

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2024-12-04 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > > > So I take it we decided not to enable it by default in > > > `-fms-compatibility` mode then? > > > > > > I don't believe it is appropriate to do so. The intent of this warning is > > to indicate MSVC compatibility issues when building in non-ms-compatibility > > modes. Th

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-04 Thread Jonathan Thackray via cfe-commits
@@ -740,6 +740,11 @@ let SMETargetGuard = "sme2" in { def SVLUTI4_LANE_ZT_X2 : Inst<"svluti4_lane_zt_{d}_x2", "2.di[i", "cUcsUsiUibhf", MergeNone, "aarch64_sme_luti4_lane_zt_x2", [IsStreaming, IsInZT0], [ImmCheck<0, ImmCheck0_0>, ImmCheck<2, ImmCheck0_3>]>; } +// FDOT

[clang] [HLSL] Implement SV_GroupThreadId semantic (PR #117781)

2024-12-04 Thread Zhengxing li via cfe-commits
@@ -2,15 +2,18 @@ // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-mesh -hlsl-entry CSMain -x hlsl -finclude-default-header -verify -o - %s [numthreads(8,8,1)] -// expected-error@+3 {{attribute 'SV_GroupIndex' is unsupported in 'mesh' shaders, requires compute}} -// expect

[clang] 32b821c - [AST] Fix a warning

2024-12-04 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2024-12-04T16:03:14-08:00 New Revision: 32b821cab3064ae9a77a0f1d9916a286c7543735 URL: https://github.com/llvm/llvm-project/commit/32b821cab3064ae9a77a0f1d9916a286c7543735 DIFF: https://github.com/llvm/llvm-project/commit/32b821cab3064ae9a77a0f1d9916a286c7543735.diff L

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Mike Hommey (glandium) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/118718.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (+4-1) ``diff diff --git a/cl

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Mike Hommey (glandium) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/118718.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/tool/run-clang-tidy.py (+4-1) ``diff diff --git a/clang-too

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Mike Hommey via cfe-commits
glandium wrote: Cc @PiotrZSL @carlosgalvezp @nicovank https://github.com/llvm/llvm-project/pull/118718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)

2024-12-04 Thread Mike Hommey via cfe-commits
https://github.com/glandium created https://github.com/llvm/llvm-project/pull/118718 None >From fd48f30df81e533401b9eedc313547374c6e5b13 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 5 Dec 2024 08:52:57 +0900 Subject: [PATCH] Re-add path normalization that was removed in 315561c86778

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-04 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/118074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-04 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: In general LGTM after considering more size cases. It may still work on `TraversalKind::TK_IgnoreUnlessSpelledInSource`. Could you try to set traversal mode in `getCheckTraversalKind`. It can avoid noise of something like implicit cast. https://github

[clang-tools-extra] Add new tool: clang-read-diagnostics (PR #118522)

2024-12-04 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/118522 >From 5860f5f25e04930c72dcdb9f0ee4d7386cbcb3d3 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 2 Dec 2024 15:15:30 -0800 Subject: [PATCH 01/12] start working on the new tool --- .../clang-read-dia

[clang-tools-extra] Add new tool: clang-read-diagnostics (PR #118522)

2024-12-04 Thread Jon Roelofs via cfe-commits
jroelofs wrote: Looks okay to me, but let me tag some clang-tools-extra folks for a second look. https://github.com/llvm/llvm-project/pull/118522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang-tools-extra] Add new tool: clang-read-diagnostics (PR #118522)

2024-12-04 Thread Jon Roelofs via cfe-commits
@@ -0,0 +1,15 @@ +// REQUIRES: clang +// RUN: not %clang %s -serialize-diagnostics %s.diag jroelofs wrote: recommend putting the new file under `%t` instead of `%s`, so this doesn't pollute the source dir. https://github.com/llvm/llvm-project/pull/118522 __

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-04 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,94 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [compiler-rt] [llvm] [XRay][RISCV] RISCV support for XRay (PR #117368)

2024-12-04 Thread Sam Elliott via cfe-commits
@@ -0,0 +1,87 @@ +//===-- xray_trampoline_riscv32.s --*- ASM -*-===// +// +// 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:

[clang] [llvm] [AMDGPU] Infer amdgpu-no-flat-scratch-init attribute in AMDGPUAttributor (PR #94647)

2024-12-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/13726 Here is th

[clang] [HLSL] Implement SV_GroupThreadId semantic (PR #117781)

2024-12-04 Thread Zhengxing li via cfe-commits
@@ -2,15 +2,18 @@ // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-mesh -hlsl-entry CSMain -x hlsl -finclude-default-header -verify -o - %s [numthreads(8,8,1)] -// expected-error@+3 {{attribute 'SV_GroupIndex' is unsupported in 'mesh' shaders, requires compute}} -// expect

[clang] [compiler-rt] [llvm] [XRay][RISCV] RISCV support for XRay (PR #117368)

2024-12-04 Thread Min-Yih Hsu via cfe-commits
https://github.com/mshockwave updated https://github.com/llvm/llvm-project/pull/117368 >From 599370a06008092f6aa883bf11600d0b66707bc0 Mon Sep 17 00:00:00 2001 From: Min-Yih Hsu Date: Wed, 20 Nov 2024 14:37:57 -0800 Subject: [PATCH 1/6] [XRay][RISCV] RISCV support for XRay Add RISC-V support fo

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `WaveActiveSum` intrinsic (PR #118580)

2024-12-04 Thread Adam Yang via cfe-commits
https://github.com/adam-yang updated https://github.com/llvm/llvm-project/pull/118580 >From aa2c7eda19f3a89112e0f6eb8630cef58d833abb Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 18 Oct 2024 10:49:18 -0700 Subject: [PATCH 1/2] [HLSL][SPIRV][DXIL] Implement `WaveActiveSum` intrinsic -

[clang] [Driver][Fuchsia] Avoid "argument unused" warnings (PR #118416)

2024-12-04 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/118416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-04 Thread Jonathan Thackray via cfe-commits
jthackray wrote: > [Immediate argument > tests](https://github.com/llvm/llvm-project/blob/e804d5f7cc459b9310122ed5405bba5c4d6a2350/clang/test/Sema/aarch64-fp8-intrinsics/acle_sme2_fp8_imm.c) Thanks. Looks like this is in #118549 which hasn't been merged yet (/me starts reviewing your change ;)

[clang] [Driver][Fuchsia] Avoid "argument unused" warnings (PR #118416)

2024-12-04 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/118416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add intrinsics for SME FP8 FDOT LANE instructions (PR #118492)

2024-12-04 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/118492 >From 609cf3fbdb28c155f4b8c787c1e2cb791c8a292f Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Fri, 29 Nov 2024 11:27:03 + Subject: [PATCH 1/3] [AArch64] Add intrinsics for SME FP8 FDOT LANE instru

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-04 Thread Chris White via cfe-commits
whiteio wrote: Hey @Maetveis, I've addressed the conflicts 👍 https://github.com/llvm/llvm-project/pull/116871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SystemZ] Add support for __builtin_setjmp and __builtin_longjmp (PR #116642)

2024-12-04 Thread Eli Friedman via cfe-commits
@@ -4619,6 +4619,31 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, // Buffer is a void**. Address Buf = EmitPointerWithAlignment(E->getArg(0)); +if (getTarget().getTriple().getArch() == llvm::Triple::systemz) { + // Call L

[clang] [Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (PR #116871)

2024-12-04 Thread Chris White via cfe-commits
https://github.com/whiteio updated https://github.com/llvm/llvm-project/pull/116871 >From 29330456191334afb6cd82ae44f496c522985877 Mon Sep 17 00:00:00 2001 From: Chris White Date: Tue, 19 Nov 2024 20:06:28 + Subject: [PATCH 1/3] [Clang] Fix -Wunused-private-field false negative with defaul

  1   2   3   4   5   >