Home | History | Annotate | Download | only in Interp

Lines Matching refs:VD

87 llvm::Optional<unsigned> Program::getGlobal(const ValueDecl *VD) {
88 auto It = GlobalIndices.find(VD);
94 for (const Decl *P = VD; P; P = P->getPreviousDecl()) {
104 GlobalIndices[VD] = *Index;
111 llvm::Optional<unsigned> Program::getOrCreateGlobal(const ValueDecl *VD) {
112 if (auto Idx = getGlobal(VD))
115 if (auto Idx = createGlobal(VD)) {
116 GlobalIndices[VD] = *Idx;
141 llvm::Optional<unsigned> Program::createGlobal(const ValueDecl *VD) {
143 if (auto *Var = dyn_cast<VarDecl>(VD)) {
150 if (auto Idx = createGlobal(VD, VD->getType(), IsStatic, IsExtern)) {
151 for (const Decl *P = VD; P; P = P->getPreviousDecl())