[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/119082 >From 2af0eb663a106b712a3c9eb2028dc35014884708 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 8 Dec 2024 01:11:51 +0800 Subject: [PATCH 1/2] constexpr elementwise add_sat --- clang/docs/LanguageExtensions.rst

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
@@ -414,6 +414,7 @@ Non-comprehensive list of changes in this release - ``__builtin_reduce_or`` and ``__builtin_reduce_xor`` functions can now be used in constant expressions. - ``__builtin_elementwise_popcount`` function can now be used in constant expressions. - ``__builtin

[clang] [clang] Fix cast for injected types in case name lookup for dependent bases (PR #119024)

2024-12-08 Thread Vladislav Belov via cfe-commits
https://github.com/vbe-sc updated https://github.com/llvm/llvm-project/pull/119024 >From ce758d5e8cf958edbfffeee8fe4c978011554b53 Mon Sep 17 00:00:00 2001 From: vb-sc Date: Fri, 6 Dec 2024 23:06:01 +0300 Subject: [PATCH] [clang][NFC] Fix cast for injected types in case name lookup for dependen

[clang] [clang] Fix cast for injected types in case name lookup for dependent bases (PR #119024)

2024-12-08 Thread Vladislav Belov via cfe-commits
@@ -368,8 +368,8 @@ bool CXXRecordDecl::FindBaseClass(const CXXBaseSpecifier *Specifier, const CXXRecordDecl *BaseRecord) { assert(BaseRecord->getCanonicalDecl() == BaseRecord && "User data for FindBaseClass is not canonical!"); -

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes Closes #119072 --- Full diff: https://github.com/llvm/llvm-project/pull/119123.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+1) - (modified) clang/lib/Parse/ParseExpr.cpp (+1-1) - (mo

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 ready_for_review https://github.com/llvm/llvm-project/pull/119123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread via cfe-commits
https://github.com/cor3ntin commented: the commit message could use more details, otherwise LGTM. Thanks for fixing that https://github.com/llvm/llvm-project/pull/119123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/119123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix cast for injected types in case name lookup for dependent bases (PR #119024)

2024-12-08 Thread Vladislav Belov via cfe-commits
vbe-sc wrote: > Can you confirm this is a fix for #118003 ? In which case we do not need > changelog entry Yes, you are right https://github.com/llvm/llvm-project/pull/119024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
@@ -11339,6 +11339,31 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + case Builtin::BI__builtin_elementwise_add_sat: { +APValue SourceLHS, SourceRHS; +if (!EvaluateAsR

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/119123 Closes #119072 >From 7ea2b4c5a9042aeb77982e3f5bb03af36de23c96 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sun, 8 Dec 2024 18:17:46 +0800 Subject: [PATCH] [Clang] Recurse into parsing when using pack-index

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread Simon Pilgrim via cfe-commits
@@ -11339,6 +11339,31 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + case Builtin::BI__builtin_elementwise_add_sat: { +APValue SourceLHS, SourceRHS; +if (!EvaluateAsR

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/119082 >From 2af0eb663a106b712a3c9eb2028dc35014884708 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 8 Dec 2024 01:11:51 +0800 Subject: [PATCH 1/3] constexpr elementwise add_sat --- clang/docs/LanguageExtensions.rst

[clang] eeadd01 - [clang-format] Also check ClangFormat.rst is up to date in docs_updated.test

2024-12-08 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2024-12-08T01:15:45-08:00 New Revision: eeadd0128df848eb858ae718984a13fa2c923775 URL: https://github.com/llvm/llvm-project/commit/eeadd0128df848eb858ae718984a13fa2c923775 DIFF: https://github.com/llvm/llvm-project/commit/eeadd0128df848eb858ae718984a13fa2c923775.diff LOG:

[clang-tools-extra] fix parse windows driver and wsl path (PR #119085)

2024-12-08 Thread via cfe-commits
https://github.com/95833 closed https://github.com/llvm/llvm-project/pull/119085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-12-08 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/115487 >From 5e24d212f797b5fa1b6da1526c807046373d3c21 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Fri, 8 Nov 2024 16:13:17 +0200 Subject: [PATCH 1/6] [Clang] skip default argument instantiation for non-definin

[clang] [clang-tools-extra] [clang] Compute accurate begin location for CallExpr with explicit object parameter (PR #117841)

2024-12-08 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > I didn't check if any tests fail but here's a version where `CallExpr` saves > its `BeginLoc` explicitly: > http://llvm-compile-time-tracker.com/compare.php?from=416e4cd332c7421b187844ac9aaf6fe28b575a7d&to=0b6e36fe460409aa59958b79766b4f64a31c97e6&stat=instructions:u Yea

[clang] [clang][bytecode] Pass (float) BitWidth to DoBitCast (PR #119119)

2024-12-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/119119 >From efb64b914ab2c3cb5c40f1cdf93c34f7c976a554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 8 Dec 2024 08:00:14 +0100 Subject: [PATCH] [clang][bytecode] Pass (float) BitWidth to DoBit

[libunwind] [libunwind][Haiku] Improve support (PR #115462)

2024-12-08 Thread Brad Smith via cfe-commits
=?utf-8?q?J=C3=A9r=C3=B4me?= Duval , =?utf-8?q?J=C3=A9r=C3=B4me?= Duval Message-ID: In-Reply-To: brad0 wrote: @X547 Please look at adding the RISCV64 support. https://github.com/llvm/llvm-project/pull/115462 ___ cfe-commits mailing list cfe-commits@

[clang] [clang][bytecode] Pass (float) BitWidth to DoBitCast (PR #119119)

2024-12-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/119119 >From 3f041d0338c51d3c279f004220b575c913dd1442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 8 Dec 2024 08:00:14 +0100 Subject: [PATCH] [clang][bytecode] Pass (float) BitWidth to DoBit

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
@@ -414,6 +414,7 @@ Non-comprehensive list of changes in this release - ``__builtin_reduce_or`` and ``__builtin_reduce_xor`` functions can now be used in constant expressions. - ``__builtin_elementwise_popcount`` function can now be used in constant expressions. - ``__builtin

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
@@ -11339,6 +11339,31 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + case Builtin::BI__builtin_elementwise_add_sat: { +APValue SourceLHS, SourceRHS; +if (!EvaluateAsR

[clang] [clang][bytecode] Pass (float) BitWidth to DoBitCast (PR #119119)

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

[clang] 1fbbf4c - [clang][bytecode] Pass (float) BitWidth to DoBitCast (#119119)

2024-12-08 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-08T18:54:08+01:00 New Revision: 1fbbf4c418bc4945839a70fe2849cbe6fbcc3d66 URL: https://github.com/llvm/llvm-project/commit/1fbbf4c418bc4945839a70fe2849cbe6fbcc3d66 DIFF: https://github.com/llvm/llvm-project/commit/1fbbf4c418bc4945839a70fe2849cbe6fbcc3d66.diff L

[clang] [Clang] Change placeholders from `undef` to `poison` (PR #119141)

2024-12-08 Thread Pedro Lobo via cfe-commits
https://github.com/pedroclobo created https://github.com/llvm/llvm-project/pull/119141 - Use `poison `instead of `undef` as a phi operand from an unreachable block. - Call `@llvm.vector.insert` with a `poison` subvec when performing a `bitcast` from a fixed vector to a scalable vector. >From c

[clang] [Clang] Change placeholders from `undef` to `poison` (PR #119141)

2024-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Pedro Lobo (pedroclobo) Changes - Use `poison `instead of `undef` as a phi operand from an unreachable block. - Call `@llvm.vector.insert` with a `poison` subvec when performing a `bitcast` from a fixed vector to a scalable vector. --- P

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

2024-12-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/118734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs] Add a more detailed description in CXString.h. (PR #119090)

2024-12-08 Thread Saleem Abdulrasool via cfe-commits
@@ -46,6 +46,9 @@ typedef struct { /** * Retrieve the character data associated with the given string. + * + * The caller shouldn't free the returned string data, and the returned string + * data shouldn't be accessed after the \c CXString disposed. compnerd

[clang] [docs] Add a more detailed description in CXString.h. (PR #119090)

2024-12-08 Thread Saleem Abdulrasool via cfe-commits
https://github.com/compnerd edited https://github.com/llvm/llvm-project/pull/119090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. Confirmed that this works on GCC now. I'd suggest to replace the use of StringLiteral::size with plain sizeof(). The build time overhead of going through StringLiteral here is substantial. https://github.com/llvm/llvm-project/pull/118734 ___

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

2024-12-08 Thread Nikita Popov via cfe-commits
@@ -68,23 +69,156 @@ enum ID { FirstTSBuiltin }; +// The info used to represent each builtin. struct Info { - llvm::StringLiteral Name; - const char *Type, *Attributes; - const char *Features; + // Rather than store pointers to the string literals describing these four

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

2024-12-08 Thread Nikita Popov via cfe-commits
@@ -68,23 +69,156 @@ enum ID { FirstTSBuiltin }; +// The info used to represent each builtin. struct Info { - llvm::StringLiteral Name; - const char *Type, *Attributes; - const char *Features; + // Rather than store pointers to the string literals describing these four

[clang] Fix lld link issue for OHOS (PR #118192)

2024-12-08 Thread Peng Huang via cfe-commits
phuang wrote: Thanks for reviewing it. https://github.com/llvm/llvm-project/pull/118192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b0f0676 - [AArch64] Implement intrinsics for SME FP8 F1CVT/F2CVT and BF1CVT/BF2CVT (#118027)

2024-12-08 Thread via cfe-commits
Author: SpencerAbson Date: 2024-12-08T19:34:01Z New Revision: b0f06769e6e2ea2bc4ce3554ebf66384a1236106 URL: https://github.com/llvm/llvm-project/commit/b0f06769e6e2ea2bc4ce3554ebf66384a1236106 DIFF: https://github.com/llvm/llvm-project/commit/b0f06769e6e2ea2bc4ce3554ebf66384a1236106.diff LOG:

[clang] [llvm] [AArch64] Implement intrinsics for SME FP8 F1CVT/F2CVT and BF1CVT/BF2CVT (PR #118027)

2024-12-08 Thread via cfe-commits
https://github.com/SpencerAbson closed https://github.com/llvm/llvm-project/pull/118027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement intrinsics for SME FP8 FMOPA (PR #118115)

2024-12-08 Thread via cfe-commits
https://github.com/SpencerAbson updated https://github.com/llvm/llvm-project/pull/118115 >From e1181dd6dab09b20be8077d1f4e70ef4da7ab437 Mon Sep 17 00:00:00 2001 From: Spencer Abson Date: Mon, 25 Nov 2024 21:47:20 + Subject: [PATCH 1/2] [AArch64] Implement intrinsics for SME FP8 FMOPA ---

[clang] Resolving issue #119101 (PR #119143)

2024-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rounaq Khan (rkmaxhero) Changes CLANG parser previously allowed for invalid C/C++ auto classes declaration due to a lack of logic addressing this case. Logic comparing with a valid case was added to the ParseDeclarationOrFunctionDefinitio

[clang] Resolving issue #119101 (PR #119143)

2024-12-08 Thread Rounaq Khan via cfe-commits
https://github.com/rkmaxhero created https://github.com/llvm/llvm-project/pull/119143 CLANG parser previously allowed for invalid C/C++ auto classes declaration due to a lack of logic addressing this case. Logic comparing with a valid case was added to the ParseDeclarationOrFunctionDefinition(

[clang] Resolving issue #119101 (PR #119143)

2024-12-08 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] Fix lld link issue for OHOS (PR #118192)

2024-12-08 Thread Pavel Kosov via cfe-commits
kpdev wrote: LGTM https://github.com/llvm/llvm-project/pull/118192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Resolving issue #119101 (PR #119143)

2024-12-08 Thread Richard Smith via cfe-commits
zygoloid wrote: Did you mean a different issue than #119101? It's not clear to me what connection this PR has to that issue. It's not clear to me that there's an issue to be solved here. Under `-pedantic-errors`, clang [already produces an error](https://godbolt.org/z/h6oKarex9) on examples l

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Shilei Tian via cfe-commits
shiltian wrote: > The IR is a representation of what goes on a final .o. It is not really > intended to enable new features or make the program portable. My .02 is, it depends on how to think about it. If we eliminate the "unwanted" part (especially those that could potentially affect ABI) at

[clang] [clang] constexpr built-in elementwise add_sat/sub_sat functions. (PR #119082)

2024-12-08 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. I am happy if @RKSimon is https://github.com/llvm/llvm-project/pull/119082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement intrinsics for SME FP8 FMLAL/FMLALL (Indexed) (PR #118549)

2024-12-08 Thread via cfe-commits
https://github.com/SpencerAbson updated https://github.com/llvm/llvm-project/pull/118549 >From 298e1372cb8e6b2f7707f42448521d3014bc Mon Sep 17 00:00:00 2001 From: Spencer Abson Date: Mon, 25 Nov 2024 21:47:20 + Subject: [PATCH 1/3] [AArch64] Implement intrinsics for SME FP8 FMOPA ---

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Does wave32/wave64 affect the lowering from front end source code to middle > end IR, if we don't use certain functions, such as wave level primitives? Yes. This is a fixed ABI setting that can change the binary function signature (which then has knock on optimization effects).

[clang] [Clang] allow [[msvc::constexpr]] usage outside the std namespace (PR #119153)

2024-12-08 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/119153 Fixes #74924 >From f19ea82bbe5c00af6a6e261f989c9a89ef4c78ca Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 9 Dec 2024 01:46:46 +0200 Subject: [PATCH] [Clang] allow [[msvc::constexpr]] usage outside th

[clang] [Clang] allow [[msvc::constexpr]] usage outside the std namespace (PR #119153)

2024-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #74924 --- Full diff: https://github.com/llvm/llvm-project/pull/119153.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/lib/AST/ExprConstant.cpp (+3-1) - (

[clang] 8843d2b - [rtsan] Add `verify_interceptors` flag to docs (#119074)

2024-12-08 Thread via cfe-commits
Author: Chris Apple Date: 2024-12-08T09:34:40-08:00 New Revision: 8843d2b4695419caa774b40582146446f350a504 URL: https://github.com/llvm/llvm-project/commit/8843d2b4695419caa774b40582146446f350a504 DIFF: https://github.com/llvm/llvm-project/commit/8843d2b4695419caa774b40582146446f350a504.diff L

[clang] [rtsan] Add `verify_interceptors` flag to docs (PR #119074)

2024-12-08 Thread Chris Apple via cfe-commits
https://github.com/cjappl closed https://github.com/llvm/llvm-project/pull/119074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-08 Thread via cfe-commits
Author: Chandler Carruth Date: 2024-12-08T19:00:14-08:00 New Revision: be2df95e9281985b61270bb6420ea0eeeffbbe59 URL: https://github.com/llvm/llvm-project/commit/be2df95e9281985b61270bb6420ea0eeeffbbe59 DIFF: https://github.com/llvm/llvm-project/commit/be2df95e9281985b61270bb6420ea0eeeffbbe59.di

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

2024-12-08 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc closed https://github.com/llvm/llvm-project/pull/118734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs] Add a more detailed description in CXString.h. (PR #119090)

2024-12-08 Thread via cfe-commits
@@ -46,6 +46,9 @@ typedef struct { /** * Retrieve the character data associated with the given string. + * + * The caller shouldn't free the returned string data, and the returned string + * data shouldn't be accessed after the \c CXString disposed. iseki0 wr

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

2024-12-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/9169 Here is the

[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)

2024-12-08 Thread Vitaly Buka via cfe-commits
@@ -1410,7 +1410,7 @@ void tools::linkSanitizerRuntimeDeps(const ToolChain &TC, // libresolv.a, even if exists, is an empty archive to satisfy POSIX -lresolv // requirement. if (TC.getTriple().isOSLinux() && !TC.getTriple().isAndroid() && - !TC.getTriple().isMusl())

[clang-tools-extra] [clangd] Do not show `aParam` parameter hint for argument spelled `param` (PR #119162)

2024-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/119162 Fixes https://github.com/clangd/clangd/issues/2248 >From c207c5d0d651b564acec0a0b6ef257fb89752ba0 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 21 Oct 2024 02:34:15 -0400 Subject: [PATCH] [clang

[clang-tools-extra] [clangd] Do not show `aParam` parameter hint for argument spelled `param` (PR #119162)

2024-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/clangd/clangd/issues/2248 --- Full diff: https://github.com/llvm/llvm-project/pull/119162.diff 2 Files Affected: - (modified) clang-tools-extra/clangd/InlayHints.cpp (+16-1

[clang-tools-extra] [clangd] Do not show `aParam` parameter hint for argument spelled `param` (PR #119162)

2024-12-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/clangd/clangd/issues/2248 --- Full diff: https://github.com/llvm/llvm-project/pull/119162.diff 2 Files Affected: - (modified) clang-tools-extra/clangd/InlayHints

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

2024-12-08 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > LLVM Buildbot has detected a new failure on builder > `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building > `clang` at step 7 "test-build-unified-tree-check-all". > > Full details are available at: > [lab.llvm.org/buildbot#/builders/46/builds/9169](https:

[clang] [compiler-rt] Move interceptors for libresolv functions to MSan (PR #119071)

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

[clang] [clang] constexpr built-in elementwise add_sat/sub_sat functions. (PR #119082)

2024-12-08 Thread via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/119082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Consider expression statements in ExtractVariable tweak (PR #112525)

2024-12-08 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @ckandeler Could you elaborate on the motivation for this change? In my mind, the value proposition of the "extract variable" refactoring is that it saves you the work of moving the expression from one location to another, and typing the name of the variable twice (once a

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/119123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Recurse into parsing when using pack-indexing as a specifier (PR #119123)

2024-12-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/119123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clangd][clang-tidy] Make clangd run `format::cleanupAroundReplacements()` for all code actions just as clang-tidy does (PR #118569)

2024-12-08 Thread Richard Li via cfe-commits
https://github.com/chomosuke updated https://github.com/llvm/llvm-project/pull/118569 >From efc17a803c9c22543de7d5f9e960a7267ade1f2e Mon Sep 17 00:00:00 2001 From: chomosuke Date: Wed, 4 Dec 2024 14:42:24 + Subject: [PATCH 1/2] [clangd][clang-tidy] Make clangd run `format::cleanupAroundRep

[clang] a4506bb - [Clang] Recurse into parsing when using pack-indexing as a specifier (#119123)

2024-12-08 Thread via cfe-commits
Author: Younan Zhang Date: 2024-12-09T09:58:37+08:00 New Revision: a4506bb340c36d48d89afe5bd76a1a2f28f76fd9 URL: https://github.com/llvm/llvm-project/commit/a4506bb340c36d48d89afe5bd76a1a2f28f76fd9 DIFF: https://github.com/llvm/llvm-project/commit/a4506bb340c36d48d89afe5bd76a1a2f28f76fd9.diff

[clang] Reland [Clang] skip default argument instantiation for non-defining friend declarations to meet [dcl.fct.default] p4 (PR #115487)

2024-12-08 Thread Oleksandr T. via cfe-commits
@@ -4692,6 +4692,17 @@ bool Sema::InstantiateDefaultArgument(SourceLocation CallLoc, FunctionDecl *FD, ParmVarDecl *Param) { assert(Param->hasUninstantiatedDefaultArg()); + // FIXME: We don't track member specialization info for non-de

[clang] [llvm] [AArch64] Add initial support for FUJITSU-MONAKA (PR #118432)

2024-12-08 Thread Yuta Mukai via cfe-commits
ytmukai wrote: Thank you for your reviews and help! Delayed due to holidays, but I will submit it. https://github.com/llvm/llvm-project/pull/118432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] a1197a2 - [AArch64] Add initial support for FUJITSU-MONAKA (#118432)

2024-12-08 Thread via cfe-commits
Author: Kinoshita Kotaro Date: 2024-12-09T09:56:02+09:00 New Revision: a1197a2ca8a77c08a36445401a063a1c4efec6a9 URL: https://github.com/llvm/llvm-project/commit/a1197a2ca8a77c08a36445401a063a1c4efec6a9 DIFF: https://github.com/llvm/llvm-project/commit/a1197a2ca8a77c08a36445401a063a1c4efec6a9.di

[clang] [llvm] [AArch64] Add initial support for FUJITSU-MONAKA (PR #118432)

2024-12-08 Thread Yuta Mukai via cfe-commits
https://github.com/ytmukai closed https://github.com/llvm/llvm-project/pull/118432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add initial support for FUJITSU-MONAKA (PR #118432)

2024-12-08 Thread via cfe-commits
github-actions[bot] wrote: @kinoshita-fj Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a b

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

2024-12-08 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc updated https://github.com/llvm/llvm-project/pull/118734 >From 9553557e87ec5d9ae5ce5636f6227150fcd080bc Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 28 Nov 2024 09:56:40 + Subject: [PATCH 1/6] Switch builtin strings to use string tables MIME-Versio

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

2024-12-08 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > Confirmed that this works on GCC now. I'd suggest to replace the use of > StringLiteral::size with plain sizeof(). The build time overhead of going > through StringLiteral here is substantial. Sure. I was initially worried about the subtlety of this use of `sizeof`, but tha

[clang] f145ff3 - [clang] constexpr built-in elementwise add_sat/sub_sat functions. (#119082)

2024-12-08 Thread via cfe-commits
Author: c8ef Date: 2024-12-09T09:28:12+08:00 New Revision: f145ff3f70d0c1a71d08613f692376003ab398b9 URL: https://github.com/llvm/llvm-project/commit/f145ff3f70d0c1a71d08613f692376003ab398b9 DIFF: https://github.com/llvm/llvm-project/commit/f145ff3f70d0c1a71d08613f692376003ab398b9.diff LOG: [cl

[clang] [Clang] Deleting an incomplete enum type is not an error (PR #119077)

2024-12-08 Thread Alexander Kornienko via cfe-commits
https://github.com/alexfh approved this pull request. Thanks for the fix! LGTM https://github.com/llvm/llvm-project/pull/119077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-08 Thread Brian Cain via cfe-commits
androm3da wrote: cc @llvm/pr-subscribers-backend-hexagon and @iajbar https://github.com/llvm/llvm-project/pull/118734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-08 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > > > > > LLVM Buildbot has detected a new failure on builder > > > > > `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while > > > > > building `clang` at step 7 "test-build-unified-tree-check-all". > > > > > Full details are available at: > > > > > [lab.llvm.org/buil

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

2024-12-08 Thread via cfe-commits
dyung wrote: > > LLVM Buildbot has detected a new failure on builder > > `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building > > `clang` at step 7 "test-build-unified-tree-check-all". > > Full details are available at: > > [lab.llvm.org/buildbot#/builders/46/builds/9169](htt

[clang] [clang][ARM] disable frame pointers by default for bare metal ARM targets (PR #117140)

2024-12-08 Thread Alex Bradbury via cfe-commits
asb wrote: I think this change in behaviour deserves an entry in clang/docs/ReleaseNotes.rst https://github.com/llvm/llvm-project/pull/117140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

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

2024-12-08 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > > > LLVM Buildbot has detected a new failure on builder > > > `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building > > > `clang` at step 7 "test-build-unified-tree-check-all". > > > Full details are available at: > > > [lab.llvm.org/buildbot#/builders/46/bu

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

2024-12-08 Thread via cfe-commits
dyung wrote: > > > > LLVM Buildbot has detected a new failure on builder > > > > `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building > > > > `clang` at step 7 "test-build-unified-tree-check-all". > > > > Full details are available at: > > > > [lab.llvm.org/buildbot#/builders

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

2024-12-08 Thread via cfe-commits
dyung wrote: > > > > > > LLVM Buildbot has detected a new failure on builder > > > > > > `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while > > > > > > building `clang` at step 7 "test-build-unified-tree-check-all". > > > > > > Full details are available at: > > > > > > [lab.llvm.or

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

2024-12-08 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > Could the version of VC that we are using possibly have the issue with long > strings that you mention? Is there a simple way to check that? It's a compile time error, so no, that'd be really clear cut. The only other thing I've seen is running out of heap, but that seems li

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2024-12-08 Thread via cfe-commits
https://github.com/leijurv updated https://github.com/llvm/llvm-project/pull/118046 >From 1caf823165b16f6701993d586df51d5cdbf0885e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 29 Nov 2024 21:54:36 -0600 Subject: [PATCH 1/3] [clang-format] Add BreakBeforeTemplateClose option --- clang/doc

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2024-12-08 Thread via cfe-commits
https://github.com/leijurv updated https://github.com/llvm/llvm-project/pull/118046 >From 1caf823165b16f6701993d586df51d5cdbf0885e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 29 Nov 2024 21:54:36 -0600 Subject: [PATCH 1/3] [clang-format] Add BreakBeforeTemplateClose option --- clang/doc

[clang] [clang] [Sema] Add assertion about expected type classes when building MemberPointerType (PR #119105)

2024-12-08 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: (This was meant as a follow-up to https://github.com/llvm/llvm-project/pull/118236 to add the assertion discussed in [this comment](https://github.com/llvm/llvm-project/pull/118236#discussion_r1865179512), but I'm not proceeding with it because the assertion is tripped i

[clang] [clang] [Sema] Add assertion about expected type classes when building MemberPointerType (PR #119105)

2024-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/119105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2024-12-08 Thread via cfe-commits
@@ -11077,6 +11077,157 @@ TEST_F(FormatTest, WrapsTemplateDeclarationsWithComments) { Style); } +TEST_F(FormatTest, BreakBeforeTemplateClose) { leijurv wrote: Good suggestion! I have added tests in this commit: https://github.com/llvm/llvm-project/pul

[clang] [clang-cl] [Sema] Support MSVC non-const lvalue to user-defined temporary reference (PR #99833)

2024-12-08 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/99833 >From c66fee7969fc4bd8b5ce79085f0fc09cbc4147da Mon Sep 17 00:00:00 2001 From: MaxEW707 Date: Fri, 21 Jun 2024 20:37:40 -0700 Subject: [PATCH 01/13] Support MSVC lvalue to temporary reference binding --- clang/

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

2024-12-08 Thread via cfe-commits
dyung wrote: I’m still looking into the failure, but may be a bit slow as the machine isn’t really setup for debugging, and I’m traveling today. https://github.com/llvm/llvm-project/pull/118734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] [clangd] Add clarifying comment about when Dex::IdxContents is populated (PR #118906)

2024-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/118906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add clarifying comment about when Dex::IdxContents is populated (PR #118906)

2024-12-08 Thread kadir çetinkaya via cfe-commits
@@ -121,6 +121,8 @@ class Dex : public SymbolIndex { llvm::DenseMap, std::vector> Relations; std::shared_ptr KeepAlive; // poor man's move-only std::any // Set of files which were used during this index build. + // Files and IdxContents are only populated for dynamic an

[clang-tools-extra] [clangd] Add clarifying comment about when Dex::IdxContents is populated (PR #118906)

2024-12-08 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. https://github.com/llvm/llvm-project/pull/118906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add clarifying comment about when Dex::IdxContents is populated (PR #118906)

2024-12-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/118906 >From 45311dbceed8d438f2ac0db5019719a7fa32c0bf Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 5 Dec 2024 19:45:25 -0500 Subject: [PATCH] [clangd] Add clarifying comment about when Dex::IdxContents

[clang-tools-extra] 26760c7 - [clangd] Add clarifying comment about when Dex::IdxContents is populated (#118906)

2024-12-08 Thread via cfe-commits
Author: Nathan Ridge Date: 2024-12-09T02:23:11-05:00 New Revision: 26760c7b907c1012c44d15959319bfa06848e5cd URL: https://github.com/llvm/llvm-project/commit/26760c7b907c1012c44d15959319bfa06848e5cd DIFF: https://github.com/llvm/llvm-project/commit/26760c7b907c1012c44d15959319bfa06848e5cd.diff

[clang] [clang] constexpr built-in elementwise add_sat function. (PR #119082)

2024-12-08 Thread via cfe-commits
@@ -11339,6 +11339,31 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { return Success(APValue(ResultElements.data(), ResultElements.size()), E); } + case Builtin::BI__builtin_elementwise_add_sat: { +APValue SourceLHS, SourceRHS; +if (!EvaluateAsR

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Joseph Huber via cfe-commits
@@ -288,18 +258,11 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) endif() endfunction() -# Generate a Bitcode library for all the gpu architectures the user requested. -add_custom_target(omptarget.devicertl.nvptx) add_custom_target(omptarget.devi

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Michał Górny via cfe-commits
@@ -288,18 +258,11 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) endif() endfunction() -# Generate a Bitcode library for all the gpu architectures the user requested. -add_custom_target(omptarget.devicertl.nvptx) add_custom_target(omptarget.devi

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Michał Górny via cfe-commits
@@ -288,18 +258,11 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) endif() endfunction() -# Generate a Bitcode library for all the gpu architectures the user requested. -add_custom_target(omptarget.devicertl.nvptx) add_custom_target(omptarget.devi

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Joseph Huber via cfe-commits
@@ -288,18 +258,11 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) endif() endfunction() -# Generate a Bitcode library for all the gpu architectures the user requested. -add_custom_target(omptarget.devicertl.nvptx) add_custom_target(omptarget.devi

[clang] [llvm] [openmp] [OpenMP] Use generic IR for the OpenMP DeviceRTL (PR #119091)

2024-12-08 Thread Joseph Huber via cfe-commits
@@ -288,18 +258,11 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) endif() endfunction() -# Generate a Bitcode library for all the gpu architectures the user requested. -add_custom_target(omptarget.devicertl.nvptx) add_custom_target(omptarget.devi

  1   2   >