Lines Matching defs:origVal
3974 /// Convert the original value, \p origVal, to type \p eleTy. When in a
3978 mlir::Value origVal) {
3979 if (auto origEleTy = fir::dyn_cast_ptrEleTy(origVal.getType()))
3981 // If origVal is a box variable, load it so it is in the value domain.
3982 origVal = builder.create<fir::LoadOp>(loc, origVal);
3984 if (mlir::isa<fir::BoxType>(origVal.getType()) &&
3991 !mlir::isa<fir::BoxType>(origVal.getType())) {
3995 assert(fir::isa_ref_type(origVal.getType()));
3996 if (auto eleTy = fir::dyn_cast_ptrEleTy(origVal.getType());
4000 auto castTo = builder.createConvert(loc, memrefTy, origVal);
4001 origVal = builder.create<fir::EmboxOp>(loc, eleTy, castTo);
4003 mlir::Value val = builder.convertWithSemantics(loc, eleTy, origVal);