Lines Matching refs:ty
46 bool needsConversion(mlir::Type ty) { in needsConversion() argument
47 if (ty.isa<BoxProcType>()) in needsConversion()
49 if (auto funcTy = ty.dyn_cast<mlir::FunctionType>()) { in needsConversion()
58 if (auto tupleTy = ty.dyn_cast<mlir::TupleType>()) { in needsConversion()
64 if (auto recTy = ty.dyn_cast<RecordType>()) { in needsConversion()
79 if (auto boxTy = ty.dyn_cast<BoxType>()) in needsConversion()
81 if (isa_ref_type(ty)) in needsConversion()
82 return needsConversion(unwrapRefType(ty)); in needsConversion()
83 if (auto t = ty.dyn_cast<SequenceType>()) in needsConversion()
84 return needsConversion(unwrapSequenceType(ty)); in needsConversion()
89 addConversion([](mlir::Type ty) { return ty; }); in __anonfdb31fde0302() argument
94 for (auto ty : tupTy.getTypes()) in __anonfdb31fde0502() local
95 memTys.push_back(convertType(ty)); in __anonfdb31fde0502()
101 for (auto ty : funcTy.getInputs()) in __anonfdb31fde0602() local
102 inTys.push_back(convertType(ty)); in __anonfdb31fde0602()
103 for (auto ty : funcTy.getResults()) in __anonfdb31fde0602() local
104 resTys.push_back(convertType(ty)); in __anonfdb31fde0602()
107 addConversion([&](ReferenceType ty) { in __anonfdb31fde0702() argument
108 return ReferenceType::get(convertType(ty.getEleTy())); in __anonfdb31fde0702()
110 addConversion([&](PointerType ty) { in __anonfdb31fde0802() argument
111 return PointerType::get(convertType(ty.getEleTy())); in __anonfdb31fde0802()
114 [&](HeapType ty) { return HeapType::get(convertType(ty.getEleTy())); }); in __anonfdb31fde0902() argument
116 [&](BoxType ty) { return BoxType::get(convertType(ty.getEleTy())); }); in __anonfdb31fde0a02() argument
117 addConversion([&](SequenceType ty) { in __anonfdb31fde0b02() argument
119 return SequenceType::get(ty.getShape(), convertType(ty.getEleTy())); in __anonfdb31fde0b02()
121 addConversion([&](RecordType ty) -> mlir::Type { in __anonfdb31fde0c02() argument
122 if (!needsConversion(ty)) in __anonfdb31fde0c02()
123 return ty; in __anonfdb31fde0c02()
136 return RecordType::get(ty.getContext(), "*fixme*"); in __anonfdb31fde0c02()
189 auto ty = addr.getVal().getType(); in runOnOperation() local
190 if (typeConverter.needsConversion(ty) || in runOnOperation()
191 ty.isa<mlir::FunctionType>()) { in runOnOperation()
199 mlir::FunctionType ty = func.getFunctionType(); in runOnOperation() local
200 if (typeConverter.needsConversion(ty)) { in runOnOperation()
203 typeConverter.convertType(ty).cast<mlir::FunctionType>(); in runOnOperation()
250 auto ty = mem.getType(); in runOnOperation() local
251 if (typeConverter.needsConversion(ty)) { in runOnOperation()
253 auto toTy = typeConverter.convertType(unwrapRefType(ty)); in runOnOperation()
264 auto ty = mem.getType(); in runOnOperation() local
265 if (typeConverter.needsConversion(ty)) { in runOnOperation()
267 auto toTy = typeConverter.convertType(unwrapRefType(ty)); in runOnOperation()
277 auto ty = coor.getType(); in runOnOperation() local
279 if (typeConverter.needsConversion(ty) || in runOnOperation()
282 auto toTy = typeConverter.convertType(ty); in runOnOperation()
288 auto ty = index.getType(); in runOnOperation() local
290 if (typeConverter.needsConversion(ty) || in runOnOperation()
293 auto toTy = typeConverter.convertType(ty); in runOnOperation()
299 auto ty = index.getType(); in runOnOperation() local
301 if (typeConverter.needsConversion(ty) || in runOnOperation()
304 auto toTy = typeConverter.convertType(ty); in runOnOperation()