Home
last modified time | relevance | path

Searched refs:AllocationType (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp34 AllocationType llvm::memprof::getAllocType(uint64_t MaxAccessCount, in getAllocType()
40 return AllocationType::Cold; in getAllocType()
41 return AllocationType::NotCold; in getAllocType()
61 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { in getMIBAllocType()
69 return AllocationType::Cold; in getMIBAllocType()
70 return AllocationType::NotCold; in getMIBAllocType()
75 case AllocationType::NotCold: in getAllocTypeAttributeString()
78 case AllocationType::Cold: in getAllocTypeAttributeString()
88 AllocationType AllocType) { in addAllocTypeAttribute()
100 void CallStackTrie::addCallStack(AllocationType AllocType, in addCallStack()
[all …]
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DMemoryProfileInfoTest.cpp58 AllocationType::NotCold); in TEST_F()
64 AllocationType::Cold); in TEST_F()
70 AllocationType::NotCold); in TEST_F()
76 AllocationType::NotCold); in TEST_F()
116 Trie1.addCallStack(AllocationType::Cold, {1, 2}); in TEST_F()
117 Trie1.addCallStack(AllocationType::Cold, {1, 3, 4}); in TEST_F()
127 Trie2.addCallStack(AllocationType::NotCold, {5, 6}); in TEST_F()
159 Trie.addCallStack(AllocationType::Cold, {1, 2}); in TEST_F()
160 Trie.addCallStack(AllocationType::NotCold, {1, 3}); in TEST_F()
211 Trie.addCallStack(AllocationType::Cold, {1, 2, 3}); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DMemoryProfileInfo.h30 enum class AllocationType : uint8_t { None = 0, NotCold = 1, Cold = 2 }; enum
33 AllocationType getAllocType(uint64_t MaxAccessCount, uint64_t MinSize,
44 AllocationType getMIBAllocType(const MDNode *MIB);
59 CallStackTrieNode(AllocationType Type) in CallStackTrieNode()
93 void addCallStack(AllocationType AllocType, ArrayRef<uint64_t> StackIds);