[clang] [llvm] [RISCV] Add Qualcomm uC Xqcilb (Long Branch) extension (PR #131996)

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

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

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

[clang] [clang] NFC: Unify implementations of CheckMemberPointerConversion (PR #131966)

2025-03-24 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/131966 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Ubsan: warn on -fsanitize-trap=undefined ignored when passed on its own (PR #132319)

2025-03-24 Thread Dan Liew via cfe-commits
delcypher wrote: @MaskRay So this is actually part of [my GSoc proposal](https://discourse.llvm.org/t/clang-gsoc-2025-usability-improvements-for-trapping-undefined-behavior-sanitizer/84568/15?u=dan_liew). There's an explanation in the discord post about why I believe it's the wrong behavior. I

[clang] [llvm] [RISCV] Implement the implications of C extension (PR #132259)

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

[clang] [llvm] [X86][AVX10.2] Remove YMM rounding from VCVT2PS2PHX (PR #132397)

2025-03-24 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/132397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Remove YMM rounding from VMINMAXP[H,S,D] (PR #132405)

2025-03-24 Thread via cfe-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 09feaa9261448e72ce21394613e0a12f84c1b8d9

[clang] [clang][modules] Lazily load by name lookups in module maps (PR #132853)

2025-03-24 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese created https://github.com/llvm/llvm-project/pull/132853 Instead of eagerly populating the `clang::ModuleMap` when looking up a module by name, this patch changes `HeaderSearch` to only load the modules that are actually used. This introduces `ModuleMap::findOrLoa

[clang] [Clang][AMDGPU] Use size_t to compare with npos (PR #132868)

2025-03-24 Thread Jinsong Ji via cfe-commits
https://github.com/jsji created https://github.com/llvm/llvm-project/pull/132868 Fix error llvm\clang\tools\amdgpu-arch\AMDGPUArchByHIP.cpp(102,29): error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-const

[clang] bcedb36 - [clang][bytecode] Support composite arrays in memcpy op (#132775)

2025-03-24 Thread via cfe-commits
Author: Timm Baeder Date: 2025-03-25T07:17:10+01:00 New Revision: bcedb368e317332d99dbdde617ebc35140b10de3 URL: https://github.com/llvm/llvm-project/commit/bcedb368e317332d99dbdde617ebc35140b10de3 DIFF: https://github.com/llvm/llvm-project/commit/bcedb368e317332d99dbdde617ebc35140b10de3.diff L

[clang] [clang][bytecode] Support composite arrays in memcpy op (PR #132775)

2025-03-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/132775 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement min and max overloads using templates (PR #131666)

2025-03-24 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/131666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)

2025-03-24 Thread via cfe-commits
hstk30-hw wrote: Hi, these is a pending review suggestion. Just put the test cast to exist test file, maybe like clang/test/Driver/mcmodel.c PLS https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] f6a3cd5 - [clang] ``noconvergent`` does not affect calls to convergent functions (#132701)

2025-03-24 Thread via cfe-commits
Author: Sameer Sahasrabuddhe Date: 2025-03-25T10:44:08+05:30 New Revision: f6a3cd54bc063efe522cc3df82fcadc86ac5a354 URL: https://github.com/llvm/llvm-project/commit/f6a3cd54bc063efe522cc3df82fcadc86ac5a354 DIFF: https://github.com/llvm/llvm-project/commit/f6a3cd54bc063efe522cc3df82fcadc86ac5a35

[clang] [SPARC][Driver] Set correct IAS mode defaults for Linux and Free/OpenBSD (PR #130108)

2025-03-24 Thread via cfe-commits
https://github.com/koachan closed https://github.com/llvm/llvm-project/pull/130108 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-03-24 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] default clause replaced by otherwise clause for metadirective ---

[clang] [clang-format] Fix a regression on annotating template angles (PR #132885)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Annotate the angles in `AB` as template opener/closer as it's unlikely that they are less/greater-than operators in this context. Fix #132248 --- Full diff: https://github.com/llvm/llvm-project/pu

[clang] [clang-format] Fix a regression on annotating template angles (PR #132885)

https://github.com/owenca created https://github.com/llvm/llvm-project/pull/132885 Annotate the angles in `AB` as template opener/closer as it's unlikely that they are less/greater-than operators in this context. Fix #132248 >From 2f376c819aed998ee30fb007d3c151efb7762bc0 Mon Sep 17 00:00:00 2

[clang] [llvm] [AArch64] Add initial support for -mcpu=olympus. (PR #132368)

https://github.com/rj-jesus created https://github.com/llvm/llvm-project/pull/132368 This patch adds support for the NVIDIA Olympus core. This does not add any special tuning decisions, and those may come later. >From b9725e115876f26311edd408b9d4521ae8a03ebd Mon Sep 17 00:00:00 2001 From: Rica

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Kaitlin Peng (kmpeng) Changes Closes #99156. Tasks completed: - Implement `smoothstep` using HLSL source in `hlsl_intrinsics.h` - Implement the `smoothstep` SPIR-V target built-in in `clang/include/clang/Basic/BuiltinsSPIRV.td` - Add sema

[clang] Reapply "[Clang] Improve diagnostics for expansion length mismatch" (PR #121044)

@@ -749,132 +759,124 @@ ExprResult Sema::CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc, PackExpansionExpr(Context.DependentTy, Pattern, EllipsisLoc, NumExpansions); } +static bool IsUnexpandedPackExpansion(const TemplateArgument &TA) { + if (!TA.isPackExp

[clang] [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (PR #132802)

github-actions[bot] wrote: @koplas 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 build,

[clang] [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (PR #132802)

https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/132802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (PR #132802)

https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/132802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (PR #132802)

https://github.com/koplas updated https://github.com/llvm/llvm-project/pull/132802 >From 2d143ca15476df04063e9e7e2c5fd1938c4f705b Mon Sep 17 00:00:00 2001 From: koplas Date: Mon, 24 Mar 2025 19:20:52 +0100 Subject: [PATCH 1/2] [PATCH] [clang][modules] Fix serialization and de-serialization of

[clang] [clang] ``noconvergent`` does not affect calls to convergent functions (PR #132701)

https://github.com/ssahasra closed https://github.com/llvm/llvm-project/pull/132701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)

ShashwathiNavada wrote: ping @cor3ntin @hstk30-hw https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RFC] Initial implementation of P2719 (PR #113510)

@@ -3134,6 +3134,31 @@ bool Type::isStdByteType() const { return false; } +bool Type::isDestroyingDeleteT() const { + auto *RD = getAsCXXRecordDecl(); + return RD && RD->isInStdNamespace() && RD->getIdentifier() && + RD->getIdentifier()->isStr("destroying_delete_t"

[libclc] [libclc] Skip opt command if opt_flags is empty (PR #130882)

wenju-he wrote: @frasercrmck please help to merge, thanks. I don't have merge access. https://github.com/llvm/llvm-project/pull/130882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

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] Improve subsumption. (PR #132849)

@@ -0,0 +1,194 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s + +namespace A { +template +concept C = true; + +template +requires C && C +void f() {} + +template +requires C && true +void f() {} + +template <> +void f(); +} + +namespace B { +template +concept A = t

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

AustinSchuh wrote: @Artem-B I think you added texture support originally. A lot of the language in that file is focused on just textures, not textures and surfaces. I am happy to adjust that if that is desired. I figured a bit ugly, working, and early feedback was preferable. https://github

[clang] [SystemZ][z/OS] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

@@ -0,0 +1,5 @@ +// REQUIRES: systemz-registered-target hubert-reinterpretcast wrote: Should there be diagnostics (and corresponding testing) for ignored/meaningless uses of `_Export`? e.g., ```cpp typedef int _Export ty; ty x; int f(int _Export x); static int

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

llvmbot wrote: @llvm/pr-subscribers-clang Author: Austin Schuh (AustinSchuh) Changes This adds support for all the surface read and write calls to clang. It extends the pattern used for textures to surfaces too. I tested this by generating all the various permutations of the calls and a

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

https://github.com/AustinSchuh created https://github.com/llvm/llvm-project/pull/132883 This adds support for all the surface read and write calls to clang. It extends the pattern used for textures to surfaces too. I tested this by generating all the various permutations of the calls and argu

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

https://github.com/AustinSchuh edited https://github.com/llvm/llvm-project/pull/132883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Correctly annotate requires clause in `&& requires(` (PR #132882)

llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #132334 --- Full diff: https://github.com/llvm/llvm-project/pull/132882.diff 3 Files Affected: - (modified) clang/lib/Format/UnwrappedLineParser.cpp (+5-3) - (modified) clang/lib/Format/UnwrappedLin

[clang] [clang-format] Correctly annotate requires clause in `&& requires(` (PR #132882)

https://github.com/owenca created https://github.com/llvm/llvm-project/pull/132882 Fix #132334 >From 07947452a460c7e4ac3715ccc8c703595670c90a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Mon, 24 Mar 2025 21:51:04 -0700 Subject: [PATCH] [clang-format] Correctly annotate requires clause in `&&

[clang] [clang-tools-extra] [lld] [llvm] Fix monitor (PR #132880)

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-tools-extra] [lld] [llvm] Fix monitor (PR #132880)

https://github.com/abdurj closed https://github.com/llvm/llvm-project/pull/132880 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PATCH] [clang][modules] Fix serialization and de-serialization of PCH module file refs (#105994) (PR #132802)

@@ -9615,7 +9615,7 @@ ModuleFile *ASTReader::getLocalModuleFile(ModuleFile &M, unsigned ID) const { // It's a prefix (preamble, PCH, ...). Look it up by index. unsigned IndexFromEnd = ID >> 1; assert(IndexFromEnd && "got reference to unknown module file"); -ret

[clang] [HLSL][NFC] Use method builder to create default resource constructor (PR #131384)

@@ -453,11 +481,11 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::dereference(T Ptr) { return *this; } -BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalizeMethod() { +BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalize() { assert(!DeclBuilder.Record

[clang] [Driver] Search for compiler-rt libraries in sysroot/lib if not found in the resource directory (PR #132443)

MaskRay wrote: NAK. (LibraryPaths is primarily intended for compiler-rt libraries.) Maintaining compatibility by itself isn’t sufficient, as each entry could subtly shift library selection precedence, and the code here reflects a certain level of upstream (llvm-project) preference. We should

[clang] [Driver] Search for compiler-rt libraries in sysroot/lib if not found in the resource directory (PR #132443)

https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/132443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libc] [llvm] [Clang][AMDGPU] Remove special handling for COV4 libraries (PR #132870)

@@ -62,62 +62,23 @@ Value *EmitAMDGPUImplicitArgPtr(CodeGenFunction &CGF) { /// Emit code based on Code Object ABI version. /// COV_4: Emit code to use dispatch ptr shiltian wrote: this as well https://github.com/llvm/llvm-project/pull/132870 _

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

https://github.com/ZhongUncle edited https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Yaxun (Sam) Liu (yxsamliu) Changes Currently HIP still uses offload bundler for non-rdc mode for the new offload driver. This patch switches to use offload wrapper for non-device-only non-rdc mode when new offload driver is enabl

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

https://github.com/ZhongUncle edited https://github.com/llvm/llvm-project/pull/132510 ___ 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 regression test for test comments in macros (PR #132510)

@@ -0,0 +1,34 @@ +// Fixes #59819. The underlying problem was fixed in https://reviews.llvm.org/D142560, but this patch adds a proper regression test. +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: FileChec

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

https://github.com/yxsamliu created https://github.com/llvm/llvm-project/pull/132869 Currently HIP still uses offload bundler for non-rdc mode for the new offload driver. This patch switches to use offload wrapper for non-device-only non-rdc mode when new offload driver is enabled. This make

[clang] [Clang][AMDGPU] Use size_t to compare with npos (PR #132868)

https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/132868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

hulxv wrote: @ilovepi About `writeFileDefiniation`, what's your opinion about making it similar to the markdown generator like this? ```cpp static void writeFileDefinition(const ClangDocContext &CDCtx, const Location &L); ``` I think it's more better https://github.com/llvm/llvm-project/pull/

[clang] [SystemZ][z/OS] Add visibility features for z/OS (eg. _Export, pragma export) (PR #111035)

@@ -4456,6 +4456,12 @@ void Parser::ParseDeclarationSpecifiers( isInvalid = DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); break; +case tok::kw__Export: + // If we find kw__Export, it is being applied to a var or function + // This will be handled

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes Currently HIP still uses offload bundler for non-rdc mode for the new offload driver. This patch switches to use offload wrapper for non-device-only non-rdc mode when new offload driver is enabled. Thi

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Yaxun (Sam) Liu (yxsamliu) Changes Currently HIP still uses offload bundler for non-rdc mode for the new offload driver. This patch switches to use offload wrapper for non-device-only non-rdc mode when new offload driver is enable

[clang] [Clang][AMDGPU] Use size_t to compare with npos (PR #132868)

https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/132868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AMDGPU] Use size_t to compare with npos (PR #132868)

llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-clang Author: Jinsong Ji (jsji) Changes Fix error llvm\clang\tools\amdgpu-arch\AMDGPUArchByHIP.cpp(102,29): error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned int' is alwa

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/131237 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Upstream Mach-O ptrauth driver defaults (PR #132834)

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 5a668bdb98d6507626585cedbff0f18628ed7e5c ec8faf518af6384203c776fdd9928ef06e9b5be7 --e

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

ilovepi wrote: >I am not familiar with PR, so accidentally closed the previous PR >https://github.com/llvm/llvm-project/pull/132360. This is a new one. You can remove this part from the description. It isn't relevant to the rest of the project, and doesn't belong in the commit log. https://gi

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

ilovepi wrote: Ah, I see you deleted your repository, then yeah, that would make it hard to reopen. https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] da7f156 - [clang-format] Don't wrap before attributes in parameter lists (#132519)

Author: Owen Pan Date: 2025-03-24T19:18:13-07:00 New Revision: da7f1564a82e431dfbbf5b8d0bd53c64c5ca6af9 URL: https://github.com/llvm/llvm-project/commit/da7f1564a82e431dfbbf5b8d0bd53c64c5ca6af9 DIFF: https://github.com/llvm/llvm-project/commit/da7f1564a82e431dfbbf5b8d0bd53c64c5ca6af9.diff LOG:

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

ilovepi wrote: > @ilovepi I am not familiar with PR, so accidentally closed the previous PR. > This is a new one. Sorry for that. It's fine. IIRC you can reopen one pretty easily, but 🤷 Its no problem. https://github.com/llvm/llvm-project/pull/132510 __

[clang] 449cdfa - Suppress pedantic diagnostic for a file not ending in EOL (#131794)

Author: Aaron Ballman Date: 2025-03-19T07:49:16-04:00 New Revision: 449cdfacc07bd365d49a637196ce8f8067cf845c URL: https://github.com/llvm/llvm-project/commit/449cdfacc07bd365d49a637196ce8f8067cf845c DIFF: https://github.com/llvm/llvm-project/commit/449cdfacc07bd365d49a637196ce8f8067cf845c.diff

[clang] [NFC][Static Analyzer] Rename and discuss about `NotNullConstraint` & `NotNullBufferConstraint` (PR #131374)

@@ -1165,7 +1165,7 @@ ProgramStateRef StdLibraryFunctionsChecker::NotNullConstraint::apply( return State->assume(L, CannotBeNull); } -void StdLibraryFunctionsChecker::NotNullConstraint::describe( +void StdLibraryFunctionsChecker::NullnessConstraint::describe( Descripti

[clang] [clang][scan-build] Treat --use-cc and --use-c++ as shell commands (PR #131932)

@@ -51,63 +51,40 @@ sub silent_system { # Compiler command setup. ##===--===## -# Search in the PATH if the compiler exists -sub SearchInPath { -my $file = shift; -foreach my $dir (split (':', $ENV{PA

[clang] [clang][modules] Lazily load by name lookups in module maps (PR #132853)

llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Michael Spencer (Bigcheese) Changes Instead of eagerly populating the `clang::ModuleMap` when looking up a module by name, this patch changes `HeaderSearch` to only load the modules that are actually use

[clang] [Clang] Introduce __builtin_is_modifiable_lvalue() (PR #132524)

@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -std=c99 -fsyntax-only -verify %s pinskia wrote: > This feels like a pretty bare bones set of tests, I think we can do better. > > For example, it has been discussed that there should not be side effects, > let's verify that

[clang-tools-extra] [clang-doc] Format test files (PR #132428)

https://github.com/ilovepi ready_for_review https://github.com/llvm/llvm-project/pull/132428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve subsumption. (PR #132849)

llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes The main goal of this patch is to improve the performance of concept subsumption by - Making sure literal (atomic) clauses are de-duplicated (Whether 2 atomic constraint is established during the initial norma

[clang] [Clang] Improve subsumption. (PR #132849)

https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/132849 The main goal of this patch is to improve the performance of concept subsumption by - Making sure literal (atomic) clauses are de-duplicated (Whether 2 atomic constraint is established during the initial norm

[clang] [clang] Allow parentheses around CTAD declarators (PR #132829)

llvmbot wrote: @llvm/pr-subscribers-clang Author: None (offsetof) Changes Fixes #39811 --- Full diff: https://github.com/llvm/llvm-project/pull/132829.diff 5 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/include/clang/Basic/DiagnosticSemaKinds.td (+3

[clang-tools-extra] Limit modernize-use-nullptr to C++11/C23 and later (PR #132816)

llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (higher-performance) Changes `nullptr` is not supported on earlier versions of either standard, so the tidy should not diagnose earlier uses. --- Full diff: https://github.com/llvm/llvm-project/pull/132816.diff 1 Files Affecte

[clang] [HLSL][NFC] Refactor HLSLExternalSemaSource (PR #131032)

https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/131032 >From 7ebfc826ca27c71ef80f4a1b38b2d3a2e155b777 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 12 Mar 2025 14:09:24 -0700 Subject: [PATCH 1/6] [HLSL][NFC] Refactoring HLSLExternalSemaSource Moving builder

[clang] [NFC][Static Analyzer] Rename and discuss about `NotNullConstraint` & `NotNullBufferConstraint` (PR #131374)

https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/131374 >From fdc265eeca36dc877f56389d8dba39b517e6 Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Fri, 14 Mar 2025 11:13:46 -0700 Subject: [PATCH 1/3] [NFC][Static Analyzer] Rename `NotNullConstraint` & `NotN

[clang] [HLSL][NFC] Use method builder to create default resource constructor (PR #131384)

@@ -453,11 +481,11 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::dereference(T Ptr) { return *this; } -BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalizeMethod() { +BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalize() { assert(!DeclBuilder.Record

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

@@ -4894,7 +4894,7 @@ def HLSLDotProduct : LangBuiltin<"HLSL_LANG"> { def HLSLDot2Add : LangBuiltin<"HLSL_LANG"> { let Spellings = ["__builtin_hlsl_dot2add"]; let Attributes = [NoThrow, Const, CustomTypeChecking]; sumitsays wrote: `clang.exe` is not able t

[clang] [Sema] Diagnose by-value copy constructors in template instantiations (PR #130866)

zygoloid wrote: This error is [produced for the following code](https://github.com/carbon-language/carbon-lang/pull/5170): ```c++ template class SetView { SetView(SetView, KeyContextT> other_view) requires(!std::same_as>); }; ``` ... which is never an eligible copy constructor. Is that in

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

@@ -91,6 +91,137 @@ if.end: ; preds = %if.else, %if.then %3 = load i32, ptr %resp, align 4 ret i32 %3 } + +; CHECK: define i32 @flatten_switch(i32 %X) +; CHECK-NOT: hlsl.controlflow.hint +; CHECK: switch i32 %0, label %sw.epil

[clang] [clang-tools-extra] [lldb] Reland: [clang] preserve class type sugar when taking pointer to member (PR #132401)

mizvekov wrote: Thanks, that would be appreciated. https://github.com/llvm/llvm-project/pull/132401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow parentheses around CTAD declarators (PR #132829)

https://github.com/offsetof created https://github.com/llvm/llvm-project/pull/132829 Fixes #39811 >From 66833f41d26a6c6355ef67b2f9041ba771b690b7 Mon Sep 17 00:00:00 2001 From: offsetof Date: Mon, 24 Mar 2025 20:51:23 + Subject: [PATCH] [clang] Allow parentheses around CTAD declarators ---

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

@@ -0,0 +1,1079 @@ +//===-- 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

[libclc] [libclc] Add missing license headers to source IR files (PR #132758)

llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Fraser Cormack (frasercrmck) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/132758.diff 11 Files Affected: - (modified) libclc/amdgcn/lib/cl_khr_int64_extended_atomics/minmax_helpers.ll (+8) - (modified) li

[clang] [clang] Upstream Mach-O ptrauth driver defaults (PR #132834)

https://github.com/nico created https://github.com/llvm/llvm-project/pull/132834 None >From ec8faf518af6384203c776fdd9928ef06e9b5be7 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 24 Mar 2025 15:56:49 -0400 Subject: [PATCH] [clang] Upstream Mach-O ptrauth driver defaults --- clang/lib/D

[clang] [HLSL][NFC] Use method builder to create default resource constructor (PR #131384)

https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/131384 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

@@ -91,6 +91,137 @@ if.end: ; preds = %if.else, %if.then %3 = load i32, ptr %resp, align 4 ret i32 %3 } + +; CHECK: define i32 @flatten_switch(i32 %X) +; CHECK-NOT: hlsl.controlflow.hint +; CHECK: switch i32 %0, label %sw.epil

[clang] [clang] Fix overload resolution ranking of inherited constructors (PR #132830)

https://github.com/offsetof updated https://github.com/llvm/llvm-project/pull/132830 >From e458a6b79f560e803bdce414ea35f147ee4ce39d Mon Sep 17 00:00:00 2001 From: offsetof Date: Mon, 24 Mar 2025 21:06:44 + Subject: [PATCH 1/2] [clang] Fix overload resolution ranking of inherited constructo

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

@@ -91,6 +91,137 @@ if.end: ; preds = %if.else, %if.then %3 = load i32, ptr %resp, align 4 ret i32 %3 } + +; CHECK: define i32 @flatten_switch(i32 %X) +; CHECK-NOT: hlsl.controlflow.hint +; CHECK: switch i32 %0, label %sw.epil

[clang] [HLSL][NFC] Use method builder to create default resource constructor (PR #131384)

https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/131384 >From 7ebfc826ca27c71ef80f4a1b38b2d3a2e155b777 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 12 Mar 2025 14:09:24 -0700 Subject: [PATCH 1/5] [HLSL][NFC] Refactoring HLSLExternalSemaSource Moving builder

[clang] [HLSL][NFC] Use method builder to create default resource constructor (PR #131384)

https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/131384 >From 7ebfc826ca27c71ef80f4a1b38b2d3a2e155b777 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 12 Mar 2025 14:09:24 -0700 Subject: [PATCH 1/4] [HLSL][NFC] Refactoring HLSLExternalSemaSource Moving builder

[clang] [HLSL][NFC] Refactor HLSLExternalSemaSource (PR #131032)

https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/131032 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/131739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Decay types of function and constant template parameter packs (PR #132189)

@@ -1518,7 +1526,7 @@ NamedDecl *Sema::ActOnNonTypeTemplateParameter(Scope *S, Declarator &D, QualType T = CheckNonTypeTemplateParameterType(TInfo, D.getIdentifierLoc()); if (T.isNull()) { -T = Context.IntTy; // Recover with an 'int' type. +T = TInfo->getType(); -

[clang] [llvm] [HLSL] Add support to branch/flatten attributes to switch (PR #131739)

https://github.com/joaosaffran deleted https://github.com/llvm/llvm-project/pull/131739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

dwblaikie wrote: > The link from the class to the specific vtable even seems mildly incorrect, > in that during object construction the vtable will go through several > different values, not just one. Not sure I follow this - the object is only of the type, in some sense, when it is pointing

[clang] [Clang][Driver] Override complex number calculation method by -fno-fa… (PR #132680)

@@ -177,14 +177,45 @@ // RUN: %clang -### -target x86_64 -ffast-math -fcomplex-arithmetic=basic -c %s 2>&1 \ // RUN: | FileCheck --check-prefix=BASIC %s -// BASIC: -complex-range=basic -// FULL: -complex-range=full -// PRMTD: -complex-range=promoted -// BASIC-NOT: -complex-

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

https://github.com/hulxv updated https://github.com/llvm/llvm-project/pull/131280 >From bf9bd4156cb7f652c9cf0477f537e5c58b470448 Mon Sep 17 00:00:00 2001 From: hulxv Date: Fri, 14 Mar 2025 07:39:15 +0200 Subject: [PATCH 01/12] [clang-doc] [feat] add `--repository-line-prefix` argument (fix #59

[clang] 9a82f74 - [HLSL][NFC] Refactor HLSLExternalSemaSource (#131032)

Author: Helena Kotas Date: 2025-03-24T14:56:05-07:00 New Revision: 9a82f742b4976650827674e58c3c2b0b412b56f0 URL: https://github.com/llvm/llvm-project/commit/9a82f742b4976650827674e58c3c2b0b412b56f0 DIFF: https://github.com/llvm/llvm-project/commit/9a82f742b4976650827674e58c3c2b0b412b56f0.diff

[clang] [flang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

@@ -0,0 +1,534 @@ +#!/usr/bin/env python3 + +"""generate_unsupported_in_drivermode.py + +This script generates Lit regression test files that validate that options are only exposed to intended driver modes. + +The options and driver modes are parsed from Options.td, whose path sh

[clang] [clang] Decay types of function and constant template parameter packs (PR #132189)

@@ -1277,19 +1278,27 @@ QualType Sema::CheckNonTypeTemplateParameterType(TypeSourceInfo *&TSI, TSI = SubstAutoTypeSourceInfoDependent(TSI); } - return CheckNonTypeTemplateParameterType(TSI->getType(), Loc); + return CheckNonTypeTemplateParameterType(TSI->getType(), Lo

  1   2   3   4   5   >