MCPcopy Create free account
hub / github.com/apache/impala / GetFunction

Method GetFunction

be/src/codegen/llvm-codegen.cc:733–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733llvm::Function* LlvmCodeGen::GetFunction(const string& symbol, bool clone) {
734 llvm::Function* fn = module_->getFunction(symbol.c_str());
735 if (fn == NULL) {
736 LOG(ERROR) << "Unable to locate function " << symbol;
737 return NULL;
738 }
739 Status status = MaterializeFunction(fn);
740 if (UNLIKELY(!status.ok())) return NULL;
741 if (clone) return CloneFunction(fn);
742 return fn;
743}
744
745llvm::Function* LlvmCodeGen::GetFunction(IRFunction::Type ir_type, bool clone) {
746 llvm::Function* fn = cross_compiled_functions_[ir_type];

Callers 10

EqMethod · 0.45
EqToNativePtrMethod · 0.45
CompareMethod · 0.45
CodegenGetFnCtxMethod · 0.45
GetLenOptimizedHashFnFunction · 0.45
TEST_FFunction · 0.45
CodegenStringTestFunction · 0.45
LoadTestOptMethod · 0.45

Calls 2

getFunctionMethod · 0.65
okMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
CodegenStringTestFunction · 0.36
LoadTestOptMethod · 0.36