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

Method AddFunctionToJitInternal

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

Source from the content-addressed store, hash-verified

1591}
1592
1593void LlvmCodeGen::AddFunctionToJitInternal(llvm::Function* fn, CodegenFnPtrBase* fn_ptr) {
1594 DCHECK(fn != nullptr);
1595 DCHECK(fn_ptr != nullptr);
1596 const llvm::StringRef& fn_name = fn->getName();
1597
1598 auto it = fns_to_jit_compile_.find(fn_name);
1599 if (it == fns_to_jit_compile_.end()) {
1600 fns_to_jit_compile_[fn_name] = make_pair(fn, vector<CodegenFnPtrBase*>{fn_ptr});
1601 } else {
1602 it->second.second.push_back(fn_ptr);
1603 }
1604}
1605
1606void LlvmCodeGen::CodegenDebugTrace(
1607 LlvmBuilder* builder, const char* str, llvm::Value* v1) {

Callers 4

AddFunctionToJitMethod · 0.80
TestSkipCacheMethod · 0.80
AddFunctionToJitMethod · 0.80
AddFunctionToJitMethod · 0.80

Calls 4

push_backMethod · 0.80
getNameMethod · 0.65
findMethod · 0.45
endMethod · 0.45

Tested by 4

AddFunctionToJitMethod · 0.64
TestSkipCacheMethod · 0.64
AddFunctionToJitMethod · 0.64
AddFunctionToJitMethod · 0.64