[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] [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] 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] [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] [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] [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-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] [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] 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
@@ -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] 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] [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
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] [HLSL] Implement the 'and' HLSL function (PR #127098)

2025-02-19 Thread Justin Bogner via cfe-commits
@@ -249,6 +249,23 @@ bool all(double3); _HLSL_BUILTIN_ALIAS(__builtin_hlsl_all) bool all(double4); +//===--===// +// and builtins +//===--===

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

2025-02-19 Thread Farzon Lotfi via cfe-commits
@@ -249,6 +249,23 @@ bool all(double3); _HLSL_BUILTIN_ALIAS(__builtin_hlsl_all) bool all(double4); +//===--===// +// and builtins +//===--===

[clang] 1c762c2 - [HLSL] Implement the 'and' HLSL function (#127098)

2025-02-19 Thread via cfe-commits
Author: Deric Cheung Date: 2025-02-19T11:22:46-08:00 New Revision: 1c762c288ff4ff613cf26833ef55100fd0da0a34 URL: https://github.com/llvm/llvm-project/commit/1c762c288ff4ff613cf26833ef55100fd0da0a34 DIFF: https://github.com/llvm/llvm-project/commit/1c762c288ff4ff613cf26833ef55100fd0da0a34.diff

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

2025-02-19 Thread Artem Belevich via cfe-commits
@@ -5021,6 +5024,36 @@ bool llvm::UpgradeDebugInfo(Module &M) { return Modified; } +static void upgradeNVVMFnVectorAttr(const StringRef Attr, const char DimC, +GlobalValue *GV, const Metadata *V) { + Function *F = cast(GV); + + constexpr

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. Generally LGTM, with a nit about C/C++ https://github.com/llvm/llvm-project/pull/127621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

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

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -1681,19 +1681,27 @@ for more details. permitted to produce more precise results than performing the same operations separately. - The C standard permits intermediate floating-point results within an + The C/C++ standard permits intermediate floating-point results

[clang] [llvm] Add support for template as type parameter (PR #127654)

2025-02-19 Thread via cfe-commits
ykhatav wrote: > Couple high-level of questions/comments: > > 1. How is GDB going to make use of this additional info? Currently with this implementation, GDB does not support printing template as a type and will display it as an unknown type. So, the implementation is currently behind a switc

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

2025-02-19 Thread Justin Bogner via cfe-commits
@@ -249,6 +249,23 @@ bool all(double3); _HLSL_BUILTIN_ALIAS(__builtin_hlsl_all) bool all(double4); +//===--===// +// and builtins +//===--===

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

2025-02-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/126876 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman requested changes to this pull request. Requesting changes just to be sure none of the changes from `createRef()` to `createDup()` would have generated a `StringRef` holding a null pointer. I'd be surprised if they did, but a second set of eyes would be helpful.

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

2025-02-19 Thread via cfe-commits
Author: Petr Hosek Date: 2025-02-19T11:36:09-08:00 New Revision: dca73063653ca7d35afb3226ae66623495086204 URL: https://github.com/llvm/llvm-project/commit/dca73063653ca7d35afb3226ae66623495086204 DIFF: https://github.com/llvm/llvm-project/commit/dca73063653ca7d35afb3226ae66623495086204.diff LO

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

2025-02-19 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr commented: Certainly an improvement. I think this is good, but do not feel confident right now to already approve. https://github.com/llvm/llvm-project/pull/127890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[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] [Clang][Docs] Document -Xarch_ better (PR #127890)

2025-02-19 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr 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 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] [clang] Lower modf builtin using `llvm.modf` intrinsic (PR #126750)

2025-02-19 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: > From this patch? https://lab.llvm.org/buildbot/#/builders/72/builds/8380 > > FYI @fmayer Looks like it, I had missed it in the log but the actual error is: > ExpandFloatResult #0: t57: ppcf128,ppcf128 = fmodf > ConstantFP:ppcf128, > llvm-project/compiler-rt/lib/msan/tests/msan

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

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

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

2025-02-19 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: Thanks @nikic !! In this case, I will revisit this Friday morning PST and see where we are at. https://github.com/llvm/llvm-project/pull/125880 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [Clang] Fix segmentation fault caused by `VarBypassDetector` stack overflow on deeply nested expressions (PR #124128)

2025-02-19 Thread Chris B via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - -Wstack-exhausted llvm-beanz wrote: What if rather than removing the test we just add a `REQUIRES: slow_tests` line, and have a CMake option to enable the "slow_tests" feature? That would be a really small

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -77,19 +77,6 @@ CXString createDup(const char *String) { return Str; } -CXString createRef(StringRef String) { - if (!String.data()) -return createNull(); - - // If the string is empty, it might point to a position in another string - // while having zero length. M

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

2025-02-19 Thread via cfe-commits
Andarwinux wrote: Doesn't mingw target support it? https://github.com/llvm/llvm-project/pull/127858 ___ 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/4] [Clang][Docs] Document -Xarch_ better Summary: This argument

[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/2] [Clang][Docs] Document -Xarch_ better Summary: This argument

[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/3] [Clang][Docs] Document -Xarch_ better Summary: This argument

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

2025-02-19 Thread Philip Reames via cfe-commits
@@ -721,6 +721,8 @@ DecodeStatus RISCVDisassembler::getInstruction32(MCInst &MI, uint64_t &Size, "Qualcomm uC Conditional Move custom opcode table"); TRY_TO_DECODE_FEATURE(RISCV::FeatureVendorXqciint, DecoderTableXqciint32, "Qu

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

2025-02-19 Thread Andy Kaylor 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] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -138,6 +138,7 @@ Improvements to Clang's diagnostics - Fixed a bug where Clang's Analysis did not correctly model the destructor behavior of ``union`` members (#GH119415). - A statement attribute applied to a ``case`` label no longer suppresses 'bypassing variable initial

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

2025-02-19 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia created https://github.com/llvm/llvm-project/pull/127858 Continuous profiling syncing is [supported on windows,](https://github.com/llvm/llvm-project/pull/124353#issuecomment-2649075857) and it also relies on runtime counter relocation (based on this [test](https://

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

2025-02-19 Thread Justin Bogner via cfe-commits
https://github.com/bogner closed https://github.com/llvm/llvm-project/pull/127098 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -0,0 +1,46 @@ +//===--- BuiltinTemplates.td - Clang builtin template aliases ---*- C++ -*-===// +// +// 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] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

2025-02-19 Thread Andy Kaylor 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] [profile] runtime counter relocation is needed on windows-msvc targets (PR #127858)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Wael Yehia (w2yehia) Changes Continuous profiling syncing is [supported on windows,](https://github.com/llvm/llvm-project/pull/124353#issuecomment-2649075857) and it also relies on runtime counter relocat

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

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 1841bcd5d16310c052c424dec3bcf2b703badd40 843f78e9826b037a7bfb0913728a11eb249f4181 --e

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

2025-02-19 Thread Artem Belevich 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] [mlir] [NVPTX] Convert vector function nvvm.annotations to attributes (PR #127736)

2025-02-19 Thread Artem Belevich via cfe-commits
@@ -506,24 +507,15 @@ void NVPTXAsmPrinter::emitKernelFunctionDirectives(const Function &F, // If the NVVM IR has some of reqntid* specified, then output // the reqntid directive, and set the unspecified ones to 1. // If none of Reqntid* is specified, don't output reqnti

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

2025-02-19 Thread Artem Belevich via cfe-commits
@@ -5021,6 +5024,36 @@ bool llvm::UpgradeDebugInfo(Module &M) { return Modified; } +static void upgradeNVVMFnVectorAttr(const StringRef Attr, const char DimC, +GlobalValue *GV, const Metadata *V) { + Function *F = cast(GV); + + constexpr

[clang] Thread Safety Analysis: Support warning on taking address of guarded variables (PR #123063)

2025-02-19 Thread via cfe-commits
aoates wrote: > > I'm very excited about this, as I have wanted it for many years for my C > > codebase, and TSA is not super useful in C without this! > > This PR is being superseded by #127396 (implementation changed completely) - > we agreed to go with the more conservative approach, and at

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

2025-02-19 Thread Alex MacLean via cfe-commits
@@ -5021,6 +5024,36 @@ bool llvm::UpgradeDebugInfo(Module &M) { return Modified; } +static void upgradeNVVMFnVectorAttr(const StringRef Attr, const char DimC, +GlobalValue *GV, const Metadata *V) { + Function *F = cast(GV); + + constexpr

[clang] [clang-tools-extra] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

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 9ebb618d03cb29c37e3178428dcf52e1ac4f1cc2 e42e46a1f1a2606a207c897263be64e266d9a702 --e

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

2025-02-19 Thread Pavel Kosov via cfe-commits
kpdev wrote: > LGTM for the LoongArch change. We'll see if @kpdev has any objections later. LGTM also. Thank you for the patch https://github.com/llvm/llvm-project/pull/127555 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

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

2025-02-19 Thread Matheus Izvekov via cfe-commits
@@ -13252,6 +13273,33 @@ class AddressOfFunctionResolver { } } + void EliminateLessPartialOrderingConstrainedMatches() { +// C++ [over.over]p5: +// [...] Any given non-template function F0 is eliminated if the set +// contains a second non-template funct

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

2025-02-19 Thread Alex MacLean via cfe-commits
@@ -5021,6 +5024,36 @@ bool llvm::UpgradeDebugInfo(Module &M) { return Modified; } +static void upgradeNVVMFnVectorAttr(const StringRef Attr, const char DimC, +GlobalValue *GV, const Metadata *V) { + Function *F = cast(GV); + + constexpr

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

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

[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] [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] [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-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] [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] [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] [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] [llvm] [CaptureTracking][FunctionAttrs] Add support for CaptureInfo (PR #125880)

2025-02-19 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: What is the current plan for this PR? Are we still inclined to reland it this week? I would like to reduce the downstream churns it is causing. If we intend to reland it soon, I will not revert everything downstream that is related. https://github.com/llvm/llvm-project/pull/1

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -7115,6 +7115,9 @@ def warn_shift_result_sets_sign_bit : Warning< "signed shift result (%0) sets the sign bit of the shift expression's " "type (%1) and becomes negative">, InGroup>, DefaultIgnore; +def warn_shift_bool : Warning< + "%select{left|right}0 shifting a `bo

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

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: This argument is esoteric and previously didn't even work consistently across the targets. Now that's fixed we should document it better. --- Full diff: https://github.com/llvm/llvm-project/pull/127

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -11246,6 +11246,12 @@ static void DiagnoseBadShiftValues(Sema& S, ExprResult &LHS, ExprResult &RHS, if (S.getLangOpts().OpenCL) return; + if (LHS.get()->IgnoreParenImpCasts()->getType()->isBooleanType()) { +S.Diag(Loc, diag::warn_shift_bool) +<< (Opc ==

[clang] [Clang] add -Wshift-bool warning to handle shifting of bool (PR #127336)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -461,6 +461,8 @@ def DanglingField : DiagGroup<"dangling-field">; def DanglingInitializerList : DiagGroup<"dangling-initializer-list">; def DanglingGsl : DiagGroup<"dangling-gsl">; def ReturnStackAddress : DiagGroup<"return-stack-address">; +def ShiftBool: DiagGroup<"shift-b

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

2025-02-19 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/127890 Summary: This argument is esoteric and previously didn't even work consistently across the targets. Now that's fixed we should document it better. >From a7be26f70a9ba9a381e91b4c6257dc173444c6ef Mon Sep 17 00:00

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

2025-02-19 Thread David Olsen via cfe-commits
@@ -224,3 +225,19 @@ mlir::Type CIRGenTypes::convertType(QualType type) { typeCache[ty] = resultType; return resultType; } + +mlir::Type CIRGenTypes::convertTypeForMem(clang::QualType qualType, + bool forBitField) { + assert(!qualTy

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

2025-02-19 Thread Justin Bogner via cfe-commits
@@ -19445,6 +19445,70 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID, return nullptr; switch (BuiltinID) { + case Builtin::BI__builtin_hlsl_adduint64: { +Value *OpA = EmitScalarExpr(E->getArg(0)); +Value *OpB = EmitScalarExpr(E->getArg(1)); +

[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] [Clang][Docs] Document -Xarch_ better Summary: This argument is

[clang] [clang] print correct context for diagnostics suppressed by deduction (PR #125453)

2025-02-19 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @cor3ntin ping https://github.com/llvm/llvm-project/pull/125453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/123470 >From 441385e14210f23a4fe5368d44620073a4347a31 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Sat, 18 Jan 2025 19:35:01 +0100 Subject: [PATCH 1/6] [Clang] Make -Wreturn-type default to an error in all language

[clang] [Clang] [Tests] Canonicalise CLANG_ENABLE_OBJC_REWRITER properly (PR #125117)

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

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

2025-02-19 Thread Deric Cheung via cfe-commits
https://github.com/Icohedron updated https://github.com/llvm/llvm-project/pull/127098 >From e78176bdcc3d0bf93ace334f68da3dce6f6cd78f Mon Sep 17 00:00:00 2001 From: Icohedron Date: Wed, 12 Feb 2025 21:24:00 + Subject: [PATCH 1/7] Implement the 'and' HLSL function --- clang/include/clang/Ba

[clang] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -77,19 +77,6 @@ CXString createDup(const char *String) { return Str; } -CXString createRef(StringRef String) { - if (!String.data()) -return createNull(); - - // If the string is empty, it might point to a position in another string - // while having zero length. M

[clang] Please ignore this (PR #127807)

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

[clang] [Modules] Add `clang/Lex/HLSLRootSignatureTokenKinds.def` to clang's `modulemap` (PR #127839)

2025-02-19 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. thanks! https://github.com/llvm/llvm-project/pull/127839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-02-19 Thread Andy Kaylor 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] [Modules] Add `clang/Lex/HLSLRootSignatureTokenKinds.def` to clang's `modulemap` (PR #127839)

2025-02-19 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu closed https://github.com/llvm/llvm-project/pull/127839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-02-19 Thread Nikita Popov via cfe-commits
nikic wrote: Hard to say. As this is a Windows-only issue, I can't debug it, and there's not a lot to go on here. Unless @zmodem or @Prabhuk can help to find the root cause, the next thing I'd try is probably to reapply this without the FunctionAttrs changes -- I think that should be largely N

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

2025-02-19 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean updated https://github.com/llvm/llvm-project/pull/127736 >From fd8f342fa2b65f7604955c88e2b73e758dc17134 Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Wed, 19 Feb 2025 02:26:23 + Subject: [PATCH 1/2] [NVPTX] Convert vector function nvvm.annotations to attr

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

2025-02-19 Thread Alex MacLean via cfe-commits
@@ -506,24 +507,15 @@ void NVPTXAsmPrinter::emitKernelFunctionDirectives(const Function &F, // If the NVVM IR has some of reqntid* specified, then output // the reqntid directive, and set the unspecified ones to 1. // If none of Reqntid* is specified, don't output reqnti

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

2025-02-19 Thread Wael Yehia via cfe-commits
w2yehia wrote: > Doesn't mingw target support it? Sorry I don't know. I was hoping someone familiar with clang on windows to comment. https://github.com/llvm/llvm-project/pull/127858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[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] [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] [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] [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] [clang-tools-extra] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/123470 >From 441385e14210f23a4fe5368d44620073a4347a31 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Sat, 18 Jan 2025 19:35:01 +0100 Subject: [PATCH 1/9] [Clang] Make -Wreturn-type default to an error in all language

  1   2   3   4   5   >