LLVM 22.0.0git
llvm::HexagonBlockRanges::InstrIndexMap Class Reference

#include "Target/Hexagon/HexagonBlockRanges.h"

Public Member Functions

 InstrIndexMap (MachineBasicBlock &B)
MachineInstrgetInstr (IndexType Idx) const
IndexType getIndex (MachineInstr *MI) const
MachineBasicBlockgetBlock () const
IndexType getPrevIndex (IndexType Idx) const
IndexType getNextIndex (IndexType Idx) const
void replaceInstr (MachineInstr *OldMI, MachineInstr *NewMI)

Public Attributes

IndexType First
IndexType Last

Friends

raw_ostreamoperator<< (raw_ostream &OS, const InstrIndexMap &Map)

Detailed Description

Definition at line 125 of file HexagonBlockRanges.h.

Constructor & Destructor Documentation

◆ InstrIndexMap()

HexagonBlockRanges::InstrIndexMap::InstrIndexMap ( MachineBasicBlock & B)

Member Function Documentation

◆ getBlock()

MachineBasicBlock & llvm::HexagonBlockRanges::InstrIndexMap::getBlock ( ) const
inline

Definition at line 131 of file HexagonBlockRanges.h.

Referenced by llvm::HexagonBlockRanges::computeDeadMap().

◆ getIndex()

HexagonBlockRanges::IndexType HexagonBlockRanges::InstrIndexMap::getIndex ( MachineInstr * MI) const

Definition at line 175 of file HexagonBlockRanges.cpp.

References I, MI, and llvm::HexagonBlockRanges::IndexType::None.

Referenced by InstrIndexMap().

◆ getInstr()

MachineInstr * HexagonBlockRanges::InstrIndexMap::getInstr ( IndexType Idx) const

Definition at line 170 of file HexagonBlockRanges.cpp.

References F.

◆ getNextIndex()

◆ getPrevIndex()

◆ replaceInstr()

void HexagonBlockRanges::InstrIndexMap::replaceInstr ( MachineInstr * OldMI,
MachineInstr * NewMI )

Definition at line 205 of file HexagonBlockRanges.cpp.

References I.

◆ operator<<

raw_ostream & operator<< ( raw_ostream & OS,
const InstrIndexMap & Map )
friend

References InstrIndexMap().

Member Data Documentation

◆ First

IndexType llvm::HexagonBlockRanges::InstrIndexMap::First

Definition at line 138 of file HexagonBlockRanges.h.

Referenced by getPrevIndex(), and InstrIndexMap().

◆ Last

IndexType llvm::HexagonBlockRanges::InstrIndexMap::Last

Definition at line 138 of file HexagonBlockRanges.h.

Referenced by getNextIndex(), getPrevIndex(), and InstrIndexMap().


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