[clang] [CIR] Remove redundant operation trait and use AllTypesMatch instead (PR #144950)

2025-06-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. https://github.com/llvm/llvm-project/pull/144950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for builtin_vectorelements (PR #144877)

2025-06-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144877 Add support for `__builtin_vectorelements` Issue https://github.com/llvm/llvm-project/issues/136487 >From 3f07685e76c5ae3dda8c257cb3ac5b33e63ab9ea Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 19

[clang] [CIR] Upstream BinAssign for ComplexType (PR #144868)

2025-06-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144868 This change adds support for the BinAssign op and LValueToRValue for ComplexType https://github.com/llvm/llvm-project/issues/141365 >From 8fd8deef461d0a818be9b0d4de66b686dc88a9ed Mon Sep 17 00:00:00 2001 F

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143771 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/144225 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/144225 >From d5c7a04815acee8b792e95fcd376fc492bcadb58 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun 2025 16:21:20 +0200 Subject: [PATCH 1/4] [CIR] Upstream ComplexType builtin_complex --- clang/l

[clang] [CIR] Upstream support for IncompleteArrayType (PR #144138)

2025-06-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/144138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-18 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143771 >From 301cfa7c4325c50185b3b6e2665dab467078d9f4 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 11 Jun 2025 20:50:26 +0200 Subject: [PATCH] [CIR] Implement folder for VecSplatOp --- .../CIR/Dialect/

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-18 Thread Amr Hesham via cfe-commits
@@ -142,7 +142,8 @@ void CIRCanonicalizePass::runOnOperation() { // Many operations are here to perform a manual `fold` in // applyOpPatternsGreedily. if (isa(op)) +VecExtractOp, VecShuffleOp, VecShuffleDynamicOp, VecSplatOp, +VecTernaryOp>(o

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/144225 >From 118f922e28117e31fb584bbaa2d5b9b68a78d009 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun 2025 16:21:20 +0200 Subject: [PATCH 1/4] [CIR] Upstream ComplexType builtin_complex --- clang/l

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/144225 >From 118f922e28117e31fb584bbaa2d5b9b68a78d009 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun 2025 16:21:20 +0200 Subject: [PATCH 1/3] [CIR] Upstream ComplexType builtin_complex --- clang/l

[clang] [CIR] Handle global string literals as char array initializer (PR #144384)

2025-06-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/144384 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-17 Thread Amr Hesham via cfe-commits
@@ -176,3 +176,27 @@ void foo7() { // OGCG: store float %[[TMP_A]], ptr %[[C_REAL_PTR]], align 4 // OGCG: store float 2.00e+00, ptr %[[C_IMAG_PTR]], align 4 +void foo9(double r, double i) { + double _Complex c = __builtin_complex(r, i); AmrDeveloper wrote

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-17 Thread Amr Hesham via cfe-commits
@@ -49,6 +49,14 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, } } + switch (builtinID) { + case Builtin::BI__builtin_complex: { +mlir::Value real = emitScalarExpr(e->getArg(0)); +mlir::Value imag = emitScalarExpr(e->getArg

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-17 Thread Amr Hesham via cfe-commits
@@ -142,7 +142,8 @@ void CIRCanonicalizePass::runOnOperation() { // Many operations are here to perform a manual `fold` in // applyOpPatternsGreedily. if (isa(op)) +VecExtractOp, VecShuffleOp, VecShuffleDynamicOp, VecSplatOp, +VecTernaryOp>(o

[clang] [CIR][NFCI] Represent Complex RValues As Single Value (PR #144519)

2025-06-17 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM, Thanks! https://github.com/llvm/llvm-project/pull/144519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexType ImaginaryLiteral (PR #144223)

2025-06-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/144223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)

2025-06-16 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > I have concerns about the CIR representation here. I think we should be > aligning our representation of complex operations with the MLIR complex > dialect. As such, we want `__real__` to be lowerable to `complex.re` but the > explicit representation of intermediate point

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/144225 >From d3e1d50ead7822771eb265293f9d0c42e5a74529 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun 2025 16:21:20 +0200 Subject: [PATCH 1/2] [CIR] Upstream ComplexType builtin_complex --- clang/l

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-16 Thread Amr Hesham via cfe-commits
@@ -176,3 +176,27 @@ void foo7() { // OGCG: store float %[[TMP_A]], ptr %[[C_REAL_PTR]], align 4 // OGCG: store float 2.00e+00, ptr %[[C_IMAG_PTR]], align 4 +void foo9(double r, double i) { + double _Complex c = __builtin_complex(r, i); AmrDeveloper wrote

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143322 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From d6e55636b352794f4dbc880cd617b864134a9cc8 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] [CIR] Upstream ComplexType ImaginaryLiteral (PR #144223)

2025-06-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/144223 >From 167ea0dd6d484389ed03ddfa43a0f6c0cf61cf2f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun 2025 15:12:13 +0200 Subject: [PATCH 1/2] [CIR] Upstream ComplexType ImaginaryLiteral --- clang/

[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/144235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper ready_for_review https://github.com/llvm/llvm-project/pull/144235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)

2025-06-14 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: * **#144235** https://app.graphite.dev/github/pr/llvm/llvm-project/144235?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project

[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144235 None >From 80571d5272f70d4b273f4277af1bfb064fbe6e89 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun 2025 21:51:43 +0200 Subject: [PATCH] [CIR] Upstream ComplexRealPtrOp for ComplexType ---

[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144225 This change adds support for builtin_complex https://github.com/llvm/llvm-project/issues/141365 >From 08893cb4bc8613a455dc2ee21ae6fe6c3e3138a1 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 14 Jun

[clang] [CIR] Upstream ComplexType ImaginaryLiteral (PR #144223)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/144223 This change adds support for ComplexType ImaginaryLiteral https://github.com/llvm/llvm-project/issues/141365 >From 167ea0dd6d484389ed03ddfa43a0f6c0cf61cf2f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-14 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Refactor constant pointer l-value handling (PR #144165)

2025-06-13 Thread Amr Hesham via cfe-commits
@@ -329,6 +329,222 @@ emitArrayConstant(CIRGenModule &cgm, mlir::Type desiredType, return {}; } +//===--===// +// ConstantLValueEmitter +//===---

[clang] [CIR][NFC] Refactor constant pointer l-value handling (PR #144165)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/144165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Refactor constant pointer l-value handling (PR #144165)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/144165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143262 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From 0cb345f7a2241eb4f94036b2e9b8f5807185 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143262 >From 5f98861a88e544ec80bbaf5fe0ffb650c2d71e67 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:57:53 +0200 Subject: [PATCH 1/4] [CIR] Extend VecShuffleOp verifier to catch invalid index

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 9f33501236281d0c21810af5ca50f7c0ee7fc667 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Enable floating point casts (PR #144142)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/144142 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Fix forrange.cpp test (PR #144123)

2025-06-13 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/144123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Update isSized with upstreamed types (PR #143960)

2025-06-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143960 >From e726acb75661b39ee9d3f20fc5d7ded99f329003 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 12 Jun 2025 21:59:29 +0200 Subject: [PATCH] [CIR] Update isSized with upstreamed types --- clang/lib/C

[clang] [CIR] Update isSized with upstreamed types (PR #143960)

2025-06-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143960 Update `isSized` function with the upstreamed types >From 60b5efc3cc213c9031ca28f94827289250916099 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 12 Jun 2025 21:59:29 +0200 Subject: [PATCH] [CIR] U

[clang] [CIR][NFC] Fix an unused variable warning (PR #143933)

2025-06-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0cf149bacdc59abc7265c5decdd3fc9a67188258 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR][NFC] Fix an unused variable warning (PR #143933)

2025-06-12 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143933 This fixes a warning where a variable assigned in 'if' statement wasn't referenced again. >From 28f484e0ddd857bdd7c6a623aaacc1173c3c158c Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 12 Jun 2025

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From 8f5c75c524b42fc405b107a847643e1fb18adab0 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/5] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143771 This change adds a folder for the VecSplatOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 02f674320c41416cd6afe574545a737312cd5a7d Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed,

[clang] [CIR] Implement folder for VecSplatOp (PR #143771)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143771 >From 02f674320c41416cd6afe574545a737312cd5a7d Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Wed, 11 Jun 2025 20:50:26 +0200 Subject: [PATCH 1/2] [CIR] Implement folder for VecSplatOp --- clang/includ

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From 566a4cf83ec98e3ab89727e15498002df6e093c0 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From 78c98a97d272aa487337c3b9280388e3aeb5b354 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0a63b900e1b934e15273763d8947c3cea712fef6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0a63b900e1b934e15273763d8947c3cea712fef6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/139827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From 0d1a56f8020a1a676977df3f848eac896242e81b Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/7] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Amr Hesham via cfe-commits
@@ -1393,6 +1393,57 @@ RValue CIRGenFunction::emitCXXMemberCallExpr(const CXXMemberCallExpr *ce, ce, md, returnValue, hasQualifier, qualifier, isArrow, base); } +void CIRGenFunction::emitCXXConstructExpr(const CXXConstructExpr *e, +

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From 0d1a56f8020a1a676977df3f848eac896242e81b Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/7] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-10 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > vector_splat_test > Can you update the checks in this PR before committing? Sure, I will update the splat test function in this PR, and in NFS PR i will update the old tests https://github.com/llvm/llvm-project/pull/139827 ___ c

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/143579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. https://github.com/llvm/llvm-project/pull/143579 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for calling constructors (PR #143579)

2025-06-10 Thread Amr Hesham via cfe-commits
@@ -1393,6 +1393,57 @@ RValue CIRGenFunction::emitCXXMemberCallExpr(const CXXMemberCallExpr *ce, ce, md, returnValue, hasQualifier, qualifier, isArrow, base); } +void CIRGenFunction::emitCXXConstructExpr(const CXXConstructExpr *e, +

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From 78c98a97d272aa487337c3b9280388e3aeb5b354 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0a63b900e1b934e15273763d8947c3cea712fef6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-10 Thread Amr Hesham via cfe-commits
@@ -1579,6 +1579,108 @@ OpFoldResult cir::VecExtractOp::fold(FoldAdaptor adaptor) { return elements[index]; } +//===--===// +// VecCmpOp +//===---

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From 0e26df27ffd6adaeefedfdafd72b565f6648c96f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From 566a4cf83ec98e3ab89727e15498002df6e093c0 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From 0d1a56f8020a1a676977df3f848eac896242e81b Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/6] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From ce4df0e64a8b59411c8c94c5f65e315a76b8a371 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/6] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-10 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From ce4df0e64a8b59411c8c94c5f65e315a76b8a371 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/5] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR][NFS] Add test cases for VecShuffle with -1 index (PR #143304)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/143304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From c3a0990b0b72f9a0cdf4968f0b9197745dedb7ae Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/6] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143322 >From e45e40fe353af82a05b3225fdebbcdc402bd5567 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 21:08:14 +0200 Subject: [PATCH 1/2] [CIR] Implement folder for VecCmpOp --- clang/include/c

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From a51b184e4971c0e935bd014730791765c0c3fd61 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0ee92db03198e2364ade53e5c0bbd0f844fe634f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/4] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143260 >From 14ffd458c4896bd4d5fb73f97c5745db70c8360e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:43:16 +0200 Subject: [PATCH 1/4] [CIR] Implement folder for VecShuffleOp --- clang/inclu

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143262 >From 5f98861a88e544ec80bbaf5fe0ffb650c2d71e67 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:57:53 +0200 Subject: [PATCH 1/3] [CIR] Extend VecShuffleOp verifier to catch invalid index

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-09 Thread Amr Hesham via cfe-commits
@@ -77,12 +77,8 @@ void foo() { // CIR: %[[VEC_F:.*]] = cir.alloca !cir.vector<4 x !s32i>, !cir.ptr>, ["f", init] // CIR: %[[VEC_G:.*]] = cir.alloca !cir.vector<4 x !s32i>, !cir.ptr>, ["g", init] // CIR: %[[VEC_H:.*]] = cir.alloca !cir.vector<4 x !s32i>, !cir.ptr>, ["h", ini

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143355 >From a51b184e4971c0e935bd014730791765c0c3fd61 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8 Jun 2025 22:14:20 +0200 Subject: [PATCH 1/2] [CIR] Implement folder for VecCreateOp --- clang/includ

[clang] [CIR] Implement folder for VecCreateOp (PR #143355)

2025-06-09 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143355 This change adds a folder for the VecCreateOp Issue https://github.com/llvm/llvm-project/issues/136487 >From a51b184e4971c0e935bd014730791765c0c3fd61 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun,

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143260 >From 14ffd458c4896bd4d5fb73f97c5745db70c8360e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:43:16 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecShuffleOp --- clang/inclu

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143322 This change adds a folder for the VecCmpOp Issue https://github.com/llvm/llvm-project/issues/136487 >From e45e40fe353af82a05b3225fdebbcdc402bd5567 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8

[clang] [CIR] Upstream splat op for VectorType (PR #139827)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/139827 >From c3a0990b0b72f9a0cdf4968f0b9197745dedb7ae Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 13 May 2025 21:35:06 +0200 Subject: [PATCH 1/5] [CIR] Upstream splat op for VectorType --- clang/inclu

[clang] [CIR][NFS] Add test cases for VecShuffle with -1 index (PR #143304)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143304 Add a test case for __builtin_shufflevector with -1 index, it was useful in the incubator to catch an issue in the folder >From c6d78b93437bf1145972146f189a3c0a39e20219 Mon Sep 17 00:00:00 2001 From: AmrD

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143260 >From 14ffd458c4896bd4d5fb73f97c5745db70c8360e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:43:16 +0200 Subject: [PATCH 1/2] [CIR] Implement folder for VecShuffleOp --- clang/inclu

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143262 >From 5f98861a88e544ec80bbaf5fe0ffb650c2d71e67 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:57:53 +0200 Subject: [PATCH 1/2] [CIR] Extend VecShuffleOp verifier to catch invalid index

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143262 Extend the verifier to catch index larger than the size of vector elements in VecShuffleOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 5f98861a88e544ec80bbaf5fe0ffb650c2d71e67 Mon Sep 1

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143260 This change adds a folder for the VecShuffleOp Issue https://github.com/llvm/llvm-project/issues/136487 >From 14ffd458c4896bd4d5fb73f97c5745db70c8360e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/142946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream ShuffleOp for VectorType (PR #142288)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/142288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0ee92db03198e2364ade53e5c0bbd0f844fe634f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/3] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Upstream ShuffleOp for VectorType (PR #142288)

2025-06-06 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142288 >From 758e921e4811697269a317b693ef40e1dcf46d61 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 31 May 2025 19:53:56 +0200 Subject: [PATCH 1/6] [CIR] Upstream ShuffleOp for VectorType --- clang/incl

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-06 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143192 >From 0ee92db03198e2364ade53e5c0bbd0f844fe634f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 6 Jun 2025 20:56:49 +0200 Subject: [PATCH 1/2] [CIR] Upstream CreateOp for ComplexType with folder ---

[clang] [CIR] Upstream CreateOp for ComplexType with folder (PR #143192)

2025-06-06 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143192 This change adds support for the create op for ComplexType with folder and support for empty init list https://github.com/llvm/llvm-project/issues/141365 >From 0ee92db03198e2364ade53e5c0bbd0f844fe634f Mon

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142946 >From ac8277b48d0affa78f5e5e943e0179c27dd033ec Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 5 Jun 2025 13:08:57 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecTernaryOp --- clang/inclu

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-05 Thread Amr Hesham via cfe-commits
@@ -138,10 +138,10 @@ void CIRCanonicalizePass::runOnOperation() { assert(!cir::MissingFeatures::complexRealOp()); assert(!cir::MissingFeatures::complexImagOp()); assert(!cir::MissingFeatures::callOp()); -// CastOp, UnaryOp, VecExtractOp and VecShuffleDynamicOp

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142946 >From ac8277b48d0affa78f5e5e943e0179c27dd033ec Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 5 Jun 2025 13:08:57 +0200 Subject: [PATCH 1/2] [CIR] Implement folder for VecTernaryOp --- clang/inclu

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/142946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper edited https://github.com/llvm/llvm-project/pull/142946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecTernaryOp (PR #142946)

2025-06-05 Thread Amr Hesham via cfe-commits
@@ -138,10 +138,10 @@ void CIRCanonicalizePass::runOnOperation() { assert(!cir::MissingFeatures::complexRealOp()); assert(!cir::MissingFeatures::complexImagOp()); assert(!cir::MissingFeatures::callOp()); -// CastOp, UnaryOp, VecExtractOp and VecShuffleDynamicOp

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-06-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/141369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-06-05 Thread Amr Hesham via cfe-commits
@@ -0,0 +1,41 @@ + +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-06-05 Thread Amr Hesham via cfe-commits
@@ -0,0 +1,41 @@ + +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

  1   2   3   4   5   6   7   >