Lines Matching refs:VD
102 llvm::Optional<unsigned> Program::getGlobal(const ValueDecl *VD) { in getGlobal() argument
103 auto It = GlobalIndices.find(VD); in getGlobal()
109 for (const Decl *P = VD; P; P = P->getPreviousDecl()) { in getGlobal()
119 GlobalIndices[VD] = *Index; in getGlobal()
126 llvm::Optional<unsigned> Program::getOrCreateGlobal(const ValueDecl *VD) { in getOrCreateGlobal() argument
127 if (auto Idx = getGlobal(VD)) in getOrCreateGlobal()
130 if (auto Idx = createGlobal(VD)) { in getOrCreateGlobal()
131 GlobalIndices[VD] = *Idx; in getOrCreateGlobal()
156 llvm::Optional<unsigned> Program::createGlobal(const ValueDecl *VD) { in createGlobal() argument
158 if (auto *Var = dyn_cast<VarDecl>(VD)) { in createGlobal()
165 if (auto Idx = createGlobal(VD, VD->getType(), IsStatic, IsExtern)) { in createGlobal()
166 for (const Decl *P = VD; P; P = P->getPreviousDecl()) in createGlobal()