Home
last modified time | relevance | path

Searched refs:ContextKey (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DPerfReader.h333 struct ContextKey { struct
335 virtual ~ContextKey() = default; argument
342 virtual bool isEqual(const ContextKey *K) const { in isEqual() argument
350 ContextKey(ContextKind K) : Kind(K){}; in ContextKey() argument
354 struct StringBasedCtxKey : public ContextKey {
359 static bool classof(const ContextKey *K) { in classof()
363 bool isEqual(const ContextKey *K) const override { in isEqual()
374 struct AddrBasedCtxKey : public ContextKey {
379 static bool classof(const ContextKey *K) { in classof()
383 bool isEqual(const ContextKey *K) const override { in isEqual()
[all …]
H A DPerfReader.cpp184 std::shared_ptr<ContextKey> Key = Stack.getContextKey(); in collectSamplesFromFrame()
187 auto Ret = CtxCounterMap->emplace(Hashable<ContextKey>(Key), SampleCounter()); in collectSamplesFromFrame()
460 static std::string getContextKeyStr(ContextKey *K, in getContextKeyStr()
850 SampleCounters.emplace(Hashable<ContextKey>(Key), SampleCounter()); in readUnsymbolizedProfile()
901 SampleCounters.emplace(Hashable<ContextKey>(Key), SampleCounter()); in generateUnsymbolizedProfile()