llvm::SlotIndex

SlotIndex - An opaque wrapper around machine indexes.

Synopsis

Declared in <llvm/CodeGen/SlotIndexes.h>

class SlotIndex;

Enums

NameDescription
Unnamed enum Constants related to SlotIndex spacing.

Member Functions

NameDescription
SlotIndex [constructor]Constructors
distance Return the distance from this index to the given one.
dump Dump this index to stderr.
getApproxInstrDistance Return the approximate instruction distance to other.
getBaseIndex Returns the base index associated with this index.
getBoundaryIndex Returns the boundary index associated with this index.
getDeadSlot Returns the dead def kill slot for the current instruction.
getNextIndex Returns the next index. This is the index corresponding to the this index's slot, but for the next instruction.
getNextSlot Returns the next slot in the index list.
getPrevIndex Returns the previous index. This is the index corresponding to this index's slot, but for the previous instruction.
getPrevSlot Returns the previous slot in the index list.
getRegSlot Returns the register use/def slot in the current instruction for a normal or early-clobber def.
isBlock isBlock - Returns true if this is a block boundary slot.
isDead isDead - Returns true if this is a dead def kill slot.
isEarlyClobber isEarlyClobber - Returns true if this is an early-clobber slot.
isRegister isRegister - Returns true if this is a normal register use/def slot. Note that early-clobber slots may also be used for uses and defs.
isValid Returns true if this is a valid index. Invalid indices do not point into an index table, and cannot be compared.
print Print this index to the given raw_ostream.
operator bool Return true for a valid index.
operator== Compare two SlotIndex objects for equality.
operator!= Compare two SlotIndex objects for inequality.
operator< Compare two SlotIndex objects. Return true if the first index is strictly lower than the second.
operator<= Compare two SlotIndex objects. Return true if the first index is lower than, or equal to, the second.
operator> Compare two SlotIndex objects. Return true if the first index is greater than the second.
operator>= Compare two SlotIndex objects. Return true if the first index is greater than, or equal to, the second.

Static Member Functions

NameDescription
isEarlierEqualInstr Return true if A refers to the same instruction as B or an earlier one. This is equivalent to !isEarlierInstr(B, A).
isEarlierInstr isEarlierInstr - Return true if A refers to an instruction earlier than B. This is equivalent to A < B && !isSameInstr(A, B).
isSameInstr isSameInstr - Return true if A and B refer to the same instruction.

Friends

NameDescription
llvm::SlotIndexesSlotIndexes pass.

Non-Member Functions

NameDescription
operator<Return true if slot index V is before segment S.