reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

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