LLVM 24.0.0git
llvm::MachineModuleSlotTracker Class Reference

#include "llvm/CodeGen/MachineModuleSlotTracker.h"

Inheritance diagram for llvm::MachineModuleSlotTracker:
[legend]

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.
SlotTrackergetMachine ()
 Lazily creates a slot tracker.
const ModulegetModule () const
const FunctiongetCurrentFunction () 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.

Detailed Description

Definition at line 27 of file MachineModuleSlotTracker.h.

Constructor & Destructor Documentation

◆ MachineModuleSlotTracker()

◆ ~MachineModuleSlotTracker()

MachineModuleSlotTracker::~MachineModuleSlotTracker ( )
overridedefault

Member Function Documentation

◆ collectMachineMDNodes()

void MachineModuleSlotTracker::collectMachineMDNodes ( MachineMDNodeListType & L) const

◆ renumberMetadataForAssembly()

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().

◆ shouldPrintDebugLocationInline()

bool MachineModuleSlotTracker::shouldPrintDebugLocationInline ( const DILocation * ) const
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().


The documentation for this class was generated from the following files: