Home
last modified time | relevance | path

Searched refs:LLVMFuncOp (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/
H A DFunctionCallUtils.h29 class LLVMFuncOp; variable
36 LLVM::LLVMFuncOp lookupOrCreatePrintI64Fn(ModuleOp moduleOp);
37 LLVM::LLVMFuncOp lookupOrCreatePrintU64Fn(ModuleOp moduleOp);
38 LLVM::LLVMFuncOp lookupOrCreatePrintF32Fn(ModuleOp moduleOp);
39 LLVM::LLVMFuncOp lookupOrCreatePrintF64Fn(ModuleOp moduleOp);
40 LLVM::LLVMFuncOp lookupOrCreatePrintOpenFn(ModuleOp moduleOp);
41 LLVM::LLVMFuncOp lookupOrCreatePrintCloseFn(ModuleOp moduleOp);
42 LLVM::LLVMFuncOp lookupOrCreatePrintCommaFn(ModuleOp moduleOp);
45 LLVM::LLVMFuncOp lookupOrCreateAlignedAllocFn(ModuleOp moduleOp,
47 LLVM::LLVMFuncOp lookupOrCreateFreeFn(ModuleOp moduleOp);
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DFunctionCallUtils.cpp47 auto func = moduleOp.lookupSymbol<LLVM::LLVMFuncOp>(name); in lookupOrCreateFn()
51 return b.create<LLVM::LLVMFuncOp>( in lookupOrCreateFn()
56 LLVM::LLVMFuncOp mlir::LLVM::lookupOrCreatePrintI64Fn(ModuleOp moduleOp) { in lookupOrCreatePrintI64Fn()
62 LLVM::LLVMFuncOp mlir::LLVM::lookupOrCreatePrintU64Fn(ModuleOp moduleOp) { in lookupOrCreatePrintU64Fn()
68 LLVM::LLVMFuncOp mlir::LLVM::lookupOrCreatePrintF32Fn(ModuleOp moduleOp) { in lookupOrCreatePrintF32Fn()
74 LLVM::LLVMFuncOp mlir::LLVM::lookupOrCreatePrintF64Fn(ModuleOp moduleOp) { in lookupOrCreatePrintF64Fn()
100 LLVM::LLVMFuncOp mlir::LLVM::lookupOrCreateMallocFn(ModuleOp moduleOp, in lookupOrCreateMallocFn()
114 LLVM::LLVMFuncOp mlir::LLVM::lookupOrCreateFreeFn(ModuleOp moduleOp) { in lookupOrCreateFreeFn()
128 LLVM::LLVMFuncOp
143 LLVM::LLVMFuncOp
[all …]
H A DLLVMDialect.cpp83 symbolTable.lookupNearestSymbolFrom<LLVMFuncOp>(op, symbol.getAttr()); in verifySymbolAttrUse()
1062 if (LLVMFuncOp func = (*this)->getParentOfType<LLVMFuncOp>()) { in verify()
1189 auto fn = dyn_cast<LLVMFuncOp>(callee); in verify()
1689 if (auto parent = (*this)->getParentOfType<LLVMFuncOp>()) { in verify()
1744 LLVMFuncOp AddressOfOp::getFunction() { in getFunction()
1745 return lookupSymbolInModule<LLVM::LLVMFuncOp>((*this)->getParentOp(), in getFunction()
2165 Block *LLVMFuncOp::addEntryBlock() { in addEntryBlock()
2178 void LLVMFuncOp::build(OpBuilder &builder, OperationState &result, in build()
2301 void LLVMFuncOp::print(OpAsmPrinter &p) { in print()
2340 LogicalResult LLVMFuncOp::verify() { in verify()
[all …]
H A DROCDLDialect.cpp176 if (!isa<LLVM::LLVMFuncOp>(op)) { in verifyOperationAttribute()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DOpToFuncCallLowering.h41 using LLVM::LLVMFuncOp; in matchAndRewrite()
62 LLVMFuncOp funcOp = appendOrGetFuncOp(funcName, funcType, op); in matchAndRewrite()
101 LLVM::LLVMFuncOp appendOrGetFuncOp(StringRef funcName, Type funcType, in appendOrGetFuncOp()
103 using LLVM::LLVMFuncOp; in appendOrGetFuncOp()
108 return cast<LLVMFuncOp>(*funcOp); in appendOrGetFuncOp()
110 mlir::OpBuilder b(op->getParentOfType<LLVMFuncOp>()); in appendOrGetFuncOp()
111 return b.create<LLVMFuncOp>(op->getLoc(), funcName, funcType); in appendOrGetFuncOp()
H A DGPUOpsLowering.cpp69 auto llvmFuncOp = rewriter.create<LLVM::LLVMFuncOp>( in matchAndRewrite()
152 static LLVM::LLVMFuncOp getOrDefineFunction(T &moduleOp, const Location loc, in getOrDefineFunction()
156 LLVM::LLVMFuncOp ret; in getOrDefineFunction()
157 if (!(ret = moduleOp.template lookupSymbol<LLVM::LLVMFuncOp>(name))) { in getOrDefineFunction()
160 ret = rewriter.create<LLVM::LLVMFuncOp>(loc, name, type, in getOrDefineFunction()
184 LLVM::LLVMFuncOp ocklAppendArgs; in matchAndRewrite()
301 LLVM::LLVMFuncOp printfDecl = in matchAndRewrite()
H A DGPUToLLVMConversion.cpp391 if (auto function = module.lookupSymbol<LLVM::LLVMFuncOp>(functionName)) in create()
394 .create<LLVM::LLVMFuncOp>(loc, functionName, functionType); in create()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/
H A DConvertLaunchFuncToVulkanCalls.cpp295 builder.create<LLVM::LLVMFuncOp>( in declareVulkanFunctions()
302 builder.create<LLVM::LLVMFuncOp>( in declareVulkanFunctions()
310 builder.create<LLVM::LLVMFuncOp>( in declareVulkanFunctions()
318 builder.create<LLVM::LLVMFuncOp>( in declareVulkanFunctions()
339 builder.create<LLVM::LLVMFuncOp>(loc, fnName, fnType); in declareVulkanFunctions()
345 builder.create<LLVM::LLVMFuncOp>( in declareVulkanFunctions()
350 builder.create<LLVM::LLVMFuncOp>( in declareVulkanFunctions()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DDebugTranslation.h26 class LLVMFuncOp; variable
40 void translate(LLVMFuncOp func, llvm::Function &llvmFunc);
H A DModuleTranslation.cpp802 LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) { in convertOneFunction()
921 for (auto function : getModuleBody(mlirModule).getOps<LLVMFuncOp>()) { in convertFunctionSignatures()
941 for (auto function : getModuleBody(mlirModule).getOps<LLVMFuncOp>()) { in convertFunctions()
1158 if (!isa<LLVM::LLVMFuncOp, LLVM::GlobalOp, LLVM::GlobalCtorsOp, in translateModuleToLLVMIR()
H A DDebugTranslation.cpp79 void DebugTranslation::translate(LLVMFuncOp func, llvm::Function &llvmFunc) { in translate()
H A DConvertFromLLVMIR.cpp222 while (it != endIt && !isa<LLVMFuncOp>(it)) in getGlobalInsertPt()
1190 LLVMFuncOp fop = b.create<LLVMFuncOp>( in processFunction()
/llvm-project-15.0.7/mlir/lib/ExecutionEngine/
H A DJitRunner.cpp245 auto mainFunction = module.lookupSymbol<LLVM::LLVMFuncOp>(entryPoint); in compileAndExecuteVoidFunction()
254 Error checkCompatibleReturnType(LLVM::LLVMFuncOp mainFunction);
256 Error checkCompatibleReturnType<int32_t>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType()
266 Error checkCompatibleReturnType<int64_t>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType()
276 Error checkCompatibleReturnType<float>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType()
288 auto mainFunction = module.lookupSymbol<LLVM::LLVMFuncOp>(entryPoint); in compileAndExecuteSingleReturnFunction()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/ROCDL/
H A DROCDLToLLVMIRTranslation.cpp69 auto func = dyn_cast<LLVM::LLVMFuncOp>(op); in amendOperation()
89 auto func = dyn_cast<LLVM::LLVMFuncOp>(op); in amendOperation()
/llvm-project-15.0.7/mlir/lib/Conversion/ControlFlowToLLVM/
H A DControlFlowToLLVM.cpp46 auto abortFunc = module.lookupSymbol<LLVM::LLVMFuncOp>("abort"); in matchAndRewrite()
51 abortFunc = rewriter.create<LLVM::LLVMFuncOp>(rewriter.getUnknownLoc(), in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/FuncToLLVM/
H A DFuncToLLVM.cpp129 LLVM::LLVMFuncOp newFuncOp) { in wrapForExternalCallers()
140 auto wrapperFuncOp = rewriter.create<LLVM::LLVMFuncOp>( in wrapForExternalCallers()
189 LLVM::LLVMFuncOp newFuncOp) { in wrapExternalFunction()
208 auto wrapperFunc = builder.create<LLVM::LLVMFuncOp>( in wrapExternalFunction()
286 LLVM::LLVMFuncOp
347 auto newFuncOp = rewriter.create<LLVM::LLVMFuncOp>( in convertFuncOpToLLVMFuncOp()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToLLVM.cpp120 if (module.lookupSymbol<LLVM::LLVMFuncOp>("printf")) in getOrInsertPrintf()
133 rewriter.create<LLVM::LLVMFuncOp>(module.getLoc(), "printf", llvmFnType); in getOrInsertPrintf()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToLLVM.cpp120 if (module.lookupSymbol<LLVM::LLVMFuncOp>("printf")) in getOrInsertPrintf()
133 rewriter.create<LLVM::LLVMFuncOp>(module.getLoc(), "printf", llvmFnType); in getOrInsertPrintf()
/llvm-project-15.0.7/mlir/include/mlir/Target/LLVMIR/
H A DModuleTranslation.h44 class LLVMFuncOp; variable
277 LogicalResult convertOneFunction(LLVMFuncOp func);
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DConvertLaunchFuncToLLVMCalls.cpp188 auto kernelFunc = module.lookupSymbol<LLVM::LLVMFuncOp>( in matchAndRewrite()
193 kernelFunc = rewriter.create<LLVM::LLVMFuncOp>( in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenACC/
H A DOpenACCToLLVMIRTranslation.cpp70 auto funcOp = op->getParentOfType<LLVM::LLVMFuncOp>(); in createSourceLocationInfo()
283 auto enclosingFuncOp = op.getOperation()->getParentOfType<LLVM::LLVMFuncOp>(); in convertDataOp()
432 op.getOperation()->template getParentOfType<LLVM::LLVMFuncOp>(); in convertStandaloneDataOp()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/NVVM/
H A DNVVMToLLVMIRTranslation.cpp120 auto func = dyn_cast<LLVM::LLVMFuncOp>(op); in amendOperation()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp315 static mlir::LLVM::LLVMFuncOp
380 mlir::LLVM::LLVMFuncOp memSizeFn = in matchAndRewrite()
991 static mlir::LLVM::LLVMFuncOp
994 if (mlir::LLVM::LLVMFuncOp mallocFunc = in getMalloc()
1000 return moduleBuilder.create<mlir::LLVM::LLVMFuncOp>( in getMalloc()
1066 static mlir::LLVM::LLVMFuncOp
1069 if (mlir::LLVM::LLVMFuncOp freeFunc = in getFree()
1074 return moduleBuilder.create<mlir::LLVM::LLVMFuncOp>( in getFree()
1120 mlir::LLVM::LLVMFuncOp
1123 return mlir::isa<mlir::LLVM::LLVMFuncOp>(parentOp) in getFuncForAllocaInsert()
[all …]
/llvm-project-15.0.7/mlir/docs/Tutorials/Toy/
H A DCh-6.md36 if (module.lookupSymbol<LLVM::LLVMFuncOp>("printf"))
50 rewriter.create<LLVM::LLVMFuncOp>(module.getLoc(), "printf", llvmFnType);
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DPattern.cpp255 LLVM::LLVMFuncOp freeFunc, mallocFunc; in copyUnrankedDescriptors()

12