[clang] [llvm] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

Andy Kaylor via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 2 15:15:22 PST 2025


================
@@ -3275,6 +3275,39 @@ def CIR_InlineAsmOp : CIR_Op<"asm", [RecursiveMemoryEffects]> {
   let hasCustomAssemblyFormat = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// SqrtOp
+//===----------------------------------------------------------------------===//
+
+def CIR_SqrtOp : CIR_Op<"sqrt", [Pure]> {
----------------
andykaylor wrote:

This should be located in the group with the other "Floating Point Ops" and follow the pattern established by those definitions. See `CIR_CosOp` for example.

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


More information about the llvm-commits mailing list