Lines Matching refs:toTy
139 mlir::Location loc, mlir::Type toTy, mlir::Value val) { in convertWithSemantics() argument
140 assert(toTy && "store location must be typed"); in convertWithSemantics()
142 if (fromTy == toTy) in convertWithSemantics()
147 fir::isa_complex(toTy)) { in convertWithSemantics()
149 auto eleTy = helper.getComplexPartType(toTy); in convertWithSemantics()
152 kindMap.getFloatSemantics(toTy.cast<fir::CplxType>().getFKind()), 0}; in convertWithSemantics()
154 return helper.createComplex(toTy, cast, imag); in convertWithSemantics()
158 (toTy.isSignlessInteger() || fir::isa_real(toTy))) { in convertWithSemantics()
161 return createConvert(loc, toTy, rp); in convertWithSemantics()
163 return createConvert(loc, toTy, val); in convertWithSemantics()
167 mlir::Type toTy, in createConvert() argument
169 if (val.getType() != toTy) in createConvert()
170 return create<fir::ConvertOp>(loc, toTy, val); in createConvert()