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()
49 std::unique_ptr<ExecutionEngine> Engine; member in __anonb8dda6fa0111::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()
67 EXPECT_EQ(nullptr, Engine->getPointerToGlobalIfAvailable(G2)) in TEST_F()
71 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
72 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G2)); in TEST_F()
73 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
81 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
82 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
84 Engine->updateGlobalMapping(G1, &Mem2); in TEST_F()
85 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
86 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
89 Engine->updateGlobalMapping(G2, &Mem1); in TEST_F()
90 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
91 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
92 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
93 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)) in TEST_F()
95 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
96 Engine->updateGlobalMapping(G2, &Mem2); in TEST_F()
97 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
98 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem2)) in TEST_F()
107 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
108 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
110 Engine->clearGlobalMappingsFromModule(M); in TEST_F()
112 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
117 Engine->addGlobalMapping(G2, &Mem1); in TEST_F()
118 EXPECT_EQ(G2, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
124 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
126 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
130 EXPECT_EQ(nullptr, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()