Searched refs:mainFunction (Results 1 – 2 of 2) sorted by relevance
188 auto mainFunction = module.lookupSymbol<LLVM::LLVMFuncOp>(entryPoint); in compileAndExecuteVoidFunction() local189 if (!mainFunction || mainFunction.empty()) in compileAndExecuteVoidFunction()196 Error checkCompatibleReturnType(LLVM::LLVMFuncOp mainFunction);198 Error checkCompatibleReturnType<int32_t>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType() argument199 if (!mainFunction.getType().getFunctionResultType().isIntegerTy(32)) in checkCompatibleReturnType()204 Error checkCompatibleReturnType<int64_t>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType() argument205 if (!mainFunction.getType().getFunctionResultType().isIntegerTy(64)) in checkCompatibleReturnType()210 Error checkCompatibleReturnType<float>(LLVM::LLVMFuncOp mainFunction) { in checkCompatibleReturnType() argument211 if (!mainFunction.getType().getFunctionResultType().isFloatTy()) in checkCompatibleReturnType()219 auto mainFunction = module.lookupSymbol<LLVM::LLVMFuncOp>(entryPoint); in compileAndExecuteSingleReturnFunction() local[all …]
42 const TFunction *mainFunction = node.getFunction(); in visitFunctionDefinitionPre() local46 for (size_t i = 0; i < mainFunction->getParamCount(); ++i) in visitFunctionDefinitionPre()48 const TVariable *param = mainFunction->getParam(i); in visitFunctionDefinitionPre()