[clang] [CIR][X86] Add CIR codegen support for fpclass x86 builtins (PR #172813)

2025-12-17 Thread Jianjian Guan via cfe-commits
https://github.com/jacquesguan edited https://github.com/llvm/llvm-project/pull/172813 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR codegen for fpclass x86 builtin (PR #172813)

2025-12-17 Thread Jianjian Guan via cfe-commits
jacquesguan wrote: part of https://github.com/llvm/llvm-project/issues/167765 https://github.com/llvm/llvm-project/pull/172813 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CIR codegen for fpclass x86 builtin (PR #172813)

2025-12-17 Thread Jianjian Guan via cfe-commits
https://github.com/jacquesguan updated https://github.com/llvm/llvm-project/pull/172813 >From aada7fa51f2fd3701fd183eb17957f57cf9ef74f Mon Sep 17 00:00:00 2001 From: Jianjian GUAN Date: Thu, 18 Dec 2025 15:52:04 +0800 Subject: [PATCH] [CIR][X86] Add CIR codegen support for fpclass x86 builtins

[clang] [CIR] Upstream CIR codegen for fpclass x86 builtin (PR #172813)

2025-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Jianjian Guan (jacquesguan) Changes --- Patch is 51.47 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/172813.diff 7 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp

[clang] [CIR] Upstream CIR codegen for fpclass x86 builtin (PR #172813)

2025-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jianjian Guan (jacquesguan) Changes --- Patch is 51.47 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/172813.diff 7 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp (

[clang] [CIR] Upstream CIR codegen for fpclass x86 builtin (PR #172813)

2025-12-17 Thread Jianjian Guan via cfe-commits
https://github.com/jacquesguan created https://github.com/llvm/llvm-project/pull/172813 None >From d4a0d94db9d7dc321491b8c3e3b00c0c893d3956 Mon Sep 17 00:00:00 2001 From: Jianjian GUAN Date: Thu, 18 Dec 2025 15:52:04 +0800 Subject: [PATCH] [CIR] Upstream CIR codegen for fpclass x86 builtin --

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-17 Thread via cfe-commits
@@ -277,6 +277,7 @@ def err_drv_malformed_sanitizer_metadata_ignorelist : Error< "malformed sanitizer metadata ignorelist: '%0'">; def err_drv_unsupported_static_sanitizer_darwin : Error< "static %0 runtime is not supported on darwin">; +def err_drv_not_a_ubsan_sanitizer :

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-17 Thread via cfe-commits
https://github.com/j39m updated https://github.com/llvm/llvm-project/pull/170822 >From 30462f19f6ba2bf53eb6440dff018c40282bf3fd Mon Sep 17 00:00:00 2001 From: Kalvin Lee Date: Fri, 5 Dec 2025 17:37:29 +0900 Subject: [PATCH 1/5] Add fine-grained `__has_feature()` cutout This is a follow-up to pu

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/171225 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/171225 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -214,6 +214,10 @@ class SemaHLSL : public SemaBase { bool transformInitList(const InitializedEntity &Entity, InitListExpr *Init); bool handleInitialization(VarDecl *VDecl, Expr *&Init); void deduceAddressSpace(VarDecl *Decl); + QualType CheckMatrixComponent(Sema &S, Q

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl \ +// RUN: -ast-print -disable-llvm-passes -o - -hlsl-entry main %s \ +// RUN: | FileCheck %s + +typedef float float4x4 __attribute__((matrix_type(4,4))); +typedef float float2 __attribute__((e

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4439,6 +4448,68 @@ bool ExtVectorElementExpr::containsDuplicateElements() const { return false; } +/// containsDuplicateElements - Return true if any Matrix element access is +/// repeated. +bool MatrixElementExpr::containsDuplicateElements() const { + StringRef Comp =

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -306,8 +307,9 @@ class Expr : public ValueStmt { MLV_NotObjectType, MLV_IncompleteVoidType, MLV_DuplicateVectorComponents, +MLV_DuplicateMatrixComponents, MLV_InvalidExpression, -MLV_LValueCast, // Specialized form of MLV_InvalidExpression.

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4439,6 +4448,68 @@ bool ExtVectorElementExpr::containsDuplicateElements() const { return false; } +/// containsDuplicateElements - Return true if any Matrix element access is +/// repeated. +bool MatrixElementExpr::containsDuplicateElements() const { + StringRef Comp =

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4620,6 +4620,205 @@ bool SemaHLSL::transformInitList(const InitializedEntity &Entity, return true; } +QualType SemaHLSL::CheckMatrixComponent(Sema &S, QualType baseType, +ExprValueKind &VK, SourceLocation OpLoc, +

[clang] [HLSL][Matrix] introduce MatrixElementExpr as accessor and swizzle operator (PR #171225)

2025-12-17 Thread Helena Kotas via cfe-commits
@@ -4472,6 +4543,59 @@ void ExtVectorElementExpr::getEncodedElementAccess( } } +void MatrixElementExpr::getEncodedElementAccess( hekota wrote: The functions `containsDuplicateElements` and `getEncodedElementAccess` seem to have a lot of common code. Consid

[clang] [llvm] [clang][driver][darwin] Base the system prefix on the SDK, not the target (PR #171970)

2025-12-17 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder updated https://github.com/llvm/llvm-project/pull/171970 >From 5c5e79b90a9df70cc7d46f1e9319331791f1b17a Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Wed, 10 Dec 2025 13:58:52 -0800 Subject: [PATCH 1/3] [clang][driver][darwin] Base the system prefix on t

[clang] [clang] Fix an invalidate iterator in PCH with -ftime-trace enabled. (PR #172658)

2025-12-17 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/172658 >From 168671b69c43207f198a8f1ae12fd7c803e68365 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 17 Dec 2025 15:09:58 +0100 Subject: [PATCH 1/2] [clang] Fix an invalidate iterator in PCH with -ftime-trace ena

[clang] [clang][bytecode] Refactor `InitMapPtr` (PR #172665)

2025-12-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/172665 >From 2fda39a79bbec5fa86e1a5e250ad540deb4076f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 17 Dec 2025 14:05:23 +0100 Subject: [PATCH] [clang][bytecode] --- clang/lib/AST/ByteCode/

[clang] [clang] Fix an invalidate iterator in PCH with -ftime-trace enabled. (PR #172658)

2025-12-17 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/172658 >From 79874e9cd9887accee0917826cfe42d97c73f75e Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 17 Dec 2025 15:09:58 +0100 Subject: [PATCH 1/2] [clang] Fix an invalidate iterator in PCH with -ftime-trace ena

[clang-tools-extra] [clang-tidy] Teach `misc-use-internal-linkage` to suggest giving classes internal linkage (PR #172797)

2025-12-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/172797 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Teach `misc-use-internal-linkage` to suggest giving classes internal linkage (PR #172797)

2025-12-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/172797 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Teach `misc-use-internal-linkage` to suggest giving classes internal linkage (PR #172797)

2025-12-17 Thread Victor Chernyakin via cfe-commits
@@ -113,27 +115,37 @@ void UseInternalLinkageCheck::registerMatchers(MatchFinder *Finder) { allOf(isFirstDecl(), isAllRedeclsInMainFile(HeaderFileExtensions), unless(anyOf( // 1. internal linkage -isStaticStorageClass(), isInAn

[clang] [clang][bytecode] Refactor `InitMapPtr` (PR #172665)

2025-12-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/172665 >From f970ce7a0283907fca710dab4ae223e37f1d8105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 17 Dec 2025 14:05:23 +0100 Subject: [PATCH] [clang][bytecode] --- clang/lib/AST/ByteCode/

[clang-tools-extra] [clang-tidy] Teach `misc-use-internal-linkage` to suggest giving classes internal linkage (PR #172797)

2025-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes Currently, the check only supports variables and functions. This PR extends it to classes (and structs, unions, enums, etc.). --- Full diff: https://github.com/llvm/llvm-project/pull/172797.diff

[clang-tools-extra] [clang-tidy] Teach `misc-use-internal-linkage` to suggest giving classes internal linkage (PR #172797)

2025-12-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/172797 Currently, the check only supports variables and functions. This PR extends it to classes (and structs, unions, enums, etc.). >From 4322a115419fcf5fb94395b70acd15ac117f Mon Sep 17 00:00:00 2001 From: Vic

[clang] [clang][bytecode] Use record layout in `Pointer::computeOffsetForComparison()` (PR #172322)

2025-12-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/172322 >From 7a41d561c04dc9475d189b34ebc86c8a3aebec0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 15 Dec 2025 16:18:21 +0100 Subject: [PATCH 1/2] ptr compare --- clang/lib/AST/ByteCode/In

[clang] [CIR] Add codegen for atomic fence builtin with non-const memory order (PR #172455)

2025-12-17 Thread Haocong Lu via cfe-commits
https://github.com/Luhaocong edited https://github.com/llvm/llvm-project/pull/172455 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add codegen for atomic fence builtin with non-const memory order (PR #172455)

2025-12-17 Thread Haocong Lu via cfe-commits
@@ -63,25 +63,89 @@ static RValue emitBuiltinBitOp(CIRGenFunction &cgf, const CallExpr *e, static void emitAtomicFenceOp(CIRGenFunction &cgf, const CallExpr *expr, cir::SyncScopeKind syncScope) { CIRGenBuilderTy &builder = cgf.getBuilder(); - m

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-17 Thread Mikael Holmen via cfe-commits
@@ -31,6 +31,19 @@ namespace clang::lifetimes { namespace internal { +static void DebugOnlyFunction(AnalysisDeclContext &AC, const CFG &Cfg, mikaelholmen wrote: Yep, thanks! https://github.com/llvm/llvm-project/pull/168344 ___

[clang] [CIR] Add codegen for atomic fence builtin with non-const memory order (PR #172455)

2025-12-17 Thread Haocong Lu via cfe-commits
@@ -63,25 +63,89 @@ static RValue emitBuiltinBitOp(CIRGenFunction &cgf, const CallExpr *e, static void emitAtomicFenceOp(CIRGenFunction &cgf, const CallExpr *expr, cir::SyncScopeKind syncScope) { CIRGenBuilderTy &builder = cgf.getBuilder(); - m

[clang] [CIR] Add codegen for atomic fence builtin with non-const memory order (PR #172455)

2025-12-17 Thread Haocong Lu via cfe-commits
@@ -179,3 +179,427 @@ void loadWithSignalFence(DataPtr d) { // OGCG:%[[DATA_TEMP_LOAD]] = load ptr, ptr %[[DATA_TEMP]], align 8 // OGCG:ret void } + +void const_atomic_thread_fence() { + __atomic_thread_fence(__ATOMIC_RELAXED); + __atomic_thread_fence(__ATOMIC_CON

[clang] [CIR] Add codegen for atomic fence builtin with non-const memory order (PR #172455)

2025-12-17 Thread Haocong Lu via cfe-commits
https://github.com/Luhaocong updated https://github.com/llvm/llvm-project/pull/172455 >From 1e7e9a6c75e70fad9549a780eccd8fb67d4c9f2b Mon Sep 17 00:00:00 2001 From: Haocong Lu Date: Tue, 16 Dec 2025 16:15:50 +0800 Subject: [PATCH 1/2] [CIR] Support codegen for atomic fence builtin with non-cons

[clang] [LifetimeSafety] Bailout CFGs based on Origin Count (PR #171808)

2025-12-17 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/171808 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][X86] Add support for permd builtins (PR #172132)

2025-12-17 Thread Zhihui Yang via cfe-commits
https://github.com/YGGkk updated https://github.com/llvm/llvm-project/pull/172132 >From 7bb370ddc58d5364fa1c636f3c29a40e54a943e5 Mon Sep 17 00:00:00 2001 From: Zhihui Yang Date: Fri, 12 Dec 2025 22:21:52 -0800 Subject: [PATCH 1/3] [CIR][X86] Add support for permd builtins --- clang/lib/CIR/Co

[clang] [llvm] [RISCV] Add Xqci feature flag (PR #172608)

2025-12-17 Thread Sudharsan Veeravalli via cfe-commits
@@ -1640,6 +1640,22 @@ def HasVendorXqcisync AssemblerPredicate<(all_of FeatureVendorXqcisync), "'Xqcisync' (Qualcomm uC Sync Delay Extension)">; +def FeatureVendorXqci +: RISCVExperimentalExtension<0, 13, "Qualcomm uC Extension", +

[clang] [llvm] [RISCV] Add Xqci feature flag (PR #172608)

2025-12-17 Thread via cfe-commits
https://github.com/hchandel approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/172608 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Xqci feature flag (PR #172608)

2025-12-17 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic updated https://github.com/llvm/llvm-project/pull/172608 >From 061a1c07e29df3cfd86b04bf980d012b72c59d03 Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Wed, 17 Dec 2025 13:39:12 +0530 Subject: [PATCH 1/3] Xqci --- .../Driver/print-supported-extensions-ris

[clang] [OpenMP][CIR] Implement 'parallel's 'proc_bind' clause lowering (PR #172501)

2025-12-17 Thread Kareem Ergawy via cfe-commits
https://github.com/ergawy approved this pull request. LGTM, Thanks! https://github.com/llvm/llvm-project/pull/172501 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Replace `llvm::StringLiteral` with `StringRef` (PR #172765)

2025-12-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/172765 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] b2ce1a9 - [clang-tidy][NFC] Replace `llvm::StringLiteral` with `StringRef` (#172765)

2025-12-17 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-12-17T20:15:41-08:00 New Revision: b2ce1a981efdd50f9df9329a0c140ac3d1b5d97e URL: https://github.com/llvm/llvm-project/commit/b2ce1a981efdd50f9df9329a0c140ac3d1b5d97e DIFF: https://github.com/llvm/llvm-project/commit/b2ce1a981efdd50f9df9329a0c140ac3d1b5d97e.d

[clang-tools-extra] 686c2a1 - [clang-tidy][NFC] Prefer `isa` over `T::classof` (#172772)

2025-12-17 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-12-17T20:14:45-08:00 New Revision: 686c2a14766aab8aec6580b9622ad4f551797973 URL: https://github.com/llvm/llvm-project/commit/686c2a14766aab8aec6580b9622ad4f551797973 DIFF: https://github.com/llvm/llvm-project/commit/686c2a14766aab8aec6580b9622ad4f551797973.d

[clang-tools-extra] [clang-tidy][NFC] Prefer `isa` over `T::classof` (PR #172772)

2025-12-17 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/172772 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Prefer `isa` over `T::classof` (PR #172772)

2025-12-17 Thread via cfe-commits
https://github.com/zeyi2 approved this pull request. https://github.com/llvm/llvm-project/pull/172772 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang][HLSL] Minor fixes to SpirvOperand (PR #172782)

2025-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged this as not applying rule of three properly. The code was trying to do the right thing but basically they are effectively all defaulted, so we make it explicit. --- Full diff: http

[clang] [NFC][Clang][HLSL] Minor fixes to SpirvOperand (PR #172782)

2025-12-17 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/172782 Static analysis flagged this as not applying rule of three properly. The code was trying to do the right thing but basically they are effectively all defaulted, so we make it explicit. >From 5b3e9e8be648adbbace

[clang] [CodeGen][ObjC] Try/Catch support for WebAssembly (PR #171038)

2025-12-17 Thread Heejin Ahn via cfe-commits
@@ -207,36 +215,59 @@ void CGObjCRuntime::EmitTryCatchStmt(CodeGenFunction &CGF, // Push a cleanup for __finally blocks. CGF.pushSEHCleanup(NormalAndEHCleanup, FinallyFunc); } + } // Emit the try body. CGF.EmitStmt(S.getTryBody()); // Leave t

[clang] [CodeGen][ObjC] Try/Catch support for WebAssembly (PR #171038)

2025-12-17 Thread Heejin Ahn via cfe-commits
https://github.com/aheejin commented: It looks you have code for `catch` handling but for cleanups (= destructors). Do you need to handle them as well? https://github.com/llvm/llvm-project/pull/171038 ___ cfe-commits mailing list [email protected]

[clang] [CodeGen][ObjC] Try/Catch support for WebAssembly (PR #171038)

2025-12-17 Thread Heejin Ahn via cfe-commits
@@ -675,6 +675,7 @@ struct EHPersonality { static const EHPersonality GNU_ObjC_SJLJ; static const EHPersonality GNU_ObjC_SEH; static const EHPersonality GNUstep_ObjC; + static const EHPersonality GNUstep_Wasm_ObjC; aheejin wrote: This doesn't seem to be

[clang] [CodeGen][ObjC] Try/Catch support for WebAssembly (PR #171038)

2025-12-17 Thread Heejin Ahn via cfe-commits
https://github.com/aheejin edited https://github.com/llvm/llvm-project/pull/171038 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix an invalidate iterator in PCH with -ftime-trace enabled. (PR #172658)

2025-12-17 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/172658 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add CIRGenUtils.h for shared CIR codegen utilities (PR #172735)

2025-12-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: This is basically what I had in mind. I was thinking of it as specific to the builtin handling, but I suppose there is no reason it needs to be. This function in particular has been a bit slippery. I like it as a helper function. It feels like it could

[clang] [clang][DependencyScanning] Remove dependency on clangDriver from clangDependencyScanning (PR #172347)

2025-12-17 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: Cool, thanks for reviewing!! I’ll merge after @qiongsiwu has had a chance to review. I just finished resolving all the merge conflicts in #152770 locally and noticed that I’ll need to move buildCC1CommandLine again (possibly to clang/include/clang/Driver/Job.h) so it can be

[clang] [flang] [flang] Support -f(no-)protect-parens (PR #170505)

2025-12-17 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu edited https://github.com/llvm/llvm-project/pull/170505 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Support -f(no-)protect-parens (PR #170505)

2025-12-17 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,13 @@ +! RUN: %flang -fprotect-parens -### %s -o %t 2>&1 | FileCheck %s -check-prefix=PROTECT +! RUN: %flang -fno-protect-parens -### %s -o %t 2>&1 | FileCheck %s -check-prefix=NO-PROTECT +! RUN: %flang -### %s -o %t 2>&1 | FileCheck %s -check-prefix=DEFAULT +! RUN: %

[clang] [flang] [flang] Support -f(no-)protect-parens (PR #170505)

2025-12-17 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu commented: The driver side of things LGTM. https://github.com/llvm/llvm-project/pull/170505 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
andykaylor wrote: Without a different errorNYI here, the message below will be wrong for the builtins above. https://github.com/llvm/llvm-project/pull/168347 ___ cfe-commits mailing list [email protected] ht

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -117,6 +118,29 @@ std::string CIRGenTypes::getRecordTypeName(const clang::RecordDecl *recordDecl, return builder.getUniqueRecordName(std::string(typeName)); } +mlir::Type CIRGenTypes::convertTypeForLoadStore(QualType qualType, +

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -944,61 +1045,50 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, case Builtin::BI__sync_fetch_and_max: case Builtin::BI__sync_fetch_and_umin: case Builtin::BI__sync_fetch_and_umax: +cgm.errorNYI(e->getSourceRange(), "__sync_fetc

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -117,6 +118,29 @@ std::string CIRGenTypes::getRecordTypeName(const clang::RecordDecl *recordDecl, return builder.getUniqueRecordName(std::string(typeName)); } +mlir::Type CIRGenTypes::convertTypeForLoadStore(QualType qualType, +

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -545,10 +545,39 @@ LValue CIRGenFunction::emitLValueForFieldInitialization( return makeAddrLValue(v, fieldType, fieldBaseInfo); } +/// Converts a scalar value from its primary IR type (as returned +/// by ConvertType) to its load/store type (as returned by +/// convertTyp

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -545,10 +545,39 @@ LValue CIRGenFunction::emitLValueForFieldInitialization( return makeAddrLValue(v, fieldType, fieldBaseInfo); } +/// Converts a scalar value from its primary IR type (as returned +/// by ConvertType) to its load/store type (as returned by +/// convertTyp

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -60,6 +61,106 @@ static RValue emitBuiltinBitOp(CIRGenFunction &cgf, const CallExpr *e, return RValue::get(result); } +/// Emit the conversions required to turn the given value into an +/// integer of the given size. +static mlir::Value emitToInt(CIRGenFunction &cgf, mli

[clang] [CIR] Upstream __sync__and_fetch builtins (PR #168347)

2025-12-17 Thread Andy Kaylor via cfe-commits
@@ -1107,8 +1197,7 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, // Finally, store the result using the pointer. bool isVolatile = resultArg->getType()->getPointeeType().isVolatileQualified(); -builder.createStore(loc,

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-12-17 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/160259 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
@@ -44,6 +44,35 @@ settings. The options and their corresponding values are: - ``LowerCase`` - example: ``int i_Variable`` - ``CamelCase`` - example: ``int IVariable`` +The check only works on kinds of identifiers which have been configured, +so an empty config effectively d

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
@@ -44,6 +44,35 @@ settings. The options and their corresponding values are: - ``LowerCase`` - example: ``int i_Variable`` - ``CamelCase`` - example: ``int IVariable`` +The check only works on kinds of identifiers which have been configured, +so an empty config effectively d

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
@@ -44,6 +44,35 @@ settings. The options and their corresponding values are: - ``LowerCase`` - example: ``int i_Variable`` - ``CamelCase`` - example: ``int IVariable`` +The check only works on kinds of identifiers which have been configured, +so an empty config effectively d

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
@@ -44,6 +44,35 @@ settings. The options and their corresponding values are: - ``LowerCase`` - example: ``int i_Variable`` - ``CamelCase`` - example: ``int IVariable`` +The check only works on kinds of identifiers which have been configured, +so an empty config effectively d

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
@@ -44,6 +44,35 @@ settings. The options and their corresponding values are: - ``LowerCase`` - example: ``int i_Variable`` - ``CamelCase`` - example: ``int IVariable`` +The check only works on kinds of identifiers which have been configured, +so an empty config effectively d

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/171686 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)

2025-12-17 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM with a few comments on docs https://github.com/llvm/llvm-project/pull/171686 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang][Frontend] Use move semantics when translating standalone diagnostics (NFC) (PR #172746)

2025-12-17 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: For additional context: PR #152770 (WIP) previously used a separate, slightly different implementation of `StandaloneDiagnostic` and related code from the one in `ASTUnit`. After PR #169599 resolved the linkage issues and extracted `StandaloneDiagnostic` from the `ASTUnit`

[clang] clang: Remove unnecessary host-supports-cuda from test (PR #171174)

2025-12-17 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/171174 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4014d83 - clang: Remove unnecessary host-supports-cuda from test (#171174)

2025-12-17 Thread via cfe-commits
Author: Matt Arsenault Date: 2025-12-17T22:46:16Z New Revision: 4014d83cf7c391f0b4855941887afcc4ec7856cb URL: https://github.com/llvm/llvm-project/commit/4014d83cf7c391f0b4855941887afcc4ec7856cb DIFF: https://github.com/llvm/llvm-project/commit/4014d83cf7c391f0b4855941887afcc4ec7856cb.diff LOG

[clang] [CIR] Add flattened version of CatchParamOp (PR #172713)

2025-12-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/172713 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [mlir] [MLIR][XeGPU] Fix the test issue brought by PR172125 (PR #172742)

2025-12-17 Thread Maksim Levental via cfe-commits
https://github.com/makslevental closed https://github.com/llvm/llvm-project/pull/172742 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-17 Thread via cfe-commits
MarwanTarik wrote: I figured out that there were some bugs in the tests. I could summarize it in the following: - Removed @ prefix from CIR-LABEL patterns to match C++ mangled names - Updated OGCG-LABEL patterns from @test_function to {{.*}}test_function{{.*}}( for C/C++ compatibility - Fixed v

[clang] [HLSL][Matrix] Add support for single subscript accessor (PR #170779)

2025-12-17 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl closed https://github.com/llvm/llvm-project/pull/170779 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 60b6c53 - [HLSL][Matrix] Add support for single subscript accessor (#170779)

2025-12-17 Thread via cfe-commits
Author: Farzon Lotfi Date: 2025-12-17T17:04:28-05:00 New Revision: 60b6c53f25756c7f446c4f100b1f3e3a3fa5a4d9 URL: https://github.com/llvm/llvm-project/commit/60b6c53f25756c7f446c4f100b1f3e3a3fa5a4d9 DIFF: https://github.com/llvm/llvm-project/commit/60b6c53f25756c7f446c4f100b1f3e3a3fa5a4d9.diff

[clang-tools-extra] [mlir] [MLIR][XeGPU] Refactor Layout access interface (PR #172125)

2025-12-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-arm64-windows-msvc` running on `linaro-armv8-windows-msvc-01` while building `mlir` at step 6 "test-build-unified-tree-check-mlir". Full details are available at: https://lab.llvm.org/buildbot/#/builders/207/builds/1120

[clang-tools-extra] [mlir] [MLIR][XeGPU] Fix the test issue brought by PR172125 (PR #172742)

2025-12-17 Thread Charitha Saumya via cfe-commits
https://github.com/charithaintc approved this pull request. https://github.com/llvm/llvm-project/pull/172742 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [mlir] [MLIR][XeGPU] Fix the test issue brought by PR172125 (PR #172742)

2025-12-17 Thread Maksim Levental via cfe-commits
https://github.com/makslevental auto_merge_enabled https://github.com/llvm/llvm-project/pull/172742 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-17 Thread via cfe-commits
https://github.com/MarwanTarik updated https://github.com/llvm/llvm-project/pull/171694 >From 82529b8bfd35c9e8059b49e2f17b3c837232cf09 Mon Sep 17 00:00:00 2001 From: MarwanTarik Date: Wed, 10 Dec 2025 22:21:55 +0200 Subject: [PATCH 01/16] Upstream CIR Codgen for convert to mask X86 builtins --

[clang] [CIR] Upstream convert to mask builtins in CIR codegen (PR #171694)

2025-12-17 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor auto_merge_disabled https://github.com/llvm/llvm-project/pull/171694 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [mlir] [MLIR][XeGPU] Fix the test issue brought by PR172125 (PR #172742)

2025-12-17 Thread Maksim Levental via cfe-commits
https://github.com/makslevental approved this pull request. https://github.com/llvm/llvm-project/pull/172742 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [mlir] [MLIR][XeGPU] Fix the test issue brought by PR172125 (PR #172742)

2025-12-17 Thread Jianhui Li via cfe-commits
https://github.com/Jianhui-Li ready_for_review https://github.com/llvm/llvm-project/pull/172742 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Introduce syntax for scalable vectors (PR #172683)

2025-12-17 Thread Andrzej Warzyński via cfe-commits
@@ -828,6 +828,76 @@ mlir::LogicalResult cir::VectorType::verify( return success(); } +mlir::Type cir::VectorType::parse(::mlir::AsmParser &odsParser) { + + llvm::SMLoc odsLoc = odsParser.getCurrentLocation(); + mlir::Builder odsBuilder(odsParser.getContext()); + mlir::Fa

[clang-tools-extra] [clang-tidy] Add a new check 'replace-with-string-view' (PR #172170)

2025-12-17 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,74 @@ +//===--===// +// +// 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: Apac

[clang] [CIR] Introduce syntax for scalable vectors (PR #172683)

2025-12-17 Thread Amr Hesham via cfe-commits
@@ -828,6 +828,76 @@ mlir::LogicalResult cir::VectorType::verify( return success(); } +mlir::Type cir::VectorType::parse(::mlir::AsmParser &odsParser) { + + llvm::SMLoc odsLoc = odsParser.getCurrentLocation(); + mlir::Builder odsBuilder(odsParser.getContext()); + mlir::Fa

[clang] [compiler-rt] [UBSAN] add null and alignment checks for aggregates (PR #164548)

2025-12-17 Thread via cfe-commits
github-actions[bot] wrote: # :window: Windows x64 Test Results * 51417 tests passed * 852 tests skipped * 2 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CodeGen/ubsan-aggregate-null-align.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line

[clang] [compiler-rt] [UBSAN] add null and alignment checks for aggregates (PR #164548)

2025-12-17 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 84987 tests passed * 1151 tests skipped * 2 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CodeGen/ubsan-aggregate-null-align.c ``` Exit Code: 1 Command Output (stdout): -- # RUN: at line

[clang] [CIR][AArch64] Add lowering for `svlen` builtins (PR #172346)

2025-12-17 Thread Andrzej Warzyński via cfe-commits
@@ -30,6 +31,27 @@ using namespace clang; using namespace clang::CIRGen; using namespace llvm; +template +static mlir::Value emitIntrinsicCallOp(CIRGenBuilderTy &builder, banach-space wrote: Making sure that we don't forget: * https://github.com/llvm/llvm-pr

  1   2   3   4   5   6   >