Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DOpToFuncCallLowering.h56 Type funcType = getFunctionType(resultType, castedOperands); in matchAndRewrite() local
58 funcType.cast<LLVM::LLVMFunctionType>().getReturnType()); in matchAndRewrite()
62 LLVMFuncOp funcOp = appendOrGetFuncOp(funcName, funcType, op); in matchAndRewrite()
101 LLVM::LLVMFuncOp appendOrGetFuncOp(StringRef funcName, Type funcType, in appendOrGetFuncOp()
111 return b.create<LLVMFuncOp>(op->getLoc(), funcName, funcType); in appendOrGetFuncOp()
H A DGPUOpsLowering.cpp44 auto funcType = typeConverter->convertType(gpuFuncOp.getFunctionType()) in matchAndRewrite() local
70 gpuFuncOp.getLoc(), gpuFuncOp.getName(), funcType, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/
H A DDenseBufferizationPass.cpp51 FunctionType funcType = funcOp.getFunctionType(); in runOnOperation() local
52 if (containsSparseTensor(funcType.getInputs()) || in runOnOperation()
53 containsSparseTensor(funcType.getResults())) in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp252 if (!funcType || funcType.getNumInputs() != 1 || in parse()
253 funcType.getNumResults() != 1) in parse()
261 Type resultType = funcType.getResult(0); in parse()
968 FunctionType funcType; in parse() local
1005 if (funcType.getNumResults() > 1) in parse()
1010 if (funcType.getNumResults() == 0) { in parse()
1198 if (!funcType) in verify()
1203 if (!funcType.isVarArg() && in verify()
1290 if (!funcType) in parse()
1292 if (funcType.getNumResults() > 1) in parse()
[all …]
H A DLLVMTypeSyntax.cpp111 static void printFunctionType(AsmPrinter &printer, LLVMFunctionType funcType) { in printFunctionType() argument
113 dispatchPrint(printer, funcType.getReturnType()); in printFunctionType()
116 funcType.getParams(), printer.getStream(), in printFunctionType()
118 if (funcType.isVarArg()) { in printFunctionType()
119 if (funcType.getNumParams() != 0) in printFunctionType()
173 if (auto funcType = type.dyn_cast<LLVMFunctionType>()) in printType() local
174 return printFunctionType(printer, funcType); in printType()
H A DLLVMTypes.cpp809 .Case<LLVMFunctionType>([&](auto funcType) { in isCompatibleImpl() argument
810 return isCompatible(funcType.getReturnType()) && in isCompatibleImpl()
811 llvm::all_of(funcType.getParams(), isCompatible); in isCompatibleImpl()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DFuncBufferizableOpInterfaceImpl.cpp266 FunctionType funcType = funcOp.getFunctionType(); in bufferize() local
292 resultTypes.push_back(funcType.getResult(resultTypes.size())); in bufferize()
317 auto memRefType = funcType.getInput(idx); in bufferize()
395 FunctionType funcType = funcOp.getFunctionType(); in bufferize() local
399 for (const auto &it : llvm::enumerate(funcType.getInputs())) { in bufferize()
414 for (Type resultType : funcType.getResults()) { in bufferize()
/llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/
H A DDialect.cpp57 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
58 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
61 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp114 auto funcType = builder.getFunctionType(argTypes, llvm::None); in mlirGen() local
116 funcType); in mlirGen()
/llvm-project-15.0.7/mlir/examples/toy/Ch2/mlir/
H A DDialect.cpp57 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
58 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
61 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp114 auto funcType = builder.getFunctionType(argTypes, llvm::None); in mlirGen() local
116 funcType); in mlirGen()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/
H A DConvertGPULaunchFuncToVulkanLaunchFunc.cpp125 auto funcType = builder.getFunctionType(vulkanLaunchTypes, {}); in declareVulkanLaunchFunc() local
126 builder.create<func::FuncOp>(loc, kVulkanLaunch, funcType).setPrivate(); in declareVulkanLaunchFunc()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DDialect.cpp119 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
120 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
123 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp114 auto funcType = builder.getFunctionType(argTypes, llvm::None); in mlirGen() local
116 funcType); in mlirGen()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/
H A DDialect.cpp119 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
120 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
123 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp114 auto funcType = builder.getFunctionType(argTypes, llvm::None); in mlirGen() local
116 funcType); in mlirGen()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DDialect.cpp119 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
120 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
123 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp114 auto funcType = builder.getFunctionType(argTypes, llvm::None); in mlirGen() local
116 funcType); in mlirGen()
/llvm-project-15.0.7/flang/lib/Parser/
H A Dbasic-parsers.h614 using funcType = FUNCTION<RESULT, PARSER...>; variable
619 constexpr ApplyFunction(funcType f, PARSER... p) in ApplyFunction()
633 const funcType function_;
672 using funcType = ApplicableMemberFunctionPointer<OBJPARSER, PARSER...>; variable
677 constexpr ApplyMemberFunction(funcType f, OBJPARSER o, PARSER... p) in ApplyMemberFunction()
692 const funcType function_;
/llvm-project-15.0.7/mlir/test/CAPI/
H A Dir.c789 MlirType funcType = mlirFunctionTypeGet(ctx, 2, funcInputs, 3, funcResults); in printBuiltinTypes() local
790 if (mlirFunctionTypeGetNumInputs(funcType) != 2) in printBuiltinTypes()
792 if (mlirFunctionTypeGetNumResults(funcType) != 3) in printBuiltinTypes()
794 if (!mlirTypeEqual(funcInputs[0], mlirFunctionTypeGetInput(funcType, 0)) || in printBuiltinTypes()
795 !mlirTypeEqual(funcInputs[1], mlirFunctionTypeGetInput(funcType, 1))) in printBuiltinTypes()
797 if (!mlirTypeEqual(funcResults[0], mlirFunctionTypeGetResult(funcType, 0)) || in printBuiltinTypes()
798 !mlirTypeEqual(funcResults[1], mlirFunctionTypeGetResult(funcType, 1)) || in printBuiltinTypes()
799 !mlirTypeEqual(funcResults[2], mlirFunctionTypeGetResult(funcType, 2))) in printBuiltinTypes()
801 mlirTypeDump(funcType); in printBuiltinTypes()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp106 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
107 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
110 result.addTypes(funcType.getResults()); in parseBinaryOp()
H A DMLIRGen.cpp170 auto funcType = builder.getFunctionType(argTypes, llvm::None); in mlirGen() local
172 funcType); in mlirGen()
/llvm-project-15.0.7/mlir/tools/mlir-linalg-ods-gen/
H A Dmlir-linalg-ods-yaml-gen.cpp1084 std::string funcType; in generateNamedGenericOpDefns() local
1086 funcType = llvm::formatv("{0}::{1}", enumName, in generateNamedGenericOpDefns()
1098 funcType = llvm::formatv("{0}Val", *expression.scalarFn->attrName); in generateNamedGenericOpDefns()
1100 assert(!funcType.empty()); in generateNamedGenericOpDefns()
1130 funcType, interleaveToString(operandCppValues, ", "))); in generateNamedGenericOpDefns()
/llvm-project-15.0.7/flang/lib/Lower/
H A DIntrinsicCall.cpp1438 if (funcType == implType) in searchFunctionInLibrary()
1441 FunctionDistance distance(funcType, implType); in searchFunctionInLibrary()
1467 mlir::FunctionType funcType, in searchMathOperation() argument
1474 if (funcType == implType) in searchMathOperation()
1477 FunctionDistance distance(funcType, implType); in searchMathOperation()
1508 sstream << funcType.getInput(0) << " ** " << funcType.getInput(1); in checkPrecisionLoss()
1511 if (funcType.getNumInputs() > 0) in checkPrecisionLoss()
1512 sstream << funcType.getInput(0); in checkPrecisionLoss()
1868 assert(funcType.getNumResults() == 1 && in getWrapper()
1870 mlir::Type resultType = funcType.getResult(0); in getWrapper()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRType.cpp195 if (auto funcType = t.dyn_cast<mlir::FunctionType>()) in isa_fir_or_std_type() local
196 return llvm::all_of(funcType.getInputs(), isa_fir_or_std_type) && in isa_fir_or_std_type()
197 llvm::all_of(funcType.getResults(), isa_fir_or_std_type); in isa_fir_or_std_type()

12