LLVM 22.0.0git
llvm::IndexListEntry Class Reference

This class represents an entry in the slot index list held in the SlotIndexes pass. More...

#include "llvm/CodeGen/SlotIndexes.h"

Inheritance diagram for llvm::IndexListEntry:
[legend]

Public Member Functions

 IndexListEntry (MachineInstr *mi, unsigned index)
MachineInstrgetInstr () const
void setInstr (MachineInstr *mi)
unsigned getIndex () const
void setIndex (unsigned index)
Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< IndexListEntry, Options... >::type >
self_iterator getIterator ()
reverse_self_iterator getReverseIterator ()
std::enable_if_t< T::is_sentinel_tracking_explicit, boolisSentinel () const
 Check whether this is the sentinel node.
Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< IndexListEntry, Options... >::type >, ilist_detail::compute_node_options< IndexListEntry, Options... >::type::parent_ty >
const ilist_detail::compute_node_options< IndexListEntry, Options... >::type::parent_ty * getParent () const
void setParent (ilist_detail::compute_node_options< IndexListEntry, Options... >::type::parent_ty *Parent)

Additional Inherited Members

Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< IndexListEntry, Options... >::type >
using self_iterator
using const_self_iterator
using reverse_self_iterator
using const_reverse_self_iterator
Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< IndexListEntry, Options... >::type >
 ilist_node_impl ()=default

Detailed Description

This class represents an entry in the slot index list held in the SlotIndexes pass.

It should not be used directly. See the SlotIndex & SlotIndexes classes for the public interface to this information.

Definition at line 47 of file SlotIndexes.h.

Constructor & Destructor Documentation

◆ IndexListEntry()

llvm::IndexListEntry::IndexListEntry ( MachineInstr * mi,
unsigned index )
inline

Definition at line 52 of file SlotIndexes.h.

Member Function Documentation

◆ getIndex()

unsigned llvm::IndexListEntry::getIndex ( ) const
inline

Definition at line 59 of file SlotIndexes.h.

Referenced by llvm::SlotIndex::getApproxInstrDistance().

◆ getInstr()

◆ setIndex()

void llvm::IndexListEntry::setIndex ( unsigned index)
inline

Definition at line 60 of file SlotIndexes.h.

◆ setInstr()


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