class MCSubRegIndexIterator

Declaration

class MCSubRegIndexIterator { /* full declaration omitted */ };

Description

Iterator that enumerates the sub-registers of a Reg and the associated sub-register indices.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:600

Method Overview

Methods

MCSubRegIndexIterator(
    llvm::MCRegister Reg,
    const llvm::MCRegisterInfo* MCRI)

Description

Constructs an iterator that traverses subregisters and their associated subregister indices.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:607

Parameters

llvm::MCRegister Reg
const llvm::MCRegisterInfo* MCRI

llvm::MCRegister getSubReg() const

Description

Returns current sub-register.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:613

unsigned int getSubRegIndex() const

Description

Returns sub-register index of the current sub-register.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:618

bool isValid() const

Description

Returns true if this iterator is not yet at the end.

Declared at: llvm/include/llvm/MC/MCRegisterInfo.h:623