MCPcopy Create free account
hub / github.com/apache/cloudberry / llvm_inline

Function llvm_inline

src/backend/jit/llvm/llvmjit_inline.cpp:158–167  ·  view source on GitHub ↗

* Perform inlining of external function references in M based on a simple * cost based analysis. */

Source from the content-addressed store, hash-verified

156 * cost based analysis.
157 */
158void
159llvm_inline(LLVMModuleRef M)
160{
161 llvm::Module *mod = llvm::unwrap(M);
162
163 std::unique_ptr<ImportMapTy> globalsToInline = llvm_build_inline_plan(mod);
164 if (!globalsToInline)
165 return;
166 llvm_execute_inline_plan(mod, globalsToInline.get());
167}
168
169/*
170 * Build information necessary for inlining external function references in

Callers 1

llvm_compile_moduleFunction · 0.85

Calls 3

llvm_build_inline_planFunction · 0.85
llvm_execute_inline_planFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected