Lines Matching defs:imag
33 Value computeAbs(Value real, Value imag, arith::FastMathFlags fmf,
39 Value absImag = b.create<math::AbsFOp>(imag, fmf);
86 Value imag = b.create<complex::ImOp>(adaptor.getComplex());
87 rewriter.replaceOp(op, computeAbs(real, imag, fmf, b));
210 Value imag =
218 Value exp = rewriter.create<math::ExpOp>(loc, imag, fmf);
507 Value imag =
510 Value cosImag = rewriter.create<math::CosOp>(loc, imag, fmf.getValue());
513 Value sinImag = rewriter.create<math::SinOp>(loc, imag, fmf.getValue());
554 Value imag = b.create<complex::ImOp>(adaptor.getComplex());
562 Value sinImag = b.create<math::SinOp>(imag, fmf);
563 Value cosm1Imag = emitCosm1(imag, fmf, b);
569 Value imagIsZero = b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, imag,
628 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex());
630 b.create<math::Atan2Op>(elementType, imag, real, fmf.getValue());
649 Value imag = b.create<complex::ImOp>(adaptor.getComplex());
657 Value absImag = b.create<math::AbsFOp>(imag, fmf);
681 Value resultImag = b.create<math::Atan2Op>(imag, realPlusOne, fmf);
713 Value imag = b.create<arith::AddFOp>(lhsImagTimesRhsReal,
715 rewriter.replaceOpWithNewOp<complex::CreateOp>(op, type, real, imag);
732 Value imag =
735 Value negImag = rewriter.create<arith::NegFOp>(loc, imag);
790 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex());
791 Value absSqrt = computeAbs(real, imag, fmf, b, AbsFn::sqrt);
792 Value argArg = b.create<math::Atan2Op>(imag, real, fmf);
809 Value absImag = b.create<math::AbsFOp>(elementType, imag, fmf);
826 Value imagSignInf = b.create<math::CopySignOp>(inf, imag, fmf);
858 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex());
864 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, imag, zero);
868 Value imagSign = b.create<arith::DivFOp>(imag, abs, fmf);
892 Value imag =
899 std::swap(real, imag);
918 Value cosImag = b.create<math::CosOp>(imag, fmf);
921 Value sinImag = b.create<math::SinOp>(imag, fmf);
949 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, imag, zero, fmf);
988 Value imag =
990 Value negImag = rewriter.create<arith::NegFOp>(loc, elementType, imag);
1144 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex());
1145 Value absRsqrt = computeAbs(real, imag, fmf, b, AbsFn::rsqrt);
1146 Value argArg = b.create<math::Atan2Op>(imag, real, fmf);
1160 Value imagSignedZero = b.create<math::CopySignOp>(zero, imag, fmf);
1165 Value absImag = b.create<math::AbsFOp>(imag, fmf);
1186 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, imag, zero, fmf);
1210 Value imag =
1213 rewriter.replaceOpWithNewOp<math::Atan2Op>(op, imag, real, fmf);