LLVM 22.0.0git
llvm::PerTargetMIParsingState Struct Reference

#include "llvm/CodeGen/MIRParser/MIParser.h"

Public Member Functions

bool parseInstrName (StringRef InstrName, unsigned &OpCode)
 Try to convert an instruction name to an opcode.
bool getRegisterByName (StringRef RegName, Register &Reg)
 Try to convert a register name to a register number.
const uint32_tgetRegMask (StringRef Identifier)
 Check if the given identifier is a name of a register mask.
unsigned getSubRegIndex (StringRef Name)
 Check if the given identifier is a name of a subregister index.
bool getTargetIndex (StringRef Name, int &Index)
 Try to convert a name of target index to the corresponding target index.
bool getDirectTargetFlag (StringRef Name, unsigned &Flag)
 Try to convert a name of a direct target flag to the corresponding target flag.
bool getBitmaskTargetFlag (StringRef Name, unsigned &Flag)
 Try to convert a name of a bitmask target flag to the corresponding target flag.
bool getMMOTargetFlag (StringRef Name, MachineMemOperand::Flags &Flag)
 Try to convert a name of a MachineMemOperand target flag to the corresponding target flag.
const TargetRegisterClassgetRegClass (StringRef Name)
 Check if the given identifier is a name of a register class.
const RegisterBankgetRegBank (StringRef Name)
 Check if the given identifier is a name of a register bank.
bool getVRegFlagValue (StringRef FlagName, uint8_t &FlagValue) const
 PerTargetMIParsingState (const TargetSubtargetInfo &STI)
 ~PerTargetMIParsingState ()=default
void setTarget (const TargetSubtargetInfo &NewSubtarget)

Detailed Description

Definition at line 54 of file MIParser.h.

Constructor & Destructor Documentation

◆ PerTargetMIParsingState()

llvm::PerTargetMIParsingState::PerTargetMIParsingState ( const TargetSubtargetInfo & STI)
inline

Definition at line 154 of file MIParser.h.

◆ ~PerTargetMIParsingState()

llvm::PerTargetMIParsingState::~PerTargetMIParsingState ( )
default

Member Function Documentation

◆ getBitmaskTargetFlag()

bool PerTargetMIParsingState::getBitmaskTargetFlag ( StringRef Name,
unsigned & Flag )

Try to convert a name of a bitmask target flag to the corresponding target flag.

Return true if the name isn't a name of a bitmask target flag.

Definition at line 248 of file MIParser.cpp.

◆ getDirectTargetFlag()

bool PerTargetMIParsingState::getDirectTargetFlag ( StringRef Name,
unsigned & Flag )

Try to convert a name of a direct target flag to the corresponding target flag.

Return true if the name isn't a name of a direct flag.

Definition at line 226 of file MIParser.cpp.

◆ getMMOTargetFlag()

bool PerTargetMIParsingState::getMMOTargetFlag ( StringRef Name,
MachineMemOperand::Flags & Flag )

Try to convert a name of a MachineMemOperand target flag to the corresponding target flag.

Return true if the name isn't a name of a target MMO flag.

Definition at line 269 of file MIParser.cpp.

◆ getRegBank()

const RegisterBank * PerTargetMIParsingState::getRegBank ( StringRef Name)

Check if the given identifier is a name of a register bank.

Return null if the name isn't a register bank.

Definition at line 316 of file MIParser.cpp.

◆ getRegClass()

const TargetRegisterClass * PerTargetMIParsingState::getRegClass ( StringRef Name)

Check if the given identifier is a name of a register class.

Return null if the name isn't a register class.

Definition at line 309 of file MIParser.cpp.

◆ getRegisterByName()

bool PerTargetMIParsingState::getRegisterByName ( StringRef RegName,
Register & Reg )

Try to convert a register name to a register number.

Return true if the register name is invalid.

Definition at line 118 of file MIParser.cpp.

References RegName.

◆ getRegMask()

const uint32_t * PerTargetMIParsingState::getRegMask ( StringRef Identifier)

Check if the given identifier is a name of a register mask.

Return null if the identifier isn't a register mask.

Definition at line 170 of file MIParser.cpp.

◆ getSubRegIndex()

unsigned PerTargetMIParsingState::getSubRegIndex ( StringRef Name)

Check if the given identifier is a name of a subregister index.

Return 0 if the name isn't a subregister index class.

Definition at line 187 of file MIParser.cpp.

◆ getTargetIndex()

bool PerTargetMIParsingState::getTargetIndex ( StringRef Name,
int & Index )

Try to convert a name of target index to the corresponding target index.

Return true if the name isn't a name of a target index.

Definition at line 205 of file MIParser.cpp.

◆ getVRegFlagValue()

bool PerTargetMIParsingState::getVRegFlagValue ( StringRef FlagName,
uint8_t & FlagValue ) const

Definition at line 128 of file MIParser.cpp.

References TRI.

◆ parseInstrName()

bool PerTargetMIParsingState::parseInstrName ( StringRef InstrName,
unsigned & OpCode )

Try to convert an instruction name to an opcode.

Return true if the instruction name is invalid.

Definition at line 147 of file MIParser.cpp.

◆ setTarget()

void PerTargetMIParsingState::setTarget ( const TargetSubtargetInfo & NewSubtarget)

Definition at line 80 of file MIParser.cpp.


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