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

Andy Kaylor via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 15:58:46 PST 2025


================
@@ -4642,6 +4642,14 @@ class CIR_UnaryFPToFPBuiltinOp<string mnemonic, string llvmOpName>
   let llvmOp = llvmOpName;
 }
 
+def CIR_SqrtOp : CIR_UnaryFPToFPBuiltinOp<"sqrt", "SqrtOp"> {
+  let summary = "Floating-point square root operation";
+  
----------------
andykaylor wrote:

Can you add a description with an example of the CIR format?

We're trying to standardize the descriptions of all our operations to include an example.

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


More information about the llvm-commits mailing list