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

Method DestroyModule

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

Source from the content-addressed store, hash-verified

1539}
1540
1541void LlvmCodeGen::DestroyModule() {
1542 // Clear all references to LLVM objects owned by the module.
1543 cross_compiled_functions_.clear();
1544 handcrafted_functions_.clear();
1545 registered_exprs_map_.clear();
1546 registered_exprs_.clear();
1547 llvm_intrinsics_.clear();
1548 hash_fns_.clear();
1549 fns_to_jit_compile_.clear();
1550 execution_engine()->removeModule(module_);
1551 module_ = NULL;
1552}
1553
1554void LlvmCodeGen::AddFunctionToJit(llvm::Function* fn, CodegenFnPtrBase* fn_ptr) {
1555 DCHECK(finalized_functions_.find(fn) != finalized_functions_.end())

Callers 2

CheckResultMethod · 0.80
CreateObjCacheMethod · 0.80

Calls 1

clearMethod · 0.65

Tested by 2

CheckResultMethod · 0.64
CreateObjCacheMethod · 0.64