Lines Matching refs:Engine
33 Engine.reset(EngineBuilder(std::move(Owner)).setErrorStr(&Error).create()); in ExecutionEngineTest()
37 ASSERT_TRUE(Engine.get() != nullptr) << "EngineBuilder returned error: '" in SetUp()
48 std::unique_ptr<ExecutionEngine> Engine; member in __anon227680320111::ExecutionEngineTest
55 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
56 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
57 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable("Global1")); in TEST_F()
59 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
60 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
61 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
62 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
63 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
64 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)); in TEST_F()
68 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G2)) in TEST_F()
72 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
73 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G2)); in TEST_F()
74 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
83 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
84 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
86 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
87 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
88 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
92 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
93 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
94 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
95 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
96 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)) in TEST_F()
98 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
99 Engine->updateGlobalMapping(G2, &Mem2); in TEST_F()
100 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
101 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem2)) in TEST_F()
111 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
112 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
114 Engine->clearGlobalMappingsFromModule(M); in TEST_F()
116 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
122 Engine->addGlobalMapping(G2, &Mem1); in TEST_F()
123 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
130 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
132 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
136 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()