struct ValueProfData
Declaration
struct ValueProfData { /* full declaration omitted */ };
Description
Per-function header/control data structure for value profiling data in indexed format.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:336
Member Variables
- public uint32_t TotalSize
- public uint32_t NumValueKinds
Method Overview
- public llvm::Error checkIntegrity()
- public void deserializeTo(llvm::InstrProfRecord & Record, llvm::InstrProfSymtab * SymTab)
- public static uint32_t getSize(const llvm::InstrProfRecord & Record)
- public uint32_t getSize() const
- public static Expected<std::unique_ptr<ValueProfData>> getValueProfData(const unsigned char * SrcBuffer, const unsigned char *const SrcBufferEnd, support::endianness SrcDataEndianness)
- public static std::unique_ptr<ValueProfData> serializeFrom(const llvm::InstrProfRecord & Record)
- public void swapBytesFromHost(support::endianness Endianness)
- public void swapBytesToHost(support::endianness Endianness)
Methods
¶llvm::Error checkIntegrity()
llvm::Error checkIntegrity()
Description
Check the integrity of the record.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:374
¶void deserializeTo(llvm::InstrProfRecord& Record,
llvm::InstrProfSymtab* SymTab)
void deserializeTo(llvm::InstrProfRecord& Record,
llvm::InstrProfSymtab* SymTab)
Description
Read data from this data and save it to \c Record.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:399
Parameters
- llvm::InstrProfRecord& Record
- llvm::InstrProfSymtab* SymTab
¶static uint32_t getSize(
const llvm::InstrProfRecord& Record)
static uint32_t getSize(
const llvm::InstrProfRecord& Record)
Description
Return the total size in bytes of the on-disk value profile data given the data stored in Record.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:365
Parameters
- const llvm::InstrProfRecord& Record
¶uint32_t getSize() const
uint32_t getSize() const
Description
Return the total size of \c ValueProfileData.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:395
¶static Expected<std::unique_ptr<ValueProfData>>
getValueProfData(
const unsigned char* SrcBuffer,
const unsigned char* const SrcBufferEnd,
support::endianness SrcDataEndianness)
static Expected<std::unique_ptr<ValueProfData>>
getValueProfData(
const unsigned char* SrcBuffer,
const unsigned char* const SrcBufferEnd,
support::endianness SrcDataEndianness)
Description
Return a pointer to \c ValueProfileData instance ready to be read. All data in the instance are properly byte swapped. The input data is assumed to be in little endian order.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:381
Parameters
- const unsigned char* SrcBuffer
- const unsigned char* const SrcBufferEnd
- support::endianness SrcDataEndianness
¶static std::unique_ptr<ValueProfData>
serializeFrom(const llvm::InstrProfRecord& Record)
static std::unique_ptr<ValueProfData>
serializeFrom(const llvm::InstrProfRecord& Record)
Description
Return a pointer to \c ValueProfData instance ready to be streamed.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:370
Parameters
- const llvm::InstrProfRecord& Record
¶void swapBytesFromHost(
support::endianness Endianness)
void swapBytesFromHost(
support::endianness Endianness)
Description
Swap byte order from host byte order to \c Endianness order.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:391
Parameters
- support::endianness Endianness
¶void swapBytesToHost(
support::endianness Endianness)
void swapBytesToHost(
support::endianness Endianness)
Description
Swap byte order from \c Endianness order to host byte order.
Declared at: llvm/include/llvm/ProfileData/InstrProfData.inc:387
Parameters
- support::endianness Endianness