Home
last modified time | relevance | path

Searched refs:funcTy (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DLowLevelIntrinsics.cpp64 auto funcTy = in getLlvmStackSave() local
67 funcTy); in getLlvmStackSave()
73 auto funcTy = in getLlvmStackRestore() local
76 funcTy); in getLlvmStackRestore()
82 auto funcTy = mlir::FunctionType::get(builder.getContext(), in getLlvmInitTrampoline() local
85 "llvm.init.trampoline", funcTy); in getLlvmInitTrampoline()
91 auto funcTy = mlir::FunctionType::get(builder.getContext(), {ptrTy}, {ptrTy}); in getLlvmAdjustTrampoline() local
93 "llvm.adjust.trampoline", funcTy); in getLlvmAdjustTrampoline()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAbstractResult.cpp44 static mlir::FunctionType getNewFunctionType(mlir::FunctionType funcTy, in getNewFunctionType() argument
46 auto resultType = funcTy.getResult(0); in getNewFunctionType()
49 newInputTypes.append(funcTy.getInputs().begin(), funcTy.getInputs().end()); in getNewFunctionType()
50 return mlir::FunctionType::get(funcTy.getContext(), newInputTypes, in getNewFunctionType()
205 auto funcTy = func.getFunctionType().cast<mlir::FunctionType>(); in runOnOperation() local
206 if (hasAbstractResult(funcTy)) { in runOnOperation()
207 func.setType(getNewFunctionType(funcTy, shouldBoxResult)); in runOnOperation()
212 auto resultType = funcTy.getResult(0); in runOnOperation()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/
H A DNumeric.cpp241 auto funcTy = func.getFunctionType(); in genExponent() local
243 builder.createConvert(loc, funcTy.getInput(0), x)}; in genExponent()
266 auto funcTy = func.getFunctionType(); in genFraction() local
268 builder.createConvert(loc, funcTy.getInput(0), x)}; in genFraction()
293 auto funcTy = func.getFunctionType(); in genNearest() local
330 auto funcTy = func.getFunctionType(); in genRRSpacing() local
332 builder.createConvert(loc, funcTy.getInput(0), x)}; in genRRSpacing()
357 auto funcTy = func.getFunctionType(); in genScale() local
436 auto funcTy = func.getFunctionType(); in genSetExponent() local
461 auto funcTy = func.getFunctionType(); in genSpacing() local
[all …]
H A DStop.cpp30 mlir::FunctionType funcTy = crashFunc.getFunctionType(); in genReportFatalUserError() local
34 fir::factory::locationToLineNo(builder, loc, funcTy.getInput(2)); in genReportFatalUserError()
37 builder, loc, funcTy, msgVal, sourceFile, sourceLine); in genReportFatalUserError()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DBoxedProcedure.cpp49 if (auto funcTy = ty.dyn_cast<mlir::FunctionType>()) { in needsConversion() local
50 for (auto t : funcTy.getInputs()) in needsConversion()
53 for (auto t : funcTy.getResults()) in needsConversion()
98 addConversion([&](mlir::FunctionType funcTy) { in __anonfdb31fde0602() argument
101 for (auto ty : funcTy.getInputs()) in __anonfdb31fde0602()
103 for (auto ty : funcTy.getResults()) in __anonfdb31fde0602()
105 return mlir::FunctionType::get(funcTy.getContext(), inTys, resTys); in __anonfdb31fde0602()
H A DTypeConverter.h278 auto funcTy = convertType(boxproc.getEleTy()); in convertBoxProcType() local
281 llvm::SmallVector<mlir::Type, 2> tuple = {funcTy, i8PtrTy}; in convertBoxProcType()
H A DTargetRewrite.cpp473 auto funcTy = func.getFunctionType().cast<mlir::FunctionType>(); in convertSignature() local
474 if (hasPortableSignature(funcTy) && !hasHostAssociations(func)) in convertSignature()
481 for (auto ty : funcTy.getResults()) in convertSignature()
499 for (auto e : llvm::enumerate(funcTy.getInputs())) { in convertSignature()
/llvm-project-15.0.7/flang/lib/Lower/
H A DRuntime.cpp206 mlir::FunctionType funcTy = callee.getFunctionType(); in genDateAndTime() local
233 fir::factory::locationToLineNo(builder, loc, funcTy.getInput(7)); in genDateAndTime()
236 builder, loc, funcTy, dateBuffer, dateLen, timeBuffer, timeLen, in genDateAndTime()
255 mlir::FunctionType funcTy = func.getFunctionType(); in genRandomNumber() local
258 fir::factory::locationToLineNo(builder, loc, funcTy.getInput(2)); in genRandomNumber()
260 builder, loc, funcTy, harvest, sourceFile, sourceLine); in genRandomNumber()
288 mlir::FunctionType funcTy = func.getFunctionType(); in genRandomSeed() local
291 fir::factory::locationToLineNo(builder, loc, funcTy.getInput(2)); in genRandomSeed()
293 builder, loc, funcTy, argBox, sourceFile, sourceLine); in genRandomSeed()
H A DIO.cpp1563 mlir::FunctionType funcTy = check.getFunctionType(); in genIOUnitNumber() local
1565 args.push_back(builder.createConvert(loc, funcTy.getInput(0), rawUnit)); in genIOUnitNumber()
1568 args.push_back(builder.createConvert(loc, funcTy.getInput(2), in genIOUnitNumber()
1570 args.push_back(builder.createConvert(loc, funcTy.getInput(3), in genIOUnitNumber()
1573 args.push_back(builder.createNullConstant(loc, funcTy.getInput(2))); in genIOUnitNumber()
1575 fir::factory::createZeroValue(builder, loc, funcTy.getInput(3))); in genIOUnitNumber()
1577 mlir::Value file = locToFilename(converter, loc, funcTy.getInput(4)); in genIOUnitNumber()
1578 mlir::Value line = locToLineNo(converter, loc, funcTy.getInput(5)); in genIOUnitNumber()
H A DConvertExpr.cpp2653 auto funcTy = mlir::FunctionType::get(context, llvm::None, llvm::None); in genCallOpAndResult() local
2654 auto boxProcTy = builder.getBoxProcType(funcTy); in genCallOpAndResult()
6331 mlir::FunctionType funcTy = memcpyFunc.getFunctionType(); in createCallMemcpy() local
6332 builder.create<fir::CallOp>(loc, funcTy.getResults(), funcSymAttr, args); in createCallMemcpy()
6356 mlir::FunctionType funcTy = reallocFunc.getFunctionType(); in growBuffer() local
6358 loc, funcTy.getResults(), funcSymAttr, in growBuffer()
6360 builder.createConvert(loc, funcTy.getInputs()[0], mem), in growBuffer()
6361 builder.createConvert(loc, funcTy.getInputs()[1], byteSz)}); in growBuffer()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp210 FunctionType funcTy, bool isVariadic, in convertFunctionSignature() argument
217 for (auto &en : llvm::enumerate(funcTy.getInputs())) { in convertFunctionSignature()
228 Type resultType = funcTy.getNumResults() == 0 in convertFunctionSignature()
230 : packFunctionResults(funcTy.getResults()); in convertFunctionSignature()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaInferShapes.cpp295 FunctionType funcTy = func.getFunctionType(); in runOnOperation() local
296 auto resultTys = funcTy.getResults(); in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/Conversion/LLVMCommon/
H A DTypeConverter.h52 Type convertFunctionSignature(FunctionType funcTy, bool isVariadic,
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFIRBuilder.h111 fir::BoxProcType getBoxProcType(mlir::FunctionType funcTy) { in getBoxProcType() argument
112 return fir::BoxProcType::get(getContext(), funcTy); in getBoxProcType()
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIROps.cpp945 mlir::FunctionType funcTy; in parse() local
948 parser.parseColonType(funcTy) || in parse()
949 parser.resolveOperands(allOperands, funcTy.getInputs(), loc, in parse()
951 parser.addTypesToList(funcTy.getResults(), result.types)) in parse()
953 result.addAttribute("baseType", mlir::TypeAttr::get(funcTy.getInput(0))); in parse()
/llvm-project-15.0.7/mlir/lib/IR/
H A DAsmPrinter.cpp2083 .Case<FunctionType>([&](FunctionType funcTy) { in printType() argument
2085 interleaveComma(funcTy.getInputs(), [&](Type ty) { printType(ty); }); in printType()
2087 ArrayRef<Type> results = funcTy.getResults(); in printType()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp214 auto funcTy = in print() local
223 p << " : " << funcTy; in print()