| 598 | } |
| 599 | |
| 600 | void Engine::AddGlobalMappingForFunc(const std::string& name, llvm::Type* ret_type, |
| 601 | const std::vector<llvm::Type*>& args, void* func) { |
| 602 | const auto prototype = llvm::FunctionType::get(ret_type, args, /*is_var_arg*/ false); |
| 603 | llvm::Function::Create(prototype, llvm::GlobalValue::ExternalLinkage, name, module()); |
| 604 | AddAbsoluteSymbol(*lljit_, name, func); |
| 605 | } |
| 606 | |
| 607 | arrow::Status Engine::AddGlobalMappings() { |
| 608 | ARROW_RETURN_NOT_OK(ExportedFuncsRegistry::AddMappings(this)); |
no test coverage detected