Lines Matching defs:GV
208 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name));
209 if (!GV)
210 GV = CreateGlobalCallback();
211 assert(GV && "The CreateGlobalCallback is expected to create a global");
215 Type *GVTy = GV->getType();
218 return ConstantExpr::getBitCast(GV, PTy);
221 return GV;
438 Error Module::materialize(GlobalValue *GV) {
442 return Materializer->materialize(GV);
487 for (GlobalVariable &GV : globals())
488 GV.dropAllReferences();
666 GlobalVariable *GV = M.getGlobalVariable(Name);
667 if (!GV || !GV->hasInitializer())
668 return GV;
670 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
675 return GV;