Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:GV

190   llvm::GlobalVariable *GV =
196 GV->setAlignment(getContext().getDeclAlign(&D).getQuantity());
198 GV->setVisibility(CurFn->getVisibility());
201 CGM.setTLSMode(GV, D);
203 return GV;
216 /// has a different type than GV does, this may free GV and return a different
217 /// one. Otherwise it just returns GV.
220 llvm::GlobalVariable *GV) {
231 GV->setConstant(false);
233 EmitCXXGuardedInit(D, GV, /*PerformInit*/true);
235 return GV;
242 if (GV->getType()->getElementType() != Init->getType()) {
243 llvm::GlobalVariable *OldGV = GV;
245 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
251 GV->setVisibility(OldGV->getVisibility());
254 GV->takeName(OldGV);
258 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
265 GV->setConstant(CGM.isTypeConstant(D.getType(), true));
266 GV->setInitializer(Init);
272 EmitCXXGuardedInit(D, GV, /*PerformInit*/false);
275 return GV;
329 // RAUW's the GV uses of this constant will be invalid.
1079 llvm::GlobalVariable *GV =
1083 GV->setAlignment(alignment.getQuantity());
1084 GV->setUnnamedAddr(true);
1086 llvm::Value *SrcPtr = GV;