Home
last modified time | relevance | path

Searched refs:funcType (Results 1 – 25 of 44) sorted by relevance

12

/llvm-project/flang/lib/Optimizer/Builder/Runtime/
H A DTemporaryStack.cpp20 mlir::FunctionType funcType = func.getFunctionType(); in genCreateValueStack() local
23 fir::factory::locationToLineNo(builder, loc, funcType.getInput(1)); in genCreateValueStack()
24 auto args = fir::runtime::createArguments(builder, loc, funcType, sourceFile, in genCreateValueStack()
33 mlir::FunctionType funcType = func.getFunctionType(); in genPushValue() local
34 auto args = fir::runtime::createArguments(builder, loc, funcType, opaquePtr, in genPushValue()
44 mlir::FunctionType funcType = func.getFunctionType(); in genValueAt() local
45 auto args = fir::runtime::createArguments(builder, loc, funcType, opaquePtr, in genValueAt()
55 mlir::FunctionType funcType = func.getFunctionType(); in genDestroyValueStack() local
56 auto args = fir::runtime::createArguments(builder, loc, funcType, opaquePtr); in genDestroyValueStack()
65 mlir::FunctionType funcType = func.getFunctionType(); in genCreateDescriptorStack() local
[all …]
H A DArrayConstructor.cpp45 mlir::FunctionType funcType = func.getFunctionType(); in genInitArrayConstructorVector()
46 cookie = builder.createConvert(loc, funcType.getInput(0), cookie); in genInitArrayConstructorVector()
49 fir::factory::locationToLineNo(builder, loc, funcType.getInput(4)); in genInitArrayConstructorVector()
50 auto args = fir::runtime::createArguments(builder, loc, funcType, cookie, in genInitArrayConstructorVector()
63 mlir::FunctionType funcType = func.getFunctionType(); in genPushArrayConstructorValue()
64 auto args = fir::runtime::createArguments(builder, loc, funcType, in genPushArrayConstructorValue() local
75 mlir::FunctionType funcType = func.getFunctionType(); in genPushArrayConstructorSimpleScalar()
77 builder, loc, funcType, arrayConstructorVector, fromAddress); in genPushArrayConstructorSimpleScalar()
44 mlir::FunctionType funcType = func.getFunctionType(); genInitArrayConstructorVector() local
76 mlir::FunctionType funcType = func.getFunctionType(); genPushArrayConstructorSimpleScalar() local
/llvm-project/mlir/lib/Conversion/GPUCommon/
H A DOpToFuncCallLowering.h92 Type funcType = getFunctionType(resultType, castedOperands);
94 cast<LLVM::LLVMFunctionType>(funcType).getReturnType(), op); in getFunctionName()
98 LLVMFuncOp funcOp = appendOrGetFuncOp(funcName, funcType, op); in getFunctionName()
134 LLVM::LLVMFuncOp appendOrGetFuncOp(StringRef funcName, Type funcType,
147 return b.create<LLVMFuncOp>(op->getLoc(), funcName, funcType);
56 Type funcType = getFunctionType(resultType, castedOperands); matchAndRewrite() local
/llvm-project/mlir/lib/Conversion/MathToFuncs/
H A DMathToFuncs.cpp196 FunctionType funcType = FunctionType::get( in createElementIPowIFunc() local
198 auto funcOp = builder.create<func::FuncOp>(funcName, funcType); in createElementIPowIFunc()
380 /// the given \p funcType type inside \p module. The \p funcType must be
413 FunctionType funcType) { in createElementFPowIFunc() argument
414 auto baseType = cast<FloatType>(funcType.getInput(0)); in createElementFPowIFunc()
415 auto powType = cast<IntegerType>(funcType.getInput(1)); in createElementFPowIFunc()
423 auto funcOp = builder.create<func::FuncOp>(funcName, funcType); in createElementFPowIFunc()
592 FunctionType funcType = getElementalFuncTypeForOp(op); in matchAndRewrite() local
596 func::FuncOp elementFunc = getFuncOpCallback(op, funcType); in matchAndRewrite()
668 FunctionType funcType = createCtlzFunc() local
832 FunctionType funcType = getElementalFuncTypeForOp(op); generateOpImplementations() local
[all...]
/llvm-project/mlir/lib/Dialect/Bufferization/Transforms/
H A DFuncBufferizableOpInterfaceImpl.cpp207 FunctionType funcType = funcOp.getFunctionType(); in getBufferType()
209 funcType.getResult(cast<OpResult>(value).getResultNumber()); in getBufferType()
248 FunctionType funcType = funcOp.getFunctionType(); in bufferize()
265 auto memRefType = funcType.getInput(opOperand.getOperandNumber()); in bufferize()
399 FunctionType funcType = funcOp.getFunctionType(); in bufferize()
403 for (const auto &it : llvm::enumerate(funcType.getInputs())) { in bufferize()
415 for (Type resultType : funcType.getResults()) { in bufferize()
211 FunctionType funcType = funcOp.getFunctionType(); getBufferType() local
245 FunctionType funcType = funcOp.getFunctionType(); bufferize() local
390 FunctionType funcType = funcOp.getFunctionType(); bufferize() local
/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/
H A DSparsificationAndBufferizationPass.cpp109 FunctionType funcType = funcOp.getFunctionType(); in runDenseBufferization()
110 if (containsSparseTensor(funcType.getInputs()) || in runDenseBufferization()
111 containsSparseTensor(funcType.getResults())) in runDenseBufferization()
107 FunctionType funcType = funcOp.getFunctionType(); runDenseBufferization() local
/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp465 auto funcType = llvm::dyn_cast<FunctionType>(type);
466 if (!funcType || funcType.getNumInputs() != 1 || in build()
467 funcType.getNumResults() != 1) in build()
472 if (parser.resolveOperand(arraySize, funcType.getInput(0), result.operands)) in build()
475 Type resultType = funcType.getResult(0); in build()
479 result.addTypes({funcType.getResult(0)}); in build()
1248 LLVMFunctionType funcType = llvm::dyn_cast<LLVMFunctionType>(fnType); in parseCallTypeAndResolveOperands()
1249 if (!funcType)
1252 if (funcType
385 auto funcType = llvm::dyn_cast<FunctionType>(type); parse() local
1117 LLVMFunctionType funcType = llvm::dyn_cast<LLVMFunctionType>(fnType); verifySymbolUses() local
1224 auto funcType = llvm::dyn_cast<FunctionType>(types.pop_back_val()); parseCallTypeAndResolveOperands() local
[all...]
/llvm-project/mlir/examples/toy/Ch3/mlir/
H A DDialect.cpp68 if (FunctionType funcType = llvm::dyn_cast<FunctionType>(type)) { in parseBinaryOp() local
69 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
72 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp123 auto funcType = builder.getFunctionType(argTypes, std::nullopt); in mlirGen() local
125 funcType); in mlirGen()
/llvm-project/mlir/examples/toy/Ch2/mlir/
H A DDialect.cpp68 if (FunctionType funcType = llvm::dyn_cast<FunctionType>(type)) { in parseBinaryOp() local
69 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
72 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp123 auto funcType = builder.getFunctionType(argTypes, std::nullopt); in mlirGen() local
125 funcType); in mlirGen()
/llvm-project/mlir/lib/Conversion/GPUToVulkan/
H A DConvertGPULaunchFuncToVulkanLaunchFunc.cpp
/llvm-project/mlir/lib/Query/
H A DQuery.cpp66 FunctionType funcType = in extractFunction() local
69 func::FuncOp funcOp = func::FuncOp::create(loc, functionName, funcType); in extractFunction()
/llvm-project/mlir/examples/toy/Ch4/mlir/
H A DDialect.cpp130 if (FunctionType funcType = llvm::dyn_cast<FunctionType>(type)) { in parseBinaryOp() local
131 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
134 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp123 auto funcType = builder.getFunctionType(argTypes, std::nullopt); in mlirGen() local
125 funcType); in mlirGen()
/llvm-project/mlir/examples/toy/Ch6/mlir/
H A DDialect.cpp130 if (FunctionType funcType = llvm::dyn_cast<FunctionType>(type)) { in parseBinaryOp() local
131 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
134 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp123 auto funcType = builder.getFunctionType(argTypes, std::nullopt); in mlirGen() local
125 funcType); in mlirGen()
/llvm-project/mlir/examples/toy/Ch5/mlir/
H A DDialect.cpp130 if (FunctionType funcType = llvm::dyn_cast<FunctionType>(type)) { in parseBinaryOp() local
131 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
134 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp123 auto funcType = builder.getFunctionType(argTypes, std::nullopt); in mlirGen() local
125 funcType); in mlirGen()
/llvm-project/flang/lib/Parser/
H A Dbasic-parsers.h619 using funcType = FUNCTION<RESULT, PARSER...>; variable
624 constexpr ApplyFunction(funcType f, PARSER... p) in ApplyFunction()
638 const funcType function_;
667 using funcType = MEMFUNC;
689 const funcType function_; in Parse()
677 using funcType = ApplicableMemberFunctionPointer<OBJPARSER, PARSER...>; global() variable
/llvm-project/mlir/tools/mlir-linalg-ods-gen/
H A Dmlir-linalg-ods-yaml-gen.cpp1096 std::string funcType; in generateNamedGenericOpDefns()
1098 funcType = llvm::formatv("{0}::{1}", enumName, in generateNamedGenericOpDefns() local
1109 funcType = llvm::formatv("{0}Val", *expression.scalarFn->attrName); in generateNamedGenericOpDefns()
1111 assert(!funcType.empty()); in generateNamedGenericOpDefns()
1141 funcType, interleaveToString(operandCppValues, ", "))); in generateNamedGenericOpDefns()
/llvm-project/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp122 if (FunctionType funcType = llvm::dyn_cast<FunctionType>(type)) { in parseBinaryOp() local
123 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
126 result.addTypes(funcType.getResults()); in parseBinaryOp()
/llvm-project/mlir/test/CAPI/
H A Dir.c835 MlirType funcType = mlirFunctionTypeGet(ctx, 2, funcInputs, 3, funcResults); in printBuiltinTypes() local
836 if (mlirFunctionTypeGetNumInputs(funcType) != 2) in printBuiltinTypes()
838 if (mlirFunctionTypeGetNumResults(funcType) != 3) in printBuiltinTypes()
840 if (!mlirTypeEqual(funcInputs[0], mlirFunctionTypeGetInput(funcType, 0)) || in printBuiltinTypes()
841 !mlirTypeEqual(funcInputs[1], mlirFunctionTypeGetInput(funcType, 1))) in printBuiltinTypes()
843 if (!mlirTypeEqual(funcResults[0], mlirFunctionTypeGetResult(funcType, 0)) || in printBuiltinTypes()
844 !mlirTypeEqual(funcResults[1], mlirFunctionTypeGetResult(funcType, 1)) || in printBuiltinTypes()
845 !mlirTypeEqual(funcResults[2], mlirFunctionTypeGetResult(funcType, 2))) in printBuiltinTypes()
847 mlirTypeDump(funcType); in printBuiltinTypes()
/llvm-project/flang/lib/Lower/
H A DConvertCall.cpp473 mlir::FunctionType funcType = in genCallOpAndResult() local
483 ? builder.create<fir::BoxAddrOp>(loc, funcType, funcPointer) in genCallOpAndResult()
484 : builder.createConvert(loc, funcType, funcPointer)); in genCallOpAndResult()
490 for (auto [fst, snd] : llvm::zip(caller.getInputs(), funcType.getInputs())) { in genCallOpAndResult()
596 loc, funcType.getResults(), funcSymbolAttr, grid_x, grid_y, grid_z, in genCallOpAndResult()
622 loc, funcType.getResults(), builder.getStringAttr(procName), in genCallOpAndResult()
638 loc, funcType.getResults(), builder.getStringAttr(procName), in genCallOpAndResult()
647 loc, funcType.getResults(), funcSymbolAttr, operands, procAttrs); in genCallOpAndResult()
733 hlfir::mayHaveAllocatableComponent(funcType.getResults()[0])) { in genCallOpAndResult()
758 mlir::isa<fir::CharacterType>(funcType in genStmtFunctionRef()
[all...]
/llvm-project/mlir/lib/Dialect/Linalg/TransformOps/
H A DLinalgTransformOps.cpp1352 FunctionType funcType; in applyToOne()
1354 if (failed(parser.parseType<FunctionType>(funcType))) in applyToOne()
1357 if (funcType.getNumInputs() != 1 || funcType.getNumResults() != 1) { in applyToOne()
1361 targetType = funcType.getInput(0); in applyToOne()
1362 lowSizeType = highSizeType = splitPointType = funcType.getResult(0); in applyToOne()
2843 FunctionType funcType; in build()
2845 if (failed(parser.parseType<FunctionType>(funcType))) in build()
2848 if (funcType.getNumInputs() != 1 || funcType in build()
1320 FunctionType funcType; parseMultitileSizesTypes() local
2803 FunctionType funcType; parseContinuousTileSizeTypes() local
[all...]

12