Lines Matching refs:G1
53 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F() local
55 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
56 EXPECT_EQ(&Mem1, Engine->getPointerToGlobalIfAvailable(G1)); 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()
73 EXPECT_EQ(&Mem2, Engine->getPointerToGlobalIfAvailable(G1)) in TEST_F()
78 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F() local
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()
86 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
91 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem2)); in TEST_F()
92 Engine->updateGlobalMapping(G1, nullptr); in TEST_F()
104 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F() local
107 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
108 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
122 GlobalVariable *G1 = NewExtGlobal(Type::getInt32Ty(Context), "Global1"); in TEST_F() local
124 Engine->addGlobalMapping(G1, &Mem1); in TEST_F()
126 EXPECT_EQ(G1, Engine->getGlobalValueAtAddress(&Mem1)); in TEST_F()
129 G1->eraseFromParent(); in TEST_F()