| /llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/ |
| H A D | FunctionCallUtils.h | 29 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 D | FunctionCallUtils.cpp | 47 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 D | LLVMDialect.cpp | 83 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 D | ROCDLDialect.cpp | 176 if (!isa<LLVM::LLVMFuncOp>(op)) { in verifyOperationAttribute()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | OpToFuncCallLowering.h | 41 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 D | GPUOpsLowering.cpp | 69 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 D | GPUToLLVMConversion.cpp | 391 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 D | ConvertLaunchFuncToVulkanCalls.cpp | 295 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 D | DebugTranslation.h | 26 class LLVMFuncOp; variable 40 void translate(LLVMFuncOp func, llvm::Function &llvmFunc);
|
| H A D | ModuleTranslation.cpp | 802 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 D | DebugTranslation.cpp | 79 void DebugTranslation::translate(LLVMFuncOp func, llvm::Function &llvmFunc) { in translate()
|
| H A D | ConvertFromLLVMIR.cpp | 222 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 D | JitRunner.cpp | 245 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 D | ROCDLToLLVMIRTranslation.cpp | 69 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 D | ControlFlowToLLVM.cpp | 46 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 D | FuncToLLVM.cpp | 129 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 D | LowerToLLVM.cpp | 120 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 D | LowerToLLVM.cpp | 120 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 D | ModuleTranslation.h | 44 class LLVMFuncOp; variable 277 LogicalResult convertOneFunction(LLVMFuncOp func);
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/ |
| H A D | ConvertLaunchFuncToLLVMCalls.cpp | 188 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 D | OpenACCToLLVMIRTranslation.cpp | 70 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 D | NVVMToLLVMIRTranslation.cpp | 120 auto func = dyn_cast<LLVM::LLVMFuncOp>(op); in amendOperation()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | CodeGen.cpp | 315 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 D | Ch-6.md | 36 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 D | Pattern.cpp | 255 LLVM::LLVMFuncOp freeFunc, mallocFunc; in copyUnrankedDescriptors()
|