Lines Matching defs:funcTy
83 static mlir::FunctionType getNewFunctionType(mlir::FunctionType funcTy,
85 auto resultType = funcTy.getResult(0);
88 newInputTypes.append(funcTy.getInputs().begin(), funcTy.getInputs().end());
89 return mlir::FunctionType::get(funcTy.getContext(), newInputTypes,
99 static mlir::FunctionType getCPtrFunctionType(mlir::FunctionType funcTy) {
100 assert(fir::isa_builtin_cptr_type(funcTy.getResult(0)));
102 getVoidPtrType(funcTy.getContext())};
103 return mlir::FunctionType::get(funcTy.getContext(), funcTy.getInputs(),
364 auto funcTy = mlir::cast<mlir::FunctionType>(func.getFunctionType());
368 if (hasScalarDerivedResult(funcTy) &&
371 if (hasAbstractResult(funcTy)) {
372 if (fir::isa_builtin_cptr_type(funcTy.getResult(0))) {
373 func.setType(getCPtrFunctionType(funcTy));
385 auto resultType = funcTy.getResult(0);
402 getNewFunctionType(funcTy, shouldBoxResult));
408 func.setType(getNewFunctionType(funcTy, shouldBoxResult));