MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/gandiva/llvm_generator_test.cc:59–67  ·  view source on GitHub ↗

Verify that a valid pc function exists for every function in the registry.

Source from the content-addressed store, hash-verified

57
58// Verify that a valid pc function exists for every function in the registry.
59TEST_F(TestLLVMGenerator, VerifyPCFunctions) {
60 ASSERT_OK_AND_ASSIGN(auto generator, LLVMGenerator::Make(TestConfiguration(), false));
61
62 llvm::Module* module = generator->module();
63 ASSERT_OK(generator->engine_->LoadFunctionIRs());
64 for (auto& iter : *registry_) {
65 EXPECT_NE(module->getFunction(iter.pc_name()), nullptr);
66 }
67}
68
69TEST_F(TestLLVMGenerator, TestAdd) {
70 // Setup LLVM generator to do an arithmetic add of two vectors

Callers

nothing calls this directly

Calls 12

TestConfigWithCFunctionFunction · 0.85
LoadFunctionIRsMethod · 0.80
LookupSignatureMethod · 0.80
CodeGenExprValueMethod · 0.80
FinalizeModuleMethod · 0.80
moduleMethod · 0.45
nameMethod · 0.45
return_typeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected