[clang] [llvm] [RISCV] Xqci Extensions v0.10.0 (PR #137881)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Sam Elliott (lenary) Changes This updates all the extensions to their version in the v0.10.0 spec. All changes from this version are already implemented or are not relevant to LLVM. This change also alphabetises the lists of Xqci

[clang] [llvm] [RISCV] Xqci Extensions v0.10.0 (PR #137881)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Elliott (lenary) Changes This updates all the extensions to their version in the v0.10.0 spec. All changes from this version are already implemented or are not relevant to LLVM. This change also alphabetises the lists of Xqci extensi

[clang] [llvm] [RISCV] Xqci Extensions v0.10.0 (PR #137881)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Sam Elliott (lenary) Changes This updates all the extensions to their version in the v0.10.0 spec. All changes from this version are already implemented or are not relevant to LLVM. This change also alphabetises the lists of Xqc

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-04-29 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex created https://github.com/llvm/llvm-project/pull/137882 None >From 48a7768a33434e16c795ab8d575beb91480146f1 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Tue, 29 Apr 2025 14:40:43 -0700 Subject: [PATCH] [clang] Add spir_kernel attribute Signed-off-by: Sarnie,

[clang-tools-extra] [clang-doc] Add start and end line numbers (PR #137732)

2025-04-29 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/137732 >From 2d9fbe622785e052e848290f52e2cbbb9994d5fc Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 3 Apr 2025 17:07:01 -0400 Subject: [PATCH] [clang-doc] Add start and end line numbers This patch adds start an

[clang] 44d8aa8 - [clang][NFC] Convert `Parser::CachedInitKind` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T05:49:29+03:00 New Revision: 44d8aa8139e02e7b1642f284b32757ee446a88e6 URL: https://github.com/llvm/llvm-project/commit/44d8aa8139e02e7b1642f284b32757ee446a88e6 DIFF: https://github.com/llvm/llvm-project/commit/44d8aa8139e02e7b1642f284b32757ee446a88e6.

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-29 Thread via cfe-commits
jofrn wrote: > I still can't figure it out why we need TargetVerifier.h and > TargetVerifier.cpp in the first place. If we want to call TargetVerify from StandardInstrumentations.cpp, then we need it because this is a target-independent location to run TargetVerify in between each pass. Worki

[clang] [Clang][CodeGen] Check `isUnderlyingBasePointerConstantNull` in `emitPointerArithmetic` (PR #137849)

2025-04-29 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/137849 >From f1db3a540ec1383451955efab62b64ed8d180349 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Wed, 30 Apr 2025 01:26:41 +0800 Subject: [PATCH 1/2] [Clang][CodeGen] Check `isUnderlyingBasePointerConstantNull

[clang] [Clang][CodeGen] Check `isUnderlyingBasePointerConstantNull` in `emitPointerArithmetic` (PR #137849)

2025-04-29 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: > While we should omit inbounds, I think it would be good to not suppress the > sanitizer. If the sanitizer doesn't warn about it, then things will never get > better :( Fixed. https://github.com/llvm/llvm-project/pull/137849 ___ cfe-

[clang] 4bf93c0 - Thread Safety Analysis: Fix style

2025-04-29 Thread Marco Elver via cfe-commits
Author: Marco Elver Date: 2025-04-30T08:49:15+02:00 New Revision: 4bf93c098c8b04a06f228b05732d691d0ce2babc URL: https://github.com/llvm/llvm-project/commit/4bf93c098c8b04a06f228b05732d691d0ce2babc DIFF: https://github.com/llvm/llvm-project/commit/4bf93c098c8b04a06f228b05732d691d0ce2babc.diff L

[clang] [Clang][Sema] Handle invalid variable template specialization whose type depends on itself (PR #134522)

2025-04-29 Thread Yanzuo Liu via cfe-commits
@@ -7594,6 +7594,54 @@ ASTContext::getCanonicalTemplateArgument(const TemplateArgument &Arg) const { llvm_unreachable("Unhandled template argument kind"); } +bool ASTContext::isSameTemplateArgument(const TemplateArgument &Arg1, +const

[clang] e8c684a - [clang][NFC] Convert `Parser::ParenParseOption` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T07:01:01+03:00 New Revision: e8c684a0e4299077904892d11b1906f8e660eb01 URL: https://github.com/llvm/llvm-project/commit/e8c684a0e4299077904892d11b1906f8e660eb01 DIFF: https://github.com/llvm/llvm-project/commit/e8c684a0e4299077904892d11b1906f8e660eb01.

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-29 Thread via cfe-commits
dyung wrote: @owenca your change seems to be causing a unit test failure in CodeGenTest.TestNonAlterTest which is impacting quite a few bots. Can you take a look and revert if you need time to investigate? https://github.com/llvm/llvm-project/pull/137577 ___

[clang] 4075a36 - [clang][NFC] Convert `Parser::CastParseKind` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T06:48:37+03:00 New Revision: 4075a3698a3fdda3a77ce2456e3bfefbc0f0c56e URL: https://github.com/llvm/llvm-project/commit/4075a3698a3fdda3a77ce2456e3bfefbc0f0c56e DIFF: https://github.com/llvm/llvm-project/commit/4075a3698a3fdda3a77ce2456e3bfefbc0f0c56e.

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve2-vla-2stage` running on `linaro-g4-01` while building `clang` at step 12 "ninja check 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/199/builds/3079 Here is the relevant piece

[clang] 5f22b84 - [clang][NFC] Convert `Parser::IfExistsBehavior` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T07:08:47+03:00 New Revision: 5f22b84b653e9b76a21ea4ea2ae864173242f237 URL: https://github.com/llvm/llvm-project/commit/5f22b84b653e9b76a21ea4ea2ae864173242f237 DIFF: https://github.com/llvm/llvm-project/commit/5f22b84b653e9b76a21ea4ea2ae864173242f237.

[clang] [CIR] Upstream global initialization for VectorType (PR #137511)

2025-04-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/137511 >From 68dbe83ed57bb6da0cc3a5a61eec35ef63914317 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 26 Apr 2025 18:43:00 +0200 Subject: [PATCH 1/3] [CIR] Upstream global initialization for VectorType ---

[clang] 78a1d92 - [clang][NFC] Convert `Parser::TentativeCXXTypeIdContext` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T07:14:31+03:00 New Revision: 78a1d92870b596c67ee301b96d3a7864bafaab92 URL: https://github.com/llvm/llvm-project/commit/78a1d92870b596c67ee301b96d3a7864bafaab92 DIFF: https://github.com/llvm/llvm-project/commit/78a1d92870b596c67ee301b96d3a7864bafaab92.

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-29 Thread Owen Pan via cfe-commits
owenca wrote: @dyung I don't see anything in this patch could cause a failure in CodGen tests. Have you verified it e.g. by running the tests on f1750300aad0e49383cd4b206e2354f1300a40a8? https://github.com/llvm/llvm-project/pull/137577 ___ cfe-commit

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)

2025-04-29 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/128640 >From 6ebd5991788608fbd104ea9c23230912044462d3 Mon Sep 17 00:00:00 2001 From: Urvi Rav Date: Tue, 25 Feb 2025 00:49:07 -0600 Subject: [PATCH 1/6] default clause replaced by otherwise clause for metadirective

[clang] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-04-29 Thread Jiuyang Liu via cfe-commits
@@ -1197,6 +1197,73 @@ def HasVendorXSfvcp : Predicate<"Subtarget->hasVendorXSfvcp()">, AssemblerPredicate<(all_of FeatureVendorXSfvcp), "'XSfvcp' (SiFive Custom Vector Coprocessor Interface Instructions)">; +def FeatureVendorX

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)

2025-04-29 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/128640 >From 6ebd5991788608fbd104ea9c23230912044462d3 Mon Sep 17 00:00:00 2001 From: Urvi Rav Date: Tue, 25 Feb 2025 00:49:07 -0600 Subject: [PATCH 1/6] default clause replaced by otherwise clause for metadirective

[clang] [HLSL] Make lerp overload tests stricter. NFC (PR #137898)

2025-04-29 Thread Justin Bogner via cfe-commits
@@ -1,108 +1,160 @@ -// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple \ -// RUN: dxil-pc-shadermodel6.3-library %s -emit-llvm -disable-llvm-passes \ -// RUN: -o - | FileCheck %s --check-prefixes=CHECK \ -// RUN: -DFNATTRS="noundef nofpclass(nan inf)"

[clang] [HLSL] Make lerp overload tests stricter. NFC (PR #137898)

2025-04-29 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/137898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add start and end line numbers (PR #137732)

2025-04-29 Thread Daniel Thornburgh via cfe-commits
https://github.com/mysterymath approved this pull request. https://github.com/llvm/llvm-project/pull/137732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][SelectionDAG] Add CodeGen support for scalar FEAT_CPA (PR #105669)

2025-04-29 Thread Alexander Richardson via cfe-commits
@@ -2602,6 +2605,100 @@ SDValue DAGCombiner::foldSubToAvg(SDNode *N, const SDLoc &DL) { return SDValue(); } +/// Try to fold a pointer arithmetic node. +/// This needs to be done separately from normal addition, because pointer +/// addition is not commutative. +/// This fu

[clang] [HLSL] Overloads for `lerp` with a scalar weight (PR #137877)

2025-04-29 Thread Farzon Lotfi via cfe-commits
farzonl wrote: Since we are open to this for lerp I think we should file a similar issue for `pow(vector<*>, scalar>);` Its much more user friendlly if we had an overload that would let us use a scalar for the exponent. https://github.com/llvm/llvm-project/pull/137877 ___

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-04-29 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex closed https://github.com/llvm/llvm-project/pull/137882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)

2025-04-29 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex reopened https://github.com/llvm/llvm-project/pull/137882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] No sharedlibs for UEFI (PR #137872)

2025-04-29 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/137872 >From 60473fc01469167d742cee1fcdc1b05b93482f94 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Tue, 29 Apr 2025 13:21:16 -0700 Subject: [PATCH] [NFC][clang] No sharedlibs for UEFI There is no support for shared l

[clang] [clang] ownership_returns attribute takes no more than 2 arguments (PR #137897)

2025-04-29 Thread via cfe-commits
https://github.com/halbi2 created https://github.com/llvm/llvm-project/pull/137897 Fixes #137896 >From 1497e17e86b437b59f35e80624a33034a97d2426 Mon Sep 17 00:00:00 2001 From: halbi2 Date: Tue, 29 Apr 2025 19:41:27 -0400 Subject: [PATCH] [clang] ownership_returns attribute takes no more than 2

[clang] [HLSL] Make lerp overload tests stricter. NFC (PR #137898)

2025-04-29 Thread Justin Bogner via cfe-commits
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/137898 These tests had checks across multiple functions, because none of the hlsl header implementation functions were inlined. Switch the run lines to use -O1 instead of -disable-llvm-passes and rewrite the tests to a

[clang] [HLSL] Make lerp overload tests stricter. NFC (PR #137898)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Justin Bogner (bogner) Changes These tests had checks across multiple functions, because none of the hlsl header implementation functions were inlined. Switch the run lines to use -O1 instead of -disable-llvm-passes and rewrite the tests t

[clang] [clang] Warn about deprecated volatile-qualified return types (PR #137899)

2025-04-29 Thread via cfe-commits
https://github.com/halbi2 created https://github.com/llvm/llvm-project/pull/137899 Fixes #133380 >From 8b6c722cda78edf307432cc52274db2271170033 Mon Sep 17 00:00:00 2001 From: halbi2 Date: Mon, 28 Apr 2025 20:07:43 -0400 Subject: [PATCH] [clang] Warn about deprecated volatile-qualified return t

[clang] [clang] ownership_returns attribute takes no more than 2 arguments (PR #137897)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (halbi2) Changes Fixes #137896 --- Full diff: https://github.com/llvm/llvm-project/pull/137897.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaDeclAttr.cpp (+1-1) - (modified) clang/test/Sema/attr-ownership.c (+1-1)

[clang] [HLSL] Overloads for `lerp` with a scalar weight (PR #137877)

2025-04-29 Thread Justin Bogner via cfe-commits
@@ -106,3 +102,17 @@ float3 test_lerp_uint64_t3(uint64_t3 p0) { return lerp(p0, p0, p0); } // CHECK: %hlsl.lerp = call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.[[TARGET]].lerp.v4f32(<4 x float> %{{.*}}, <4 x float> %{{.*}}, <4 x float> %{{.*}}) // CHECK: ret <4 x floa

[clang] [clang] Warn about deprecated volatile-qualified return types (PR #137899)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (halbi2) Changes Fixes #133380 --- Full diff: https://github.com/llvm/llvm-project/pull/137899.diff 3 Files Affected: - (modified) clang/lib/Sema/SemaType.cpp (+5-5) - (modified) clang/test/CXX/expr/expr.const/p2-0x.cpp (+1-1) -

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-29 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt approved this pull request. https://github.com/llvm/llvm-project/pull/135120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang AST] move mangling API to namespace clang to allow calls from swift-frontend (PR #137884)

2025-04-29 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted created https://github.com/llvm/llvm-project/pull/137884 When implementing `@objcDirect` in Swfit, Swift needs to mangle a `Decl` that is not a clang Node. Rewriting the ObjC's mangling logic in swift is redundant, we can just call clang API since swift depen

[clang] [HLSL][RootSignature] Add lexing support for floating points (PR #137720)

2025-04-29 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/137720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-29 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From 64000ad7d2310ac916b37ed808997bfcb6b9f324 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/2] Format: add AlignAfterControlStatement Introduce new style op

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-29 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From 64000ad7d2310ac916b37ed808997bfcb6b9f324 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/3] Format: add AlignAfterControlStatement Introduce new style op

[clang] 4595e80 - [clang][NFC] Convert `Parser::AnnotatedNameKind` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T02:23:39+03:00 New Revision: 4595e8092ed5ce69b3ce33e989d7bea3a25fc289 URL: https://github.com/llvm/llvm-project/commit/4595e8092ed5ce69b3ce33e989d7bea3a25fc289 DIFF: https://github.com/llvm/llvm-project/commit/4595e8092ed5ce69b3ce33e989d7bea3a25fc289.

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-29 Thread Gedare Bloom via cfe-commits
gedare wrote: > > > I prefer that we limit this to breaking after the left parenthesis of a > > > control statement, with true/false or Always, Never, Multiline, > > > BlockIndent, etc. > > > > > > if I understand you correctly, you would like a new style option added for > > setting break

[clang] [llvm] [clang] Implement JSON formatted -ftime-report (PR #137737)

2025-04-29 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks approved this pull request. lgtm, although I'd like @AaronBallman to take a quick look to make sure this seems ok (e.g. naming) https://github.com/llvm/llvm-project/pull/137737 ___ cfe-commits mailing list cfe-commits@lists

[clang] [llvm] [clang] Implement JSON formatted -ftime-report (PR #137737)

2025-04-29 Thread Arthur Eubanks via cfe-commits
https://github.com/aeubanks edited https://github.com/llvm/llvm-project/pull/137737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Implement JSON formatted -ftime-report (PR #137737)

2025-04-29 Thread Arthur Eubanks via cfe-commits
@@ -442,10 +442,6 @@ void TimerGroup::clearAll() { void TimerGroup::printJSONValue(raw_ostream &OS, const PrintRecord &R, const char *suffix, double Value) { - assert(yaml::needsQuotes(Name) == yaml::QuotingType::None && aeuban

[clang] [clang] Fix nondeterminism in MemberPointerType (PR #137910)

2025-04-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Maksim Ivanov (emaxx-google) Changes This commit fixes the nondeterminism issue in C++ header module enabled builds which were observed after https://github.com/llvm/llvm-project/pull/132401. The issue was related to the fact that the has

[clang] [clang] Fix nondeterminism in MemberPointerType (PR #137910)

2025-04-29 Thread Maksim Ivanov via cfe-commits
https://github.com/emaxx-google ready_for_review https://github.com/llvm/llvm-project/pull/137910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Silence spurious -Wnontrivial-memcall warnings in C mode (PR #137429)

2025-04-29 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak closed https://github.com/llvm/llvm-project/pull/137429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6bb4ce0 - Silence spurious -Wnontrivial-memcall warnings in C mode (#137429)

2025-04-29 Thread via cfe-commits
Author: Akira Hatanaka Date: 2025-04-29T18:37:57-07:00 New Revision: 6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18 URL: https://github.com/llvm/llvm-project/commit/6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18 DIFF: https://github.com/llvm/llvm-project/commit/6bb4ce0f6ff462b58bacc8dbc47719b7009f9b18.diff

[clang] [llvm] [RISCV] Xqci Extensions v0.10.0 (PR #137881)

2025-04-29 Thread Sam Elliott via cfe-commits
https://github.com/lenary updated https://github.com/llvm/llvm-project/pull/137881 >From 77e11986173c1687db5694544337026badb37448 Mon Sep 17 00:00:00 2001 From: Sam Elliott Date: Tue, 29 Apr 2025 14:28:43 -0700 Subject: [PATCH 1/2] [RISCV] Xqci Extensions v0.10.0 This updates all the extension

[clang] [clang AST] move mangling API to namespace clang to allow calls from swift-frontend (PR #137884)

2025-04-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/AST/Mangle.h clang/lib/AST/Mang

[clang-tools-extra] [clang-doc] Add start and end line numbers (PR #137732)

2025-04-29 Thread Paul Kirth via cfe-commits
@@ -795,43 +787,52 @@ emitInfo(const CXXMethodDecl *D, const FullComment *FC, int LineNumber, } std::pair, std::unique_ptr> -emitInfo(const TypedefDecl *D, const FullComment *FC, int LineNumber, - StringRef File, bool IsFileInRootDir, bool PublicOnly) { - TypedefInfo

[clang] [clang][headers][Apple] Don't include_next float.h to avoid an unnecessary module dependency (PR #137432)

2025-04-29 Thread John McCall via cfe-commits
rjmccall wrote: Messing around with `#include_next` is scary, but the problems are always thorny reasons that only come up in intense testing; I don't see anything obviously wrong, and I trust @ian-twilightcoder to have done the investigation properly. LGTM. https://github.com/llvm/llvm-proje

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-29 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From 64000ad7d2310ac916b37ed808997bfcb6b9f324 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/4] Format: add AlignAfterControlStatement Introduce new style op

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions h,cpp -- clang/include/clang/Format/Format.h clang/lib/Forma

[clang] [llvm] [clang] Implement JSON formatted -ftime-report (PR #137737)

2025-04-29 Thread Alan Zhao via cfe-commits
https://github.com/alanzhao1 updated https://github.com/llvm/llvm-project/pull/137737 >From 1f0529aa5fbf9c4c1b3f0e58eaf5e527dc1605f2 Mon Sep 17 00:00:00 2001 From: Alan Zhao Date: Mon, 28 Apr 2025 16:21:29 -0700 Subject: [PATCH 1/2] [clang] Implement JSON formatted -ftime-report This patch add

[clang] Better diagnostics when assertion fails in `consteval` (PR #130458)

2025-04-29 Thread JJ Marr via cfe-commits
https://github.com/jj-marr updated https://github.com/llvm/llvm-project/pull/130458 >From d06c5ab5c30e535893335af798df339b0e9c6878 Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Sat, 8 Mar 2025 22:00:45 -0500 Subject: [PATCH] Explain which assertion failed during consteval --- .../clang/Basic/D

[clang] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-04-29 Thread Craig Topper via cfe-commits
@@ -1197,6 +1197,73 @@ def HasVendorXSfvcp : Predicate<"Subtarget->hasVendorXSfvcp()">, AssemblerPredicate<(all_of FeatureVendorXSfvcp), "'XSfvcp' (SiFive Custom Vector Coprocessor Interface Instructions)">; +def FeatureVendorX

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-29 Thread via cfe-commits
dyung wrote: > @dyung I don't see anything in this patch could cause a failure in CodGen > tests. Have you verified it e.g. by running the tests on > [f175030](https://github.com/llvm/llvm-project/commit/f1750300aad0e49383cd4b206e2354f1300a40a8)? One of the bots did. - f1750300aad0e49383cd4b20

[clang] [Clang][CodeGen] Check `isUnderlyingBasePointerConstantNull` in `emitPointerArithmetic` (PR #137849)

2025-04-29 Thread Yingwei Zheng via cfe-commits
@@ -4238,7 +4238,8 @@ static Value *emitPointerArithmetic(CodeGenFunction &CGF, else elemTy = CGF.ConvertTypeForMem(elementType); - if (CGF.getLangOpts().PointerOverflowDefined) + if (CGF.getLangOpts().PointerOverflowDefined || + CGF.isUnderlyingBasePointerConstan

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-29 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/137501 >From b8011997fdc2548be80dd9305d758466a66cee4c Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Sun, 27 Apr 2025 15:16:19 +0800 Subject: [PATCH 1/2] [CIR] Upstream initial support for union type --- ..

[clang-tools-extra] 97ec3ef - [clang-doc] Add start and end line numbers (#137732)

2025-04-29 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-29T14:57:35-07:00 New Revision: 97ec3ef4ab0eaf5e1fde9a3bf4bf4a9aaad49f33 URL: https://github.com/llvm/llvm-project/commit/97ec3ef4ab0eaf5e1fde9a3bf4bf4a9aaad49f33 DIFF: https://github.com/llvm/llvm-project/commit/97ec3ef4ab0eaf5e1fde9a3bf4bf4a9aaad49f33.diff LO

[clang-tools-extra] [clang-doc] Add start and end line numbers (PR #137732)

2025-04-29 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/137732 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Overloads for `lerp` with a scalar weight (PR #137877)

2025-04-29 Thread Damyan Pepper via cfe-commits
https://github.com/damyanp approved this pull request. https://github.com/llvm/llvm-project/pull/137877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Overloads for `lerp` with a scalar weight (PR #137877)

2025-04-29 Thread Damyan Pepper via cfe-commits
@@ -106,3 +102,17 @@ float3 test_lerp_uint64_t3(uint64_t3 p0) { return lerp(p0, p0, p0); } // CHECK: %hlsl.lerp = call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.[[TARGET]].lerp.v4f32(<4 x float> %{{.*}}, <4 x float> %{{.*}}, <4 x float> %{{.*}}) // CHECK: ret <4 x floa

[clang] [clang AST] move mangling API to namespace clang to allow calls from swift-frontend (PR #137884)

2025-04-29 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/137884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] No sharedlibs for UEFI (PR #137872)

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

[clang] [HLSL] Overloads for `lerp` with a scalar weight (PR #137877)

2025-04-29 Thread Justin Bogner via cfe-commits
@@ -277,6 +277,12 @@ constexpr bool4 isinf(double4 V) { return isinf((float4)V); } // lerp builtins overloads //===--===// +template +constexpr __detail::enable_if_t<(N > 1 && N <= 4), vector> -

[clang] [llvm] [RISCV][MC] Implement MC for Base P extension (PR #123271)

2025-04-29 Thread via cfe-commits
@@ -0,0 +1,1100 @@ +//===-- RISCVInstrInfoP.td - RISC-V 'P' instructions ---*- tablegen -*-===// +// +// 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: A

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-29 Thread Iris Shi via cfe-commits
@@ -5,25 +5,146 @@ // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o %t.ll // RUN: FileCheck --check-prefix=OGCG --input-file=%t.ll %s +union U1 { el-ev wrote: Padded and packed unions are added, `CIRGenTypes::isZeroInitializable` doesn't

[clang] [clang AST] move mangling API to namespace clang to allow calls from swift-frontend (PR #137884)

2025-04-29 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/137884 >From f6166a6c2ab45edaa0ff273e2ba917fff778a243 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Tue, 29 Apr 2025 14:24:49 -0700 Subject: [PATCH 1/2] [clang] change mangling API to allow calls from swift-fr

[clang] [nfc][clang] Rename function (PR #137874)

2025-04-29 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/137874 >From 45778ad1a6cd0d7ce6333f6e8b69d4f4138b962e Mon Sep 17 00:00:00 2001 From: prabhukr Date: Tue, 29 Apr 2025 13:43:32 -0700 Subject: [PATCH] [nfc][clang] Rename function Rename function to meet the coding guid

[clang] [clang] Merge gtest binaries into AllClangUnitTests (PR #134196)

2025-04-29 Thread Reid Kleckner via cfe-commits
rnk wrote: I disabled the failing test in 743c32eb8195c248c699c61ffbac141947b8e6ab. https://github.com/llvm/llvm-project/pull/134196 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [nfc][clang] Rename function (PR #137874)

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

[clang] 557ddc2 - [clang][headers][Apple] Don't include_next float.h to avoid an unnecessary module dependency (#137432)

2025-04-29 Thread via cfe-commits
Author: Ian Anderson Date: 2025-04-29T14:59:28-07:00 New Revision: 557ddc2e5d066dbc9900cb158a842b9cd5864d8a URL: https://github.com/llvm/llvm-project/commit/557ddc2e5d066dbc9900cb158a842b9cd5864d8a DIFF: https://github.com/llvm/llvm-project/commit/557ddc2e5d066dbc9900cb158a842b9cd5864d8a.diff

[clang] [clang][headers][Apple] Don't include_next float.h to avoid an unnecessary module dependency (PR #137432)

2025-04-29 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder closed https://github.com/llvm/llvm-project/pull/137432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Overloads for `lerp` with a scalar weight (PR #137877)

2025-04-29 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/137877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][SPIRV] Add builtin for OpGenericCastToPtrExplicit and its SPIR-V friendly binding (PR #137805)

2025-04-29 Thread Victor Lomuller via cfe-commits
@@ -35,8 +35,10 @@ static constexpr Builtin::Info BuiltinInfos[] = { static_assert(std::size(BuiltinInfos) == NumBuiltins); llvm::SmallVector -SPIRVTargetInfo::getTargetBuiltins() const { - return {{&BuiltinStrings, BuiltinInfos}}; +BaseSPIRTargetInfo::getTargetBuiltins() con

[clang-tools-extra] [clang-doc] Add start and end line numbers (PR #137732)

2025-04-29 Thread Paul Kirth via cfe-commits
ilovepi wrote: hmm. Premege checks are broken due to #137876. Given that they passed before, still pass locally, and I only removed some extraneous code I'm landing this w/o them passing. https://github.com/llvm/llvm-project/pull/137732 ___ cfe-comm

[clang] 7ecd81e - [clang][NFC] Convert `Parser::ExtraSemiKind` to scoped enum

2025-04-29 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-30T02:31:31+03:00 New Revision: 7ecd81e266174253786e084c100c22c65a214b5d URL: https://github.com/llvm/llvm-project/commit/7ecd81e266174253786e084c100c22c65a214b5d DIFF: https://github.com/llvm/llvm-project/commit/7ecd81e266174253786e084c100c22c65a214b5d.

[clang] [llvm] [clang] Implement JSON formatted -ftime-report (PR #137737)

2025-04-29 Thread Arthur Eubanks via cfe-commits
@@ -296,7 +296,14 @@ int cc1_main(ArrayRef Argv, const char *Argv0, void *MainAddr) { // If any timers were active but haven't been destroyed yet, print their // results now. This happens in -disable-free mode. - llvm::TimerGroup::printAll(llvm::errs()); + // llvm::Tim

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/Format/Format.h clang/lib/Forma

[clang] f175030 - [HLSL] Resource initialization by constructors (#135120)

2025-04-29 Thread via cfe-commits
Author: Helena Kotas Date: 2025-04-29T18:42:22-07:00 New Revision: f1750300aad0e49383cd4b206e2354f1300a40a8 URL: https://github.com/llvm/llvm-project/commit/f1750300aad0e49383cd4b206e2354f1300a40a8 DIFF: https://github.com/llvm/llvm-project/commit/f1750300aad0e49383cd4b206e2354f1300a40a8.diff

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-29 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/135120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-29 Thread Iris Shi via cfe-commits
@@ -306,3 +320,71 @@ CIRGenTypes::computeRecordLayout(const RecordDecl *rd, cir::RecordType *ty) { // TODO: implement verification return rl; } + +void CIRRecordLowering::lowerUnion() { + CharUnits layoutSize = astRecordLayout.getSize(); + mlir::Type storageType = nullpt

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-29 Thread Iris Shi via cfe-commits
@@ -306,3 +320,71 @@ CIRGenTypes::computeRecordLayout(const RecordDecl *rd, cir::RecordType *ty) { // TODO: implement verification return rl; } + +void CIRRecordLowering::lowerUnion() { + CharUnits layoutSize = astRecordLayout.getSize(); + mlir::Type storageType = nullpt

[clang] [C] Warn on uninitialized const objects (PR #137166)

2025-04-29 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: > This case might be reasonable to handle differently, but I'm on the fence > too. There's two cases for structure members, broadly: > > 1) Don't initialize the `const` field, don't ever read the `const` field. > > 2) Rely on the fact that you can overwrite a `const` if the

[clang] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-04-29 Thread Craig Topper via cfe-commits
@@ -1197,6 +1197,73 @@ def HasVendorXSfvcp : Predicate<"Subtarget->hasVendorXSfvcp()">, AssemblerPredicate<(all_of FeatureVendorXSfvcp), "'XSfvcp' (SiFive Custom Vector Coprocessor Interface Instructions)">; +def FeatureVendorX

[clang] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-04-29 Thread Jiuyang Liu via cfe-commits
@@ -1197,6 +1197,73 @@ def HasVendorXSfvcp : Predicate<"Subtarget->hasVendorXSfvcp()">, AssemblerPredicate<(all_of FeatureVendorXSfvcp), "'XSfvcp' (SiFive Custom Vector Coprocessor Interface Instructions)">; +def FeatureVendorX

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-29 Thread Iris Shi via cfe-commits
@@ -306,3 +320,71 @@ CIRGenTypes::computeRecordLayout(const RecordDecl *rd, cir::RecordType *ty) { // TODO: implement verification return rl; } + +void CIRRecordLowering::lowerUnion() { + CharUnits layoutSize = astRecordLayout.getSize(); + mlir::Type storageType = nullpt

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-29 Thread Iris Shi via cfe-commits
@@ -306,3 +320,71 @@ CIRGenTypes::computeRecordLayout(const RecordDecl *rd, cir::RecordType *ty) { // TODO: implement verification return rl; } + +void CIRRecordLowering::lowerUnion() { + CharUnits layoutSize = astRecordLayout.getSize(); + mlir::Type storageType = nullpt

[clang] [CIR] Cleanup support for C functions (PR #136854)

2025-04-29 Thread Iris Shi via cfe-commits
https://github.com/el-ev updated https://github.com/llvm/llvm-project/pull/136854 >From fd1d37ebf0f1c4a23f573444f30730b0f65630bf Mon Sep 17 00:00:00 2001 From: Iris Shi <0...@owo.li> Date: Wed, 23 Apr 2025 20:23:09 +0800 Subject: [PATCH 1/2] [CIR] Cleanup support for C functions --- clang/lib/

[clang] [HLSL] Make lerp overload tests stricter. NFC (PR #137898)

2025-04-29 Thread Farzon Lotfi via cfe-commits
@@ -1,108 +1,160 @@ -// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple \ -// RUN: dxil-pc-shadermodel6.3-library %s -emit-llvm -disable-llvm-passes \ -// RUN: -o - | FileCheck %s --check-prefixes=CHECK \ -// RUN: -DFNATTRS="noundef nofpclass(nan inf)"

[clang] [llvm] [HLSL] Allow resource annotations to specify only register space (PR #135287)

2025-04-29 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/135287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Silence spurious -Wnontrivial-memcall warnings in C mode (PR #137429)

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

[clang] [HLSL] Make lerp overload tests stricter. NFC (PR #137898)

2025-04-29 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/137898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Silence spurious -Wnontrivial-memcall warnings in C mode (PR #137429)

2025-04-29 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/15265 Here is the relevant piece of the build lo

[clang] [clang][lex] Introduce new single-module-parse mode (PR #135813)

2025-04-29 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. I think this looks good overall. I'm a little concerned that the single file and single module names are similar while having quite different semantics, but single file is never actually exposed to users, so they won't be confused. I don

  1   2   3   4   5   6   >