[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-11 Thread Shilei Tian via cfe-commits
@@ -1421,6 +1421,18 @@ def fhip_emit_relocatable : Flag<["-"], "fhip-emit-relocatable">, HelpText<"Compile HIP source to relocatable">; def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">, HelpText<"Do not override toolchain to compile HIP source to relo

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-11 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco edited https://github.com/llvm/llvm-project/pull/162282 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Migrate tests away from `--match-partial-fixes` (PR #162851)

2025-10-11 Thread Victor Chernyakin via cfe-commits
@@ -151,7 +151,6 @@ void g() { for (int i = 0; i < 10; ++i) { a[i] = i; // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: do not use array subscript when the index is not an integer constant expression -// CHECK-FIXES: gsl::at(a, i) = i; gsl::at(a, i) = i; // OK,

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-11 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 origin/main HEAD --extensions c,cpp,h -- clang/test/Preprocessor/header-shadowing.c

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: It's great to see function attribute support get started! This looks good overall. https://github.com/llvm/llvm-project/pull/162866 ___ cfe-commits mailing list [email protected] https://lists.llvm.org

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-11 Thread Nick Sarnie via cfe-commits
sarnex wrote: Will do. https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-11 Thread Henrich Lauko via cfe-commits
@@ -1801,6 +1817,16 @@ void cir::FuncOp::print(OpAsmPrinter &p) { p << ")"; } + if (auto inlineKind = getInlineKind()) { +if (*inlineKind == cir::InlineKind::NoInline) { + p << " inline_never"; +} else if (*inlineKind == cir::InlineKind::AlwaysInline) { +

[clang] [clang] Remove support for really old Ubuntu releases (PR #162778)

2025-10-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Brad Smith (brad0) Changes After 07ca4db1e1f53876b14e5773e8b9d77c20774fca remove support for really old and older Ubunutu releases. --- Full diff: https://github.com/llvm/llvm-project/pull/162778.diff 2 Files Affected: - (modifie

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-11 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/162474 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot12` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/18431 Here is the re

[clang] [llvm] [NFC][SpecialCaseList] Split Matcher into RegexMatcher and GlobMatcher (PR #162303)

2025-10-11 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/162303 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-11 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,84 @@ +// RUN: cir-opt %s --verify-roundtrip | FileCheck %s + +!u8i = !cir.int + +module { + +cir.global "private" constant external @_ZTIi : !cir.ptr +cir.global "private" constant external @_ZTIPKc : !cir.ptr + +cir.func dso_local @empty_try_block_with_catch_all() { +

[clang] [clang][Sema] Split SYCLKernel back into its own attribute (PR #162868)

2025-10-11 Thread Joseph Huber via cfe-commits
@@ -1599,8 +1599,15 @@ def CUDAShared : InheritableAttr { } def : MutualExclusions<[CUDAConstant, CUDAShared, HIPManaged]>; +def SYCLKernel : InheritableAttr { + let Spellings = [Clang<"sycl_kernel">]; + let Subjects = SubjectList<[FunctionTmpl]>; + let LangOpts = [SYCLDevi

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-11 Thread via cfe-commits
@@ -755,6 +755,12 @@ def BSwap : Builtin, Template<["unsigned short", "uint32_t", "uint64_t"], let Prototype = "T(T)"; } +def BSwapg : Builtin { + let Spellings = ["__builtin_bswapg"]; + let Attributes = [NoThrow, Const, Constexpr, CustomTypeChecking]; + let Prototype =

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-11 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: > hasNonTrivialDefaultConstructor you can have ```cpp template class C { C(); C() requires true; }; ``` But in the case of __builtin_is_implicit_lifetime we probably want to allow that, actually... https://github.com/llvm/llvm-project/pull/162612 __