[clang] [CIR] LLVMIR lowering for cir.call (PR #138873)

2025-05-08 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/138873 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-s

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

2025-05-08 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed 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] 52924a2 - [Clang] [Driver] add a Cygwin ToolChain (#135691)

2025-05-08 Thread via cfe-commits
Author: jeremyd2019 Date: 2025-05-09T09:54:02+03:00 New Revision: 52924a2d7255cdd280b2b82dad8616e01fe065da URL: https://github.com/llvm/llvm-project/commit/52924a2d7255cdd280b2b82dad8616e01fe065da DIFF: https://github.com/llvm/llvm-project/commit/52924a2d7255cdd280b2b82dad8616e01fe065da.diff L

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw closed https://github.com/llvm/llvm-project/pull/137849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d2b012e - [Clang][CodeGen] Enable pointer overflow check for GCC workaround (#137849)

2025-05-08 Thread via cfe-commits
Author: Yingwei Zheng Date: 2025-05-09T14:53:00+08:00 New Revision: d2b012e3913a56d3cb2d9798bf77dc2599148dfb URL: https://github.com/llvm/llvm-project/commit/d2b012e3913a56d3cb2d9798bf77dc2599148dfb DIFF: https://github.com/llvm/llvm-project/commit/d2b012e3913a56d3cb2d9798bf77dc2599148dfb.diff

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yuta Mukai (ytmukai) Changes FEAT_FP8DOT4 and FEAT_FP8FMA are supported by FUJITSU-MONAKA. These were previously enabled due to dependencies, but now require explicit activation due to modifications in the dependencies. --- Full diff: ht

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Yuta Mukai (ytmukai) Changes FEAT_FP8DOT4 and FEAT_FP8FMA are supported by FUJITSU-MONAKA. These were previously enabled due to dependencies, but now require explicit activation due to modifications in the dependencies. --- Full d

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-08 Thread Yuta Mukai via cfe-commits
https://github.com/ytmukai created https://github.com/llvm/llvm-project/pull/139212 FEAT_FP8DOT4 and FEAT_FP8FMA are supported by FUJITSU-MONAKA. These were previously enabled due to dependencies, but now require explicit activation due to modifications in the dependencies.

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Henrich Lauko via cfe-commits
@@ -666,18 +678,26 @@ CIRGenFunction::emitArraySubscriptExpr(const clang::ArraySubscriptExpr *e) { assert((e->getIdx() == e->getLHS() || e->getIdx() == e->getRHS()) && "index was neither LHS nor RHS"); - auto emitIdxAfterBase = [&]() -> mlir::Value { + auto emitI

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Henrich Lauko via cfe-commits
@@ -1969,6 +1969,43 @@ def VecCreateOp : CIR_Op<"vec.create", [Pure]> { let hasVerifier = 1; } +//===--===// +// VecInsertOp +//===--===//

[clang] Fix missing initializer for inline static template member with auto caused by delayed template instantiation. (PR #138122)

2025-05-08 Thread via cfe-commits
https://github.com/dty2 updated https://github.com/llvm/llvm-project/pull/138122 From 659cebc431e22e782454de02a1f05545e645659d Mon Sep 17 00:00:00 2001 From: hunter <284050...@qq.com> Date: Thu, 1 May 2025 18:52:34 +0800 Subject: [PATCH] [clang] Fix missing initializer for inline static template

[clang] Fix missing initializer for inline static template member with auto caused by delayed template instantiation. (PR #138122)

2025-05-08 Thread via cfe-commits
@@ -6027,8 +6027,15 @@ void Sema::BuildVariableInstantiation( Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); + bool VarTemplateWithAutoType = false; + QualType VarSourceTyp

[clang] Fix missing initializer for inline static template member with auto caused by delayed template instantiation. (PR #138122)

2025-05-08 Thread via cfe-commits
@@ -6027,8 +6027,12 @@ void Sema::BuildVariableInstantiation( Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); + bool VarTemplateWithAutoType = + OldVar->getTypeSourceInf

[clang] 74e5a3b - [clang] Remove "unknown" from availability diags (#138610)

2025-05-08 Thread via cfe-commits
Author: Cyndy Ishida Date: 2025-05-08T21:18:52-07:00 New Revision: 74e5a3b61e87c8c2b830286796b72dda67942b6b URL: https://github.com/llvm/llvm-project/commit/74e5a3b61e87c8c2b830286796b72dda67942b6b DIFF: https://github.com/llvm/llvm-project/commit/74e5a3b61e87c8c2b830286796b72dda67942b6b.diff

[clang] [clang][bytecode] Reorder type checks in classify() (PR #139046)

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

[clang] c0f5b0a - [clang][NFC] Use BuiltinType::isFloatingPoint() in Type::isFloatingType() (#139035)

2025-05-08 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-09T06:49:03+02:00 New Revision: c0f5b0a62b2a90883baabfb7d1fd0db560f9fc5d URL: https://github.com/llvm/llvm-project/commit/c0f5b0a62b2a90883baabfb7d1fd0db560f9fc5d DIFF: https://github.com/llvm/llvm-project/commit/c0f5b0a62b2a90883baabfb7d1fd0db560f9fc5d.diff L

[clang] f7c01c4 - [clang][bytecode] Reorder type checks in classify() (#139046)

2025-05-08 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-09T06:48:24+02:00 New Revision: f7c01c40457c2f0fd20ab59244738ed61d4e989c URL: https://github.com/llvm/llvm-project/commit/f7c01c40457c2f0fd20ab59244738ed61d4e989c DIFF: https://github.com/llvm/llvm-project/commit/f7c01c40457c2f0fd20ab59244738ed61d4e989c.diff L

[clang] [clang][NFC] Use BuiltinType::isFloatingPoint() in Type::isFloatingType() (PR #139035)

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

[clang] [cfi][NFCI] Pre-commit -fsanitize-annotate-debug-info tests for CFI (PR #139149)

2025-05-08 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/139149 >From c2a5ecf9d89b4942fb1e95c7a7713585155099d0 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Thu, 8 May 2025 20:18:22 + Subject: [PATCH 1/3] [cfi][NFCI] Pre-commit -fsanitize-annotate-debug-info test

[clang] [clang] Remove "unknown" from availability diags (PR #138610)

2025-05-08 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida closed https://github.com/llvm/llvm-project/pull/138610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-installapi] Store dylib attributes in the order they are passed on the command line. (PR #139087)

2025-05-08 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida closed https://github.com/llvm/llvm-project/pull/139087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Delete duplicates in CSharpExtraKeywords (PR #139199)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/139199.diff 1 Files Affected: - (modified) clang/lib/Format/FormatToken.h (+13-19) ``diff diff --git a/clang/lib/Format/FormatToken.h

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-08 Thread via cfe-commits
fanju110 wrote: @MaskRay @aeubanks when you have a moment, could you please take a look at this PR? Let me know if there’s anything I should revise or clarify. Thanks! https://github.com/llvm/llvm-project/pull/136098 ___ cfe-commits mailing list cfe-c

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-08 Thread via cfe-commits
https://github.com/fanju110 updated https://github.com/llvm/llvm-project/pull/136098 >From 9494c9752400e4708dbc8b6a5ca4993ea9565e95 Mon Sep 17 00:00:00 2001 From: fanyikang Date: Thu, 17 Apr 2025 15:17:07 +0800 Subject: [PATCH 01/13] Add support for IR PGO (-fprofile-generate/-fprofile-use=/fi

[clang] [clang-format][NFC] Delete duplicates in CSharpExtraKeywords (PR #139199)

2025-05-08 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/139199 None >From 8ff5e366318162dc4e429abd8e41c339ba22ed41 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 8 May 2025 19:59:20 -0700 Subject: [PATCH] [clang-format][NFC] Delete duplicates in CSharpExtraKeywords ---

[clang] [clang-format]: Add `Custom` to `ShortFunctionStyle`; add new AllowShortFunctionsOnASingleLineOptions for granular setup (PR #134337)

2025-05-08 Thread via cfe-commits
irymarchyk wrote: @owenca can you please review one more time? https://github.com/llvm/llvm-project/pull/134337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] fix bundle ID for amdgcnspirv (PR #139112)

2025-05-08 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu closed https://github.com/llvm/llvm-project/pull/139112 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Refactor IsFunctionConversion (PR #139172)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (PiJoules) Changes A bunch of uses of IsFunctionConversion don't use the third argument and just make a dummy QualType to pass. This splits IsFunctionConversion into 2 functions, one that just takes 2 arguments and does the check, an

[clang] [clang-format] Handle C# where clause in SeparateDefinitionBlocks (PR #139034)

2025-05-08 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/139034 >From 11a3f6f44914e40b49f9ce00256724ce1fb82fa1 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 8 May 2025 00:12:44 -0700 Subject: [PATCH 1/2] [clang-format] Handle C# where clause in SeparateDefinitionBlocks

[clang] [clang-format] Handle C# where clause in SeparateDefinitionBlocks (PR #139034)

2025-05-08 Thread Owen Pan via cfe-commits
@@ -137,6 +137,12 @@ void DefinitionBlockSeparator::separateBlocks( const auto MayPrecedeDefinition = [&](const int Direction = -1) { assert(Direction >= -1); assert(Direction <= 1); + + if (Style.isCSharp() && + Lines[OpeningLineIndex]->First->is(

[clang] 035dcf6 - [HIP] fix bundle ID for amdgcnspirv (#139112)

2025-05-08 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-05-08T22:08:31-04:00 New Revision: 035dcf6a2a706288c8abe1017c965a1033fca800 URL: https://github.com/llvm/llvm-project/commit/035dcf6a2a706288c8abe1017c965a1033fca800 DIFF: https://github.com/llvm/llvm-project/commit/035dcf6a2a706288c8abe1017c965a1033fca800.dif

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-08 Thread The Raider via cfe-commits
raiderss wrote: This repository has excellent documentation. We follow similar practices at Eyes Store FiveM Tebex for our gaming resources. https://github.com/llvm/llvm-project/pull/139190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vect… (PR #139190)

2025-05-08 Thread Craig Topper via cfe-commits
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/139190 …ors for -mrvv-vector-bits For i1 vectors, we used an i8 fixed vector as the storage type. If the known minimum number of elements of the scalable vector type is less than 8, we were doing the cast through mem

[clang] [StaticAnalyzer] Handle `__builtin_bit_cast` (PR #139188)

2025-05-08 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 updated https://github.com/llvm/llvm-project/pull/139188 >From 95ac7cf69dbd683f70b123446115fe3893844526 Mon Sep 17 00:00:00 2001 From: Ziqing Luo Date: Thu, 8 May 2025 17:48:41 -0700 Subject: [PATCH 1/2] [StaticAnalyzer] Handle __builtin_bit_cast Previously, CSA

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vect… (PR #139190)

2025-05-08 Thread Craig Topper via cfe-commits
https://github.com/topperc edited https://github.com/llvm/llvm-project/pull/139190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Craig Topper (topperc) Changes For i1 vectors, we used an i8 fixed vector as the storage type. If the known minimum number of elements of the scalable vector type is less than 8, we were doing the cast through memory. This used a load or

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Craig Topper (topperc) Changes For i1 vectors, we used an i8 fixed vector as the storage type. If the known minimum number of elements of the scalable vector type is less than 8, we were doing the cast through memory. This used a

[clang] [RISCV] Improve casting between i1 scalable vectors and i8 fixed vectors for -mrvv-vector-bits (PR #139190)

2025-05-08 Thread Craig Topper via cfe-commits
https://github.com/topperc edited https://github.com/llvm/llvm-project/pull/139190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [StaticAnalyzer] Handle `__builtin_bit_cast` (PR #139188)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ziqing Luo (ziqingluo-90) Changes I am investigating a CSA crash: https://godbolt.org/z/fEExYqoWM. If one changes the `__builtin_bit_cast` to a C-style cast, the test will be fine. So the problem is specific to `__buil

[clang] [StaticAnalyzer] Handle `__builtin_bit_cast` (PR #139188)

2025-05-08 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 created https://github.com/llvm/llvm-project/pull/139188 I am investigating a CSA crash: https://godbolt.org/z/fEExYqoWM. If one changes the `__builtin_bit_cast` to a C-style cast, the test will be fine. So the problem is specific to `__builtin_bit_cast`. Loo

[clang] Fix missing initializer for inline static template member with auto caused by delayed template instantiation. (PR #138122)

2025-05-08 Thread Younan Zhang via cfe-commits
@@ -6027,8 +6027,15 @@ void Sema::BuildVariableInstantiation( Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); + bool VarTemplateWithAutoType = false; + QualType VarSourceTyp

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-08 Thread Oliver Hunt via cfe-commits
ojhunt wrote: > Would it make sense to add the feature macro to your downstream instead? > e.g., downstream supports `__has_feature(ptrauth_restricted_intptr)` and > upstream would return `false` for it. We have that, I just need to determine if there's any code that treats the lack of that q

[clang] Revert "[Clang] Diagnose invalid function types in dependent contexts (#138731)" (PR #139176)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This reverts commit cf9b4d1e7961214deabd99a9fc3b1d4c9e78a71f. Causes breakages as reported here: https://github.com/llvm/llvm-project/pull/138731#issuecomment-2864298000 --- Full diff: https://github.co

[clang] Revert "[Clang] Diagnose invalid function types in dependent contexts (#138731)" (PR #139176)

2025-05-08 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/139176 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] UEFI do not mangle main (PR #139179)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Prabhu Rajasekaran (Prabhuk) Changes Entry point functions such as main, wmain etc. should not be mangled for UEFI targets. --- Full diff: https://github.com/llvm/llvm-project/pull/139179.diff 7 Files Affected: - (modified) clang/lib/A

[clang] [clang] UEFI do not mangle main (PR #139179)

2025-05-08 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk created https://github.com/llvm/llvm-project/pull/139179 Entry point functions such as main, wmain etc. should not be mangled for UEFI targets. >From 2583040b0acb4d0b448bc2a8b086b11f74feddeb Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 9 May 2025 00:00:34 +000

[clang] Revert "[Clang] Diagnose invalid function types in dependent contexts (#138731)" (PR #139176)

2025-05-08 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/139176 This reverts commit cf9b4d1e7961214deabd99a9fc3b1d4c9e78a71f. Causes breakages as reported here: https://github.com/llvm/llvm-project/pull/138731#issuecomment-2864298000 >From 57f8029736da494f1702fe76514e8119

[clang] [Clang] Diagnose invalid function types in dependent contexts (PR #138731)

2025-05-08 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: This is reverted now. https://github.com/llvm/llvm-project/pull/138731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Enable pointer overflow check for GCC workaround (PR #137849)

2025-05-08 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/137849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] abd5ee9 - Revert "[Clang] Diagnose invalid function types in dependent contexts (#138731)" (#139176)

2025-05-08 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-05-08T20:56:48-03:00 New Revision: abd5ee9355c2d3fd0df8bb0e57a0f2cf2f9fb435 URL: https://github.com/llvm/llvm-project/commit/abd5ee9355c2d3fd0df8bb0e57a0f2cf2f9fb435 DIFF: https://github.com/llvm/llvm-project/commit/abd5ee9355c2d3fd0df8bb0e57a0f2cf2f9fb435.dif

[clang] [cfi][NFCI] Pre-commit -fsanitize-annotate-debug-info tests for CFI (PR #139149)

2025-05-08 Thread Florian Mayer via cfe-commits
https://github.com/fmayer requested changes to this pull request. windows bot fails. argument ordering strikes again? https://github.com/llvm/llvm-project/pull/139149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -971,6 +971,52 @@ def SwitchOp : CIR_Op<"switch", }]; } +//===--===// +// SwitchFlatOp +//===--===// + +def SwitchFlatOp : CIR_Op<"switc

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -971,6 +971,52 @@ def SwitchOp : CIR_Op<"switch", }]; } +//===--===// +// SwitchFlatOp +//===--===// + +def SwitchFlatOp : CIR_Op<"switc

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -962,6 +963,102 @@ bool cir::SwitchOp::isSimpleForm(llvm::SmallVectorImpl &cases) { }); } +//===--===// +// SwitchFlatOp +//===--===//

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -171,6 +171,232 @@ class CIRScopeOpFlattening : public mlir::OpRewritePattern { } }; +class CIRSwitchOpFlattening : public mlir::OpRewritePattern { +public: + using OpRewritePattern::OpRewritePattern; + + inline void rewriteYieldOp(mlir::PatternRewriter &rewriter, +

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-08 Thread Alexandre Ganea via cfe-commits
aganea wrote: Oh so all this dance (`_ref_` and the additional metadata) is for code page integrity purposes? To keep them unmodified in memory? So how does then the kernel use the PE metadata if it doesn't patch the code memory pages of the initial (running) image? Is there an additional mech

[clang] [llvm] [clang] Support ASan on WASI (PR #139014)

2025-05-08 Thread Yuta Saito via cfe-commits
kateinoigakukun wrote: > presumably the sanitizer runtime will end up alongside wasi-libc in the wasi > SDK? @dschuff Yes, it will be placed alongside the other clang_rt libraries in WASI SDK and Swift SDK for Wasm https://github.com/llvm/llvm-project/pull/139014 _

[clang] [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (PR #138995)

2025-05-08 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/138995 >From d4b5f004e2d91e8d821e20bee6fcb43b87701b9d Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Wed, 7 May 2025 16:53:35 -0700 Subject: [PATCH 1/3] [webkit.UncountedLambdaCapturesChecker] Treat every argument of

[clang] [Sema] Refactor IsFunctionConversion (PR #139172)

2025-05-08 Thread via cfe-commits
https://github.com/PiJoules created https://github.com/llvm/llvm-project/pull/139172 A bunch of uses of IsFunctionConversion don't use the third argument and just make a dummy QualType to pass. This splits IsFunctionConversion into 2 functions, one that just takes 2 arguments and does the chec

[clang] [RawPtrRefMemberChecker] Add the support for union and pointers to unsafe pointers. (PR #138042)

2025-05-08 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/138042 >From d03c8bb9915ff20c3936525a11a8ef113805b124 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 27 Apr 2025 16:52:13 -0700 Subject: [PATCH 1/2] [RawPtrRefMemberChecker] Add the support for union and pointer

[clang] [RawPtrRefMemberChecker] Add the support for union and pointers to unsafe pointers. (PR #138042)

2025-05-08 Thread Ryosuke Niwa via cfe-commits
@@ -192,7 +202,8 @@ class RawPtrRefMemberChecker const auto Kind = RD->getTagKind(); // FIMXE: Should we check union members too? -if (Kind != TagTypeKind::Struct && Kind != TagTypeKind::Class) +if (Kind != TagTypeKind::Struct && Kind != TagTypeKind::Class && -

[clang] Thread Safety Analysis: Support reentrant capabilities (PR #137133)

2025-05-08 Thread Aaron Puchert via cfe-commits
@@ -1011,6 +979,30 @@ void SExprBuilder::exitCFG(const CFGBlock *Last) { IncompleteArgs.clear(); } +static CapabilityExpr makeCapabilityExpr(const til::SExpr *E, QualType VDT, + bool Neg) { + // We need to look at the declaration of t

[clang] Fix missing initializer for inline static template member with auto caused by delayed template instantiation. (PR #138122)

2025-05-08 Thread via cfe-commits
@@ -6027,8 +6027,15 @@ void Sema::BuildVariableInstantiation( Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); + bool VarTemplateWithAutoType = false; + QualType VarSourceTyp

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -1969,6 +1969,43 @@ def VecCreateOp : CIR_Op<"vec.create", [Pure]> { let hasVerifier = 1; } +//===--===// +// VecInsertOp +//===--===//

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -1969,6 +1969,43 @@ def VecCreateOp : CIR_Op<"vec.create", [Pure]> { let hasVerifier = 1; } +//===--===// +// VecInsertOp +//===--===//

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -666,18 +678,26 @@ CIRGenFunction::emitArraySubscriptExpr(const clang::ArraySubscriptExpr *e) { assert((e->getIdx() == e->getLHS() || e->getIdx() == e->getRHS()) && "index was neither LHS nor RHS"); - auto emitIdxAfterBase = [&]() -> mlir::Value { + auto emitI

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -1969,6 +1969,43 @@ def VecCreateOp : CIR_Op<"vec.create", [Pure]> { let hasVerifier = 1; } +//===--===// +// VecInsertOp +//===--===//

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -418,6 +429,13 @@ RValue CIRGenFunction::emitLoadOfLValue(LValue lv, SourceLocation loc) { if (lv.isSimple()) return RValue::get(emitLoadOfScalar(lv, loc)); + if (lv.isVectorElt()) { +auto load = andykaylor wrote: Don't use `auto` here. https:

[clang] [CIR] Upstream insert op for VectorType (PR #139146)

2025-05-08 Thread Andy Kaylor via cfe-commits
@@ -1969,6 +1969,43 @@ def VecCreateOp : CIR_Op<"vec.create", [Pure]> { let hasVerifier = 1; } +//===--===// +// VecInsertOp +//===--===//

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-05-08 Thread Eli Friedman via cfe-commits
@@ -9125,9 +9126,25 @@ bool LValueExprEvaluator::VisitCompoundLiteralExpr(const CompoundLiteralExpr *E) { assert((!Info.getLangOpts().CPlusPlus || E->isFileScope()) && "lvalue compound literal in c++?"); - // Defer visiting the literal until the lvalue-to-rvalue con

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-08 Thread via cfe-commits
sivadeilra wrote: > I still don't get the _ref_ thing. [...] This is simply how Windows Secure Hotpatching works, and has for years. It relies on different codegen for the hotpatched functions, rather than using fixups to modify code. This way, code segments are not modified (so hashes and

[clang] [ObjC] Stop hard-coding the list of keywords that are allowed in selectors (PR #138952)

2025-05-08 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak updated https://github.com/llvm/llvm-project/pull/138952 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-

[clang] [Clang] show attribute namespace in diagnostics (PR #138519)

2025-05-08 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk closed https://github.com/llvm/llvm-project/pull/138519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 61b435e - [Clang] show attribute namespace in diagnostics (#138519)

2025-05-08 Thread via cfe-commits
Author: Oleksandr T. Date: 2025-05-09T00:49:01+03:00 New Revision: 61b435ec4de6b2a4139afce5195a01717436184c URL: https://github.com/llvm/llvm-project/commit/61b435ec4de6b2a4139afce5195a01717436184c DIFF: https://github.com/llvm/llvm-project/commit/61b435ec4de6b2a4139afce5195a01717436184c.diff

[clang] [ObjC] Also enable ARC attachedcall operand bundle for arm64_32. (PR #138677)

2025-05-08 Thread Marina Taylor via cfe-commits
https://github.com/citymarina closed https://github.com/llvm/llvm-project/pull/138677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-05-08 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-ser

[clang] [llvm] [AARCH64] Add support for Cortex-A320 (PR #139055)

2025-05-08 Thread Ties Stuij via cfe-commits
stuij wrote: > Can you add a release-note that this new CPU has been added? done https://github.com/llvm/llvm-project/pull/139055 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [git-clang-format] add fallback style argument option (PR #137609)

2025-05-08 Thread Andrej Pištek via cfe-commits
https://github.com/apdofficial updated https://github.com/llvm/llvm-project/pull/137609 From 49c012fc5813867f56f3f9b3556dcb70a1985cfd Mon Sep 17 00:00:00 2001 From: Andrej Pistek Date: Mon, 7 Apr 2025 13:37:47 +0200 Subject: [PATCH] [git-clang-format] add fallback style arg --- clang/tools/cl

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-08 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/138972 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,san

[clang] Reland [Clang] Deprecate `__is_trivially_relocatable` (PR #139061)

2025-05-08 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/139061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Cleanup support for C functions (PR #136854)

2025-05-08 Thread Iris Shi via cfe-commits
https://github.com/el-ev reopened https://github.com/llvm/llvm-project/pull/136854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Remove ABI handling from CIRGen call handling (PR #139159)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This corresponds to the changes made in https://github.com/llvm/clangir/pull/1604 We want to defer ABI handling until we lower to the LLVM dialect. Some code was in place to calculate ABI handling, but th

[clang] [CIR][NFC] Remove ABI handling from CIRGen call handling (PR #139159)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This corresponds to the changes made in https://github.com/llvm/clangir/pull/1604 We want to defer ABI handling until we lower to the LLVM dialect. Some code was in place to calculate ABI handling, but

[clang] [CIR][NFC] Remove ABI handling from CIRGen call handling (PR #139159)

2025-05-08 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/139159 This corresponds to the changes made in https://github.com/llvm/clangir/pull/1604 We want to defer ABI handling until we lower to the LLVM dialect. Some code was in place to calculate ABI handling, but the

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-08 Thread Alexandre Ganea via cfe-commits
aganea wrote: Thanks for the answer. Are these new flags `-fms-hotpatch-functions-file=` and `-fms-hotpatch-functions-list=` populated with data maintained manually by the Windows developpers? If I understand correctly, what you describe as "symbols that were hot-patched" means functions tha

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #138234)

2025-05-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/10107 Here is the

[clang] [clang] Deflake the TimeProfile support tests (PR #138613)

2025-05-08 Thread Reid Kleckner via cfe-commits
https://github.com/rnk closed https://github.com/llvm/llvm-project/pull/138613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 47fb5bd - [clang] Deflake the TimeProfile support tests (#138613)

2025-05-08 Thread via cfe-commits
Author: Reid Kleckner Date: 2025-05-08T14:07:44-07:00 New Revision: 47fb5bd494a9dd391abceafddb872e01a7d3492b URL: https://github.com/llvm/llvm-project/commit/47fb5bd494a9dd391abceafddb872e01a7d3492b DIFF: https://github.com/llvm/llvm-project/commit/47fb5bd494a9dd391abceafddb872e01a7d3492b.diff

[clang] [cfi][NFCI] Pre-commit -fsanitize-annotate-debug-info tests for CFI (PR #139149)

2025-05-08 Thread Thurston Dang via cfe-commits
@@ -0,0 +1,47 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// RUN: %clang_cc1 -triple x86_64-unknown-linux -O0 -fsanitize-cfi-cross-dso \ thurstond wrote: Changed to -O2 in https://github.com/llvm/llvm

[clang] [cfi][NFCI] Pre-commit -fsanitize-annotate-debug-info tests for CFI (PR #139149)

2025-05-08 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/139149 >From c2a5ecf9d89b4942fb1e95c7a7713585155099d0 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Thu, 8 May 2025 20:18:22 + Subject: [PATCH 1/2] [cfi][NFCI] Pre-commit -fsanitize-annotate-debug-info test

[clang] [llvm] Add support for Windows hot-patching (PR #138972)

2025-05-08 Thread Alexandre Ganea via cfe-commits
@@ -0,0 +1,20 @@ +// This verifies that hotpatch function attributes are correctly propagated when compiling directly to OBJ. +// +// RUN: %clang_cl -c --target=x86_64-windows-msvc -O2 /Z7 -fms-hotpatch-functions-file=%S/ms-hotpatch-functions.txt /Fo%t.obj %s ag

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread via cfe-commits
Andres-Salamanca wrote: @andykaylor https://github.com/llvm/llvm-project/pull/139154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose invalid function types in dependent contexts (PR #138731)

2025-05-08 Thread Yuxuan Chen via cfe-commits
yuxuanchen1997 wrote: Hi @cor3ntin, This patch seems to have made expression SFINAEs in variable template partial specialization an hard error: https://godbolt.org/z/3K6sh1cWM Upstream clang rejects the program while clang-20, gcc, msvc accepted it. https://github.com/llvm/llvm-project/pull

[clang] [clang][modules] Allow not forcing validation of user headers (PR #139091)

2025-05-08 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/139091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for FlattenCFG switch and SwitchFlatOp (PR #139154)

2025-05-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR adds support for the `FlattenCFG` transformation on `switch` statements. It also introduces the `SwitchFlatOp`, which is necessary for subsequent lowering to LLVM. --- Patch is 28.96 KiB, truncat

  1   2   3   4   >