Lines Matching defs:fixup

590   // Result type fixup for ComplexType.
609 // Argument type fixup for ComplexType.
958 const auto &fixup = fixups[i];
960 fixup.index < newInTyAndAttrs.size()
961 ? std::get<mlir::Type>(newInTyAndAttrs[fixup.index])
963 switch (fixup.code) {
968 func.front().insertArgument(fixup.index, fixupType, loc);
971 fir::ReferenceType::get(oldArgTys[fixup.index - offset]);
974 func.getArgument(fixup.index + 1).replaceAllUsesWith(load);
975 func.front().eraseArgument(fixup.index + 1);
980 auto oldArgTy = oldArgTys[fixup.index - offset];
986 func.front().insertArgument(fixup.index, fixupType, loc);
990 func.getArgument(fixup.index + 1).replaceAllUsesWith(bitcast);
991 func.front().eraseArgument(fixup.index + 1);
995 << func.getArgument(fixup.index).getType() << '\n');
1001 func.front().insertArgument(fixup.index, fixupType, loc);
1002 if (fixup.second == 1) {
1004 auto boxTy = oldArgTys[fixup.index - offset - fixup.second];
1006 loc, boxTy, func.front().getArgument(fixup.index - 1), newArg);
1007 func.getArgument(fixup.index + 1).replaceAllUsesWith(box);
1008 func.front().eraseArgument(fixup.index + 1);
1016 func.front().insertArgument(fixup.index, fixupType, loc);
1036 convertValueInMemory(loc, oldOper, newResTys[fixup.index],
1047 func.front().insertArgument(fixup.index, fixupType, loc);
1048 if (fixup.second == 1) {
1050 mlir::Value firstArg = func.front().getArgument(fixup.index - 1);
1052 oldArgTys[fixup.index - offset - fixup.second];
1071 func.getArgument(fixup.index + 1).replaceAllUsesWith(pair);
1072 func.front().eraseArgument(fixup.index + 1);
1082 func.front().insertArgument(fixup.index, fixupType, loc);
1084 func.front().addArgument(trailingTys[fixup.second], loc);
1085 auto boxTy = oldArgTys[fixup.index - offset];
1089 func.getArgument(fixup.index + 1).replaceAllUsesWith(box);
1090 func.front().eraseArgument(fixup.index + 1);
1098 func.front().insertArgument(fixup.index, fixupType, loc);
1100 func.front().addArgument(trailingTys[fixup.second], loc);
1101 auto tupleType = oldArgTys[fixup.index - offset];
1106 func.getArgument(fixup.index + 1).replaceAllUsesWith(tuple);
1107 func.front().eraseArgument(fixup.index + 1);
1140 for (auto &fixup : fixups) {
1142 if (fixup.finalizer)
1143 (*fixup.finalizer)(func);
1145 if (fixup.gpuFinalizer)
1146 (*fixup.gpuFinalizer)(func);