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

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 9 05:07:53 PST 2025


================
@@ -75,6 +75,80 @@ static Value *getMaskVecValue(CodeGenFunction &CGF, Value *Mask,
   return MaskVec;
 }
 
+static Value *emitX86Round(CodeGenFunction &CGF, Value *X, unsigned M) {
----------------
stomfaig wrote:

In `smmintrin.h` and `avxintrin.h` `M` is used as the name for the rounding control, so copied that. I'll come up with something more informative.

https://github.com/llvm/llvm-project/pull/171227


More information about the cfe-commits mailing list