[clang] [llvm] [clang][NVPTX] Add builtins and intrinsics for conversions of new FP types (PR #134345)

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

[clang] [llvm] [clang][NVPTX] Add builtins and intrinsics for conversions of new FP types (PR #134345)

2025-04-11 Thread Artem Belevich via cfe-commits
@@ -703,6 +703,41 @@ let hasSideEffects = false in { defm CVT_to_tf32_rz_satf : CVT_TO_TF32<"rz.satfinite", [hasPTX<86>, hasSM<100>]>; defm CVT_to_tf32_rn_relu_satf : CVT_TO_TF32<"rn.relu.satfinite", [hasPTX<86>, hasSM<100>]>; defm CVT_to_tf32_rz_relu_satf : CVT_TO_TF

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h,c -- clang/lib/Sema/SemaOpenACCClauseAppertainment.cpp

[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Matheus Izvekov (mizvekov) Changes This changes the TemplateArgument representation to hold a flag indicating whether a tempalte argument of expression type is supposed to be canonical or not. This gets one step closer to sol

[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This changes the TemplateArgument representation to hold a flag indicating whether a tempalte argument of expression type is supposed to be canonical or not. This gets one step closer to solving https:

[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Adding lldb back to the ci script, as otherwise lldb cannot be tested locally. https://github.com/llvm/llvm-project/pull/135414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/135414 This changes the TemplateArgument representation to hold a flag indicating whether a tempalte argument of expression type is supposed to be canonical or not. This gets one step closer to solving https://gith

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix -Whigher-precision-for-complex-division (PR #131477)

2025-04-11 Thread Zahira Ammarguellat via cfe-commits
@@ -349,6 +349,17 @@ Improvements to Clang's diagnostics - Now correctly diagnose a tentative definition of an array with static storage duration in pedantic mode in C. (#GH50661) +- ``-Whigher-precisision-for-complex-divison`` no longer incorrectly warns when the divisor i

[clang] [llvm] [mlir] [AMDGPU] Generalize global.load.lds to buffer fat pointers (PR #134911)

2025-04-11 Thread Krzysztof Drewniak via cfe-commits
krzysz00 wrote: @arsenm Ok, so 1. Forcing the global intrinsic into covering buffers is out per 1:1 rules but 2. Per your comments on the previous PR, a new intrinsic for p7 is also out - or were you just objecting to the naming? 3. We can't just reuse the intrinsic on p8 (buffer resources) -

[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

2025-04-11 Thread via cfe-commits
https://github.com/MillePlateaux updated https://github.com/llvm/llvm-project/pull/134465 >From 596679a60bcae58ac1c9e1b3066b21399a58f24b Mon Sep 17 00:00:00 2001 From: MillePlateaux Date: Fri, 4 Apr 2025 16:26:25 -0700 Subject: [PATCH 1/7] [llvm][Stmt]:git clang format --- clang/lib/Sema/Sema

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2025-04-11 Thread John McCall via cfe-commits
@@ -0,0 +1,142 @@ +// RUN: %clang_cc1 -triple arm64-apple-ios -std=c++11 -fptrauth-calls -fptrauth-intrinsics -verify -fsyntax-only %s +// RUN: %clang_cc1 -triple aarch64-linux-gnu -std=c++11 -fptrauth-calls -fptrauth-intrinsics -verify -fsyntax-only %s + +#define AQ __ptrauth

[clang] 52ef558 - [OpenACC] Fix source-location on a handful of CIR Directives

2025-04-11 Thread via cfe-commits
Author: erichkeane Date: 2025-04-11T11:33:20-07:00 New Revision: 52ef55864f50077072e083c5582d23a9ec494142 URL: https://github.com/llvm/llvm-project/commit/52ef55864f50077072e083c5582d23a9ec494142 DIFF: https://github.com/llvm/llvm-project/commit/52ef55864f50077072e083c5582d23a9ec494142.diff LO

[clang] [-Wunsafe-buffer-usage][NFC] Factor out FixitUtil (PR #135100)

2025-04-11 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/14249 Here is the relevant piece of the

[clang] [clang] fix serialization of SubstNonTypeTemplateParmExpr (PR #134560)

2025-04-11 Thread via cfe-commits
eaeltsin wrote: Dumping pcm files that occasionally differ, we always get the same diff: ``` < --- > op3=3 op4=21560934252/> 66200c66200 < --- > op3=2 op4=21560934252/> 66205c66205 < --- > op3=1 op4=21560934252/> 66223c66223 < --- > op3=3 op4=21560934252/>

[clang] [cindex] Add support for calling getFullyQualifiedName to the Python binding. (PR #135420)

2025-04-11 Thread Brian Cody via cfe-commits
https://github.com/epistax created https://github.com/llvm/llvm-project/pull/135420 None >From 6fe4155fad0cdbc6ca04e37df143f22f537d5514 Mon Sep 17 00:00:00 2001 From: Brian Cody Date: Fri, 11 Apr 2025 14:27:22 -0400 Subject: [PATCH] [cindex] Add support for calling getFullyQualifiedName to the

[clang] [cindex] Add support for calling getFullyQualifiedName to the Python binding. (PR #135420)

2025-04-11 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [-Wunsafe-buffer-usage] Add findUnsafePointers (PR #135421)

2025-04-11 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple created https://github.com/llvm/llvm-project/pull/135421 None >From 9354e44180338d53bfe811fb9f566f3c959c9d7b Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 11 Apr 2025 11:09:33 -0700 Subject: [PATCH] [-Wunsafe-buffer-usage] Add findUnsafePointers --- ..

[clang] [cindex] Add support for calling getFullyQualifiedName to the Python binding. (PR #135420)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brian Cody (epistax) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/135420.diff 6 Files Affected: - (modified) clang/bindings/python/clang/cindex.py (+12) - (modified) clang/bindings/python/tests/cindex/test_type.py

[clang] [-Wunsafe-buffer-usage] Add findUnsafePointers (PR #135421)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Korous (jkorous-apple) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/135421.diff 2 Files Affected: - (modified) clang/include/clang/Analysis/Analyses/UnsafeBufferUsage.h (+3) - (modified) clang/lib/Analysis/Unsa

[clang] [clang][CodeGen] Add range metadata for atomic load of boolean type. #131476 (PR #133546)

2025-04-11 Thread Eli Friedman via cfe-commits
Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= , Jan =?utf-8?q?G=C3=B3rski?= Message-ID: In-Reply-To: https://github.com/efriedma-quic

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2025-04-11 Thread Akira Hatanaka via cfe-commits
@@ -2850,6 +2850,26 @@ void CXXNameMangler::mangleQualifiers(Qualifiers Quals, const DependentAddressSp if (Quals.hasUnaligned()) mangleVendorQualifier("__unaligned"); + // __ptrauth. Note that this is parameterized. + if (PointerAuthQualifier PtrAuth = Quals.getPoin

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [AMDGPU] Generalize global.load.lds to buffer fat pointers (PR #134911)

2025-04-11 Thread Matt Arsenault via cfe-commits
arsenm wrote: > * Per your comments on the previous PR, a new intrinsic for p7 is also out - > or were you just objecting to the naming? Mostly this, but I also dont' really understand why this doesn't fit into the existing raw_buffer_load_lds https://github.com/llvm/llvm-project/pull/134911

[clang] [cindex] Add support for calling getFullyQualifiedName to the Python binding. (PR #135420)

2025-04-11 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r HEAD~1...HEAD clang/bindings/python/clang/cindex.py clang/bindings/python/tests/cindex/tes

[clang] [cindex] Add support for calling getFullyQualifiedName to the Python binding. (PR #135420)

2025-04-11 Thread Brian Cody via cfe-commits
https://github.com/epistax edited https://github.com/llvm/llvm-project/pull/135420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [cindex] Add support for calling getFullyQualifiedName to the Python binding. (PR #135420)

2025-04-11 Thread Brian Cody via cfe-commits
https://github.com/epistax updated https://github.com/llvm/llvm-project/pull/135420 >From 6fe4155fad0cdbc6ca04e37df143f22f537d5514 Mon Sep 17 00:00:00 2001 From: Brian Cody Date: Fri, 11 Apr 2025 14:27:22 -0400 Subject: [PATCH 1/2] [cindex] Add support for calling getFullyQualifiedName to the

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
@@ -287,6 +287,24 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID, RetTy, CGM.getHLSLRuntime().getCreateResourceGetPointerIntrinsic(), ArrayRef{HandleOp, IndexOp}); } + case Builtin::BI__builtin_hlsl_resource_createpoisonhandle: { +llvm

[clang] [clang] fix serialization of SubstNonTypeTemplateParmExpr (PR #134560)

2025-04-11 Thread via cfe-commits
eaeltsin wrote: Okay, this is `E->Final`, which was - initialized for [VisitSubstNonTypeTemplateParmExpr(SubstNonTypeTemplateParmExpr *E)](https://github.com/llvm/llvm-project/blob/main/clang/lib/Serialization/ASTReaderStmt.cpp#L2233) - but missed for [VisitSubstNonTypeTemplateParmPackExpr(S

[clang] [MS][clang] Make sure vector deleting dtor calls correct operator delete (PR #133950)

2025-04-11 Thread Devon Loehr via cfe-commits
DKLoehr wrote: I'm not familiar enough to say what we should be doing; perhaps @rnk or @zmodem have thoughts? It seems like we should at least emit a better error message, since just looking at the code doesn't make it clear to me why `operator delete[]` is relevant. Since this is causing cla

[clang] [clang] fix serialization of SubstNonTypeTemplateParmExpr (PR #134560)

2025-04-11 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Yeah I see, so this was actually missed previously in another node, `SubstNonTypeTemplateParmPackExpr`, which during substitution propagates this flag to `SubstNonTypeTemplateParmExpr`. https://github.com/llvm/llvm-project/pull/134560 ___

[clang] [llvm] [mlir] [AMDGPU] Generalize global.load.lds to buffer fat pointers (PR #134911)

2025-04-11 Thread Krzysztof Drewniak via cfe-commits
krzysz00 wrote: `void raw.buffer.ptr.load.lds(p8 rsrc, p3 lds, i32 immarg size, i32 voffset, i32 soffset, i32 immarg immOff, i32 immarg aux)` However `void raw.buffer.fat.ptr.load.lds(p7 fatPtr, p3 lds, i32 immarg size, i32 immarg immoff, i32 immarg aux)` Please note that the buffer.ptr vers

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Helena Kotas via cfe-commits
@@ -287,6 +287,24 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID, RetTy, CGM.getHLSLRuntime().getCreateResourceGetPointerIntrinsic(), ArrayRef{HandleOp, IndexOp}); } + case Builtin::BI__builtin_hlsl_resource_createpoisonhandle: { +llvm

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -3593,6 +3578,25 @@ class sme_tmopa_32b opc, RegisterOperand zn_ty, RegisterOperand zm_ty, s let Constraints = "$ZAda = $_ZAda"; } +multiclass sme_tmopa_16b opc, RegisterOperand zn_ty, RegisterOperand zm_ty, ValueType vt, string mnemonic, string intrinsic> { + def NAME

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2025-04-11 Thread Oliver Hunt via cfe-commits
@@ -0,0 +1,180 @@ + +// RUN: %clang_cc1 -fsyntax-only -Wms-bitfield-compatibility -verify -triple armv8 -std=c++23 %s +// RUN: %clang_cc1 -fsyntax-only -DMS_BITFIELDS -mms-bitfields -verify=msbitfields -triple armv8-apple-macos10.15 -std=c++23 %s + +// msbitfields-no-diagnostics

[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

2025-04-11 Thread Aaron Ballman via cfe-commits
@@ -717,6 +717,12 @@ bool Sema::checkMustTailAttr(const Stmt *St, const Attr &MTA) { return false; } + if (const FunctionDecl *CalleeDecl = CE->getDirectCallee(); + CalleeDecl && CalleeDecl->hasAttr()) { +Diag(St->getBeginLoc(), diag::err_musttail_mismatch) <<

[clang] [clang-tools-extra] [llvm] Reland: [clang] Improved canonicalization for template specialization types (PR #135414)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits
slydiman wrote: Note [lldb-x86_64-debian](https://lab.llvm.org/buildbot/#/builders/162) and [lldb-aarch64-windows](https://lab.llvm.org/buildbot/#/builders/141) did not fail because used gcc and msvc to build lldb. But failed lldb tests required clang. I will test this patch on the environment

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2025-04-11 Thread Oliver Hunt via cfe-commits
ojhunt wrote: (Finally getting back to this one) https://github.com/llvm/llvm-project/pull/117428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-04-11 Thread Peter Smith via cfe-commits
@@ -0,0 +1,12 @@ +// check that gnu assembler is invoked with arm baremetal as well + +// RUN: %clang --target=armv6m-none-eabi --gcc-toolchain=%S/Inputs/basic_riscv32_tree -fno-integrated-as %s -### -c \ smithp35 wrote: I'm a bit confused about this test. It i

[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

2025-04-11 Thread via cfe-commits
MillePlateaux wrote: @AaronBallman I have revised my submission, please review it. I overlooked ```%select{| %1}0```, and I didn't catch the hint you gave me before. Thank you very much for your guidance and I hope to learn more from you in the future. https://github.com/llvm/llvm-project/pull

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/135105 >From 80fa219739a4a6424ec55047fecb41f04d3cf844 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 9 Apr 2025 12:45:57 -0700 Subject: [PATCH 1/3] [CIR] Upstream minimal support for structure types This cha

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
@@ -37,6 +50,32 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy { llvm_unreachable("Unsupported format for long double"); } + /// Get a CIR record kind from a AST declaration tag. + cir::StructType::RecordKind getRecordKind(const clang::TagTypeKind kind) { +

[clang] [clang] fix serialization of SubstNonTypeTemplateParmExpr (PR #134560)

2025-04-11 Thread via cfe-commits
eaeltsin wrote: @mizvekov - can [this](https://github.com/llvm/llvm-project/pull/132401#issuecomment-2795078260) also be related, or it needs a separate investigation? https://github.com/llvm/llvm-project/pull/134560 ___ cfe-commits mailing list cfe-

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
andykaylor wrote: I'm going to make the change to rename `cir.struct` to `cir.record` separately, since that's a bigger change and I'm still waiting for input from @bcardosolopes. Everything else has been addressed, I think. https://github.com/llvm/llvm-project/pull/135105

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
@@ -3179,6 +3207,67 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) { } } +static bool initVarDeclWithCtor(Sema &S, VarDecl *VD, +MutableArrayRef Args) { + InitializedEntity Entity = InitializedEntity::InitializeVariable(VD); + Initia

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
@@ -3179,6 +3207,67 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) { } } +static bool initVarDeclWithCtor(Sema &S, VarDecl *VD, +MutableArrayRef Args) { + InitializedEntity Entity = InitializedEntity::InitializeVariable(VD); + Initia

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
@@ -287,6 +287,24 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID, RetTy, CGM.getHLSLRuntime().getCreateResourceGetPointerIntrinsic(), ArrayRef{HandleOp, IndexOp}); } + case Builtin::BI__builtin_hlsl_resource_createpoisonhandle: { +llvm

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
@@ -1,34 +1,117 @@ // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-DXIL +// FIXME: SPIR-V codegen of llvm.spv.resource.handlefrombinding and resource types is not yet implement

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt edited https://github.com/llvm/llvm-project/pull/135120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
@@ -3179,6 +3207,67 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) { } } +static bool initVarDeclWithCtor(Sema &S, VarDecl *VD, +MutableArrayRef Args) { + InitializedEntity Entity = InitializedEntity::InitializeVariable(VD); + Initia

[clang] [clang] fix serialization of SubstNonTypeTemplateParmExpr (PR #134560)

2025-04-11 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: It's possible but it's not too closely related. I will post a patch for this one soon, and then we can try again that one and I will take a fresh look on the serialization code. https://github.com/llvm/llvm-project/pull/134560 ___ cfe

[clang] [-Wunsafe-buffer-usage][NFC] Factor out FixitUtil (PR #135100)

2025-04-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/10368 Here is the relevant piece

[clang] [CIR] Make LLVM & OGCG variables match the same pattern (PR #135427)

2025-04-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/135427 Follow-up patch to improve variable names in LLVM and OGCG in https://github.com/llvm/llvm-project/pull/134536 >From 70ce4a06051997d306979b58f264e0a84d484de8 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Da

[clang] [CIR] Make LLVM & OGCG variables match the same pattern (PR #135427)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Follow-up patch to improve variable names in LLVM and OGCG in https://github.com/llvm/llvm-project/pull/134536 --- Full diff: https://github.com/llvm/llvm-project/pull/135427.diff 1 Files Affected: -

[clang] [HLSL] Resource initialization by constructors (PR #135120)

2025-04-11 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt commented: LGTM but I don't have enough domain knowledge to approve https://github.com/llvm/llvm-project/pull/135120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [clang] fix serialization for SubstNonTypeTemplateParmPackExpr (PR #135428)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Matheus Izvekov (mizvekov) Changes This fixes a PCM non-determinism regression reported here: https://github.com/llvm/llvm-project/pull/134560#issuecomment-2797744370 There was a bit in `SubstNonTypeTemplateParmPackExpr` which we

[clang] [clang] fix serialization for SubstNonTypeTemplateParmPackExpr (PR #135428)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes a PCM non-determinism regression reported here: https://github.com/llvm/llvm-project/pull/134560#issuecomment-2797744370 There was a bit in `SubstNonTypeTemplateParmPackExpr` which we missed t

[clang] [clang] fix serialization of SubstNonTypeTemplateParmExpr (PR #134560)

2025-04-11 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: This will be fixed here: https://github.com/llvm/llvm-project/pull/135428 https://github.com/llvm/llvm-project/pull/134560 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [CIR] Make LLVM & OGCG variables match the same pattern (PR #135427)

2025-04-11 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > To clarify I wasn't saying that the LLVM checks and OGCG checks needed to use > the same patterns/names (though it's nice that they do now). The important > thing was not to have the value identifiers hard-corded in the checks. > > Thanks for the update! I found that it

[clang] Add back include for AutoConvert.h as it's needed for z/OS (PR #135430)

2025-04-11 Thread Sean Perry via cfe-commits
https://github.com/perry-ca created https://github.com/llvm/llvm-project/pull/135430 The commit https://github.com/llvm/llvm-project/commit/a1935fd3809772c06f9a09fa151181642ae92b20 removed an include that is needed when building on z/OS. >From 97b19d40e42752a980c5584e758570838def193a Mon Se

[clang] Add back include for AutoConvert.h as it's needed for z/OS (PR #135430)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sean Perry (perry-ca) Changes The commit https://github.com/llvm/llvm-project/commit/a1935fd3809772c06f9a09fa151181642ae92b20 removed an include that is needed when building on z/OS. --- Full diff: https://github.com/llvm/llvm-project/

[clang] [clang] fix serialization for SubstNonTypeTemplateParmPackExpr (PR #135428)

2025-04-11 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/135428 This fixes a PCM non-determinism regression reported here: https://github.com/llvm/llvm-project/pull/134560#issuecomment-2797744370 There was a bit in `SubstNonTypeTemplateParmPackExpr` which we missed to ser

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-11 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: If we're going to do this, I think we need better diagnostics. Just straight disabling this is going to give very confusing diagnostics to anyone actually using dollar-signs in identifiers. Some ideas: - We can give a warning if we see a "$" adjac

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Erich Keane via cfe-commits
@@ -0,0 +1,116 @@ +//===--===// +// +// 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] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Erich Keane via cfe-commits
@@ -86,10 +86,64 @@ mlir::Type CIRGenTypes::convertFunctionTypeInternal(QualType qft) { return cir::FuncType::get(SmallVector{}, cgm.VoidTy); } +// This is CIR's version of CodeGenTypes::addRecordTypeName. It isn't shareable +// because CIR has different uniquing requiremen

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: 2 issues/concerns, else lgtm. https://github.com/llvm/llvm-project/pull/135105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [AMDGPU] Generalize global.load.lds to buffer fat pointers (PR #134911)

2025-04-11 Thread Krzysztof Drewniak via cfe-commits
krzysz00 wrote: That is to say, because the offset you're gathering from is on the buffer fat pointer, the addrspace(7) version of this load has the same function signature as `global.load.lds`, not `buffer.raw.ptr.load.lds` https://github.com/llvm/llvm-project/pull/134911

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,116 @@ +//===--===// +// +// 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] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
@@ -86,10 +86,64 @@ mlir::Type CIRGenTypes::convertFunctionTypeInternal(QualType qft) { return cir::FuncType::get(SmallVector{}, cgm.VoidTy); } +// This is CIR's version of CodeGenTypes::addRecordTypeName. It isn't shareable +// because CIR has different uniquing requiremen

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/135105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add back include for AutoConvert.h as it's needed for z/OS (PR #135430)

2025-04-11 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Case handling MachineOperandType address of a global value in SIFoldOperands (PR #135404)

2025-04-11 Thread Akhilesh Moorthy via cfe-commits
https://github.com/isakhilesh closed https://github.com/llvm/llvm-project/pull/135404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/135105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,116 @@ +//===--===// +// +// 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] [clang][test][NFC] Use -fdriver-only over /dev/null (PR #135255)

2025-04-11 Thread Paul Kirth via cfe-commits
@@ -1,6 +1,6 @@ -// RUN: %clang -fopenacc -S %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=ERROR -// RUN: %clang -fclangir -fopenacc -S %s -o /dev/null 2>&1 | FileCheck %s --allow-empty -check-prefix=NOERROR -// RUN: %clang -fopenacc -fclangir -S %s -o /dev/null 2>&1 | FileC

[clang] [clang][test][NFC] Use -fdriver-only over /dev/null (PR #135255)

2025-04-11 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/135255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][test][NFC] Use -fdriver-only over /dev/null (PR #135255)

2025-04-11 Thread Paul Kirth via cfe-commits
ilovepi wrote: > This one shouldn't work. We explicitly don't diagnose this in non-codegen > invocations. That's surprising, but if that's the case, I don't think this patch makes much sense. https://github.com/llvm/llvm-project/pull/135255 ___ cfe

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-04-11 Thread Nikolas Klauser via cfe-commits
@@ -3231,6 +3241,230 @@ static QualType builtinCommonTypeImpl(Sema &S, TemplateName BaseTemplate, } } +static QualType CopyCV(QualType From, QualType To) { + if (From.isConstQualified()) +To.addConst(); + if (From.isVolatileQualified()) +To.addVolatile(); + retur

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-04-11 Thread Nikolas Klauser via cfe-commits
@@ -145,8 +160,6 @@ struct __common_reference_sub_bullet1<_Tp, _Up> { philnik777 wrote: I've added one. https://github.com/llvm/llvm-project/pull/121199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-04-11 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/121199 >From 273d0e6149a8326284ec1e385e83c8728c41ff68 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 27 Sep 2024 22:11:14 +0200 Subject: [PATCH] [Clang] Add __builtin_common_reference --- clang/docs/Lan

[clang] Add back include for AutoConvert.h as it's needed for z/OS (PR #135430)

2025-04-11 Thread Zibi Sarbinowski via cfe-commits
https://github.com/zibi2 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Make LLVM & OGCG variables match the same pattern (PR #135427)

2025-04-11 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. To clarify I wasn't saying that the LLVM checks and OGCG checks needed to use the same patterns/names (though it's nice that they do now). The important thing was not to have the value identifiers hard-corded in the checks. Thanks for t

[clang] [clang] WIP: Fix MemberPointer serialization non-determinism (PR #135434)

2025-04-11 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/135434 This fixes a problem originally reported here: https://github.com/llvm/llvm-project/pull/132401#issuecomment-2795078260 This makes sure we only serialize the class declaration when its strictly needed, and can

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-11 Thread Richard Smith via cfe-commits
https://github.com/zygoloid approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/135407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-11 Thread Richard Smith via cfe-commits
@@ -119,7 +119,7 @@ LANGOPT(WChar , 1, 0, "wchar_t keyword") LANGOPT(Char8 , 1, 0, "char8_t keyword") LANGOPT(IEEE128 , 1, 0, "__ieee128 keyword") LANGOPT(DeclSpecKeyword , 1, 0, "__declspec keyword") -BENIGN_LANGOPT(DollarIdents , 1, 1, "'

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-11 Thread Richard Smith via cfe-commits
@@ -1,5 +1,5 @@ // REQUIRES: x86-registered-target -// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fdollars-in-identifiers -fasm-blocks -emit-llvm -o - | FileCheck %s

[clang] Disable -fdollars-in-identifiers by default (PR #135407)

2025-04-11 Thread Richard Smith via cfe-commits
https://github.com/zygoloid edited https://github.com/llvm/llvm-project/pull/135407 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] Reland: [clang] preserve class type sugar when taking pointer to member (PR #132401)

2025-04-11 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @eaeltsin speculative fix here, but can you try with this patch? https://github.com/llvm/llvm-project/pull/135434 https://github.com/llvm/llvm-project/pull/132401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,116 @@ +//===--===// +// +// 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] [flang] [driver] Generalize the code that adds the path of libflang_rt.runtime.a. (PR #134362)

2025-04-11 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen updated https://github.com/llvm/llvm-project/pull/134362 >From 7db1cca2ad76b249d1fa2b76e6c488aa41cb3582 Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Fri, 4 Apr 2025 06:10:56 -0400 Subject: [PATCH 1/8] [driver] Generalize adding the path of libflang_rt.runtime

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-04-11 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/121199 >From 97d6d6918126493fc8c09d9f3af472d701cb2cf9 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 27 Sep 2024 22:11:14 +0200 Subject: [PATCH] [Clang] Add __builtin_common_reference --- clang/docs/Lan

[clang] ee801cd - [-Wunsafe-buffer-usage] Add findUnsafePointers (#135421)

2025-04-11 Thread via cfe-commits
Author: Jan Korous Date: 2025-04-11T13:28:18-07:00 New Revision: ee801cdd6e0ba497939cdc1e4dd34b98b4df3675 URL: https://github.com/llvm/llvm-project/commit/ee801cdd6e0ba497939cdc1e4dd34b98b4df3675 DIFF: https://github.com/llvm/llvm-project/commit/ee801cdd6e0ba497939cdc1e4dd34b98b4df3675.diff LO

[clang] [flang] [driver] Generalize the code that adds the path of libflang_rt.runtime.a. (PR #134362)

2025-04-11 Thread Daniel Chen via cfe-commits
@@ -7,35 +7,100 @@ !! LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON, use !! resource_dir_with_per_target_subdir as inputs. -! Check powerpc64-ibm-aix 64-bit linking to static flang-rt -! RUN: %flang %s -### 2>&1 \ +! Check powerpc64-ibm-aix 64-bit linking to static flang-rt by defaul

[clang] [CIR] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Erich Keane via cfe-commits
@@ -0,0 +1,116 @@ +//===--===// +// +// 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] Upstream minimal support for structure types (PR #135105)

2025-04-11 Thread Erich Keane via cfe-commits
@@ -86,10 +86,64 @@ mlir::Type CIRGenTypes::convertFunctionTypeInternal(QualType qft) { return cir::FuncType::get(SmallVector{}, cgm.VoidTy); } +// This is CIR's version of CodeGenTypes::addRecordTypeName. It isn't shareable +// because CIR has different uniquing requiremen

<    1   2   3   4   5   >