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

Method SetLLVMObjectCache

cpp/src/gandiva/engine.cc:286–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284} // namespace
285
286Status Engine::SetLLVMObjectCache(GandivaObjectCache& object_cache) {
287 auto cached_buffer = object_cache.getObject(nullptr);
288 if (cached_buffer) {
289 auto error = lljit_->addObjectFile(std::move(cached_buffer));
290 if (error) {
291 return Status::CodeGenError("Failed to add cached object file to LLJIT: ",
292 llvm::toString(std::move(error)));
293 }
294 }
295 return Status::OK();
296}
297
298void Engine::InitOnce() {
299 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