MCPcopy Create free account
hub / github.com/apache/arrow / LoadExternalPreCompiledIR

Method LoadExternalPreCompiledIR

cpp/src/gandiva/engine.cc:458–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458Status Engine::LoadExternalPreCompiledIR() {
459 const auto& buffers = function_registry_->GetBitcodeBuffers();
460 for (const auto& buffer : buffers) {
461 auto llvm_memory_buffer_ref = AsLLVMMemoryBuffer(*buffer);
462 auto module_or_error = llvm::parseBitcodeFile(llvm_memory_buffer_ref, *context());
463 ARROW_ASSIGN_OR_RAISE(
464 auto src_ir_module,
465 AsArrowResult(module_or_error, "Failed to verify and link module: "));
466 RemoveBuildTargetAttributes(*src_ir_module);
467 ARROW_RETURN_NOT_OK(VerifyAndLinkModule(*module_, std::move(src_ir_module)));
468 }
469
470 return Status::OK();
471}
472
473// Get rid of all functions that don't need to be compiled.
474// This helps in reducing the overall compilation time. This pass is trivial,

Callers

nothing calls this directly

Calls 5

AsLLVMMemoryBufferFunction · 0.85
VerifyAndLinkModuleFunction · 0.85
contextFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected