[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

[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/8] [Clang] Make -Wreturn-type default to an error in all language

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

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

2025-02-19 Thread Artem Belevich via cfe-commits
@@ -5059,6 +5092,18 @@ bool static upgradeSingleNVVMAnnotation(GlobalValue *GV, StringRef K, cast(GV)->addFnAttr("nvvm.maxnreg", llvm::utostr(CV)); return true; } + if (K.consume_front("maxntid") && (K == "x" || K == "y" || K == "z")) { Artem-B wrot

[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] [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] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread Andy Kaylor via cfe-commits
@@ -11,8 +11,8 @@ /// //===--===// -#ifndef LLVM_CLANG_CIR_DIALECT_IR_CIROPS -#define LLVM_CLANG_CIR_DIALECT_IR_CIROPS +#ifndef CLANG_CIR_DIALECT_IR_CIROPS_TD andykaylor wrote: It looks like

[clang] [HLSL] Allow arrays to be returned by value in HLSL (PR #127896)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-hlsl Author: Sarah Spall (spall) Changes Enable Arrays to be returned in HLSL, and a test for this. Closes #126568 --- Full diff: https://github.com/llvm/llvm-project/pull/127896.diff 3 Files Affected: - (modified) clang/l

[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
Sirraide wrote: Ok, this is now another NFC pr that just fixes a bunch of tests. 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] 5f8b256 - Check the type of Objective-C++ instance variables in WebKit member variable checkers. (#127570)

2025-02-19 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-02-19T13:24:12-08:00 New Revision: 5f8b2568219d5e516928aed67f13b59de8ccee17 URL: https://github.com/llvm/llvm-project/commit/5f8b2568219d5e516928aed67f13b59de8ccee17 DIFF: https://github.com/llvm/llvm-project/commit/5f8b2568219d5e516928aed67f13b59de8ccee17.diff

[clang] Check the type of Objective-C++ instance variables in WebKit member variable checkers. (PR #127570)

2025-02-19 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/127570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Lower modf builtin using `llvm.modf` intrinsic (PR #126750)

2025-02-19 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: I think this patch should fix the issue: https://github.com/llvm/llvm-project/pull/127895 https://github.com/llvm/llvm-project/pull/126750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [HLSL] Allow arrays to be returned by value in HLSL (PR #127896)

2025-02-19 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/127896 Enable Arrays to be returned in HLSL, and a test for this. Closes #126568 >From 362b64d31e5f70e4a26ea04c99a58fd5f5ca50ca Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Fri, 14 Feb 2025 12:59:56 -0800 Subject:

[clang] Added HLSL or intrinsic function with respective semantic checks (PR #127899)

2025-02-19 Thread via cfe-commits
https://github.com/metkarpoonam created https://github.com/llvm/llvm-project/pull/127899 None >From 3ac4882e65c804c434bf6184559bdc6d9588683f Mon Sep 17 00:00:00 2001 From: Poonam Vilas Metkar Date: Wed, 19 Feb 2025 13:16:16 -0800 Subject: [PATCH] Added HLSL or intrinsic function with respectiv

[clang] Added HLSL or intrinsic function with respective semantic checks (PR #127899)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (metkarpoonam) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/127899.diff 3 Files Affected: - (modified) clang/include/clang/Basic/Builtins.td (+7-1) - (modified) clang/lib/Headers/hlsl/hlsl_intrinsics.h (

[clang] Added HLSL or intrinsic function with respective semantic checks (PR #127899)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (metkarpoonam) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/127899.diff 3 Files Affected: - (modified) clang/include/clang/Basic/Builtins.td (+7-1) - (modified) clang/lib/Headers/hlsl/hlsl_intrinsics.h (+19)

[clang] Added HLSL or intrinsic function with respective semantic checks (PR #127899)

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

[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] [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] [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] [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] [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 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] [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] [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] [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] 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] [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] [CodeGen] Ensure relative vtables use llvm.type.checked.load.relative (PR #126785)

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

[clang] [clang] Lower modf builtin using `llvm.modf` intrinsic (PR #126750)

2025-02-19 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: >From this patch? https://lab.llvm.org/buildbot/#/builders/72/builds/8380 FYI @fmayer https://github.com/llvm/llvm-project/pull/126750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[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] [llvm] [AArch64][SVE] Lower unpredicated loads/stores as LDR/STR. (PR #127837)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Ricardo Jesus (rj-jesus) Changes Currently, given: ```cpp svuint8_t foo(uint8_t *x) { return svld1(svptrue_b8(), x); } ``` We generate: ```gas foo: ptrue p0.b ld1b{ z0.b }, p0/z, [x0] ret ``` On little-endian, we cou

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

2025-02-19 Thread via cfe-commits
Author: Qiongsi Wu Date: 2025-02-19T11:21:04-08:00 New Revision: 85e23fe9c71f97280c804a139c3d014092b30c7f URL: https://github.com/llvm/llvm-project/commit/85e23fe9c71f97280c804a139c3d014092b30c7f DIFF: https://github.com/llvm/llvm-project/commit/85e23fe9c71f97280c804a139c3d014092b30c7f.diff LO

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

2025-02-19 Thread Philip Reames via cfe-commits
preames 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 of custom ve

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

[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

[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

[clang] Remove xbegin and _xend (PR #126952)

2025-02-19 Thread Reid Kleckner via cfe-commits
https://github.com/rnk approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/126952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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] 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! One thought --- you could consider an attribute that could be put on pointer arguments to functions that says "yes, I dereference this and read or wri

[clang] [Clang][counted_by] Add support for 'counted_by' on struct pointers (PR #127116)

2025-02-19 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/127116 >From b5b9b158e7e379f2d430584e3ccf519677bf27a3 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 10 Jan 2025 17:13:30 -0800 Subject: [PATCH 1/3] [Clang][counted_by] Add support for 'counted_by' on struc

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

2025-02-19 Thread Anh Tuyen Tran via cfe-commits
@@ -795,7 +795,8 @@ static void addPGOAndCoverageFlags(const ToolChain &TC, Compilation &C, else { CmdArgs.push_back("-fprofile-continuous"); // Platforms that require a bias variable: - if (T.isOSBinFormatELF() || T.isOSAIX()) { + if (T.isOSBinFormat

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

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

[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] [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] 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] [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] [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] [Clang] Fix segmentation fault caused by `VarBypassDetector` stack overflow on deeply nested expressions (PR #124128)

2025-02-19 Thread Boaz Brickner via cfe-commits
bricknerb wrote: Please let me know if you have any comments. I plan to merge this next week (after making the agreed changes) if there are no more comments. https://github.com/llvm/llvm-project/pull/124128 ___ cfe-commits mailing list cfe-commits@lis

[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] [libclang] Replace createRef with createDup (PR #126683)

2025-02-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/126683 ___ 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 edited https://github.com/llvm/llvm-project/pull/126683 ___ 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 Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. I'm happy with the latest changes, so after the "standards" wording changes Erich and Aaron requested, this should be good to go. https://github.com/llvm/llvm-project/pull/127621 ___ cfe-commit

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

2025-02-19 Thread Justin Bogner via cfe-commits
bogner wrote: LGTM - I've gone ahead and merged this for you. Thanks! 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][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/13289 Here is the r

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

2025-02-19 Thread David Olsen 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] [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 updated https://github.com/llvm/llvm-project/pull/127858 >From 843f78e9826b037a7bfb0913728a11eb249f4181 Mon Sep 17 00:00:00 2001 From: Wael Yehia Date: Wed, 19 Feb 2025 06:25:16 + Subject: [PATCH 1/2] [profile] runtime counter relocation is needed on windows-msvc

[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,162 @@ +//=- ClangBuiltinsEmitter.cpp - Generate Clang builtin templates-*- 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: Ap

<    1   2   3   4   5   >