The structure of the serialized stable function map is as follows: - Number of unique function/module names - Total size of unique function/module names for opt-in skipping - Unique function/module names - Padding to align to 4 bytes - Number of StableFunctionEntries - Hashes of each StableFunctionEntry - Fixed-size fields for each StableFunctionEntry (the order is consistent with the hashes above): - FunctionNameId - ModuleNameId - InstCount - Relative offset to the beginning of IndexOperandHashes for this entry - Total size of variable-sized IndexOperandHashes for lazy-loading support - Variable-sized IndexOperandHashes for each StableFunctionEntry: - Number of IndexOperandHashes - Contents of each IndexOperandHashes - InstIndex - OpndIndex - OpndHash
Declared in <llvm/CGData/StableFunctionMapRecord.h>
struct StableFunctionMapRecord;
| Name | Description |
|---|---|
StableFunctionMapRecord [constructor] | Constructors |
deserialize | Deserialize the stable function map from a raw_ostream. |
deserializeYAML | Deserialize the stable function map from a YAML stream. |
empty | |
finalize | Finalize the stable function map by trimming content. |
lazyDeserialize | Lazily deserialize the stable function map from Buffer starting at Offset. The individual stable function entry would be read lazily from Buffer when the function map is accessed. |
merge | Merge the stable function map into this one. |
print | Print the stable function map in a YAML format. |
serialize | Serialize the stable function map to a raw_ostream. |
serializeYAML | Serialize the stable function map to a YAML stream. |
setReadStableFunctionMapNames | Set whether to read stable function names from the buffer. Has no effect if the function map is read from a YAML stream. |
| Name | Description |
|---|---|
deserializeEntry | A static helper function to deserialize the stable function map entry. Ptr should be pointing to the start of the fixed-sized fields of the entry when passed in. |
serialize | A static helper function to serialize the stable function map without owning the stable function map. |
| Name |
|---|
FunctionMap |