15#ifndef LLVM_PROFILEDATA_CTXINSTRPROFILEREADER_H
16#define LLVM_PROFILEDATA_CTXINSTRPROFILEREADER_H
65 return Callsites.
find(
I) != Callsites.
end();
70 return Callsites.
find(
I)->second;
83 readContext(
bool ExpectIndex);
84 bool canReadContext();
This file defines the DenseSet and SmallDenseSet classes.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This represents a position within a bitcode file, implemented on top of a SimpleBitstreamCursor.
iterator find(const_arg_type_t< KeyT > Val)
Implements a dense probed hash-table based set.
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
The loaded contextual profile, suitable for mutation during IPO passes.
GlobalValue::GUID guid() const
std::map< GlobalValue::GUID, PGOContextualProfile > CallTargetMapTy
PGOContextualProfile(PGOContextualProfile &&)=default
bool hasCallsite(uint32_t I) const
CallsiteMapTy & callsites()
const SmallVectorImpl< uint64_t > & counters() const
PGOContextualProfile & operator=(PGOContextualProfile &&)=default
void getContainedGuids(DenseSet< GlobalValue::GUID > &Guids) const
const CallsiteMapTy & callsites() const
PGOContextualProfile(const PGOContextualProfile &)=delete
const CallTargetMapTy & callsite(uint32_t I) const
PGOContextualProfile & operator=(const PGOContextualProfile &)=delete
Expected< std::map< GlobalValue::GUID, PGOContextualProfile > > loadContexts()
PGOCtxProfileReader(BitstreamCursor &Cursor)
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.