Lines Matching refs:gv
69 static void cacheAnnotationFromMD(const Module *m, const GlobalValue *gv) { in cacheAnnotationFromMD() argument
83 if (entity != gv) in cacheAnnotationFromMD()
94 (*annotationCache)[m][gv] = std::move(tmp); in cacheAnnotationFromMD()
97 tmp1[gv] = std::move(tmp); in cacheAnnotationFromMD()
102 bool llvm::findOneNVVMAnnotation(const GlobalValue *gv, std::string prop, in findOneNVVMAnnotation() argument
105 const Module *m = gv->getParent(); in findOneNVVMAnnotation()
107 cacheAnnotationFromMD(m, gv); in findOneNVVMAnnotation()
108 else if ((*annotationCache)[m].find(gv) == (*annotationCache)[m].end()) in findOneNVVMAnnotation()
109 cacheAnnotationFromMD(m, gv); in findOneNVVMAnnotation()
110 if ((*annotationCache)[m][gv].find(prop) == (*annotationCache)[m][gv].end()) in findOneNVVMAnnotation()
112 retval = (*annotationCache)[m][gv][prop][0]; in findOneNVVMAnnotation()
116 bool llvm::findAllNVVMAnnotation(const GlobalValue *gv, std::string prop, in findAllNVVMAnnotation() argument
119 const Module *m = gv->getParent(); in findAllNVVMAnnotation()
121 cacheAnnotationFromMD(m, gv); in findAllNVVMAnnotation()
122 else if ((*annotationCache)[m].find(gv) == (*annotationCache)[m].end()) in findAllNVVMAnnotation()
123 cacheAnnotationFromMD(m, gv); in findAllNVVMAnnotation()
124 if ((*annotationCache)[m][gv].find(prop) == (*annotationCache)[m][gv].end()) in findAllNVVMAnnotation()
126 retval = (*annotationCache)[m][gv][prop]; in findAllNVVMAnnotation()
131 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isTexture() local
134 gv, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISTEXTURE], in isTexture()
144 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSurface() local
147 gv, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISSURFACE], in isSurface()
157 if (const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isSampler() local
160 gv, llvm::PropertyAnnotationNames[llvm::PROPERTY_ISSAMPLER], in isSampler()
230 if(const GlobalValue *gv = dyn_cast<GlobalValue>(&val)) { in isManaged() local
232 if(llvm::findOneNVVMAnnotation(gv, in isManaged()