Manage lifetime of a slot tracker for printing IR.
Synopsis
Declared in <llvm/IR/ModuleSlotTracker.h>
class ModuleSlotTracker;
Description
Wrapper around the SlotTracker used internally by AsmWriter. This class allows callers to share the cost of incorporating the metadata in a module or a function.
If the IR changes from underneath ModuleSlotTracker, strings like "<badref>" will be printed, or, worse, the wrong slots entirely.
Type Aliases
Name |
Description |
List of metadata nodes paired with their assigned slot numbers. |
Member Functions
Name |
Description |
|
Constructors |
|
Destructor to clean up storage. |
Collect metadata nodes whose slots fall in []`LB,` |
|
Return the function currently incorporated into the slot tracker. |
|
Return the slot number of the specified local value. |
|
Lazily creates a slot tracker. |
|
Return the module whose slots are being tracked. |
|
Incorporate the given function. |
|
|
Derived Classes
Name |
Description |
Module slot tracker that also numbers MachineFunction metadata. |
Created with MrDocs