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