Verify that a valid pc function exists for every function in the registry.
| 57 | |
| 58 | // Verify that a valid pc function exists for every function in the registry. |
| 59 | TEST_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 | |
| 69 | TEST_F(TestLLVMGenerator, TestAdd) { |
| 70 | // Setup LLVM generator to do an arithmetic add of two vectors |
nothing calls this directly
no test coverage detected