Lines Matching +full:1 +full:ac
44 static AnnotationCache AC; in getAnnotationCache() local
45 return AC; in getAnnotationCache()
50 auto &AC = getAnnotationCache(); in clearAnnotationCache() local
51 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache()
52 AC.Cache.erase(Mod); in clearAnnotationCache()
66 auto &AC = getAnnotationCache(); in cacheAnnotationFromMD() local
67 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD()
69 assert((MetadataNode->getNumOperands() % 2) == 1 && in cacheAnnotationFromMD()
71 // start index = 1, to skip the global variable key in cacheAnnotationFromMD()
73 for (unsigned i = 1, e = MetadataNode->getNumOperands(); i != e; i += 2) { in cacheAnnotationFromMD()
81 MetadataNode->getOperand(i + 1))) { in cacheAnnotationFromMD()
84 dyn_cast<MDNode>(MetadataNode->getOperand(i + 1))) { in cacheAnnotationFromMD()
100 auto &AC = getAnnotationCache(); in cacheAnnotationFromMD() local
101 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD()
124 if (AC.Cache.find(m) != AC.Cache.end()) in cacheAnnotationFromMD()
125 AC.Cache[m][gv] = std::move(tmp); in cacheAnnotationFromMD()
129 AC.Cache[m] = std::move(tmp1); in cacheAnnotationFromMD()
135 auto &AC = getAnnotationCache(); in findOneNVVMAnnotation() local
136 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findOneNVVMAnnotation()
138 if (AC.Cache.find(m) == AC.Cache.end()) in findOneNVVMAnnotation()
140 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findOneNVVMAnnotation()
142 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findOneNVVMAnnotation()
144 retval = AC.Cache[m][gv][prop][0]; in findOneNVVMAnnotation()
158 auto &AC = getAnnotationCache(); in findAllNVVMAnnotation() local
159 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findAllNVVMAnnotation()
161 if (AC.Cache.find(m) == AC.Cache.end()) in findAllNVVMAnnotation()
163 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findAllNVVMAnnotation()
165 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findAllNVVMAnnotation()
167 retval = AC.Cache[m][gv][prop]; in findAllNVVMAnnotation()
175 assert((Annot == 1) && "Unexpected annotation on a texture symbol"); in isTexture()
186 assert((Annot == 1) && "Unexpected annotation on a surface symbol"); in isSurface()
200 const unsigned BaseOffset = StartArgIndexAtOne ? 1 : 0; in argHasNVVMAnnotation()
211 // "grid_constant" counts argument indices starting from 1 in isParamGridConstant()
229 assert((Annot == 1) && "Unexpected annotation on a sampler symbol"); in isSampler()
256 assert((Annot == 1) && "Unexpected annotation on a managed symbol"); in isManaged()
301 return MaxNTIDx.value_or(1) * MaxNTIDy.value_or(1) * MaxNTIDz.value_or(1); in getMaxNTID()
327 return ReqNTIDx.value_or(1) * ReqNTIDy.value_or(1) * ReqNTIDz.value_or(1); in getReqNTID()
345 return (x == 1); in isKernelFunction()