Home
last modified time | relevance | path

Searched refs:NumReferences (Results 1 – 6 of 6) sorted by relevance

/external/llvm/include/llvm/Analysis/
DCallGraph.h181 inline CallGraphNode(Function *F) : F(F), NumReferences(0) {} in CallGraphNode()
184 assert(NumReferences == 0 && "Node deleted while references remain"); in ~CallGraphNode()
202 unsigned getNumReferences() const { return NumReferences; } in getNumReferences()
281 unsigned NumReferences; variable
286 void DropRef() { --NumReferences; } in DropRef()
287 void AddRef() { ++NumReferences; } in AddRef()
290 void allReferencesDropped() { NumReferences = 0; } in allReferencesDropped()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DCallGraph.h180 assert(NumReferences == 0 && "Node deleted while references remain"); in ~CallGraphNode()
198 unsigned getNumReferences() const { return NumReferences; } in getNumReferences()
278 unsigned NumReferences = 0; variable
280 void DropRef() { --NumReferences; } in DropRef()
281 void AddRef() { ++NumReferences; } in AddRef()
284 void allReferencesDropped() { NumReferences = 0; } in allReferencesDropped()
/external/llvm-project/llvm/include/llvm/Analysis/
DCallGraph.h198 assert(NumReferences == 0 && "Node deleted while references remain"); in ~CallGraphNode()
216 unsigned getNumReferences() const { return NumReferences; } in getNumReferences()
298 unsigned NumReferences = 0; variable
300 void DropRef() { --NumReferences; } in DropRef()
301 void AddRef() { ++NumReferences; } in AddRef()
304 void allReferencesDropped() { NumReferences = 0; } in allReferencesDropped()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DBackgroundIndexTests.cpp51 MATCHER_P(NumReferences, N, "") { return arg.References == N; }
204 UnorderedElementsAre(AllOf(Named("common"), NumReferences(1U)), in TEST_F()
205 AllOf(Named("A_CC"), NumReferences(0U)), in TEST_F()
206 AllOf(Named("g"), NumReferences(1U)), in TEST_F()
208 Not(Defined()), NumReferences(0U)))); in TEST_F()
217 UnorderedElementsAre(AllOf(Named("common"), NumReferences(5U)), in TEST_F()
218 AllOf(Named("A_CC"), NumReferences(0U)), in TEST_F()
219 AllOf(Named("g"), NumReferences(1U)), in TEST_F()
221 NumReferences(1U)))); in TEST_F()
262 UnorderedElementsAre(AllOf(Named("header_sym"), NumReferences(1U)), in TEST_F()
[all …]
DFileIndexTests.cpp63 MATCHER_P(NumReferences, N, "") { return arg.References == N; }
504 UnorderedElementsAre(AllOf(QName("1"), NumReferences(0u)), in TEST()
505 AllOf(QName("2"), NumReferences(0u)), in TEST()
506 AllOf(QName("3"), NumReferences(0u)))); in TEST()
526 UnorderedElementsAre(AllOf(QName("1"), NumReferences(1u)), in TEST()
527 AllOf(QName("2"), NumReferences(1u)), in TEST()
528 AllOf(QName("3"), NumReferences(1u)))); in TEST()
DCodeCompleteTests.cpp182 constexpr int NumReferences = 100000; in TEST() local
185 {ns("clangA"), withReferences(NumReferences, func("clangD"))}, in TEST()
191 {withReferences(NumReferences, ns("clangA")), func("clangD")}, in TEST()