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

Method GetLlvmEmptyFunction

be/src/codegen/llvm-codegen-cache-test.cc:227–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void LlvmCodeGenCacheTest::GetLlvmEmptyFunction(
228 LlvmCodeGen* codegen, llvm::Function** func) {
229 ASSERT_TRUE(codegen != nullptr);
230 LlvmCodeGen::FnPrototype prototype(codegen, "TestEmpty", codegen->void_type());
231 LlvmBuilder builder(codegen->context());
232 llvm::Function* fn = prototype.GeneratePrototype(&builder, nullptr);
233 builder.CreateRetVoid();
234 fn = codegen->FinalizeFunction(fn);
235 ASSERT_TRUE(fn != nullptr);
236 *func = fn;
237}
238
239void LlvmCodeGenCacheTest::AddLlvmCodegenDouble(
240 LlvmCodeGen* codegen, string* module_id = nullptr, bool doFinalizeModule = true) {

Callers

nothing calls this directly

Calls 4

void_typeMethod · 0.80
contextMethod · 0.80
GeneratePrototypeMethod · 0.80
FinalizeFunctionMethod · 0.80

Tested by

no test coverage detected