Lines Matching refs:GV
187 llvm::GlobalVariable *GV =
193 GV->setAlignment(getContext().getDeclAlign(&D).getQuantity());
195 GV->setVisibility(CurFn->getVisibility());
196 return GV;
209 /// has a different type than GV does, this may free GV and return a different
210 /// one. Otherwise it just returns GV.
213 llvm::GlobalVariable *GV) {
224 GV->setConstant(false);
226 EmitCXXGuardedInit(D, GV, /*PerformInit*/true);
228 return GV;
235 if (GV->getType()->getElementType() != Init->getType()) {
236 llvm::GlobalVariable *OldGV = GV;
238 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
244 GV->setVisibility(OldGV->getVisibility());
247 GV->takeName(OldGV);
251 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
258 GV->setConstant(CGM.isTypeConstant(D.getType(), true));
259 GV->setInitializer(Init);
265 EmitCXXGuardedInit(D, GV, /*PerformInit*/false);
268 return GV;
322 // RAUW's the GV uses of this constant will be invalid.
1054 llvm::GlobalVariable *GV =
1058 GV->setAlignment(alignment.getQuantity());
1059 GV->setUnnamedAddr(true);
1061 llvm::Value *SrcPtr = GV;