Home
last modified time | relevance | path

Searched refs:RefCount (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h77 mutable unsigned RefCount = 0; variable
86 assert(RefCount == 0 && in ~RefCountedBase()
96 void Retain() const { ++RefCount; } in Retain()
99 assert(RefCount > 0 && "Reference count is already zero."); in Release()
100 if (--RefCount == 0) in Release()
107 mutable std::atomic<int> RefCount{0};
117 assert(RefCount == 0 && in ~ThreadSafeRefCountedBase()
127 void Retain() const { RefCount.fetch_add(1, std::memory_order_relaxed); } in Retain()
130 int NewRefCount = RefCount.fetch_sub(1, std::memory_order_acq_rel) - 1; in Release()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DAliasAnalysisEvaluator.h38 int64_t NoModRefCount = 0, ModCount = 0, RefCount = 0, ModRefCount = 0; variable
49 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
H A DAliasSetTracker.h150 unsigned RefCount : 27; variable
183 void addRef() { ++RefCount; } in addRef()
186 assert(RefCount >= 1 && "Invalid reference count detected!"); in dropRef()
187 if (--RefCount == 0) in dropRef()
268 : PtrListEnd(&PtrList), RefCount(0), AliasAny(false), Access(NoAccess), in AliasSet()
/llvm-project-15.0.7/clang/include/clang/Rewrite/Core/
H A DRewriteRope.h34 unsigned RefCount; member
37 void Retain() { ++RefCount; } in Retain()
40 assert(RefCount > 0 && "Reference count is already zero."); in Release()
41 if (--RefCount == 0) in Release()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DInterferenceCache.h54 unsigned RefCount = 0; variable
113 void addRef(int Delta) { RefCount += Delta; } in addRef()
115 bool hasRefs() const { return RefCount > 0; } in hasRefs()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_buffer_queue.cpp46 if (atomic_fetch_sub(&C->RefCount, 1, memory_order_acq_rel) == 1) in decRefCount()
53 atomic_fetch_add(&C->RefCount, 1, memory_order_acq_rel); in incRefCount()
115 atomic_store(&BackingStore->RefCount, 1, memory_order_release); in init()
116 atomic_store(&ExtentsBackingStore->RefCount, 1, memory_order_release); in init()
H A Dxray_buffer_queue.h44 atomic_uint64_t RefCount; member
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DAliasAnalysisEvaluator.cpp234 ++RefCount; in runInternal()
281 ++RefCount; in runInternal()
344 int64_t ModRefSum = NoModRefCount + RefCount + ModCount + ModRefCount + in ~AAEvaluator()
355 errs() << " " << RefCount << " ref responses "; in ~AAEvaluator()
356 PrintPercent(RefCount, ModRefSum); in ~AAEvaluator()
369 << ModCount * 100 / ModRefSum << "%/" << RefCount * 100 / ModRefSum in ~AAEvaluator()
H A DAliasSetTracker.cpp123 assert(RefCount == 0 && "Cannot remove non-dead alias set from tracker!"); in removeFromTracker()
618 OS << " AliasSet[" << (const void*)this << ", " << RefCount << "] "; in print()
/llvm-project-15.0.7/clang/test/Analysis/inlining/
H A Dfalse-positive-suppression.cpp7 class RefCount { class
30 RefCount<ParserInputState> inputState;
/llvm-project-15.0.7/openmp/libomptarget/include/
H A Ddevice.h57 static std::string refCountToStr(uint64_t RefCount) { in refCountToStr()
58 return RefCount == INFRefCount ? "INF" : std::to_string(RefCount); in refCountToStr()
/llvm-project-15.0.7/openmp/tools/archer/
H A Dompt-tsan.cpp499 std::atomic_int RefCount{1}; member
550 Parent->RefCount++; in Init()
571 RefCount = 1; in Reset()
690 assert(Data->RefCount == 1 && in ompt_tsan_implicit_task()
882 while (task != nullptr && --task->RefCount == 0) { in freeTask()
/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp168 unsigned RefCount; member
171 : CPEMI(Cpemi), CPI(Cpi), RefCount(Rc) {} in CPEntry()
575 CPE->RefCount++; in initializeFunctionInfo()
835 if (--CPE->RefCount == 0) { in decrementCPEReferenceCount()
884 CPEs[I].RefCount++; in findInRangeCPEntry()
1203 if (CPEs[J].RefCount == 0 && CPEs[J].CPEMI) { in removeUnusedCPEntries()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp306 unsigned RefCount; member
309 : CPEMI(cpemi), CPI(cpi), RefCount(rc) {} in CPEntry()
772 CPE->RefCount++; in initializeFunctionInfo()
1025 if (--CPE->RefCount == 0) { in decrementCPEReferenceCount()
1075 CPE.RefCount++; in findInRangeCPEntry()
1131 CPE.RefCount++; in findLongFormInRangeCPEntry()
1440 if (CPE.RefCount == 0 && CPE.CPEMI) { in removeUnusedCPEntries()
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Delfnix_platform.cpp88 size_t RefCount = 0; member
206 ++JDS->RefCount; in dlopen()
394 ++JDS.RefCount; in initializeJITDylib()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h170 mutable unsigned RefCount = 0; variable
172 void Retain() const { ++RefCount; } in Retain()
1360 assert(RefCount > 0 && "Reference count is already zero."); in Release()
1361 --RefCount; in Release()
1363 if (RefCount > 0) in Release()
/llvm-project-15.0.7/openmp/docs/design/
H A DRuntimes.rst812 TgtPtrBegin=0x00007fdba5800000, Size=16384, RefCount=1, Name=X[0:N]
816 TgtPtrBegin=0x00007fdba5804000, Size=16384, RefCount=1, Name=Y[0:N]
820 Info: Host Ptr Target Ptr Size (B) RefCount Declaration
831 TgtPtrBegin=0x00007fdba5808000, Size=16, RefCount=1, Name=D
837 TgtPtrBegin=0x00007fdba5804000, Size=0, RefCount=2 (update suppressed)
839 TgtPtrBegin=0x00007fdba5808000, Size=16, RefCount=1 (update suppressed)
841 TgtPtrBegin=0x00007fdba5800000, Size=0, RefCount=2 (update suppressed)
845 TgtPtrBegin=0x00007fdba5800000, Size=0, RefCount=1 (decremented)
851 TgtPtrBegin=0x00007fdba5804000, Size=0, RefCount=1 (decremented)
855 Info: Host Ptr Target Ptr Size (B) RefCount Declaration
[all …]
/llvm-project-15.0.7/clang/lib/Rewrite/
H A DRewriteRope.cpp790 Res->RefCount = 0; in MakeRopeString()
800 Res->RefCount = 0; in MakeRopeString()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp162 unsigned RefCount; member
165 : CPEMI(cpemi), CPI(cpi), RefCount(rc) {} in CPEntry()
938 CPE->RefCount++; in initializeFunctionInfo()
1199 if (--CPE->RefCount == 0) { in decrementCPEReferenceCount()
1255 CPE.RefCount++; in findInRangeCPEntry()
1678 if (CPE.RefCount == 0 && CPE.CPEMI) { in removeUnusedCPEntries()
2389 ++Entry->RefCount; in optimizeThumb2JumpTables()