[clang] [HLSL] Use hlsl_device address space for getpointer. (PR #127675)

2025-04-22 Thread Steven Perron via cfe-commits
@@ -89,12 +89,12 @@ RESOURCE Buffer; // CHECK-SAME{LITERAL}: [[hlsl::raw_buffer]] // CHECK-SAME{LITERAL}: [[hlsl::contained_type(element_type)]] -// CHECK-SUBSCRIPT: CXXMethodDecl {{.*}} operator[] 'const element_type &(unsigned int) const' +// CHECK-SUBSCRIPT: CXXMethodDecl

[clang] [Clang] diagnose deleted/default redeclaration of defined friend functions (PR #136717)

2025-04-22 Thread via cfe-commits
https://github.com/Sirraide commented: Some more test cases: ```c++ int a(); struct A { friend int a() = delete; }; struct B { friend int b(); }; struct C { friend int b() = delete; }; ``` https://github.com/llvm/llvm-project/pull/136717 ___ cfe-commi

[clang] [Clang] Fix crash when building a module with CC_PRINT_HEADERS_FORMAT=json (PR #136227)

2025-04-22 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 closed https://github.com/llvm/llvm-project/pull/136227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 68bfb17 - [Clang] Fix crash when building a module with CC_PRINT_HEADERS_FORMAT=json (#136227)

2025-04-22 Thread via cfe-commits
Author: Bob Wilson Date: 2025-04-22T10:27:07-07:00 New Revision: 68bfb17f1dd15f3b0b2754c8bce1d1c395e553c1 URL: https://github.com/llvm/llvm-project/commit/68bfb17f1dd15f3b0b2754c8bce1d1c395e553c1 DIFF: https://github.com/llvm/llvm-project/commit/68bfb17f1dd15f3b0b2754c8bce1d1c395e553c1.diff LO

[clang] [CIR] Upstream support for accessing structure members (PR #136383)

2025-04-22 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/136383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c073c22 - [HLSL] Use hlsl_device address space for getpointer. (#127675)

2025-04-22 Thread via cfe-commits
Author: Steven Perron Date: 2025-04-22T13:26:32-04:00 New Revision: c073c228654e907a619edc03ff87158da772704c URL: https://github.com/llvm/llvm-project/commit/c073c228654e907a619edc03ff87158da772704c DIFF: https://github.com/llvm/llvm-project/commit/c073c228654e907a619edc03ff87158da772704c.diff

[clang] [HLSL] Use hlsl_device address space for getpointer. (PR #127675)

2025-04-22 Thread Steven Perron via cfe-commits
https://github.com/s-perron closed https://github.com/llvm/llvm-project/pull/127675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for accessing structure members (PR #136383)

2025-04-22 Thread Erich Keane via cfe-commits
@@ -1310,6 +1310,70 @@ def GetGlobalOp : CIR_Op<"get_global", let hasVerifier = 0; } +//===--===// +// GetMemberOp +//===--===// + +def Get

[clang] [CIR] Upstream StackSave and StackRestoreOp (PR #136426)

2025-04-22 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/136426 >From 91a6937c7b937daceef426c877703d4d0cfeae76 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 19 Apr 2025 14:22:45 +0200 Subject: [PATCH 1/4] [CIR] Upstream StackSave and StackRestoreOp --- clang/

[clang] [Clang] diagnose deleted/default redeclaration of defined friend functions (PR #136717)

2025-04-22 Thread via cfe-commits
Sirraide wrote: Actually, I meant this of course: ```c++ int a() {} struct A { friend int a() = delete; }; struct B { friend int b() {} }; struct C { friend int b() = delete; }; ``` https://github.com/llvm/llvm-project/pull/136717 ___ cfe-commits

[clang] [Clang] Fix crash when -header-include-filtering is not specified (PR #136232)

2025-04-22 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 approved this pull request. Looks great, thank you! https://github.com/llvm/llvm-project/pull/136232 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] diagnose deleted/default redeclaration of defined friend functions (PR #136717)

2025-04-22 Thread Shafik Yaghmour via cfe-commits
@@ -274,26 +274,22 @@ void operators() { namespace gh135506 { struct a { - // FIXME: We currently don't diagnose these invalid redeclarations if the - // second declaration is defaulted or deleted. This probably needs to be - // handled in ParseCXXInlineMethodDef() after pa

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/136720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] diagnose deleted/default redeclaration of defined friend functions (PR #136717)

2025-04-22 Thread Yanzuo Liu via cfe-commits
@@ -142,6 +142,13 @@ NamedDecl *Parser::ParseCXXInlineMethodDef( SkipUntil(tok::semi); } +Decl *PrevDecl = FnD->getPreviousDecl(); +if (PrevDecl && isa(PrevDecl) && zwuis wrote: `isa_and_present(PrevDecl)` https://github.com/llvm/llvm-proje

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread Donát Nagy via cfe-commits
@@ -1,5 +1,5 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config unroll-loops=true,cfg-loopexit=true -verify -std=c++14 -analyzer-config exploration_strategy=unexplored_first_queue %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,debu

[clang] [lld] [llvm] [X86] Implement disabling APX relocations and EPGR/NDD instrs for relocations (PR #136660)

2025-04-22 Thread Feng Zou via cfe-commits
https://github.com/fzou1 updated https://github.com/llvm/llvm-project/pull/136660 >From a98371ac23728289b7e1b9a1516141158bf7c1e0 Mon Sep 17 00:00:00 2001 From: Feng Zou Date: Tue, 22 Apr 2025 11:05:29 +0800 Subject: [PATCH 1/2] [X86] Implement disabling APX relocations and EPGR/NDD instrs for

[clang] [Clang] diagnose deleted/default redeclaration of defined friend functions (PR #136717)

2025-04-22 Thread Oleksandr T. via cfe-commits
@@ -142,6 +142,13 @@ NamedDecl *Parser::ParseCXXInlineMethodDef( SkipUntil(tok::semi); } +Decl *PrevDecl = FnD->getPreviousDecl(); +if (PrevDecl && isa(PrevDecl) && a-tarasyuk wrote: @zwuis thanks https://github.com/llvm/llvm-project/pull/

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/136720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b53db89 - [CIR] Upstream SelectOp and ShiftOp (#133405)

2025-04-22 Thread via cfe-commits
Author: Morris Hafner Date: 2025-04-22T09:03:14-07:00 New Revision: b53db8913b1b0adf2236bca8ee68a6a971f9c708 URL: https://github.com/llvm/llvm-project/commit/b53db8913b1b0adf2236bca8ee68a6a971f9c708 DIFF: https://github.com/llvm/llvm-project/commit/b53db8913b1b0adf2236bca8ee68a6a971f9c708.diff

[clang] [CIR] Upstream SelectOp and ShiftOp (PR #133405)

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

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Donát Nagy (NagyDonat) Changes Recently some users reported that the runtime of the static analyzer drastically increased on their codebase when they upgraded to a more recent (sligthly patched, internal) clang version: some of their tran

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes Recently some users reported that the runtime of the static analyzer drastically increased on their codebase when they upgraded to a more recent (sligthly patched, internal) clang version:

[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-04-22 Thread Alexey Bataev via cfe-commits
@@ -101,9 +103,11 @@ T tmain(T argc, T *argv) { a = 2; #pragma omp task default(none), private(argc, b) firstprivate(argv) shared(d) if (argc > 0) final(S::TS > 0) priority(argc) affinity(argc, argv[b:argc], arr[:], ([argc][sizeof(T)])argv) foo(); +#ifndef OMP60 -

[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-04-22 Thread Alexey Bataev via cfe-commits
@@ -3700,6 +3701,11 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc, if (NeedsCleanup) Flags = Flags | DestructorsFlag; } + if (const auto *Clause = D.getSingleClause()) { alexey-bataev wrote: Better to pass the flag as

[clang] [llvm] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-04-22 Thread Alexey Bataev via cfe-commits
@@ -3691,6 +3691,7 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc, DestructorsFlag = 0x8, PriorityFlag = 0x20, DetachableFlag = 0x40, +PoolFlag = 0x80, alexey-bataev wrote: Is the runtime updated to handle this flag

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread Donát Nagy via cfe-commits
@@ -81,10 +81,6 @@ class FunctionSummariesTy { I->second.MayInline = 0; } - void markReachedMaxBlockCount(const Decl *D) { -markShouldNotInline(D); - } NagyDonat wrote: I'm removing this function (by inlining its trivial definition) because I feel

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/136720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Handle incomplete array types (PR #133508)

2025-04-22 Thread Sarah Spall via cfe-commits
https://github.com/spall approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/133508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "[HLSL][RootSignature] Define and integrate HLSLRootSignatureAttr" (PR #134293)

2025-04-22 Thread Sarah Spall via cfe-commits
https://github.com/spall edited https://github.com/llvm/llvm-project/pull/134293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland "[HLSL][RootSignature] Define and integrate HLSLRootSignatureAttr" (PR #134293)

2025-04-22 Thread Sarah Spall via cfe-commits
https://github.com/spall approved this pull request. LGTM based on previous pr approval and looking at the change in the latest commit https://github.com/llvm/llvm-project/pull/134293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

[clang] [OpenACC][CIR] Implement 'async' lowering. (PR #136626)

2025-04-22 Thread Erich Keane via cfe-commits
https://github.com/erichkeane updated https://github.com/llvm/llvm-project/pull/136626 >From 554256a719265abeb3cac278fbb1a19d7b989545 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Mon, 21 Apr 2025 12:54:23 -0700 Subject: [PATCH 1/2] [OpenACC][CIR] Implement 'async' lowering. Async acts just

[clang] [llvm] [RISCV] Add support for Ziccamoc (PR #136694)

2025-04-22 Thread Sam Elliott via cfe-commits
https://github.com/lenary approved this pull request. LGTM when there are release notes. https://github.com/llvm/llvm-project/pull/136694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] Reland [clang] Handle instantiated members to determine visibility (#136128) (PR #136689)

2025-04-22 Thread Erich Keane via cfe-commits
@@ -4787,8 +4787,10 @@ LinkageInfo LinkageComputer::computeTypeLinkageInfo(const Type *T) { return computeTypeLinkageInfo(cast(T)->getPointeeType()); case Type::MemberPointer: { const auto *MPT = cast(T); -LinkageInfo LV = -getDeclLinkageAndVisibility(MPT

[clang] Reland [clang] Handle instantiated members to determine visibility (#136128) (PR #136689)

2025-04-22 Thread Erich Keane via cfe-commits
@@ -4787,8 +4787,10 @@ LinkageInfo LinkageComputer::computeTypeLinkageInfo(const Type *T) { return computeTypeLinkageInfo(cast(T)->getPointeeType()); case Type::MemberPointer: { const auto *MPT = cast(T); -LinkageInfo LV = -getDeclLinkageAndVisibility(MPT

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-04-22 Thread Aaron Ballman via cfe-commits
@@ -3,6 +3,11 @@ // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wformat-nonliteral -isystem %S/Inputs -triple=x86_64-unknown-fuchsia %s // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wformat-nonliteral -isystem %S/Inputs -triple=x86_64-linux-android %s +// expected-n

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-04-22 Thread Aaron Ballman via cfe-commits
@@ -6331,26 +6321,79 @@ static StringLiteralCheckType checkFormatStringExpr( } } -return SLCT_NotALiteral; +// try to constant-evaluate the string +break; } default: +// try to constant-evaluate the string +break; + } + + const StringLit

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-04-22 Thread Aaron Ballman via cfe-commits
@@ -6331,26 +6321,79 @@ static StringLiteralCheckType checkFormatStringExpr( } } -return SLCT_NotALiteral; +// try to constant-evaluate the string +break; } default: +// try to constant-evaluate the string +break; + } + + const StringLit

[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

2025-04-22 Thread Aaron Ballman via cfe-commits
@@ -265,6 +265,9 @@ related warnings within the method body. ``format_matches`` accepts an example valid format string as its third argument. For more information, see the Clang attributes documentation. +- Format string checking now supports the compile-time evaluation of

[clang] [Clang] diagnose deleted/default redeclaration of defined friend functions (PR #136717)

2025-04-22 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/136717 >From cca0eacad86036539b41971794cc2ee0d1e2d577 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Tue, 22 Apr 2025 18:35:46 +0300 Subject: [PATCH 1/2] [Clang] diagnose deleted/defaulted redeclaration of

[clang] [llvm] Add Support for Ziccamoc (PR #136694)

2025-04-22 Thread via cfe-commits
https://github.com/T-Tie created https://github.com/llvm/llvm-project/pull/136694 Support for Ziccamoc is added in this pr. Specification link:[https://drive.google.com/file/d/12QKRm92cLcEk8-5J9NI91m0fAQOxqNAq/view](url) >From c7fabb64f6690de12f9dbffa16ef4d74ed2b3ae9 Mon Sep 17 00:00:00 2001 F

[clang] [llvm] Add Support for Ziccamoc (PR #136694)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc @llvm/pr-subscribers-backend-risc-v Author: T-Tie (T-Tie) Changes Support for Ziccamoc is added in this pr. Specification link:[https://drive.google.com/file/d/12QKRm92cLcEk8-5J9NI91m0fAQOxqNAq/view](url) --- Full diff: https://github.com/llvm/llvm-

[clang] [clang-refactor] Add Matcher Edit refactoring rule (PR #123782)

2025-04-22 Thread Roscoe A. Bartlett via cfe-commits
=?utf-8?b?0JjQs9C90LDRgiDQodC10YDQsw=?=, =?utf-8?b?0JjQs9C90LDRgiDQodC10YDQsw=?Message-ID: In-Reply-To: bartlettroscoe wrote: @IgnatSergeev, thanks for the reply! > You were right about the amount of refactorings that LibTool could support > And actually AST transformations are already suppor

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-22 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/136323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SYCL] Add SYCL property set registry class (PR #136697)

2025-04-22 Thread Justin Cai via cfe-commits
jzc wrote: For now, I've placed the class in `Frontend/Offloading/Utility.h`. If we get `Frontend/Offloading/SYCL` later on then I then that would be the most appropriate place to put it. https://github.com/llvm/llvm-project/pull/136697 _

[clang] [llvm] [SYCL] Add SYCL property set registry class (PR #136697)

2025-04-22 Thread Justin Cai via cfe-commits
@@ -159,6 +160,107 @@ namespace intel { /// the Intel runtime offload plugin. Error containerizeOpenMPSPIRVImage(std::unique_ptr &Binary); } // namespace intel + +namespace sycl { +class PropertySetRegistry; + +// A property value. It can be either a 32-bit unsigned integer or

[clang] [llvm] [SYCL] Add SYCL property set registry class (PR #136697)

2025-04-22 Thread Justin Cai via cfe-commits
https://github.com/jzc closed https://github.com/llvm/llvm-project/pull/136697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SYCL] Add SYCL property set registry class (PR #136697)

2025-04-22 Thread Justin Cai via cfe-commits
https://github.com/jzc deleted https://github.com/llvm/llvm-project/pull/136697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SYCL] Add SYCL property set registry class (PR #136697)

2025-04-22 Thread Justin Cai via cfe-commits
https://github.com/jzc deleted https://github.com/llvm/llvm-project/pull/136697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Use hlsl_device address space for getpointer. (PR #127675)

2025-04-22 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/127675 >From 81c31fcdee28482ceea703064b0103eccb2a93ad Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Wed, 12 Feb 2025 15:45:32 -0500 Subject: [PATCH 1/5] [HLSL] Use hlsl_device address space for getpointer. We ad

[clang] [Clang][kcfi] Sign extend KCFI typeid rather than zero extend (PR #136734)

2025-04-22 Thread Bill Wendling via cfe-commits
bwendling wrote: > Unfortunately, the `__kcfi_typeid_` values are intentionally zero-extended, > so they can be used in relocations with `movl`. With your patch applied: Okay, so what should we do about the testcase? I'm hitting it with the 'kcfi-salt' testcases, which are loosely based on `kc

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-22 Thread Richard Smith via cfe-commits
zygoloid wrote: > We don't know which function is called until the object `p` is provided. See > case 2 in > https://discourse.llvm.org/t/rfc-implement-gcc-bound-pmf-in-clang/85951. Perhaps we could provide a builtin function that takes an object pointer and a pointer-to-member-function and r

[clang] [clang][ARM][AArch64] Don't require arm_acle header for universally defined intrinsics (PR #136742)

2025-04-22 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/136742 >From f5f2d28bd1d878a7e202db91be31ae5b243e1fcf Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Tue, 22 Apr 2025 11:43:01 -0700 Subject: [PATCH 1/2] [clang][ARM][AArch64] Don't require arm_acle header for uni

[clang] [Clang][kcfi] Sign extend KCFI typeid rather than zero extend (PR #136734)

2025-04-22 Thread Bill Wendling via cfe-commits
bwendling wrote: Okay, I'll leave the current `kcfi.c` alone and do that for the new testcase. Thanks. :-) https://github.com/llvm/llvm-project/pull/136734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] Upstream enum support (PR #136807)

2025-04-22 Thread Ankur Ahir via cfe-commits
https://github.com/Ankur-0429 created https://github.com/llvm/llvm-project/pull/136807 #136055 This PR adds basic support for enum declarations in CIR by handling the Decl::Enum case in CIRGenModule::emitTopLevelDecl(). The implementation currently asserts when debug info generation is reque

[clang] [CIR] Upstream cir.call with scalar arguments (PR #136810)

2025-04-22 Thread Sirui Mu via cfe-commits
https://github.com/Lancern created https://github.com/llvm/llvm-project/pull/136810 This PR upstreams support for scalar arguments in `cir.call` operation. Related to #132487 . >From 557cae2daea53723010390cdf545721dd9ad7de4 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Wed, 23 Apr 2025 12:14:

[clang] [clang-format] Correctly annotate kw_operator in using decls (PR #136545)

2025-04-22 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#136808 https://github.com/llvm/llvm-project/pull/136545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream cir.call with scalar arguments (PR #136810)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sirui Mu (Lancern) Changes This PR upstreams support for scalar arguments in `cir.call` operation. Related to #132487 . --- Patch is 40.42 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/136810

[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)

2025-04-22 Thread via cfe-commits
@@ -11899,6 +11899,9 @@ def err_omp_clause_requires_dispatch_construct : Error< "'%0' clause requires 'dispatch' context selector">; def err_omp_append_args_with_varargs : Error< "'append_args' is not allowed with varargs functions">; +def warn_omp_dispatch_clause_novariant

[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)

2025-04-22 Thread via cfe-commits
https://github.com/SunilKuravinakop edited https://github.com/llvm/llvm-project/pull/131838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Andes N45/NX45 processor definition (PR #136670)

2025-04-22 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/136670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9efabbb - [clang-format] Fix a bug in lexing C++ UDL ending in $ (#136476)

2025-04-22 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-22T21:08:09-07:00 New Revision: 9efae58bd8bc2141ba1c914f79376e09cbcf URL: https://github.com/llvm/llvm-project/commit/9efae58bd8bc2141ba1c914f79376e09cbcf DIFF: https://github.com/llvm/llvm-project/commit/9efae58bd8bc2141ba1c914f79376e09cbcf.diff LOG:

[clang] [clang-format] Fix a bug in lexing C++ UDL ending in $ (PR #136476)

2025-04-22 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/136476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4f71655 - [clang-format] Fix a bug in parsing C-style cast of lambdas (#136099)

2025-04-22 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-22T21:07:31-07:00 New Revision: 4f71655b64a815143d2aedb22b8f423f7ce99e29 URL: https://github.com/llvm/llvm-project/commit/4f71655b64a815143d2aedb22b8f423f7ce99e29 DIFF: https://github.com/llvm/llvm-project/commit/4f71655b64a815143d2aedb22b8f423f7ce99e29.diff LOG:

[clang] [clang-format] Fix a bug in parsing C-style cast of lambdas (PR #136099)

2025-04-22 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/136099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 037657d - [clang-format] Correctly annotate kw_operator in using decls (#136545)

2025-04-22 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-22T21:08:56-07:00 New Revision: 037657de7e5ccd4a37054829874a209b82fb8be7 URL: https://github.com/llvm/llvm-project/commit/037657de7e5ccd4a37054829874a209b82fb8be7 DIFF: https://github.com/llvm/llvm-project/commit/037657de7e5ccd4a37054829874a209b82fb8be7.diff LOG:

[clang] afc030d - [clang-format] Don't test stability if JS format test fails (#136662)

2025-04-22 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-22T21:09:21-07:00 New Revision: afc030dd30e377ca7bf225a97179fa1b64eedd28 URL: https://github.com/llvm/llvm-project/commit/afc030dd30e377ca7bf225a97179fa1b64eedd28 DIFF: https://github.com/llvm/llvm-project/commit/afc030dd30e377ca7bf225a97179fa1b64eedd28.diff LOG:

[clang] [clang-format] Correctly annotate kw_operator in using decls (PR #136545)

2025-04-22 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/136545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't test stability if JS format test fails (PR #136662)

2025-04-22 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/136662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Correctly annotate kw_operator in using decls (PR #136545)

2025-04-22 Thread Owen Pan via cfe-commits
owenca wrote: /cherry-pick 037657de7e5ccd4a37054829874a209b82fb8be7 https://github.com/llvm/llvm-project/pull/136545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 34a4c58 - [clang] Rework `hasBooleanRepresentation`. (#136038)

2025-04-22 Thread via cfe-commits
Author: Michele Scandale Date: 2025-04-22T21:29:07-07:00 New Revision: 34a4c58018730736b940c4db4d694feed3266f52 URL: https://github.com/llvm/llvm-project/commit/34a4c58018730736b940c4db4d694feed3266f52 DIFF: https://github.com/llvm/llvm-project/commit/34a4c58018730736b940c4db4d694feed3266f52.di

[clang] [clang] Rework `hasBooleanRepresentation`. (PR #136038)

2025-04-22 Thread Michele Scandale via cfe-commits
https://github.com/michele-scandale closed https://github.com/llvm/llvm-project/pull/136038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Upstream enum support (PR #136807)

2025-04-22 Thread Ankur Ahir via cfe-commits
https://github.com/Ankur-0429 ready_for_review https://github.com/llvm/llvm-project/pull/136807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Upstream enum support (PR #136807)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Ankur Ahir (Ankur-0429) Changes #136055 This PR adds basic support for enum declarations in CIR by handling the Decl::Enum case in CIRGenModule::emitTopLevelDecl(). The implementation currently asserts when debug info generation is re

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-04-22 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From 0ce9ca670b3b3d851f171b4a841a28ffa683108c Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Fri, 11 Apr 2025 23:53:14 +1000 Subject: [PATCH] [libunwind][Haiku] Fix signal frame unwinding The current un

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-04-22 Thread Trung Nguyen via cfe-commits
@@ -3032,6 +2983,162 @@ int UnwindCursor::stepThroughSigReturn(Registers_s390x &) { #endif // defined(_LIBUNWIND_CHECK_LINUX_SIGRETURN) && // defined(_LIBUNWIND_TARGET_S390X) +#if defined(_LIBUNWIND_CHECK_HAIKU_SIGRETURN) + +#if defined(B_HAIKU_32_BIT) +typedef Elf32_Sy

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-04-22 Thread Trung Nguyen via cfe-commits
@@ -3032,6 +2983,162 @@ int UnwindCursor::stepThroughSigReturn(Registers_s390x &) { #endif // defined(_LIBUNWIND_CHECK_LINUX_SIGRETURN) && // defined(_LIBUNWIND_TARGET_S390X) +#if defined(_LIBUNWIND_CHECK_HAIKU_SIGRETURN) + +#if defined(B_HAIKU_32_BIT) +typedef Elf32_Sy

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-04-22 Thread Trung Nguyen via cfe-commits
trungnt2910 wrote: Submitted a new implementation that uses Haiku's recent [special handling](https://github.com/haiku/haiku/commit/1e1ad7efc96f94447815373be60fc1cc74962c65) of the `commpage` in `dladdr` to detect the signal handler function. This removes the need for both private headers and

[clang] [Clang] [Driver] add a Cygwin ToolChain (PR #135691)

2025-04-22 Thread via cfe-commits
https://github.com/jeremyd2019 updated https://github.com/llvm/llvm-project/pull/135691 >From 949ec2a683faf53652b21a4c90206befa498bf4e Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Mon, 14 Apr 2025 10:37:59 -0700 Subject: [PATCH 1/2] [Clang] [Driver] add a Cygwin ToolChain Add a new Cygwin

[clang] [clang] Add builtin_get_vtable_pointer and virtual_member_address (PR #135469)

2025-04-22 Thread via cfe-commits
@@ -5349,6 +5350,40 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, return RValue::get(Result); } + case Builtin::BI__builtin_virtual_member_address: { +Address This = EmitLValue(E->getArg(0)).getAddress(); +APValue ConstMemF

[clang] [Clang] [Driver] add a Cygwin ToolChain (PR #135691)

2025-04-22 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/135691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Infer MLIRContext in attr builders when possible (PR #136741)

2025-04-22 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Apr 23, 1:51 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136741). https://github.com/llvm/llvm-project/pull/136741 _

[clang] 7b68015 - [CIR] Infer MLIRContext in attr builders when possible (#136741)

2025-04-22 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-04-23T07:53:07+02:00 New Revision: 7b6801574d978ef418dd76257478cbbe5866b09f URL: https://github.com/llvm/llvm-project/commit/7b6801574d978ef418dd76257478cbbe5866b09f DIFF: https://github.com/llvm/llvm-project/commit/7b6801574d978ef418dd76257478cbbe5866b09f.diff

[clang] [CIR] Infer MLIRContext in attr builders when possible (PR #136741)

2025-04-22 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/136741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Driver] add a Cygwin ToolChain (PR #135691)

2025-04-22 Thread via cfe-commits
https://github.com/jeremyd2019 updated https://github.com/llvm/llvm-project/pull/135691 >From 949ec2a683faf53652b21a4c90206befa498bf4e Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Mon, 14 Apr 2025 10:37:59 -0700 Subject: [PATCH 1/2] [Clang] [Driver] add a Cygwin ToolChain Add a new Cygwin

[clang] [clang][bytecode] Allow casts from void* only in std::allocator calls (PR #136714)

2025-04-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/136714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Driver] add a Cygwin ToolChain (PR #135691)

2025-04-22 Thread via cfe-commits
https://github.com/jeremyd2019 edited https://github.com/llvm/llvm-project/pull/135691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1a78ef9 - [clang][bytecode] Allow casts from void* only in std::allocator calls (#136714)

2025-04-22 Thread via cfe-commits
Author: Timm Baeder Date: 2025-04-23T08:00:57+02:00 New Revision: 1a78ef9a9eddd73de7932f5c33a7a7ad7e8b1806 URL: https://github.com/llvm/llvm-project/commit/1a78ef9a9eddd73de7932f5c33a7a7ad7e8b1806 DIFF: https://github.com/llvm/llvm-project/commit/1a78ef9a9eddd73de7932f5c33a7a7ad7e8b1806.diff L

[clang] [clang][bytecode] Allow reinterpret casts from/to the same pointer type (PR #136692)

2025-04-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/136692 None >From dfd494236fd57172cfddfd0db6789321e1662ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 22 Apr 2025 14:17:42 +0200 Subject: [PATCH] [clang][bytecode] Allow reinterpret casts

[clang] [clang][bytecode] Allow reinterpret casts from/to the same pointer type (PR #136692)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136692.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+2) - (modified) clang/test/AST/ByteCode/cxx11.cpp (+8) ```

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-22 Thread via cfe-commits
@@ -2040,6 +2043,8 @@ void AMDGPUCodeGenPassBuilder::addIRPasses(AddIRPass &addPass) const { // but EarlyCSE can do neither of them. if (isPassEnabled(EnableScalarIRPasses)) addEarlyCSEOrGVNPass(addPass); + + addPass(AMDGPUTargetVerifierPass()); jofrn

[clang] c9eb1ff - [OpenACC][CIR] Implement 'async' lowering. (#136626)

2025-04-22 Thread via cfe-commits
Author: Erich Keane Date: 2025-04-22T06:41:59-07:00 New Revision: c9eb1ffcfe7cf8c9751afe436a6fcab9cb5b9c9b URL: https://github.com/llvm/llvm-project/commit/c9eb1ffcfe7cf8c9751afe436a6fcab9cb5b9c9b DIFF: https://github.com/llvm/llvm-project/commit/c9eb1ffcfe7cf8c9751afe436a6fcab9cb5b9c9b.diff L

[clang] [OpenACC][CIR] Implement 'async' lowering. (PR #136626)

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

[clang] 212f14f - [CIR] Change 'CIR-int' to use a 'APIntParameter' argument (#136713)

2025-04-22 Thread via cfe-commits
Author: Erich Keane Date: 2025-04-22T08:47:55-07:00 New Revision: 212f14fbc26e71b26d3345b272b97f22c9df4725 URL: https://github.com/llvm/llvm-project/commit/212f14fbc26e71b26d3345b272b97f22c9df4725 DIFF: https://github.com/llvm/llvm-project/commit/212f14fbc26e71b26d3345b272b97f22c9df4725.diff L

[clang] [CIR] Change 'CIR-int' to use a 'APIntParameter' argument (PR #136713)

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

[clang] [docs] Fix the use of word "dependent" and other typos in the C++ Modules Doc (PR #136719)

2025-04-22 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto created https://github.com/llvm/llvm-project/pull/136719 "Dependant BMI" / "Dependent BMI" was used incorrectly in the documentation: "Dependent BMI" refers to a BMI that depends on the current TU, but it was used for the BMI that current TU depends on. I replaced all t

[clang] [docs] Fix the use of word "dependent" and other typos in the C++ Modules Doc (PR #136719)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Arseniy Zaostrovnykh (necto) Changes "Dependant BMI" / "Dependent BMI" was used incorrectly in the documentation: "Dependent BMI" refers to a BMI that depends on the current TU, but it was used for the BMI that current TU depends on. I rep

[clang] [docs] Fix the use of word "dependent" and other typos in the C++ Modules Doc (PR #136719)

2025-04-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Arseniy Zaostrovnykh (necto) Changes "Dependant BMI" / "Dependent BMI" was used incorrectly in the documentation: "Dependent BMI" refers to a BMI that depends on the current TU, but it was used for the BMI that current TU depends on

[clang] [docs] Fix the use of word "dependent" and other typos in the C++ Modules Doc (PR #136719)

2025-04-22 Thread Arseniy Zaostrovnykh via cfe-commits
necto wrote: Hi, @ChuanqiXu9 I've been reading through the documentation, and got confused in a couple of places. I propose these small fixes. Unfortunately, I don't know who should be assigned to review the PR, so I ping you as one of the most impactful committer to this file. https://githu

[clang] [analyzer] Workaround for unintended slowdown (scope increase) (PR #136720)

2025-04-22 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/136720 Recently some users reported that the runtime of the static analyzer drastically increased on their codebase when they upgraded to a more recent (sligthly patched, internal) clang version: some of their trans

[clang] [clang][Driver] Support passing arbitrary args to `-cc1as` with `-Xclangas`. (PR #100714)

2025-04-22 Thread Alex Rønne Petersen via cfe-commits
alexrp wrote: Thanks for the heads up; I'll open a PR to fix that. Does passing `-integrated-as` seem reasonable for this test? Or should we just outright disable the test on AIX (and perhaps other affected platforms)? https://github.com/llvm/llvm-project/pull/100714 __

<    1   2   3   4   >