Lines Matching refs:VD
179 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(InitializedDecl)) { in CreateReferenceTemporary() local
180 if (VD->hasGlobalStorage()) { in CreateReferenceTemporary()
183 CGF.CGM.getCXXABI().getMangleContext().mangleReferenceTemporary(VD, Out); in CreateReferenceTemporary()
448 const VarDecl *VD = dyn_cast_or_null<VarDecl>(InitializedDecl); in EmitReferenceBindingToExpr() local
449 if (VD && VD->hasGlobalStorage()) { in EmitReferenceBindingToExpr()
476 bool precise = VD && VD->hasAttr<ObjCPreciseLifetimeAttr>(); in EmitReferenceBindingToExpr()
1219 if (const VarDecl *VD = dyn_cast<VarDecl>(Exp->getDecl())) { in setObjCGCLValueClass() local
1220 if (VD->hasGlobalStorage()) { in setObjCGCLValueClass()
1222 LV.setThreadLocalRef(VD->isThreadSpecified()); in setObjCGCLValueClass()
1299 const Expr *E, const VarDecl *VD) { in EmitGlobalVarDeclLValue() argument
1300 assert((VD->hasExternalStorage() || VD->isFileVarDecl()) && in EmitGlobalVarDeclLValue()
1303 llvm::Value *V = CGF.CGM.GetAddrOfGlobalVar(VD); in EmitGlobalVarDeclLValue()
1304 if (VD->getType()->isReferenceType()) in EmitGlobalVarDeclLValue()
1310 unsigned Alignment = CGF.getContext().getDeclAlign(VD).getQuantity(); in EmitGlobalVarDeclLValue()
1340 const ValueDecl *VD = cast<ValueDecl>(ND); in EmitDeclRefLValue() local
1341 llvm::Constant *Aliasee = CGM.GetWeakRefReference(VD); in EmitDeclRefLValue()
1345 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { in EmitDeclRefLValue() local
1348 if (VD->hasExternalStorage() || VD->isFileVarDecl()) in EmitDeclRefLValue()
1349 return EmitGlobalVarDeclLValue(*this, E, VD); in EmitDeclRefLValue()
1351 bool NonGCable = VD->hasLocalStorage() && in EmitDeclRefLValue()
1352 !VD->getType()->isReferenceType() && in EmitDeclRefLValue()
1353 !VD->hasAttr<BlocksAttr>(); in EmitDeclRefLValue()
1355 llvm::Value *V = LocalDeclMap[VD]; in EmitDeclRefLValue()
1356 if (!V && VD->isStaticLocal()) in EmitDeclRefLValue()
1357 V = CGM.getStaticLocalDeclAddress(VD); in EmitDeclRefLValue()
1360 if (VD->hasAttr<BlocksAttr>()) in EmitDeclRefLValue()
1361 V = BuildBlockByrefAddress(V, VD); in EmitDeclRefLValue()
1363 if (VD->getType()->isReferenceType()) in EmitDeclRefLValue()
1781 if (VarDecl *VD = dyn_cast<VarDecl>(ND)) in EmitMemberExpr() local
1782 return EmitGlobalVarDeclLValue(*this, E, VD); in EmitMemberExpr()