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

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 10 04:09:42 PST 2025


================
@@ -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,
+                           unsigned RoundingControl) {
+  unsigned roundingMask = 0b11;
----------------
RKSimon wrote:

(style) capitalize first letter of variable (same for others)
```suggestion
  unsigned RoundingMask = 0b11;
```

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


More information about the llvm-commits mailing list