[clang] [CIR] Add binary operators (PR #132420)

2025-03-24 Thread Morris Hafner via cfe-commits
@@ -93,16 +96,20 @@ struct MissingFeatures { static bool stackSaveOp() { return false; } static bool aggValueSlot() { return false; } static bool generateDebugInfo() { return false; } + static bool getFPFeaturesInEffect() { return false; } + static bool pointerOverflowS

[clang] Remove duplicate API (PR #132776)

2025-03-24 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 1f967887018c63bddf5bf2860e0e6a3aa1e85840 ad58171d90be5e93c33c54f87f8c35096d13e680 --e

[clang] [analyzer] Fix format attribute handling in GenericTaintChecker (PR #132765)

2025-03-24 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes Previously `optin.taint.GenericTaint` misinterpreted the parameter indices and produced false positives in situa

[clang] [analyzer] Fix format attribute handling in GenericTaintChecker (PR #132765)

2025-03-24 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat ready_for_review https://github.com/llvm/llvm-project/pull/132765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix format attribute handling in GenericTaintChecker (PR #132765)

2025-03-24 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/132765 ___ 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
@@ -4894,7 +4894,7 @@ def HLSLDotProduct : LangBuiltin<"HLSL_LANG"> { def HLSLDot2Add : LangBuiltin<"HLSL_LANG"> { let Spellings = ["__builtin_hlsl_dot2add"]; let Attributes = [NoThrow, Const, CustomTypeChecking]; farzonl wrote: Not sure what you mean. Are

[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)

2025-03-24 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: This is a compile-time improvement overall. The reverted patch adds a 0.07 cost to stage2-clang, which we avoid with the new approach: Commit stage1-O3 stage1-ReleaseThinLTO stage1-ReleaseLTO-g stage1-O0-g stage2-O3 stage2-O0-g stage2-clang [9a089c5fb

[clang] [NFC][analyzer] Add testcase to highlight GenericTaint bug (PR #132765)

2025-03-24 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/132765 From f0ac1f6c223b3bfce25ba0183ba1aa2825c455ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Mon, 24 Mar 2025 16:58:31 +0100 Subject: [PATCH 1/2] [NFC][analyzer] Add testcase to highlight G

[clang] [analyzer] Fix format attribute handling in GenericTaintChecker (PR #132765)

2025-03-24 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/132765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Add feature CSSC and detect on linux platform. (PR #132727)

2025-03-24 Thread Jon Roelofs via cfe-commits
jroelofs wrote: Correct, and that's fine: nothing we've previously shipped supports FEAT_CSSC. https://github.com/llvm/llvm-project/pull/132727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

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

2025-03-24 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/128640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement CWG2815 (PR #132778)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (offsetof) Changes CWG2815 "Overload resolution for references/pointers to `noexcept` functions" --- Full diff: https://github.com/llvm/llvm-project/pull/132778.diff 5 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+4)

[clang] [clang-tools-extra] [clang][lex] Store non-owning options ref in `HeaderSearch` (PR #132780)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clang-tidy Author: Jan Svoboda (jansvoboda11) Changes This makes it so that `CompilerInvocation` can be the only entity that manages ownership of `HeaderSearchOptions`, making it possible to implement copy-on-writ

[clang] [llvm] [RISCV] Remove experimental from Sdext and Sdtrig which are ratified. (PR #132529)

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

[clang] [clang-tools-extra] [clang][lex] Store non-owning options ref in `HeaderSearch` (PR #132780)

2025-03-24 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 72e596f35951e849de9fc739238e84ec1217b939 187c26f90800edf0b5335322025606e3779e344a --e

[clang] [clang][analyzer] Move 'alpha.core.FixedAddressDereference' out of alpha (PR #132404)

2025-03-24 Thread Balázs Kéri via cfe-commits
balazske wrote: [This single report](https://codechecker-demo.eastus.cloudapp.azure.com/Default/report-detail?run=qtbase_v6.2.0_fixedaddr_on_test&is-unique=off&diff-type=New&checker-name=alpha.core.FixedAddressDereference&report-hash=fda7750beaa79c7f9c602febcf9a7bb9&report-id=6953322&report-file

[clang] [Flang] Link `-lflang_rt.runtime` if available on the device (PR #132737)

2025-03-24 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/132737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Flang] Link `-lflang_rt.runtime` if available on the device (PR #132737)

2025-03-24 Thread Joseph Huber via cfe-commits
@@ -9337,6 +9337,11 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back( Args.MakeArgString("--device-linker=" + TC.getTripleString() + "=" + "-lclang_rt.builtins")); + bool HasFlan

[clang] [Flang] Link `-lflang_rt.runtime` if available on the device (PR #132737)

2025-03-24 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/132737 >From abf867e63c939e70916017e3abcabc5a947fb41e Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 24 Mar 2025 09:01:08 -0500 Subject: [PATCH 1/2] [Flang] Link `-lflang_rt.runtime` if available on the device

[clang] [WebKit Checkers] Recognize Objective-C and CF pointer conversion functions. (PR #132784)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes Recognize dynamic_objc_cast, checked_objc_cast, dynamic_cf_cast, and checked_cf_cast. --- Full diff: https://github.com/llvm/llvm-project/pull/132784.diff 5 Files Affected: - (modified) clang/lib/StaticAnal

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

2025-03-24 Thread Krzysztof Parzyszek via cfe-commits
@@ -1657,6 +1657,10 @@ def err_omp_expected_colon : Error<"missing ':' in %0">; def err_omp_missing_comma : Error< "missing ',' after %0">; def err_omp_expected_context_selector : Error<"expected valid context selector in %0">; +def err_omp_unknown_clause +: Error<"unkn

[clang] [clang][analyzer] Correctly handle structured bindings captured by lambda (PR #132579)

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

[clang] [clang][analyzer] Correctly handle structured bindings captured by lambda (PR #132579)

2025-03-24 Thread via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: %clang_analyze_cc1 -std=c++20 %s -analyzer-checker=core.NullDereference -analyzer-output=text -verify + +// expected-no-diagnostics + +struct S { int x; }; + +void f(int x) { (void)x; } + +int main() +{ +S s{42}; +auto& [x] = s; +auto g = [x]

[clang] [llvm] [RISCV] Add Qualcomm uC Xqciio (External Input Output) extension (PR #132721)

2025-03-24 Thread Craig Topper via cfe-commits
@@ -741,6 +750,28 @@ def QC_C_MILEAVERET : QCIRVInst16CI_NONE<0b10100, "qc.c.mileaveret">; } // Predicates = [HasVendorXqciint, IsRV32], hasSideEffects = 1 +let Predicates = [HasVendorXqciio, IsRV32] in { +let hasSideEffects = 1, mayLoad = 0, mayStore = 0 in { + def QC_OU

[clang] [clang][analyzer] Correctly handle structured bindings captured by lambda (PR #132579)

2025-03-24 Thread via cfe-commits
https://github.com/isuckatcs requested changes to this pull request. IIUC, the real issue is that we could only handle `VarDecl` that was captured by a lambda, and nothing else, including the `BindingDecl`. In this case the proper fix would be to make sure, every declaration is correctly look

[clang] [clang-tools-extra] Revert "[clang-tidy] Avoid processing declarations in system headers … (PR #132743)

2025-03-24 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/132743 …(#128150)" This was too aggressive, and leads to problems for downstream users: https://github.com/llvm/llvm-project/pull/128150#issuecomment-2739803409 Let's revert and reland it once we have addressed

[clang] [clang-tools-extra] Revert "[clang-tidy] Avoid processing declarations in system headers … (PR #132743)

2025-03-24 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/132743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][AST][clang-tidy] Do not set a reduced traversal scope in ASTM… (PR #132725)

2025-03-24 Thread Carlos Galvez via cfe-commits
@@ -94,8 +94,6 @@ Improvements to clang-tidy - :program:`clang-tidy` no longer processes declarations from system headers by default, greatly improving performance. This behavior is disabled if the `SystemHeaders` option is enabled. - Note: this may lead to false negatives

[clang] [clang][analyzer] Fix crash caused by overload operator member function with explicit this (PR #132581)

2025-03-24 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun edited https://github.com/llvm/llvm-project/pull/132581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f7aea4d - [clang][bytecode] Implement __builtin_{wcscmp,wcsncmp} (#132723)

2025-03-24 Thread via cfe-commits
Author: Timm Baeder Date: 2025-03-24T15:03:49+01:00 New Revision: f7aea4d081f77dba48b0fc019f59b678fb679aa8 URL: https://github.com/llvm/llvm-project/commit/f7aea4d081f77dba48b0fc019f59b678fb679aa8 DIFF: https://github.com/llvm/llvm-project/commit/f7aea4d081f77dba48b0fc019f59b678fb679aa8.diff L

[clang] [Flang] Link `-lflang_rt.runtime` if available on the device (PR #132737)

2025-03-24 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/132737 Summary: Now that we can build the Fortran runtime on the GPU (mostly) we should be able to implicitly link it if it exists. This matches the normal behavior where it is included implicity. No tests because it wo

[clang] [clang][AMDGPU] Enable module splitting by default (PR #128509)

2025-03-24 Thread Pierre van Houtryve via cfe-commits
https://github.com/Pierre-vh edited https://github.com/llvm/llvm-project/pull/128509 ___ 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)

2025-03-24 Thread Carlos Alberto Enciso via cfe-commits
CarlosAlbertoEnciso wrote: > > Given the _vtable$ artificial member: use the DW_AT_containing_type to find > > the vtable global variable. > > It seems to me that this attribute should refer to a type and not a variable. Good point. Another option is to use `DW_AT_specification`. ``` 0x00

[clang] [clang][analyzer] Fix InvalidatedIterator crash caused by overload operator member function with explicit this (PR #132581)

2025-03-24 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/132581 >From 67ebfb00f7104e63b4a1464f6b015ba8bdea4cc6 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 23 Mar 2025 11:02:53 +0800 Subject: [PATCH 1/2] [clang][analyzer] Fix crash caused by overload operator member fu

[clang] [clang][bytecode] Redo RUN lines in the builtin-functions test (PR #132762)

2025-03-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Make sure we run each configuration once with the bytecode interpreter and once with the current one. Add a triple to the one that was previously without. --- Full diff: https://github.com/llvm/llvm-project/

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

2025-03-24 Thread Sumit Agarwal via cfe-commits
@@ -2473,11 +2473,9 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { break; } case Builtin::BI__builtin_hlsl_dot2add: { -// Check number of arguments should be 3 if (SemaRef.checkArgCount(TheCall, 3)) return true; -

[clang] [clang] Implement CWG2815 (PR #132778)

2025-03-24 Thread via cfe-commits
https://github.com/offsetof created https://github.com/llvm/llvm-project/pull/132778 CWG2815 "Overload resolution for references/pointers to `noexcept` functions" >From 0aa1e7b83888bde7112327fba7db9bdcb71c43d9 Mon Sep 17 00:00:00 2001 From: offsetof Date: Mon, 24 Mar 2025 16:28:28 + Subjec

[clang] [CIR] Add binary operators (PR #132420)

2025-03-24 Thread Andy Kaylor via cfe-commits
@@ -93,16 +96,20 @@ struct MissingFeatures { static bool stackSaveOp() { return false; } static bool aggValueSlot() { return false; } static bool generateDebugInfo() { return false; } + static bool getFPFeaturesInEffect() { return false; } + static bool pointerOverflowS

[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] [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] [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] [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] [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] [HLSL][NFC] Use method builder to create default resource constructor (PR #131384)

2025-03-24 Thread Helena Kotas via cfe-commits
@@ -453,11 +481,11 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::dereference(T Ptr) { return *this; } -BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalizeMethod() { +BuiltinTypeDeclBuilder &BuiltinTypeMethodBuilder::finalize() { assert(!DeclBuilder.Record

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

2025-03-24 Thread Chuanqi Xu via cfe-commits
@@ -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] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-24 Thread via cfe-commits
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] [llvm] [AArch64] Add initial support for -mcpu=olympus. (PR #132368)

2025-03-24 Thread Ricardo Jesus via cfe-commits
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] [clang-format] Fix a regression on annotating template angles (PR #132885)

2025-03-24 Thread Owen Pan via cfe-commits
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] 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] [SPARC][Driver] Set correct IAS mode defaults for Linux and Free/OpenBSD (PR #130108)

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] [llvm] [RISCV] Implement the implications of C extension (PR #132259)

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] Ubsan: warn on -fsanitize-trap=undefined ignored when passed on its own (PR #132319)

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] [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] 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)

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] [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] [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] [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] [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] [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][bytecode] Support composite arrays in memcpy op (PR #132775)

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] bcedb36 - [clang][bytecode] Support composite arrays in memcpy op (#132775)

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

[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] f6a3cd5 - [clang] ``noconvergent`` does not affect calls to convergent functions (#132701)

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] [Clang][AMDGPU] Use size_t to compare with npos (PR #132868)

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] [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-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] 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] [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 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/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] [clang][modules] Lazily load by name lookups in module maps (PR #132853)

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] [libclang/python] Change all global variables to snake case (PR #132378)

Endilll wrote: I was pointed out that there is a separate rule that constants are supposed to be in `SCREAMING_CAPS` (https://peps.python.org/pep-0008/#constants). We should've changed the names (`k` prefix is out of place anyway), but not to `snake_case` as I implied. https://github.com/llvm

[clang] [HLSL] Finish exposing half types and intrinsics always (PR #132804)

spall wrote: > For example, for `abs`, it still depends on the _HLSL_16BIT_AVAILABILITY > availability attribute. Does this PR intend to keep abs overloads using half > "unexposed"? Or should that overload for abs be exposed too? Oh I see what you are referring to. That might be my mistake; le

[clang] [HLSL] Finish exposing half types and intrinsics always (PR #132804)

farzonl wrote: Are there any test changes we should consider here? If not could you prefix `[NFC]` to the title? https://github.com/llvm/llvm-project/pull/132804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [libclang/python] Change all global variables to snake case (PR #132378)

Endilll wrote: Sorry for the churn https://github.com/llvm/llvm-project/pull/132378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] Remove outdated COV6 warning (PR #132814)

llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Shilei Tian (shiltian) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/132814.diff 4 Files Affected: - (modified) clang/include/clang/Basic/DiagnosticDriverKinds.td (-4) - (modified) clang/lib/Driver/ToolChains

[clang] [AMDGPU][clang] provide device implementation for __builtin_logb and … (PR #129347)

@@ -0,0 +1,32 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 jhuber6 wrote: Move to normal `CodeGen`. https://github.com/llvm/llvm-project/pull/129347 ___ cfe-c

[clang] [AMDGPU][clang] provide device implementation for __builtin_logb and … (PR #129347)

https://github.com/jhuber6 commented: I'll defer to @arsenm for the final verdict. https://github.com/llvm/llvm-project/pull/129347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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 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] 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] [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 crash on invalid `std::initializer_list` template-id (PR #132284)

@@ -0,0 +1,14 @@ +// RUN: %clang_cc1 %s -verify -std=c++20 + +namespace std { + +template // expected-error 2 {{type 'int' cannot be used prior to '::' because it has no members}} +class initializer_list; + +} + +auto x = {1}; // expected-note {{in instantiation of default argume

[clang] [clang-tools-extra] [clang][lex] Store non-owning options ref in `HeaderSearch` (PR #132780)

https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/132780 This makes it so that `CompilerInvocation` can be the only entity that manages ownership of `HeaderSearchOptions`, making it possible to implement copy-on-write semantics. >From 4fe58f967f21c790c179d4c37e

[clang] [clang][bytecode][NFC] Add assert to ptrauth_string_discriminator (PR #132527)

https://github.com/shafik commented: LGTM, thank you for adding this comment! https://github.com/llvm/llvm-project/pull/132527 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.RawPtrRefMemberChecker] The checker doesn't warn Objective-C types in ivars. (PR #132833)

llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR fixes the bug that we weren't generating warnings when a raw poiner is used to point to a NS type in Objective-C ivars. Also fix the bug that we weren't suppressing this warning in system headers. ---

[clang] [HLSL] Fix codegen to support classes in `cbuffer` (PR #132828)

https://github.com/joaosaffran approved this pull request. Code LGTM https://github.com/llvm/llvm-project/pull/132828 ___ 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] [RFC] Initial implementation of P2719 (PR #113510)

https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/113510 ___ 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] [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] [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

<    1   2   3   4   5   >