Lines Matching defs:ty

203       mlir::Location loc, mlir::ComplexType ty, Ty &newResTys,
207 newResTys.push_back(ty);
210 auto m = specifics->complexReturnType(loc, ty.getElementType());
211 return rewriteCallResultType(loc, ty, newResTys, newInTyAndAttrs, newOpers,
299 auto ty = std::get<mlir::Type>(tup);
303 loc, ty, oper, rewriter->getArrayAttr(idx));
328 mlir::Location loc, CPLX ty, mlir::Value oper,
333 newInTyAndAttrs.push_back(fir::CodeGenSpecifics::getTypeAndAttr(ty));
337 auto m = specifics->complexArgumentType(loc, ty.getElementType());
338 rewriteCallOperands(loc, m, ty, oper, newOpers, savedStackPtr,
393 mlir::Type ty = fnTy.getResult(0);
394 llvm::TypeSwitch<mlir::Type>(ty)
405 .Default([&](mlir::Type ty) { newResTys.push_back(ty); });
420 mlir::Type ty = std::get<0>(e.value());
423 llvm::TypeSwitch<mlir::Type>(ty)
504 .Default([&](mlir::Type ty) {
510 fir::CodeGenSpecifics::getTypeAndAttr(ty));
669 for (mlir::Type ty : addrTy.getResults()) {
670 llvm::TypeSwitch<mlir::Type>(ty)
671 .Case<mlir::ComplexType>([&](mlir::ComplexType ty) {
672 lowerComplexSignatureRes(loc, ty, newResTys, newInTyAndAttrs);
674 .Case<fir::RecordType>([&](fir::RecordType ty) {
675 lowerStructSignatureRes(loc, ty, newResTys, newInTyAndAttrs);
677 .Default([&](mlir::Type ty) { newResTys.push_back(ty); });
680 for (mlir::Type ty : addrTy.getInputs()) {
681 llvm::TypeSwitch<mlir::Type>(ty)
697 .Case<mlir::ComplexType>([&](mlir::ComplexType ty) {
698 lowerComplexSignatureArg(loc, ty, newInTyAndAttrs);
707 fir::CodeGenSpecifics::getTypeAndAttr(ty));
713 .Default([&](mlir::Type ty) {
715 fir::CodeGenSpecifics::getTypeAndAttr(ty));
783 for (auto ty : func.getResults())
784 if ((mlir::isa<fir::BoxCharType>(ty) && !noCharacterConversion) ||
785 (fir::isa_complex(ty) && !noComplexConversion) ||
786 (mlir::isa<mlir::IntegerType>(ty) && hasCCallingConv) ||
787 (mlir::isa<fir::RecordType>(ty) && !noStructConversion)) {
791 for (auto ty : func.getInputs())
792 if (((mlir::isa<fir::BoxCharType>(ty) ||
793 fir::isCharacterProcedureTuple(ty)) &&
795 (fir::isa_complex(ty) && !noComplexConversion) ||
796 (mlir::isa<mlir::IntegerType>(ty) && hasCCallingConv) ||
797 (mlir::isa<fir::RecordType>(ty) && !noStructConversion)) {
842 for (auto ty : funcTy.getResults())
843 llvm::TypeSwitch<mlir::Type>(ty)
867 .Default([&](mlir::Type ty) { newResTys.push_back(ty); });
876 auto ty = e.value();
878 llvm::TypeSwitch<mlir::Type>(ty)
914 fir::CodeGenSpecifics::getTypeAndAttr(ty));
937 .Default([&](mlir::Type ty) {
939 fir::CodeGenSpecifics::getTypeAndAttr(ty));