[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-12-02 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From a35f3cab846a7abad771d93863be390926df1c8c Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/6] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-12-01 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From 885eaa5d8a9a33e333c521e78b5a4fdcf3bd14b9 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/5] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
@@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +xop -emit-cir -o %t.cir +// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s +// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffre

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From cc24b4efe622a5d1b081aaa5d87dd029cea4940d Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 01/10] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/Code

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From cc24b4efe622a5d1b081aaa5d87dd029cea4940d Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 01/10] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/Code

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 edited https://github.com/llvm/llvm-project/pull/169566 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
@@ -90,6 +92,41 @@ static mlir::Value getMaskVecValue(CIRGenFunction &cgf, const CallExpr *expr, return maskVec; } +static mlir::Value emitX86FunnelShift(CIRGenFunction &cgf, const CallExpr *e, + mlir::Value &op0, mlir::Value &op1, +

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
@@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +xop -emit-cir -o %t.cir +// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s +// RUN: %clang_cc1 -x c -flax-vector-conversions=none -ffre

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
@@ -90,6 +92,41 @@ static mlir::Value getMaskVecValue(CIRGenFunction &cgf, const CallExpr *expr, return maskVec; } +static mlir::Value emitX86FunnelShift(CIRGenFunction &cgf, const CallExpr *e, + mlir::Value &op0, mlir::Value &op1, +

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
@@ -90,6 +92,41 @@ static mlir::Value getMaskVecValue(CIRGenFunction &cgf, const CallExpr *expr, return maskVec; } +static mlir::Value emitX86FunnelShift(CIRGenFunction &cgf, const CallExpr *e, + mlir::Value &op0, mlir::Value &op1, +

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From b660675acc3c0131b9714e1779ff1192ace62d46 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/8] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 edited https://github.com/llvm/llvm-project/pull/169566 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From b660675acc3c0131b9714e1779ff1192ace62d46 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/8] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] [CIR] Support x86 builtin rotate (PR #169566)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169566 >From b660675acc3c0131b9714e1779ff1192ace62d46 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/7] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
moar55 wrote: I still need to add cir tests 🤦 https://github.com/llvm/llvm-project/pull/169218 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169218 >From f9efa285fc71b549635135ec81050d81071e Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/3] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169218 >From f9efa285fc71b549635135ec81050d81071e Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/3] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 created https://github.com/llvm/llvm-project/pull/169218 This PR implements CodeGen for rotate builtins in CIR upstream. Issue #167765 >From f9efa285fc71b549635135ec81050d81071e Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Sub

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 reopened https://github.com/llvm/llvm-project/pull/169218 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 closed https://github.com/llvm/llvm-project/pull/169218 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 closed https://github.com/llvm/llvm-project/pull/169218 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Support x86 builtin rotate (PR #169218)

2025-11-28 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/169218 >From 973d30d40103081b6c39437501ac84c0627a0f11 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Thu, 20 Nov 2025 23:12:40 +0100 Subject: [PATCH 1/4] [CIR] Implement x86 rotate builtins --- clang/lib/CIR/CodeGe

[clang] [CIR] Add name for enum type in vtable (PR #163612)

2025-10-18 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/163612 >From 4590322c9c194f0f06e9d5622f9c71aad993e1b9 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Wed, 15 Oct 2025 20:27:59 +0200 Subject: [PATCH 1/2] [CIR]#163601: Handle enum type --- clang/lib/CIR/CodeGen/CIR

[clang] [CIR] Add name for enum type in vtable (PR #163612)

2025-10-17 Thread Omar Hossam via cfe-commits
https://github.com/moar55 updated https://github.com/llvm/llvm-project/pull/163612 >From d460444847eecdf063bbd87bff3abecc770b6704 Mon Sep 17 00:00:00 2001 From: Omar Ibrahim Date: Wed, 15 Oct 2025 20:27:59 +0200 Subject: [PATCH 1/2] [CIR]#163601: Handle enum type --- clang/lib/CIR/CodeGen/CIR