Lines Matching defs:real

33 Value computeAbs(Value real, Value imag, arith::FastMathFlags fmf,
35 Value one = b.create<arith::ConstantOp>(real.getType(),
36 b.getFloatAttr(real.getType(), 1.0));
38 Value absReal = b.create<math::AbsFOp>(real, fmf);
60 real.getType(), b.getFloatAttr(real.getType(), 0.25));
85 Value real = b.create<complex::ReOp>(adaptor.getComplex());
87 rewriter.replaceOp(op, computeAbs(real, imag, fmf, b));
165 // Default conversion which applies the BinaryStandardOp separately on the real
208 Value real =
213 // Trigonometric ops use a set of common building blocks to convert to real
221 Value sin = rewriter.create<math::SinOp>(loc, real, fmf);
222 Value cos = rewriter.create<math::CosOp>(loc, real, fmf);
505 Value real =
509 Value expReal = rewriter.create<math::ExpOp>(loc, real, fmf.getValue());
553 Value real = b.create<complex::ReOp>(adaptor.getComplex());
559 Value expm1Real = b.create<math::ExpM1Op>(real, fmf);
627 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex());
630 b.create<math::Atan2Op>(elementType, imag, real, fmf.getValue());
648 Value real = b.create<complex::ReOp>(adaptor.getComplex());
655 Value realPlusOne = b.create<arith::AddFOp>(real, one, fmf);
666 b.create<arith::SelectOp>(useReal, real, maxMinusOne);
707 Value real = b.create<arith::SubFOp>(lhsRealTimesRhsReal,
715 rewriter.replaceOpWithNewOp<complex::CreateOp>(op, type, real, imag);
730 Value real =
734 Value negReal = rewriter.create<arith::NegFOp>(loc, real);
789 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex());
791 Value absSqrt = computeAbs(real, imag, fmf, b, AbsFn::sqrt);
792 Value argArg = b.create<math::Atan2Op>(imag, real, fmf);
816 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, real, inf, fmf);
818 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, real, negInf, fmf);
857 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex());
862 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, real, zero);
867 Value realSign = b.create<arith::DivFOp>(real, abs, fmf);
890 Value real =
899 std::swap(real, imag);
900 real = b.create<arith::MulFOp>(real, negOne, fmf);
910 Value twoReal = b.create<arith::AddFOp>(real, real, fmf);
933 Value realLimit = b.create<math::CopySignOp>(negOne, real, fmf);
941 Value absReal = b.create<math::AbsFOp>(real, fmf);
986 Value real =
992 rewriter.replaceOpWithNewOp<complex::CreateOp>(op, type, real, negImag);
1143 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex());
1145 Value absRsqrt = computeAbs(real, imag, fmf, b, AbsFn::rsqrt);
1146 Value argArg = b.create<math::Atan2Op>(imag, real, fmf);
1159 Value realSignedZero = b.create<math::CopySignOp>(zero, real, fmf);
1164 Value absReal = b.create<math::AbsFOp>(real, fmf);
1170 b.create<arith::CmpFOp>(arith::CmpFPredicate::UNO, real, real, fmf);
1184 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, real, zero, fmf);
1208 Value real =
1213 rewriter.replaceOpWithNewOp<math::Atan2Op>(op, imag, real, fmf);