|
LLVM 24.0.0git
|
#include "llvm/CodeGen/MachineModuleSlotTracker.h"
Public Member Functions | |
| MachineModuleSlotTracker (MFGetterFnT Fn, const MachineFunction *MF) | |
| ~MachineModuleSlotTracker () override | |
| void | renumberMetadataForAssembly () |
| Renumber module and machine metadata for canonical MIR output. | |
| void | collectMachineMDNodes (MachineMDNodeListType &L) const |
| bool | shouldPrintDebugLocationInline (const DILocation *DL) const override |
| Return whether a debug location should be printed inline instead of by ID. | |
| Public Member Functions inherited from llvm::ModuleSlotTracker | |
| ModuleSlotTracker (SlotTracker &Machine, const Module *M, const Function *F=nullptr) | |
| Wrap a preinitialized SlotTracker. | |
| ModuleSlotTracker (const Module *M) | |
| Construct a slot tracker from a module. | |
| virtual | ~ModuleSlotTracker () |
| Destructor to clean up storage. | |
| SlotTracker * | getMachine () |
| Lazily creates a slot tracker. | |
| const Module * | getModule () const |
| const Function * | getCurrentFunction () const |
| void | incorporateFunction (const Function &F) |
| Incorporate the given function. | |
| int | getLocalSlot (const Value *V) |
| Return the slot number of the specified local value. | |
| void | setProcessHook (std::function< void(AbstractSlotTrackerStorage *, const Module *)>) |
| void | setProcessHook (std::function< void(AbstractSlotTrackerStorage *, const Function *)>) |
| void | collectMDNodes (MachineMDNodeListType &L) const |
Additional Inherited Members | |
| Public Types inherited from llvm::ModuleSlotTracker | |
| using | MachineMDNodeListType |
| Protected Member Functions inherited from llvm::ModuleSlotTracker | |
| void | renumberMetadataForAssembly (ArrayRef< const MDNode * > AdditionalMetadata, MachineMDNodeListType *AdditionalMetadataNodes=nullptr) const |
| Renumber module metadata and then additional metadata for canonical assembly output. | |
| void | collectAdditionalMetadata (ArrayRef< const MDNode * > AdditionalMetadata, MachineMDNodeListType &AdditionalMetadataNodes) const |
Collect metadata reachable from AdditionalMetadata but not from the module. | |
Definition at line 27 of file MachineModuleSlotTracker.h.
| MachineModuleSlotTracker::MachineModuleSlotTracker | ( | MFGetterFnT | Fn, |
| const MachineFunction * | MF ) |
Definition at line 86 of file MachineModuleSlotTracker.cpp.
References llvm::cast(), llvm::ModuleSlotTracker::collectAdditionalMetadata(), llvm::SmallPtrSetImpl< PtrType >::contains(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), getFunction(), getParent(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::isa(), and llvm::ModuleSlotTracker::ModuleSlotTracker().
|
overridedefault |
References collectMachineMDNodes(), DL, renumberMetadataForAssembly(), and shouldPrintDebugLocationInline().
| void MachineModuleSlotTracker::collectMachineMDNodes | ( | MachineMDNodeListType & | L | ) | const |
Definition at line 71 of file MachineModuleSlotTracker.cpp.
Referenced by convertMachineMetadataNodes(), and ~MachineModuleSlotTracker().
| void MachineModuleSlotTracker::renumberMetadataForAssembly | ( | ) |
Renumber module and machine metadata for canonical MIR output.
Definition at line 76 of file MachineModuleSlotTracker.cpp.
References llvm::ModuleSlotTracker::renumberMetadataForAssembly().
Referenced by llvm::PrintMIRPass::run(), and ~MachineModuleSlotTracker().
|
overridevirtual |
Return whether a debug location should be printed inline instead of by ID.
Reimplemented from llvm::ModuleSlotTracker.
Definition at line 19 of file MachineModuleSlotTracker.cpp.
References DL.
Referenced by ~MachineModuleSlotTracker().