[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-12 Thread Gergo Stomfai via cfe-commits
https://github.com/stomfaig ready_for_review https://github.com/llvm/llvm-project/pull/171227 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-12 Thread Gergo Stomfai via cfe-commits
https://github.com/stomfaig updated https://github.com/llvm/llvm-project/pull/171227 >From 62647bf9b0323e8ca161dd87657e56e5d6aa20b1 Mon Sep 17 00:00:00 2001 From: stomfaig Date: Sun, 7 Dec 2025 23:37:58 + Subject: [PATCH 01/20] adding initial handlers --- clang/lib/CodeGen/TargetBuiltins/

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-12 Thread Gergo Stomfai via cfe-commits
https://github.com/stomfaig updated https://github.com/llvm/llvm-project/pull/171227 >From 62647bf9b0323e8ca161dd87657e56e5d6aa20b1 Mon Sep 17 00:00:00 2001 From: stomfaig Date: Sun, 7 Dec 2025 23:37:58 + Subject: [PATCH 01/19] adding initial handlers --- clang/lib/CodeGen/TargetBuiltins/

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-12 Thread Gergo Stomfai via cfe-commits
https://github.com/stomfaig edited https://github.com/llvm/llvm-project/pull/171227 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-12 Thread Gergo Stomfai via cfe-commits
@@ -75,6 +75,52 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask, return MaskVec; } +// Emit rounding for the value X according to the rounding RoundingControl. +static Value *emitX86Round(CodeGenFunction &CGF, Value *X, + unsigne

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-12 Thread Gergo Stomfai via cfe-commits
@@ -5707,6 +5707,28 @@ let Predicates = [UseSSE41, OptForSize] in { (ROUNDSDmi addr:$src1, timm:$src2)>; } +multiclass test { stomfaig wrote: I will fix this in a dedicated PR for the rewrite pattern. https://github.com/llvm/llvm-project/pull/171

[clang] [llvm] [X86] EmitX86BuiltinExpr - attempt to convert SSE41/AVX1 roundps/d/ss/sd builtins to regular rounding modes (PR #171227)

2025-12-11 Thread Gergo Stomfai via cfe-commits
https://github.com/stomfaig updated https://github.com/llvm/llvm-project/pull/171227 >From 62647bf9b0323e8ca161dd87657e56e5d6aa20b1 Mon Sep 17 00:00:00 2001 From: stomfaig Date: Sun, 7 Dec 2025 23:37:58 + Subject: [PATCH 01/15] adding initial handlers --- clang/lib/CodeGen/TargetBuiltins/