Lines Matching refs:ty

117   rewriteCallComplexResultType(mlir::Location loc, A ty, B &newResTys,  in rewriteCallComplexResultType()  argument
119 auto m = specifics->complexReturnType(loc, ty.getElementType()); in rewriteCallComplexResultType()
132 auto memTy = fir::ReferenceType::get(ty); in rewriteCallComplexResultType()
141 auto memTy = fir::ReferenceType::get(ty); in rewriteCallComplexResultType()
148 void rewriteCallComplexInputType(A ty, mlir::Value oper, B &newInTys, in rewriteCallComplexInputType() argument
150 auto *ctx = ty.getContext(); in rewriteCallComplexInputType()
154 auto m = specifics->complexArgumentType(loc, ty.getElementType()); in rewriteCallComplexInputType()
159 auto oldRefTy = fir::ReferenceType::get(ty); in rewriteCallComplexInputType()
161 auto mem = rewriter->create<fir::AllocaOp>(loc, ty); in rewriteCallComplexInputType()
177 auto ty = std::get<mlir::Type>(tup); in rewriteCallComplexInputType() local
181 loc, ty, oper, rewriter->getArrayAttr(idx)); in rewriteCallComplexInputType()
182 newInTys.push_back(ty); in rewriteCallComplexInputType()
212 mlir::Type ty = fnTy.getResult(0); in convertCallOp() local
213 llvm::TypeSwitch<mlir::Type>(ty) in convertCallOp()
222 .Default([&](mlir::Type ty) { newResTys.push_back(ty); }); in convertCallOp() argument
232 mlir::Type ty = std::get<0>(e.value()); in convertCallOp() local
235 llvm::TypeSwitch<mlir::Type>(ty) in convertCallOp()
311 .Default([&](mlir::Type ty) { in convertCallOp() argument
312 newInTys.push_back(ty); in convertCallOp()
377 for (mlir::Type ty : addrTy.getResults()) { in convertAddrOp() local
378 llvm::TypeSwitch<mlir::Type>(ty) in convertAddrOp()
379 .Case<fir::ComplexType>([&](fir::ComplexType ty) { in convertAddrOp() argument
380 lowerComplexSignatureRes(loc, ty, newResTys, newInTys); in convertAddrOp()
382 .Case<mlir::ComplexType>([&](mlir::ComplexType ty) { in convertAddrOp() argument
383 lowerComplexSignatureRes(loc, ty, newResTys, newInTys); in convertAddrOp()
385 .Default([&](mlir::Type ty) { newResTys.push_back(ty); }); in convertAddrOp() argument
388 for (mlir::Type ty : addrTy.getInputs()) { in convertAddrOp() local
389 llvm::TypeSwitch<mlir::Type>(ty) in convertAddrOp()
403 .Case<fir::ComplexType>([&](fir::ComplexType ty) { in convertAddrOp() argument
404 lowerComplexSignatureArg(loc, ty, newInTys); in convertAddrOp()
406 .Case<mlir::ComplexType>([&](mlir::ComplexType ty) { in convertAddrOp() argument
407 lowerComplexSignatureArg(loc, ty, newInTys); in convertAddrOp()
414 newInTys.push_back(ty); in convertAddrOp()
417 .Default([&](mlir::Type ty) { newInTys.push_back(ty); }); in convertAddrOp() argument
444 for (auto ty : func.getResults()) in hasPortableSignature() local
445 if ((ty.isa<fir::BoxCharType>() && !noCharacterConversion) || in hasPortableSignature()
446 (fir::isa_complex(ty) && !noComplexConversion)) { in hasPortableSignature()
450 for (auto ty : func.getInputs()) in hasPortableSignature() local
451 if (((ty.isa<fir::BoxCharType>() || fir::isCharacterProcedureTuple(ty)) && in hasPortableSignature()
453 (fir::isa_complex(ty) && !noComplexConversion)) { in hasPortableSignature()
481 for (auto ty : funcTy.getResults()) in convertSignature() local
482 llvm::TypeSwitch<mlir::Type>(ty) in convertSignature()
495 .Default([&](mlir::Type ty) { newResTys.push_back(ty); }); in convertSignature() argument
500 auto ty = e.value(); in convertSignature() local
502 llvm::TypeSwitch<mlir::Type>(ty) in convertSignature()
551 newInTys.push_back(ty); in convertSignature()
554 .Default([&](mlir::Type ty) { newInTys.push_back(ty); }); in convertSignature() argument