Lines Matching refs:mainFunction
188 auto mainFunction = module.lookupSymbol<LLVM::LLVMFuncOp>(entryPoint); in compileAndExecuteVoidFunction() local
189 if (!mainFunction || mainFunction.empty()) in compileAndExecuteVoidFunction()
196 Error checkCompatibleReturnType(LLVM::LLVMFuncOp mainFunction);
198 Error checkCompatibleReturnType<int32_t>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType() argument
199 if (!mainFunction.getType().getFunctionResultType().isIntegerTy(32)) in checkCompatibleReturnType()
204 Error checkCompatibleReturnType<int64_t>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType() argument
205 if (!mainFunction.getType().getFunctionResultType().isIntegerTy(64)) in checkCompatibleReturnType()
210 Error checkCompatibleReturnType<float>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType() argument
211 if (!mainFunction.getType().getFunctionResultType().isFloatTy()) in checkCompatibleReturnType()
219 auto mainFunction = module.lookupSymbol<LLVM::LLVMFuncOp>(entryPoint); in compileAndExecuteSingleReturnFunction() local
220 if (!mainFunction || mainFunction.isExternal()) in compileAndExecuteSingleReturnFunction()
223 if (mainFunction.getType().getFunctionNumParams() != 0) in compileAndExecuteSingleReturnFunction()
226 if (Error error = checkCompatibleReturnType<Type>(mainFunction)) in compileAndExecuteSingleReturnFunction()