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

Method SetLLVMObjectCache

cpp/src/gandiva/engine.cc:307–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305} // namespace
306
307Status Engine::SetLLVMObjectCache(GandivaObjectCache& object_cache) {
308 auto cached_buffer = object_cache.getObject(nullptr);
309 if (cached_buffer) {
310 auto error = lljit_->addObjectFile(std::move(cached_buffer));
311 if (error) {
312 return Status::CodeGenError("Failed to add cached object file to LLJIT: ",
313 llvm::toString(std::move(error)));
314 }
315 }
316 return Status::OK();
317}
318
319void Engine::InitOnce() {
320 DCHECK_EQ(llvm_init, false);

Callers 2

MakeMethod · 0.45
MakeMethod · 0.45

Calls 3

CodeGenErrorFunction · 0.85
getObjectMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected