Lines Matching refs:Engine
32 Engine.reset(EngineBuilder(std::move(Owner)).setErrorStr(&Error).create()); in ExecutionEngineTest()
36 ASSERT_TRUE(Engine.get() != nullptr) << "EngineBuilder returned error: '" in SetUp()
48 std::unique_ptr<ExecutionEngine> Engine; member in __anon46cf14060111::ExecutionEngineTest
54 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
55 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
56 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable("Global1")); in TEST_F()
58 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
59 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
60 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
61 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
62 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
63 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
66 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G2)) in TEST_F()
70 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
71 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G2)); in TEST_F()
72 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
80 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
81 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
83 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
84 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
85 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
88 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
89 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
90 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
91 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
92 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)) in TEST_F()
94 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
95 Engine->updateGlobalMapping(G2, &Mem2); in TEST_F()
96 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
97 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem2)) in TEST_F()
106 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
107 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
109 Engine->clearGlobalMappingsFromModule(M); in TEST_F()
111 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
116 Engine->addGlobalMapping(G2, &Mem1); in TEST_F()
117 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
123 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
125 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
129 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()