Lines Matching refs:AC

41   static AnnotationCache AC;  in getAnnotationCache()  local
42 return AC; in getAnnotationCache()
47 auto &AC = getAnnotationCache(); in clearAnnotationCache() local
48 std::lock_guard<sys::Mutex> Guard(AC.Lock); in clearAnnotationCache()
49 AC.Cache.erase(Mod); in clearAnnotationCache()
53 auto &AC = getAnnotationCache(); in cacheAnnotationFromMD() local
54 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD()
80 auto &AC = getAnnotationCache(); in cacheAnnotationFromMD() local
81 std::lock_guard<sys::Mutex> Guard(AC.Lock); in cacheAnnotationFromMD()
104 if (AC.Cache.find(m) != AC.Cache.end()) in cacheAnnotationFromMD()
105 AC.Cache[m][gv] = std::move(tmp); in cacheAnnotationFromMD()
109 AC.Cache[m] = std::move(tmp1); in cacheAnnotationFromMD()
115 auto &AC = getAnnotationCache(); in findOneNVVMAnnotation() local
116 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findOneNVVMAnnotation()
118 if (AC.Cache.find(m) == AC.Cache.end()) in findOneNVVMAnnotation()
120 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findOneNVVMAnnotation()
122 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findOneNVVMAnnotation()
124 retval = AC.Cache[m][gv][prop][0]; in findOneNVVMAnnotation()
130 auto &AC = getAnnotationCache(); in findAllNVVMAnnotation() local
131 std::lock_guard<sys::Mutex> Guard(AC.Lock); in findAllNVVMAnnotation()
133 if (AC.Cache.find(m) == AC.Cache.end()) in findAllNVVMAnnotation()
135 else if (AC.Cache[m].find(gv) == AC.Cache[m].end()) in findAllNVVMAnnotation()
137 if (AC.Cache[m][gv].find(prop) == AC.Cache[m][gv].end()) in findAllNVVMAnnotation()
139 retval = AC.Cache[m][gv][prop]; in findAllNVVMAnnotation()