Lines Matching refs:adaptor
29 matchAndRewrite(complex::AbsOp op, OpAdaptor adaptor, in matchAndRewrite()
35 rewriter.create<complex::ReOp>(loc, type, adaptor.getComplex()); in matchAndRewrite()
37 rewriter.create<complex::ImOp>(loc, type, adaptor.getComplex()); in matchAndRewrite()
52 matchAndRewrite(complex::Atan2Op op, OpAdaptor adaptor, in matchAndRewrite()
59 Value lhs = adaptor.getLhs(); in matchAndRewrite()
60 Value rhs = adaptor.getRhs(); in matchAndRewrite()
98 matchAndRewrite(ComparisonOp op, typename ComparisonOp::Adaptor adaptor, in matchAndRewrite()
101 auto type = adaptor.getLhs() in matchAndRewrite()
106 Value realLhs = rewriter.create<complex::ReOp>(loc, type, adaptor.getLhs()); in matchAndRewrite()
107 Value imagLhs = rewriter.create<complex::ImOp>(loc, type, adaptor.getLhs()); in matchAndRewrite()
108 Value realRhs = rewriter.create<complex::ReOp>(loc, type, adaptor.getRhs()); in matchAndRewrite()
109 Value imagRhs = rewriter.create<complex::ImOp>(loc, type, adaptor.getRhs()); in matchAndRewrite()
129 matchAndRewrite(BinaryComplexOp op, typename BinaryComplexOp::Adaptor adaptor, in matchAndRewrite()
131 auto type = adaptor.getLhs().getType().template cast<ComplexType>(); in matchAndRewrite()
135 Value realLhs = b.create<complex::ReOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
136 Value realRhs = b.create<complex::ReOp>(elementType, adaptor.getRhs()); in matchAndRewrite()
139 Value imagLhs = b.create<complex::ImOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
140 Value imagRhs = b.create<complex::ImOp>(elementType, adaptor.getRhs()); in matchAndRewrite()
156 matchAndRewrite(TrigonometricOp op, OpAdaptor adaptor, in matchAndRewrite()
159 auto type = adaptor.getComplex().getType().template cast<ComplexType>(); in matchAndRewrite()
163 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
165 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
218 matchAndRewrite(complex::DivOp op, OpAdaptor adaptor, in matchAndRewrite()
221 auto type = adaptor.getLhs().getType().cast<ComplexType>(); in matchAndRewrite()
225 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getLhs()); in matchAndRewrite()
227 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getLhs()); in matchAndRewrite()
229 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getRhs()); in matchAndRewrite()
231 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getRhs()); in matchAndRewrite()
437 matchAndRewrite(complex::ExpOp op, OpAdaptor adaptor, in matchAndRewrite()
440 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
444 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
446 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
463 matchAndRewrite(complex::Expm1Op op, OpAdaptor adaptor, in matchAndRewrite()
465 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
469 Value exp = b.create<complex::ExpOp>(adaptor.getComplex()); in matchAndRewrite()
487 matchAndRewrite(complex::LogOp op, OpAdaptor adaptor, in matchAndRewrite()
489 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
493 Value abs = b.create<complex::AbsOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
495 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
496 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
508 matchAndRewrite(complex::Log1pOp op, OpAdaptor adaptor, in matchAndRewrite()
510 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
514 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
515 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
529 matchAndRewrite(complex::MulOp op, OpAdaptor adaptor, in matchAndRewrite()
532 auto type = adaptor.getLhs().getType().cast<ComplexType>(); in matchAndRewrite()
535 Value lhsReal = b.create<complex::ReOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
537 Value lhsImag = b.create<complex::ImOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
539 Value rhsReal = b.create<complex::ReOp>(elementType, adaptor.getRhs()); in matchAndRewrite()
541 Value rhsImag = b.create<complex::ImOp>(elementType, adaptor.getRhs()); in matchAndRewrite()
706 matchAndRewrite(complex::NegOp op, OpAdaptor adaptor, in matchAndRewrite()
709 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
713 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
715 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
751 matchAndRewrite(complex::SqrtOp op, OpAdaptor adaptor, in matchAndRewrite()
757 Value arg = adaptor.getComplex(); in matchAndRewrite()
762 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
763 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
817 matchAndRewrite(complex::SignOp op, OpAdaptor adaptor, in matchAndRewrite()
819 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
823 Value real = b.create<complex::ReOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
824 Value imag = b.create<complex::ImOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
832 auto abs = b.create<complex::AbsOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
837 adaptor.getComplex(), sign); in matchAndRewrite()
846 matchAndRewrite(complex::TanOp op, OpAdaptor adaptor, in matchAndRewrite()
849 Value cos = rewriter.create<complex::CosOp>(loc, adaptor.getComplex()); in matchAndRewrite()
850 Value sin = rewriter.create<complex::SinOp>(loc, adaptor.getComplex()); in matchAndRewrite()
860 matchAndRewrite(complex::TanhOp op, OpAdaptor adaptor, in matchAndRewrite()
863 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
870 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
872 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
892 matchAndRewrite(complex::ConjOp op, OpAdaptor adaptor, in matchAndRewrite()
895 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
898 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
900 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getComplex()); in matchAndRewrite()
974 matchAndRewrite(complex::PowOp op, OpAdaptor adaptor, in matchAndRewrite()
977 auto type = adaptor.getLhs().getType().cast<ComplexType>(); in matchAndRewrite()
980 Value a = builder.create<complex::ReOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
981 Value b = builder.create<complex::ImOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
982 Value c = builder.create<complex::ReOp>(elementType, adaptor.getRhs()); in matchAndRewrite()
983 Value d = builder.create<complex::ImOp>(elementType, adaptor.getRhs()); in matchAndRewrite()
994 matchAndRewrite(complex::RsqrtOp op, OpAdaptor adaptor, in matchAndRewrite()
997 auto type = adaptor.getComplex().getType().cast<ComplexType>(); in matchAndRewrite()
1000 Value a = builder.create<complex::ReOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
1001 Value b = builder.create<complex::ImOp>(elementType, adaptor.getComplex()); in matchAndRewrite()
1016 matchAndRewrite(complex::AngleOp op, OpAdaptor adaptor, in matchAndRewrite()
1022 rewriter.create<complex::ReOp>(loc, type, adaptor.getComplex()); in matchAndRewrite()
1024 rewriter.create<complex::ImOp>(loc, type, adaptor.getComplex()); in matchAndRewrite()