[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


================
@@ -17,6 +17,19 @@
 #include "mlir/Transforms/DialectConversion.h"
 #include "clang/CIR/Dialect/IR/CIRDialect.h"
 
+namespace cir {
+class SqrtOp;
+}
+
+class CIRToLLVMSqrtOpLowering : public mlir::OpConversionPattern<cir::SqrtOp> {
----------------
andykaylor wrote:

You shouldn't need this. In the upstream CIR implementation, these definitions are automatically generated by TableGen.

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


More information about the llvm-commits mailing list