[clang] [clang-format] Change BracedInitializerIndentWidth to int (PR #128988)

2025-02-27 Thread Björn Schäpers via cfe-commits
@@ -1441,8 +1441,9 @@ TEST(ConfigParseTest, GetStyleOfFile) { ASSERT_EQ(*Style9, SubSubStyle); // Test 9.8: use inheritance from a file without BasedOnStyle - ASSERT_TRUE(FS.addFile("/e/withoutbase/.clang-format", 0, - llvm::MemoryBuffer::getMemBuf

[clang] [HLSL] Add "or" intrinsic (PR #128979)

2025-02-27 Thread via cfe-commits
https://github.com/metkarpoonam updated https://github.com/llvm/llvm-project/pull/128979 >From 08e191213d3abfc6a5f2af7ba3db35055dd040eb Mon Sep 17 00:00:00 2001 From: Poonam Vilas Metkar Date: Wed, 26 Feb 2025 16:23:01 -0800 Subject: [PATCH 01/10] Format hlsl_intrinsics.h with clang-format ---

[clang] [llvm] [memprof] Add memprof options as a clang frontend flag (PR #128615)

2025-02-27 Thread Ellis Hoag via cfe-commits
https://github.com/ellishg closed https://github.com/llvm/llvm-project/pull/128615 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add HLSLResourceBindingAttr to default constant buffer numeric declarations ($Globals) (PR #128981)

2025-02-27 Thread Helena Kotas via cfe-commits
@@ -1,41 +1,56 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -ast-dump -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -ast-dump -o - %s | FileCheck %s -// CHECK:HLSLBufferDecl 0x[[CB:[0-9a-f]+]

[clang] [CIR] Upstream func args alloca handling (PR #129167)

2025-02-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This change adds support for collecting function arguments and storing them in alloca memory slots. --- Full diff: https://github.com/llvm/llvm-project/pull/129167.diff 10 Files Affected: - (modified)

[clang] [CIR] Upstream func args alloca handling (PR #129167)

2025-02-27 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/129167 This change adds support for collecting function arguments and storing them in alloca memory slots. >From d1fa2629b5786befa8ca8f839cf948df4644d615 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Tue, 25 Fe

[clang] [HLSL] Add HLSLResourceBindingAttr to default constant buffer numeric declarations ($Globals) (PR #128981)

2025-02-27 Thread Helena Kotas via cfe-commits
@@ -1,41 +1,56 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -ast-dump -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -ast-dump -o - %s | FileCheck %s hekota wrote: The default

[clang] [CIR] Upstream func args alloca handling (PR #129167)

2025-02-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This change adds support for collecting function arguments and storing them in alloca memory slots. --- Full diff: https://github.com/llvm/llvm-project/pull/129167.diff 10 Files Affected: - (modified) c

[clang] [HLSL] Add HLSLResourceBindingAttr to default constant buffer numeric declarations ($Globals) (PR #128981)

2025-02-27 Thread Helena Kotas via cfe-commits
@@ -1,41 +1,56 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -ast-dump -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -ast-dump -o - %s | FileCheck %s -// CHECK:HLSLBufferDecl 0x[[CB:[0-9a-f]+]

[clang] [llvm] [RISCV] Xqccmp Code Generation (PR #128815)

2025-02-27 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 6e7f04266c5f729cf4bc5546e2bf29aad3e695f1 ee917b49d67aac155334e8c8ef33173788e6f649 --e

[clang] [clang] Add partial-inlining options (PR #129024)

2025-02-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Jolyon (Jolyon0202) Changes Adaptation of adding -fpartial-inlining and -fno-partial-inlining options with GCC. --- Full diff: https://github.com/llvm/llvm-project/pull/129024.diff 4 Files Affected: -

[clang] [clang] Add partial-inlining options (PR #129024)

2025-02-27 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] [clang] Add partial-inlining options (PR #73210)

2025-02-27 Thread via cfe-commits
https://github.com/Jolyon0202 closed https://github.com/llvm/llvm-project/pull/73210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add partial-inlining options (PR #129024)

2025-02-27 Thread via cfe-commits
https://github.com/Jolyon0202 created https://github.com/llvm/llvm-project/pull/129024 Adaptation of adding -fpartial-inlining and -fno-partial-inlining options with GCC. >From 05be466a13c1fbfd211505c62e00b6c85ed4f2c9 Mon Sep 17 00:00:00 2001 From: Jolyon Date: Thu, 27 Feb 2025 12:51:14 +0800

[clang] [clang] Add partial-inlining options (PR #73210)

2025-02-27 Thread via cfe-commits
Jolyon0202 wrote: > @Jolyon0202 Your patch looks valid at first glance, but there is a merge > conflict. Could you resolve that please? Thx, I update a new merge request #129024 and close this old mr. https://github.com/llvm/llvm-project/pull/73210

[clang] [ARM] make -mtp=TPIDRURO the default if the target architecture support a hardware thread pointer (PR #128901)

2025-02-27 Thread Peter Smith via cfe-commits
https://github.com/smithp35 commented: I assume this is a rewrite of https://github.com/llvm/llvm-project/pull/128728 It looks like we've lost an explicit ``-mtp=auto``. I think that part is important, my apologies if my earlier comment implied that we should remove it. I've made a suggestion

[clang] [Driver] Teach Barmetal toolchain about GCC installation(1/3) (PR #121829)

2025-02-27 Thread Petr Hosek via cfe-commits
@@ -110,20 +111,93 @@ static std::string computeBaseSysRoot(const Driver &D, bool IncludeTriple) { return std::string(SysRootDir); } +// GCC sysroot here means form sysroot from either --gcc-install-dir, or from +// --gcc-toolchain or if the toolchain is installed alongside

[clang] [ARM] make -mtp=TPIDRURO the default if the target architecture support a hardware thread pointer (PR #128901)

2025-02-27 Thread Peter Smith via cfe-commits
@@ -239,7 +239,7 @@ arm::ReadTPMode arm::getReadTPMode(const Driver &D, const ArgList &Args, D.Diag(diag::err_drv_invalid_mtp) << A->getAsString(Args); return ReadTPMode::Invalid; } - return ReadTPMode::Soft; + return (isHardTPSupported(Triple) ? ReadTPMode::TPID

[clang] [ARM] make -mtp=TPIDRURO the default if the target architecture support a hardware thread pointer (PR #128901)

2025-02-27 Thread Peter Smith via cfe-commits
@@ -42,4 +42,4 @@ // RUN: %clang --target=armv7-linux -### -S %s 2>&1 | \ // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_NON %s -// ARMv7_THREAD_POINTER_NON-NOT: "-target-feature" "+read-tp-tpidruro" +// ARMv7_THREAD_POINTER_NON: "-target-feature" "+read-tp-tpidruro" ---

[clang] [ARM] make -mtp=TPIDRURO the default if the target architecture support a hardware thread pointer (PR #128901)

2025-02-27 Thread Peter Smith via cfe-commits
https://github.com/smithp35 edited https://github.com/llvm/llvm-project/pull/128901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Mark union member destructors referenced (PR #128866)

2025-02-27 Thread Maurice Heumann via cfe-commits
https://github.com/momo5502 updated https://github.com/llvm/llvm-project/pull/128866 >From 5e5184ae2c4fddc1bef3f090748516cf5dc315ec Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Wed, 26 Feb 2025 14:31:47 +0100 Subject: [PATCH] Instantiate initialized field destructors --- clang/include

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-27 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/113133 >From 34654e8872814090664dd5ac476e801d83fa6cfc Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Mon, 21 Oct 2024 15:18:38 +0800 Subject: [PATCH 1/7] Clang: emit llvm.minnum and llvm.maxnum with nsz always See:

[clang] WIP: Improve the -Wundefined-func-template diagnostic note for invisible template functions (PR #129031)

2025-02-27 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/129031 See discussion in https://github.com/llvm/llvm-project/issues/125071. >From ccd5da1bdc4c80bd3461458fc1f4360d766fb6e2 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 27 Feb 2025 11:15:09 +0100 Subject: [PATC

[clang] [clang] Fix issues with #embed and intializer lists/template arguments (PR #128890)

2025-02-27 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/128890 >From 90977892092a206e120cdfea2960d2fb7929ef44 Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Thu, 20 Feb 2025 03:43:23 -0800 Subject: [PATCH 1/2] [clang] Fix issues with #embed and intializer

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-27 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa converted_to_draft https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)

2025-02-27 Thread YunQiang Su via cfe-commits
wzssyqa wrote: nsz is missing for `__builtin_elementwise_min`. I am working on it. https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] WIP: Improve the -Wundefined-func-template diagnostic note for invisible template functions (PR #129031)

2025-02-27 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 262e4c19878175780c88da867e88fc4e202d4788 ccd5da1bdc4c80bd3461458fc1f4360d766fb6e2 --e

[libclc] [libclc] Move rsqrt to the CLC library (PR #129045)

2025-02-27 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/129045 >From 4efd607ca71b91847c9271740df7aab4534fe01b Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Thu, 27 Feb 2025 12:48:25 + Subject: [PATCH 1/3] [libclc] Move rsqrt to the CLC library This also adds

[clang] [HLSL] error on out of bounds vector accesses (PR #128952)

2025-02-27 Thread Chris B via cfe-commits
@@ -14017,6 +14017,24 @@ void Sema::CheckCastAlign(Expr *Op, QualType T, SourceRange TRange) { << TRange << Op->getSourceRange(); } +void Sema::CheckVectorAccess(const Expr *BaseExpr, const Expr *IndexExpr) { + const VectorType *VTy = BaseExpr->getType()->getAs(); + if

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/114841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] error on out of bounds vector accesses (PR #128952)

2025-02-27 Thread Chris B via cfe-commits
@@ -10635,6 +10635,12 @@ def err_block_on_vm : Error< def err_sizeless_nonlocal : Error< "non-local variable with sizeless type %0">; +def err_vector_index_out_of_range : Error< + "vector element index %0 is out of bounds">; +def warn_vector_index_out_of_range : Warning< +

[libclc] [libclc] Move rsqrt to the CLC library (PR #129045)

2025-02-27 Thread Fraser Cormack via cfe-commits
@@ -0,0 +1,4 @@ +__attribute__((weak)) _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE +__clc_rsqrt(__CLC_GENTYPE val) { + return __CLC_FP_LIT(1.0) / __clc_sqrt(val); frasercrmck wrote: Good point. Perhaps we just use the elementwise sqrt builtin. I'm not sure I want to t

[clang] cad1de5 - [NFC][analyzer] Fix header comment in CreateCheckerManager.cpp (#129055)

2025-02-27 Thread via cfe-commits
Author: Donát Nagy Date: 2025-02-27T15:12:10+01:00 New Revision: cad1de50ba06db8288da0e20c9aeffed328b8fce URL: https://github.com/llvm/llvm-project/commit/cad1de50ba06db8288da0e20c9aeffed328b8fce DIFF: https://github.com/llvm/llvm-project/commit/cad1de50ba06db8288da0e20c9aeffed328b8fce.diff LO

[clang] [NFC][analyzer] Fix header comment in CreateCheckerManager.cpp (PR #129055)

2025-02-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/12094 Here is the relevant piece of the build lo

[clang-tools-extra] [clang-tidy] Fix invalid fixit from modernize-use-ranges for nullptr used with std::unique_ptr (PR #127162)

2025-02-27 Thread via cfe-commits
Andrewyuan34 wrote: > ping me if you want to merge it. sorry about forgetting to use git-clang-format to check the differences. Now it should work. https://github.com/llvm/llvm-project/pull/127162 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [NFC][analyzer] Fix header comment in CreateCheckerManager.cpp (PR #129055)

2025-02-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/129055 ___ 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 a release note about unchecked-optional-access smart pointer caching (PR #122290)

2025-02-27 Thread Jan Voung via cfe-commits
https://github.com/jvoung updated https://github.com/llvm/llvm-project/pull/122290 >From 342ff1a05caa6943fe8a86415f30b433ac30106f Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Thu, 9 Jan 2025 14:10:30 + Subject: [PATCH 1/6] [clang-tidy] Add a release note about unchecked-optional-access s

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-02-27 Thread Ilya Biryukov via cfe-commits
@@ -2551,18 +2551,7 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, // Make the old tag definition visible. makeMergedDefinitionVisible(Hidden); - // If this was an unscoped enumeration, yank all of its enumerators - // out of the scop

[clang] [HLSL] error on out of bounds vector accesses (PR #128952)

2025-02-27 Thread Sven van Haastregt via cfe-commits
@@ -14017,6 +14017,24 @@ void Sema::CheckCastAlign(Expr *Op, QualType T, SourceRange TRange) { << TRange << Op->getSourceRange(); } +void Sema::CheckVectorAccess(const Expr *BaseExpr, const Expr *IndexExpr) { + const VectorType *VTy = BaseExpr->getType()->getAs(); + if

[clang] [NFC][analyzer] Fix header comment in CreateCheckerManager.cpp (PR #129055)

2025-02-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: The failure is caused by `tools/lldb-dap/restart/TestDAP_restart.py` which is completely unrelated to my commit. https://github.com/llvm/llvm-project/pull/129055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[libclc] [libclc] Move rsqrt to the CLC library (PR #129045)

2025-02-27 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/129045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [Clang] Default the warning for chained comparison to an error. (PR #128145)

2025-02-27 Thread via cfe-commits
earnol wrote: I do not think `bugprone-chained-comparison` can be removed at this point. Please look into example line 11: https://godbolt.org/z/TTxrb1WcG. Please notice that not all issues highlighted by `bugprone-chained-comparison` are detected by `warn_consecutive_comparision`. Thus i beli

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-02-27 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/114240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Find better insertion locations in DefineOutline tweak (PR #128164)

2025-02-27 Thread Christian Kandeler via cfe-commits
https://github.com/ckandeler updated https://github.com/llvm/llvm-project/pull/128164 >From cca5b5a1d7f50ea7923fdc1ba63764c0b787ef8d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 25 Nov 2024 17:39:21 +0100 Subject: [PATCH] [clangd] Find better insertion locations in DefineOutline

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-27 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu closed https://github.com/llvm/llvm-project/pull/114841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] eeb672a - [clang-tidy] Add a release note about unchecked-optional-access smart pointer caching (#122290)

2025-02-27 Thread via cfe-commits
Author: Jan Voung Date: 2025-02-27T10:35:24-05:00 New Revision: eeb672a47c59b1d94ea3198d7427314ebbd80777 URL: https://github.com/llvm/llvm-project/commit/eeb672a47c59b1d94ea3198d7427314ebbd80777 DIFF: https://github.com/llvm/llvm-project/commit/eeb672a47c59b1d94ea3198d7427314ebbd80777.diff LOG

[clang-tools-extra] [clang-tidy] Add a release note about unchecked-optional-access smart pointer caching (PR #122290)

2025-02-27 Thread Jan Voung via cfe-commits
https://github.com/jvoung closed https://github.com/llvm/llvm-project/pull/122290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] error on out of bounds vector accesses (PR #128952)

2025-02-27 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/128952 >From 656d6e87466bfc85246f7abaedfe6549e566717b Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Wed, 26 Feb 2025 14:37:06 -0800 Subject: [PATCH 1/3] error on out of bounds vector accesses --- .../clang/Basic/Dia

[libclc] 1357279 - [libclc] Move rsqrt to the CLC library (#129045)

2025-02-27 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-02-27T15:46:58Z New Revision: 1357279df9d255ac60cec0dd755349a12083c8b0 URL: https://github.com/llvm/llvm-project/commit/1357279df9d255ac60cec0dd755349a12083c8b0 DIFF: https://github.com/llvm/llvm-project/commit/1357279df9d255ac60cec0dd755349a12083c8b0.diff LOG

[libclc] [libclc] Move rsqrt to the CLC library (PR #129045)

2025-02-27 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/129045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] [dataflow] Cache reference accessors for `bugprone-unchecked-optional-access` (PR #128437)

2025-02-27 Thread Jan Voung via cfe-commits
jvoung wrote: > Addressed all comments. Thanks for the initial feedback! > > Regarding documentation: looks like we need to merge #122290 first and then > update docs in my PR Thanks for the reminder about #122290 ! Got back to that and merged. Can you update? It looked like the latest releas

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/129072 This change implements variable linkage types in ClangIR except for common linkage which requires Comdat support. >From b9453787a96008cfe347c2ae2d027d5de12871ae Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: T

[clang] [llvm] [Clang][LLVM] Implement single-multi vectors MOP4{A/S} (PR #128854)

2025-02-27 Thread Jonathan Thackray via cfe-commits
@@ -3064,6 +3064,76 @@ let TargetPrefix = "aarch64" in { def int_aarch64_sme_usmopa_wide : SME_OuterProduct_Intrinsic; def int_aarch64_sme_usmops_wide : SME_OuterProduct_Intrinsic; + class SME_OuterProduct_QuaterTile_Single jthackray wrote: nit: I think

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes This change implements variable linkage types in ClangIR except for common linkage which requires Comdat support. --- Patch is 37.19 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/l

[clang] [HLSL] Add HLSLResourceBindingAttr to default constant buffer numeric declarations ($Globals) (PR #128981)

2025-02-27 Thread Sarah Spall via cfe-commits
https://github.com/spall commented: Code LGTM, but I don't know enough to say if the tests look right. https://github.com/llvm/llvm-project/pull/128981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread Erich Keane via cfe-commits
@@ -0,0 +1,119 @@ +//===- CIROpsEnumsDialect.h - MLIR Dialect for CIR --*- C++ erichkeane wrote: This comment doesn't match the file name. https://github.com/llvm/llvm-project/pull/129072 ___ cfe-co

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Only nits from me. I'll add other reviewers however. https://github.com/llvm/llvm-project/pull/129072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/129072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread Erich Keane via cfe-commits
@@ -0,0 +1,29 @@ +//===- CIROpInterfaces.h - CIR Op Interfaces *- 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] [HLSL] Add HLSLResourceBindingAttr to default constant buffer numeric declarations ($Globals) (PR #128981)

2025-02-27 Thread Sarah Spall via cfe-commits
@@ -1,41 +1,56 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -ast-dump -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -finclude-default-header -ast-dump -o - %s | FileCheck %s -// CHECK:HLSLBufferDecl 0x[[CB:[0-9a-f]+]

[clang] 79a28aa - [clang] Ignore GCC 11 [[malloc(x)]] attribute

2025-02-27 Thread via cfe-commits
Author: Alois Klink Date: 2025-02-27T08:06:58-08:00 New Revision: 79a28aa0a48feba34ddc3c1791ea0be88f354542 URL: https://github.com/llvm/llvm-project/commit/79a28aa0a48feba34ddc3c1791ea0be88f354542 DIFF: https://github.com/llvm/llvm-project/commit/79a28aa0a48feba34ddc3c1791ea0be88f354542.diff L

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-02-27 Thread Ilya Biryukov via cfe-commits
@@ -2551,18 +2551,7 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, // Make the old tag definition visible. makeMergedDefinitionVisible(Hidden); - // If this was an unscoped enumeration, yank all of its enumerators - // out of the scop

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 Thread Erich Keane via cfe-commits
@@ -0,0 +1,119 @@ +//===- CIROpsEnumsDialect.h - MLIR Dialect for CIR --*- 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-Iden

[clang] [CIR] Upstream global variable linkage types (PR #129072)

2025-02-27 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] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

2025-02-27 Thread Erich Keane via cfe-commits
erichkeane wrote: Closing, as I separately submitted this with my changes here: [79a28aa](https://github.com/llvm/llvm-project/commit/79a28aa0a48feba34ddc3c1791ea0be88f354542) Note original author should be in tact. Thank you for your contribution! https://github.com/llvm/llvm-project/pull/68

[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

2025-02-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/68059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-02-27 Thread Michael Jabbour via cfe-commits
@@ -2551,18 +2551,7 @@ void Sema::MergeTypedefNameDecl(Scope *S, TypedefNameDecl *New, // Make the old tag definition visible. makeMergedDefinitionVisible(Hidden); - // If this was an unscoped enumeration, yank all of its enumerators - // out of the scop

[clang] [CUDA][HIP] fix virtual dtor host/device attr (PR #128926)

2025-02-27 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > Would it make sense to separate into separate patches deferred diag fix > (1a/1b on your list) from inference of destructor attributes? > > Deferred diags fix is straightforward, but destructor attribute inference may > need a longer discussion. will separate the deferred di

[clang] [clang] Fix ASTWriter crash after merging named enums (PR #114240)

2025-02-27 Thread Michael Jabbour via cfe-commits
https://github.com/michael-jabbour-sonarsource edited https://github.com/llvm/llvm-project/pull/114240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add HLSLResourceBindingAttr to default constant buffer numeric declarations ($Globals) (PR #128981)

2025-02-27 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/128981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Generate __clang_call_terminate for Emscripten EH (PR #129020)

2025-02-27 Thread Derek Schuff via cfe-commits
@@ -5150,9 +5150,14 @@ WebAssemblyCXXABI::emitTerminateForUnexpectedException(CodeGenFunction &CGF, // Itanium ABI calls __clang_call_terminate(), which __cxa_begin_catch() on // the violating exception to mark it handled, but it is currently hard to do // with wasm EH i

[clang] [WebAssembly] Generate __clang_call_terminate for Emscripten EH (PR #129020)

2025-02-27 Thread Derek Schuff via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 %s -triple wasm32-unknown-unknown -fexceptions -fcxx-exceptions -emit-llvm -o - -std=c++11 2>&1 | FileCheck %s dschuff wrote: should this triple be wasm32-unknown-emscripten? Or do we use em-exceptions by default on all wasm

[clang] [WebAssembly] Generate __clang_call_terminate for Emscripten EH (PR #129020)

2025-02-27 Thread Derek Schuff via cfe-commits
@@ -5150,9 +5150,14 @@ WebAssemblyCXXABI::emitTerminateForUnexpectedException(CodeGenFunction &CGF, // Itanium ABI calls __clang_call_terminate(), which __cxa_begin_catch() on // the violating exception to mark it handled, but it is currently hard to do // with wasm EH i

[clang] [llvm] Add support for template as type parameter (PR #127654)

2025-02-27 Thread via cfe-commits
https://github.com/ykhatav updated https://github.com/llvm/llvm-project/pull/127654 >From 2714184615ef06027941c7bccee3a2453d76c24b Mon Sep 17 00:00:00 2001 From: "Khatavkar, Yashasvi" Date: Tue, 18 Feb 2025 06:44:49 -0800 Subject: [PATCH 1/5] Support template as type --- clang/include/clang/B

<    1   2   3   4