[clang] [clang][Tooling] Support relative directory in compilation database (PR #127734)

2025-02-19 Thread kadir çetinkaya via cfe-commits
kadircet wrote: > In my case I am using my build system (bazel) to generate the > compile_commands.json file as part of the build. At this point given bazel's > sandboxing / hermiticity model, the user's checkout PWD is unknown. This file > is then copied somewhere and used by clangd. Today to

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-19 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/127555 >From e675b4b7848a300c695948b87aea15b6d4e77426 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Tue, 18 Feb 2025 10:00:25 +0800 Subject: [PATCH] [clang][LoongArch] Add OHOS target Add support for OHOS on loonga

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-19 Thread Jonas Paulsson via cfe-commits
@@ -255,4 +255,9 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) { } setLibcallName(RTLIB::MULO_I128, nullptr); } + + if (TT.isSystemZ()) { +setLibcallName(RTLIB::FPROUND_F32_F16, "__truncsfhf2"); +setLibcallName(RTLIB::FPEXT_F16_F32, "__extendhfs

[clang] [CMake] Fix variable name (PR #127967)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Petr Hosek (petrhosek) Changes This was accidentaly introduced in #126876. --- Full diff: https://github.com/llvm/llvm-project/pull/127967.diff 1 Files Affected: - (modified) clang/utils/perf-training/CMakeLists.txt (+1-1) ``

[clang] [clang][perf-training] Support excluding LLVM build from PGO training (PR #126876)

2025-02-19 Thread Petr Hosek via cfe-commits
@@ -11,6 +11,7 @@ config.python_exe = "@Python3_EXECUTABLE@" config.cmake_exe = "@CMAKE_COMMAND@" config.llvm_src_dir ="@CMAKE_SOURCE_DIR@" config.cmake_generator ="@CMAKE_GENERATOR@" +config.use_llvm_build = @CLANG_PGO_TRAINING_USE_LLVM_BUILD@ petrhosek wrote:

[clang] [clang-format] Fix a bug in BCIS_AfterColon and `ColumnLimit: 0` (PR #127964)

2025-02-19 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/127964 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake] Fix variable name (PR #127967)

2025-02-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/127967 This was accidentaly introduced in #126876. >From 811f3ce860a5e544000166ccd06df3bb8cf5ec6b Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 20 Feb 2025 07:39:23 + Subject: [PATCH] [CMake] Fix variable

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-19 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: Found one intrinsic that isn't working for f16: - Isel fails: %res = call i32 @llvm.s390.tdc.f16(half %x, i64 123) LLVM ERROR: Cannot select: t9: i32 = SystemZISD::TDC t2, Constant:i64<123> - The SystemZTDC pass seems to work with 'half', but no tests. - The Clang testFPKind d

[clang] [clang-format] Fix a bug in BCIS_AfterColon and `ColumnLimit: 0` (PR #127964)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #127622 --- Full diff: https://github.com/llvm/llvm-project/pull/127964.diff 2 Files Affected: - (modified) clang/lib/Format/ContinuationIndenter.cpp (+2-3) - (modified) clang/unittests/Format/For

[clang] [clang-format] Fix a bug in BCIS_AfterColon and `ColumnLimit: 0` (PR #127964)

2025-02-19 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/127964 Fixes #127622 >From 062d6736b517d0d33eeab63c7c33053f72640c3c Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 19 Feb 2025 23:26:12 -0800 Subject: [PATCH] [clang-format] Fix a bug in BCIS_AfterColon and `Column

[clang] [llvm] [clang] Add support for the c2000 architecture (PR #125663)

2025-02-19 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/125663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add support for the c2000 architecture (PR #125663)

2025-02-19 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay requested changes to this pull request. (strongly object to the driver mode and option changes. But thanks for proposing the pseudo target RFC, which has potential to support many downstream targets without more custom code in Basic/Targets/Driver.) (Request changes

[clang] [llvm] [clang] Add support for the c2000 architecture (PR #125663)

2025-02-19 Thread Fangrui Song via cfe-commits
@@ -430,6 +430,7 @@ static const DriverSuffix *FindDriverSuffix(StringRef ProgName, size_t &Pos) { // `flang-new`. This will be removed in the future. {"flang-new", "--driver-mode=flang"}, {"clang-dxc", "--driver-mode=dxc"}, + {"cl2000", "--driver-mode=c

[clang] [llvm] [clang] Add support for the c2000 architecture (PR #125663)

2025-02-19 Thread Fangrui Song via cfe-commits
@@ -9111,3 +9118,50 @@ def wasm_opt : Flag<["--"], "wasm-opt">, Group, HelpText<"Enable the wasm-opt optimizer (default)">, MarshallingInfoNegativeFlag>; + + + +//===--===// +// cl2000 Options +//===-

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-19 Thread Trevor Gross via cfe-commits
@@ -255,4 +255,9 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) { } setLibcallName(RTLIB::MULO_I128, nullptr); } + + if (TT.isSystemZ()) { +setLibcallName(RTLIB::FPROUND_F32_F16, "__truncsfhf2"); +setLibcallName(RTLIB::FPEXT_F16_F32, "__extendhfs

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-19 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,16 @@ +/// Check the max-page-size for OHOS aarch64/loongarch64/riscv64/x86_64. MaskRay wrote: Don't add a new file for a minor property (though important to test) like page-size. Just reuse ohos.c Many driver tests are probably not organized in the

[libunwind] [libunwind][NFC] Remove the CET keyword in shadow stack-related stuffs (PR #126663)

2025-02-19 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/126663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-19 Thread Jonas Paulsson via cfe-commits
@@ -3830,6 +3876,14 @@ SDValue SystemZTargetLowering::lowerSELECT_CC(SDValue Op, ISD::CondCode CC = cast(Op.getOperand(4))->get(); SDLoc DL(Op); + // SELECT_CC involving f16 will not have the cmp-ops promoted by the + // legalizer, as it will be handled according to the

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-02-19 Thread Jonas Paulsson via cfe-commits
@@ -6470,6 +6540,84 @@ static SDValue lowerAddrSpaceCast(SDValue Op, SelectionDAG &DAG) { return Op; } +SDValue SystemZTargetLowering::lowerFP_EXTEND(SDValue Op, + SelectionDAG &DAG) const { + SDValue In = Op.getOperand(Op->isSt

[libclc] [libclc] Fix int<->float conversion builtins (PR #126905)

2025-02-19 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/126905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add support for dynamic libraries in CLANG_BOLT (PR #127020)

2025-02-19 Thread Tom Stellard via cfe-commits
https://github.com/tstellar commented: I like the idea here. I wonder if this could be generalized somehow in `add_llvm_library` so that it could be applied to arbitrary libraries. I had wanted to try to generalize this for executable in `add_llvm_executable`. I'm fine taking this patch as-

[clang] [clang][perf-training] Support excluding LLVM build from PGO training (PR #126876)

2025-02-19 Thread Tom Stellard via cfe-commits
@@ -11,6 +11,7 @@ config.python_exe = "@Python3_EXECUTABLE@" config.cmake_exe = "@CMAKE_COMMAND@" config.llvm_src_dir ="@CMAKE_SOURCE_DIR@" config.cmake_generator ="@CMAKE_GENERATOR@" +config.use_llvm_build = @CLANG_PGO_TRAINING_USE_LLVM_BUILD@ tstellar wrote:

[clang] Add support for dynamic libraries in CLANG_BOLT (PR #127020)

2025-02-19 Thread Tom Stellard via cfe-commits
@@ -574,47 +591,67 @@ def bolt_optimize(args): opts = parser.parse_args(args) -output = subprocess.check_output( -[opts.readelf, "-WS", opts.input], universal_newlines=True -) +inputs = opts.input.split(";") +instrumented_outputs = opts.instrumente

[clang] Add support for dynamic libraries in CLANG_BOLT (PR #127020)

2025-02-19 Thread Tom Stellard via cfe-commits
@@ -176,15 +198,15 @@ if (CLANG_BOLT AND NOT LLVM_BUILD_INSTRUMENTED) TARGET clang POST_BUILD COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/../../utils/perf-training/perf-helper.py bolt-optimize ---method ${CLANG_BOLT} -

[clang] Add support for dynamic libraries in CLANG_BOLT (PR #127020)

2025-02-19 Thread Tom Stellard via cfe-commits
@@ -168,6 +168,28 @@ if (CLANG_BOLT AND NOT LLVM_BUILD_INSTRUMENTED) ) set(LIT_COMMAND "${lit_base_dir}/${lit_file_name}") + set(CLANG_BOLT_INPUTS $) + set(CLANG_INSTRUMENTED_OUTPUTS ${CLANG_INSTRUMENTED}) + + # Add in dynamically linked libraries, if needs be. Currentl

[clang] [HLSL] Implement the 'and' HLSL function (PR #127098)

2025-02-19 Thread Mikael Holmén via cfe-commits
@@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -finclude-default-header -triple \ +// RUN: dxil-pc-shadermodel6.3-library %s \ +// RUN: -emit-llvm -O1 -verify mikaelholmen wrote: Looks like this testcase will write to the current directory. This may potentially be wri

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-19 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Clang] Implement CWG2918 'Consideration of constraints for address of overloaded function' (PR #127773)

2025-02-19 Thread Younan Zhang via cfe-commits
@@ -1773,20 +1773,19 @@ bool Sema::IsAtLeastAsConstrained(NamedDecl *D1, NamedDecl *D2, MutableArrayRef AC2, bool &Result) { +#ifndef NDEBUG if (const auto *FD1 = dyn_cast(D

[clang] [Clang] Implement CWG2918 'Consideration of constraints for address of overloaded function' (PR #127773)

2025-02-19 Thread Younan Zhang via cfe-commits
@@ -13443,9 +13499,9 @@ Sema::resolveAddressOfSingleOverloadCandidate(Expr *E, DeclAccessPair &Pair) { return nullptr; if (Result) { -SmallVector ResultAC; // We skipped over some ambiguous declarations which might be ambiguous with // the selected result

[clang] [CUDA] Increment VTable index for device thunks (PR #124989)

2025-02-19 Thread Anshil Gandhi via cfe-commits
https://github.com/gandhi56 closed https://github.com/llvm/llvm-project/pull/124989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 95000fd - [CUDA] Increment VTable index for device thunks (#124989)

2025-02-19 Thread via cfe-commits
Author: Anshil Gandhi Date: 2025-02-19T23:47:22-05:00 New Revision: 95000fdb9e98a88b923fa7aa4bdeffbc618a323c URL: https://github.com/llvm/llvm-project/commit/95000fdb9e98a88b923fa7aa4bdeffbc618a323c DIFF: https://github.com/llvm/llvm-project/commit/95000fdb9e98a88b923fa7aa4bdeffbc618a323c.diff

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/11171 Here is the relevant piece of the

[clang] [llvm] [RISCV] Assembler support for XRivosVizip (PR #127694)

2025-02-19 Thread Pengcheng Wang via cfe-commits
wangpc-pp wrote: > > I am kind of confused now. So the situation here is that RVIOS has already > > implemented these vendor extensions in cores and RVIOS is also trying to > > make these extensions official RVI standards, right? > > You're confusing two things. We (Rivos) have defined a set o

[clang] f8bdbed - [CIR] Upstream simple function bodies (#127674)

2025-02-19 Thread via cfe-commits
Author: David Olsen Date: 2025-02-19T19:58:12-08:00 New Revision: f8bdbed5b3f12c5e1c38a29cd71df286a9e2725c URL: https://github.com/llvm/llvm-project/commit/f8bdbed5b3f12c5e1c38a29cd71df286a9e2725c DIFF: https://github.com/llvm/llvm-project/commit/f8bdbed5b3f12c5e1c38a29cd71df286a9e2725c.diff L

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi closed https://github.com/llvm/llvm-project/pull/127674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move frexp to CLC library; optimize half vecs (PR #127836)

2025-02-19 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. This should move to use the new frexp intrinsic https://github.com/llvm/llvm-project/pull/127836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[libclc] [libclc] Move modf to the CLC library (PR #127828)

2025-02-19 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/127828 ___ 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-02-19 Thread Owen Pan via cfe-commits
owenca 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 option for all con

[clang] [C++20] [Modules] Instantiate pending instantiations when GMF ends (PR #126842)

2025-02-19 Thread Chuanqi Xu via cfe-commits
@@ -1104,9 +1104,13 @@ void Sema::ActOnStartOfTranslationUnit() { } void Sema::ActOnEndOfTranslationUnitFragment(TUFragmentKind Kind) { - // No explicit actions are required at the end of the global module fragment. - if (Kind == TUFragmentKind::Global) + if (Kind == TUFrag

[clang] [NFC][Clang] Precommit test for VTable codegen (PR #124983)

2025-02-19 Thread Anshil Gandhi via cfe-commits
https://github.com/gandhi56 closed https://github.com/llvm/llvm-project/pull/124983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bf9b72e - [NFC][Clang] Precommit test for VTable codegen (#124983)

2025-02-19 Thread via cfe-commits
Author: Anshil Gandhi Date: 2025-02-19T21:14:02-05:00 New Revision: bf9b72e134bff7eb6861e07752d70cb33348b540 URL: https://github.com/llvm/llvm-project/commit/bf9b72e134bff7eb6861e07752d70cb33348b540 DIFF: https://github.com/llvm/llvm-project/commit/bf9b72e134bff7eb6861e07752d70cb33348b540.diff

[clang] [NFC][Clang] Precommit test for VTable codegen (PR #124983)

2025-02-19 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/124983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Precommit test for VTable codegen (PR #124983)

2025-02-19 Thread Anshil Gandhi via cfe-commits
gandhi56 wrote: @yxsamliu will you approve this PR since you have approved #124989? Thanks. https://github.com/llvm/llvm-project/pull/124983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [CUDA] Increment VTable index for device thunks (PR #124989)

2025-02-19 Thread Anshil Gandhi via cfe-commits
gandhi56 wrote: Appreciate the review, @yxsamliu https://github.com/llvm/llvm-project/pull/124989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CUDA] Increment VTable index for device thunks (PR #124989)

2025-02-19 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. LGTM. Thanks https://github.com/llvm/llvm-project/pull/124989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] [Modules] Instantiate pending instantiations when GMF ends (PR #126842)

2025-02-19 Thread Matheus Izvekov via cfe-commits
@@ -1104,9 +1104,13 @@ void Sema::ActOnStartOfTranslationUnit() { } void Sema::ActOnEndOfTranslationUnitFragment(TUFragmentKind Kind) { - // No explicit actions are required at the end of the global module fragment. - if (Kind == TUFragmentKind::Global) + if (Kind == TUFrag

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tom Stellard via cfe-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f5b311e - [CMake][Release] Statically link clang with stage1 runtimes (#127268)

2025-02-19 Thread via cfe-commits
Author: Tom Stellard Date: 2025-02-19T17:46:29-08:00 New Revision: f5b311e47de044160aeb25221095898c35c4847f URL: https://github.com/llvm/llvm-project/commit/f5b311e47de044160aeb25221095898c35c4847f DIFF: https://github.com/llvm/llvm-project/commit/f5b311e47de044160aeb25221095898c35c4847f.diff

[clang] [clang-tools-extra] [compiler-rt] [Clang] [NFC] Fix more `-Wreturn-type` warnings in tests everywhere (PR #123470)

2025-02-19 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/123470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [lld] [llvm] [Flang] Remove FLANG_INCLUDE_RUNTIME (PR #124126)

2025-02-19 Thread Slava Zakharin via cfe-commits
vzakhari wrote: Hi @Meinersbur is this the only patch that is left to be merged? Could you please rebase it so that I can try it on top-of-tree? https://github.com/llvm/llvm-project/pull/124126 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] 007f601 - [Clang][Docs] Document -Xarch_ better (#127890)

2025-02-19 Thread via cfe-commits
Author: Joseph Huber Date: 2025-02-19T19:12:24-06:00 New Revision: 007f601f15059520b64c09a32b7bb9d99b845d7e URL: https://github.com/llvm/llvm-project/commit/007f601f15059520b64c09a32b7bb9d99b845d7e DIFF: https://github.com/llvm/llvm-project/commit/007f601f15059520b64c09a32b7bb9d99b845d7e.diff

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/127890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] more useful error message for decomposition declaration missing initializer (PR #127924)

2025-02-19 Thread via cfe-commits
https://github.com/kbrav updated https://github.com/llvm/llvm-project/pull/127924 >From 7f7b9b3f2e7324bd290decb7151c9432875b1dd6 Mon Sep 17 00:00:00 2001 From: kbrav Date: Wed, 19 Feb 2025 19:05:05 -0500 Subject: [PATCH 1/2] [clang] more useful error message for decomposition declaration missi

[clang] [libc] [Clang] Fix cross-lane scan when given divergent lanes (PR #127703)

2025-02-19 Thread Shilei Tian via cfe-commits
@@ -188,6 +186,32 @@ __DO_LANE_SCAN(float, uint32_t, f32);// float __gpu_lane_scan_f32(m, x) __DO_LANE_SCAN(double, uint64_t, f64); // double __gpu_lane_scan_f64(m, x) #undef __DO_LANE_SCAN +// Gets the sum of all lanes inside the warp or wavefront. shi

[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

2025-02-19 Thread Peilin Ye via cfe-commits
peilin-ye wrote: When landing, please simply land this PR as-is - considering that I've made several references to this PR on the mailing list, and the two other commits except the "main" one are pretty small, I no longer think it's worth it to restructure this into stacked PRs. For future co

[clang] [clang] more useful error message for decomposition declaration missing initializer (PR #127924)

2025-02-19 Thread via cfe-commits
https://github.com/kbrav updated https://github.com/llvm/llvm-project/pull/127924 >From 7f7b9b3f2e7324bd290decb7151c9432875b1dd6 Mon Sep 17 00:00:00 2001 From: kbrav Date: Wed, 19 Feb 2025 19:05:05 -0500 Subject: [PATCH 1/2] [clang] more useful error message for decomposition declaration missi

[clang] [clang] more useful error message for decomposition declaration missing initializer (PR #127924)

2025-02-19 Thread via cfe-commits
https://github.com/kbrav updated https://github.com/llvm/llvm-project/pull/127924 >From 7f7b9b3f2e7324bd290decb7151c9432875b1dd6 Mon Sep 17 00:00:00 2001 From: kbrav Date: Wed, 19 Feb 2025 19:05:05 -0500 Subject: [PATCH 1/2] [clang] more useful error message for decomposition declaration missi

[clang] 131a3cf - [CIR] updates test for 75ea7aed (#127917)

2025-02-19 Thread via cfe-commits
Author: Christopher Di Bella Date: 2025-02-19T16:47:22-08:00 New Revision: 131a3cfab46ff8eb03ae102a39ea35b7f5e11d1b URL: https://github.com/llvm/llvm-project/commit/131a3cfab46ff8eb03ae102a39ea35b7f5e11d1b DIFF: https://github.com/llvm/llvm-project/commit/131a3cfab46ff8eb03ae102a39ea35b7f5e11d1

[clang] [CIR] updates test for 75ea7aed (PR #127917)

2025-02-19 Thread Christopher Di Bella via cfe-commits
cjdb wrote: Thanks! https://github.com/llvm/llvm-project/pull/127917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] updates test for 75ea7aed (PR #127917)

2025-02-19 Thread Christopher Di Bella via cfe-commits
https://github.com/cjdb closed https://github.com/llvm/llvm-project/pull/127917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/127890 >From d5efc8e10fabb0f2258e0bf5d2e4ce9c0686b911 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 19 Feb 2025 14:01:56 -0600 Subject: [PATCH 1/5] [Clang][Docs] Document -Xarch_ better Summary: This argument

[clang] [flang] [flang][OpenMP] Upstream first part of `do concurrent` mapping (PR #126026)

2025-02-19 Thread Tom Eccles via cfe-commits
https://github.com/tblah commented: Thank you for up-streaming this https://github.com/llvm/llvm-project/pull/126026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/127890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/127890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Artem Belevich via cfe-commits
@@ -932,9 +932,18 @@ def W_Joined : Joined<["-"], "W">, Group, def Xanalyzer : Separate<["-"], "Xanalyzer">, HelpText<"Pass to the static analyzer">, MetaVarName<"">, Group; -def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[NoXarchOption]>, - HelpText<"Pass to th

[clang] [llvm] Reland "[HLSL] Implement the reflect HLSL function" (PR #125599)

2025-02-19 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron edited https://github.com/llvm/llvm-project/pull/125599 ___ 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-02-19 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 option for all control stateme

[clang] [Clang] Don't give up on an unsuccessful function instantiation (PR #126723)

2025-02-19 Thread Younan Zhang via cfe-commits
zyn0217 wrote: > > Technically swapping the first and second branches I mentioned above should > > work, but the last time I tried that it caused a regression and was > > reverted." > > > > Yeah, swapping the branches would have been a much simpler fix. > > > > What was the regression? Do

[clang] [Wunsafe-buffer-usage] Turn off unsafe-buffer warning for methods annotated with clang::unsafe_buffer_usage attribute (PR #125671)

2025-02-19 Thread David Tarditi via cfe-commits
dtarditi wrote: Also, please avoid force pushes if you can. It confuses the PR history. https://github.com/llvm/llvm-project/pull/125671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

2025-02-19 Thread Andy Kaylor via cfe-commits
@@ -55,6 +55,7 @@ class CIRGenerator : public clang::ASTConsumer { void Initialize(clang::ASTContext &astContext) override; bool HandleTopLevelDecl(clang::DeclGroupRef group) override; mlir::ModuleOp getModule() const; + mlir::MLIRContext &getContext() { return *mlirCont

[clang] [llvm] [mlir] [NVPTX] Convert vector function nvvm.annotations to attributes (PR #127736)

2025-02-19 Thread Alex MacLean via cfe-commits
@@ -196,6 +198,36 @@ static std::optional getFnAttrParsedInt(const Function &F, : std::nullopt; } +static SmallVector getFnAttrParsedVector(const Function &F, + StringRef Attr) { + SmallVector V; + auto &Ctx

[clang] [llvm] [CaptureTracking][FunctionAttrs] Add support for CaptureInfo (PR #125880)

2025-02-19 Thread Caslyn Tonelli via cfe-commits
Caslyn wrote: Hi there - maybe a reproducer could help, if you're able to build on Windows. Here is one taken from the build @Prabhuk referenced (https://ci.chromium.org/ui/p/fuchsia/builders/prod/clang-windows-x64/b8722951897240189057/overview). [builds_8722951897240189057_src-84a4d3.zip](htt

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Joseph Huber via cfe-commits
@@ -932,9 +932,18 @@ def W_Joined : Joined<["-"], "W">, Group, def Xanalyzer : Separate<["-"], "Xanalyzer">, HelpText<"Pass to the static analyzer">, MetaVarName<"">, Group; -def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[NoXarchOption]>, - HelpText<"Pass to th

[clang] [llvm] Reland "[HLSL] Implement the reflect HLSL function" (PR #125599)

2025-02-19 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron edited https://github.com/llvm/llvm-project/pull/125599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi updated https://github.com/llvm/llvm-project/pull/127674 >From c0f10395ec6bff05bdb9eb04ed2c1f349c647d50 Mon Sep 17 00:00:00 2001 From: David Olsen Date: Tue, 18 Feb 2025 09:41:35 -0800 Subject: [PATCH 1/2] [CIR] Upstream simple function bodies Enable ClangIR gene

[clang] [llvm] Reland "[HLSL] Implement the reflect HLSL function" (PR #125599)

2025-02-19 Thread Deric Cheung via cfe-commits
Icohedron wrote: Because the "underlying" -- though still not fully understood -- cause of the test failure under hwasan was found (refer to my [comment](https://github.com/llvm/llvm-project/issues/124045#issuecomment-2669906382) from issue #124045), I have re-added support for running the tes

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Artem Belevich via cfe-commits
@@ -932,9 +932,18 @@ def W_Joined : Joined<["-"], "W">, Group, def Xanalyzer : Separate<["-"], "Xanalyzer">, HelpText<"Pass to the static analyzer">, MetaVarName<"">, Group; -def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[NoXarchOption]>, - HelpText<"Pass to th

[clang] [llvm] [ThinLTO] Support dead RTTI data elimination under -fno-split-lto-unit (PR #126336)

2025-02-19 Thread Mingming Liu via cfe-commits
mingmingl-llvm wrote: > > Taking a further look shows these preserved RTTIs come from vtables whose > > superclass has its type-id accessed. > > Thank you for helping evaluate this patch. I am curious about what these type > IDs is used for—is it for dynamic_cast, exception handling, or the ty

[clang] [llvm] Reland "[HLSL] Implement the reflect HLSL function" (PR #125599)

2025-02-19 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron updated https://github.com/llvm/llvm-project/pull/125599 >From ff7e6425913d77a66ff47335b6ee0f84f2741034 Mon Sep 17 00:00:00 2001 From: Icohedron Date: Mon, 3 Feb 2025 23:10:16 + Subject: [PATCH 1/3] Reapply "Reland "[HLSL] Implement the `reflect` HLSL function"

[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

2025-02-19 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk edited https://github.com/llvm/llvm-project/pull/123667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 8363b0a - [clang-tidy] add AllowedTypes option to misc-const-correctness (#122951)

2025-02-19 Thread via cfe-commits
Author: Baranov Victor Date: 2025-02-20T05:47:17+08:00 New Revision: 8363b0a6bab041b54316962e3e8948098148baeb URL: https://github.com/llvm/llvm-project/commit/8363b0a6bab041b54316962e3e8948098148baeb DIFF: https://github.com/llvm/llvm-project/commit/8363b0a6bab041b54316962e3e8948098148baeb.diff

[clang] [CUDA] Add support for sm101 and sm120 target architectures (PR #127187)

2025-02-19 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#127918 https://github.com/llvm/llvm-project/pull/127187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Jan Patrick Lehr via cfe-commits
@@ -932,9 +932,18 @@ def W_Joined : Joined<["-"], "W">, Group, def Xanalyzer : Separate<["-"], "Xanalyzer">, HelpText<"Pass to the static analyzer">, MetaVarName<"">, Group; -def Xarch__ : JoinedAndSeparate<["-"], "Xarch_">, Flags<[NoXarchOption]>, - HelpText<"Pass to th

[clang] [libc] [Clang] Fix cross-lane scan when given divergent lanes (PR #127703)

2025-02-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/127703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move frexp to CLC library; optimize half vecs (PR #127836)

2025-02-19 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/127836 This commit moves the frexp builtin to the CLC library. It simultaneously optimizes the code generated for half vectors, which was previously scalarizing and casting up to float. With this commit it still c

[clang] 6cc7ca0 - [Clang] Fix cross-lane scan when given divergent lanes (#127703)

2025-02-19 Thread via cfe-commits
Author: Joseph Huber Date: 2025-02-19T16:46:59-06:00 New Revision: 6cc7ca084a5bbb7ccf606cab12065604453dde59 URL: https://github.com/llvm/llvm-project/commit/6cc7ca084a5bbb7ccf606cab12065604453dde59 DIFF: https://github.com/llvm/llvm-project/commit/6cc7ca084a5bbb7ccf606cab12065604453dde59.diff

[clang] [CIR] updates test for 75ea7aed (PR #127917)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Christopher Di Bella (cjdb) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/127917.diff 1 Files Affected: - (modified) clang/test/CIR/emit-actions.cpp (+1-1) ``diff diff --git a/clang/test/CIR/emit-actions

[clang] [llvm] [HLSL] [DXIL] Implement the AddUint64 HLSL function and the UAddc DXIL op (PR #127137)

2025-02-19 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 37ed2e6b33882cdf5dcc640f59965c5c522b489e 4e017e47ff17aae239f1921608300f65a7e50e7f --e

[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

2025-02-19 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/127835 >From a03e9a97e90e2bb0fe22903cc15f35cbf71f94d2 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 14 Feb 2025 17:30:54 -0800 Subject: [PATCH 1/2] [CIR] Initial implementation of lowering CIR to MLIR Add s

[clang] [HLSL] Constant buffers codegen (PR #124886)

2025-02-19 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,39 @@ +//===- HLSLTargetInfo.h ---===// +// +// 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: Apa

[clang] [llvm] [HLSL] [DXIL] Implement the AddUint64 HLSL function and the UAddc DXIL op (PR #127137)

2025-02-19 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron updated https://github.com/llvm/llvm-project/pull/127137 >From 4fae5642c6e8e305cdc687b4968ba5eabaa44b50 Mon Sep 17 00:00:00 2001 From: Icohedron Date: Mon, 27 Jan 2025 11:18:09 -0800 Subject: [PATCH 1/6] Add the AddUint64 HLSL builtin function - Defines the AddUint

[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -2958,6 +2958,8 @@ defm clangir : BoolFOption<"clangir", BothFlags<[], [ClangOption, CC1Option], "">>; def emit_cir : Flag<["-"], "emit-cir">, Visibility<[ClangOption, CC1Option]>, Group, HelpText<"Build ASTs and then lower to ClangIR">; +def emit_cir_mlir : Flag<["-"],

[clang] [HLSL] Constant buffers codegen (PR #124886)

2025-02-19 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,39 @@ +//===- HLSLTargetInfo.h ---===// +// +// 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: Apa

[clang] [HLSL] Constant buffers codegen (PR #124886)

2025-02-19 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,39 @@ +//===- HLSLTargetInfo.h ---===// +// +// 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: Apa

[clang] [HLSL] Constant buffers codegen (PR #124886)

2025-02-19 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 8337d01e3058e7f47675f5b2b908b4e7821895d7 3cd4d49b468d4f3e598584baadb197fe983228e6 --e

[clang] [llvm] Reland "[HLSL] Implement the reflect HLSL function" (PR #125599)

2025-02-19 Thread Farzon Lotfi via cfe-commits
@@ -905,6 +903,14 @@ bool SPIRVInstructionSelector::selectExtInst(Register ResVReg, const SPIRVType *ResType, MachineInstr &I, GL::GLSLExtInst

[clang] [llvm] Reland "[HLSL] Implement the reflect HLSL function" (PR #125599)

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

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread David Olsen via cfe-commits
@@ -0,0 +1,134 @@ +//===--===// +// +// 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: Apa

[clang] [profile] runtime counter relocation is needed on windows-msvc targets (PR #127858)

2025-02-19 Thread Anh Tuyen Tran via cfe-commits
@@ -6,6 +6,7 @@ // RUN: %clang --target=powerpc64-ibm-aix -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check-prefix=RELOC // RUN: %clang --target=x86_64-unknown-fuchsia -fprofile-generate -fprofile-continuous -### -c %s 2>&1 | FileCheck %s --check

[clang] [OpenMP] Silently accept `neon_vector_type` for the offloading device (PR #127439)

2025-02-19 Thread via cfe-commits
pradt2 wrote: While I was working on the tests, I realised I can no longer replicate this issue in main. I guess it got fixed by someone, somewhere. I'm gonna close this now. https://github.com/llvm/llvm-project/pull/127439 ___ cfe-commits mailing li

  1   2   3   4   5   >