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:610

Member Variables

private llvm::MCSubRegIterator SRIter
private const uint16_t* SRIndex

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:617

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:623

unsigned int getSubRegIndex() const

Description

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

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

bool isValid() const

Description

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

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