Lines Matching refs:create
54 Value lhs = rewriter.create<LLVM::FPExtOp>(loc, f32Type, op.getLhs()); in matchAndRewrite()
55 Value rhs = rewriter.create<LLVM::FPExtOp>(loc, f32Type, op.getRhs()); in matchAndRewrite()
58 Value rcp = rewriter.create<NVVM::RcpApproxFtzF32Op>(loc, f32Type, rhs); in matchAndRewrite()
59 Value approx = rewriter.create<LLVM::FMulOp>(loc, lhs, rcp); in matchAndRewrite()
63 Value err = rewriter.create<LLVM::FMAOp>( in matchAndRewrite()
64 loc, approx, rewriter.create<LLVM::FNegOp>(loc, rhs), lhs); in matchAndRewrite()
65 Value refined = rewriter.create<LLVM::FMAOp>(loc, err, rcp, approx); in matchAndRewrite()
68 Value mask = rewriter.create<LLVM::ConstantOp>( in matchAndRewrite()
70 Value cast = rewriter.create<LLVM::BitcastOp>(loc, i32Type, approx); in matchAndRewrite()
71 Value exp = rewriter.create<LLVM::AndOp>(loc, i32Type, cast, mask); in matchAndRewrite()
72 Value zero = rewriter.create<LLVM::ConstantOp>( in matchAndRewrite()
74 Value pred = rewriter.create<LLVM::OrOp>( in matchAndRewrite()
76 rewriter.create<LLVM::ICmpOp>(loc, LLVM::ICmpPredicate::eq, exp, zero), in matchAndRewrite()
77 rewriter.create<LLVM::ICmpOp>(loc, LLVM::ICmpPredicate::eq, exp, mask)); in matchAndRewrite()
79 rewriter.create<LLVM::SelectOp>(loc, f32Type, pred, approx, refined); in matchAndRewrite()