| 434 | } |
| 435 | |
| 436 | Status Engine::LoadExternalPreCompiledIR() { |
| 437 | const auto& buffers = function_registry_->GetBitcodeBuffers(); |
| 438 | for (const auto& buffer : buffers) { |
| 439 | auto llvm_memory_buffer_ref = AsLLVMMemoryBuffer(*buffer); |
| 440 | auto module_or_error = llvm::parseBitcodeFile(llvm_memory_buffer_ref, *context()); |
| 441 | ARROW_RETURN_NOT_OK(VerifyAndLinkModule(*module_, std::move(module_or_error))); |
| 442 | } |
| 443 | |
| 444 | return Status::OK(); |
| 445 | } |
| 446 | |
| 447 | // Get rid of all functions that don't need to be compiled. |
| 448 | // This helps in reducing the overall compilation time. This pass is trivial, |
nothing calls this directly
no test coverage detected