LLVM 20.0.0git
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
llvm::MipsABIFlagsSection Struct Reference

#include "Target/Mips/MCTargetDesc/MipsABIFlagsSection.h"

Public Types

enum class  FpABIKind {
  ANY , XX , S32 , S64 ,
  SOFT
}
 

Public Member Functions

 MipsABIFlagsSection ()=default
 
uint16_t getVersionValue ()
 
uint8_t getISALevelValue ()
 
uint8_t getISARevisionValue ()
 
uint8_t getGPRSizeValue ()
 
uint8_t getCPR1SizeValue ()
 
uint8_t getCPR2SizeValue ()
 
uint8_t getFpABIValue ()
 
uint32_t getISAExtensionValue ()
 
uint32_t getASESetValue ()
 
uint32_t getFlags1Value ()
 
uint32_t getFlags2Value ()
 
FpABIKind getFpABI ()
 
void setFpABI (FpABIKind Value, bool IsABI32Bit)
 
StringRef getFpABIString (FpABIKind Value)
 
template<class PredicateLibrary >
void setISALevelAndRevisionFromPredicates (const PredicateLibrary &P)
 
template<class PredicateLibrary >
void setGPRSizeFromPredicates (const PredicateLibrary &P)
 
template<class PredicateLibrary >
void setCPR1SizeFromPredicates (const PredicateLibrary &P)
 
template<class PredicateLibrary >
void setISAExtensionFromPredicates (const PredicateLibrary &P)
 
template<class PredicateLibrary >
void setASESetFromPredicates (const PredicateLibrary &P)
 
template<class PredicateLibrary >
void setFpAbiFromPredicates (const PredicateLibrary &P)
 
template<class PredicateLibrary >
void setAllFromPredicates (const PredicateLibrary &P)
 

Public Attributes

uint16_t Version = 0
 
uint8_t ISALevel = 0
 
uint8_t ISARevision = 0
 
Mips::AFL_REG GPRSize = Mips::AFL_REG_NONE
 
Mips::AFL_REG CPR1Size = Mips::AFL_REG_NONE
 
Mips::AFL_REG CPR2Size = Mips::AFL_REG_NONE
 
Mips::AFL_EXT ISAExtension = Mips::AFL_EXT_NONE
 
uint32_t ASESet = 0
 
bool OddSPReg = false
 
bool Is32BitABI = false
 

Protected Attributes

FpABIKind FpABI = FpABIKind::ANY
 

Detailed Description

Definition at line 21 of file MipsABIFlagsSection.h.

Member Enumeration Documentation

◆ FpABIKind

Enumerator
ANY 
XX 
S32 
S64 
SOFT 

Definition at line 23 of file MipsABIFlagsSection.h.

Constructor & Destructor Documentation

◆ MipsABIFlagsSection()

llvm::MipsABIFlagsSection::MipsABIFlagsSection ( )
default

Member Function Documentation

◆ getASESetValue()

uint32_t llvm::MipsABIFlagsSection::getASESetValue ( )
inline

Definition at line 61 of file MipsABIFlagsSection.h.

References ASESet.

Referenced by llvm::operator<<().

◆ getCPR1SizeValue()

uint8_t MipsABIFlagsSection::getCPR1SizeValue ( )

Definition at line 50 of file MipsABIFlagsSection.cpp.

References llvm::Mips::AFL_REG_32, CPR1Size, FpABI, and XX.

Referenced by llvm::operator<<().

◆ getCPR2SizeValue()

uint8_t llvm::MipsABIFlagsSection::getCPR2SizeValue ( )
inline

Definition at line 58 of file MipsABIFlagsSection.h.

References CPR2Size.

Referenced by llvm::operator<<().

◆ getFlags1Value()

uint32_t llvm::MipsABIFlagsSection::getFlags1Value ( )
inline

Definition at line 63 of file MipsABIFlagsSection.h.

References llvm::Mips::AFL_FLAGS1_ODDSPREG, and OddSPReg.

Referenced by llvm::operator<<().

◆ getFlags2Value()

uint32_t llvm::MipsABIFlagsSection::getFlags2Value ( )
inline

Definition at line 72 of file MipsABIFlagsSection.h.

Referenced by llvm::operator<<().

◆ getFpABI()

FpABIKind llvm::MipsABIFlagsSection::getFpABI ( )
inline

Definition at line 74 of file MipsABIFlagsSection.h.

References FpABI.

Referenced by llvm::MipsTargetAsmStreamer::emitDirectiveModuleFP().

◆ getFpABIString()

StringRef MipsABIFlagsSection::getFpABIString ( FpABIKind  Value)

◆ getFpABIValue()

uint8_t MipsABIFlagsSection::getFpABIValue ( )

◆ getGPRSizeValue()

uint8_t llvm::MipsABIFlagsSection::getGPRSizeValue ( )
inline

Definition at line 56 of file MipsABIFlagsSection.h.

References GPRSize.

Referenced by llvm::operator<<().

◆ getISAExtensionValue()

uint32_t llvm::MipsABIFlagsSection::getISAExtensionValue ( )
inline

Definition at line 60 of file MipsABIFlagsSection.h.

References ISAExtension.

Referenced by llvm::operator<<().

◆ getISALevelValue()

uint8_t llvm::MipsABIFlagsSection::getISALevelValue ( )
inline

Definition at line 54 of file MipsABIFlagsSection.h.

References ISALevel.

Referenced by llvm::operator<<().

◆ getISARevisionValue()

uint8_t llvm::MipsABIFlagsSection::getISARevisionValue ( )
inline

Definition at line 55 of file MipsABIFlagsSection.h.

References ISARevision.

Referenced by llvm::operator<<().

◆ getVersionValue()

uint16_t llvm::MipsABIFlagsSection::getVersionValue ( )
inline

Definition at line 53 of file MipsABIFlagsSection.h.

References Version.

Referenced by llvm::operator<<().

◆ setAllFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setAllFromPredicates ( const PredicateLibrary &  P)
inline

◆ setASESetFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setASESetFromPredicates ( const PredicateLibrary &  P)
inline

◆ setCPR1SizeFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setCPR1SizeFromPredicates ( const PredicateLibrary &  P)
inline

◆ setFpABI()

void llvm::MipsABIFlagsSection::setFpABI ( FpABIKind  Value,
bool  IsABI32Bit 
)
inline

Definition at line 75 of file MipsABIFlagsSection.h.

References FpABI, and Is32BitABI.

◆ setFpAbiFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setFpAbiFromPredicates ( const PredicateLibrary &  P)
inline

Definition at line 174 of file MipsABIFlagsSection.h.

References ANY, FpABI, Is32BitABI, P, S32, S64, SOFT, and XX.

Referenced by setAllFromPredicates().

◆ setGPRSizeFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setGPRSizeFromPredicates ( const PredicateLibrary &  P)
inline

Definition at line 126 of file MipsABIFlagsSection.h.

References llvm::Mips::AFL_REG_32, llvm::Mips::AFL_REG_64, GPRSize, and P.

Referenced by setAllFromPredicates().

◆ setISAExtensionFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setISAExtensionFromPredicates ( const PredicateLibrary &  P)
inline

◆ setISALevelAndRevisionFromPredicates()

template<class PredicateLibrary >
void llvm::MipsABIFlagsSection::setISALevelAndRevisionFromPredicates ( const PredicateLibrary &  P)
inline

Definition at line 83 of file MipsABIFlagsSection.h.

References ISALevel, ISARevision, llvm_unreachable, and P.

Referenced by setAllFromPredicates().

Member Data Documentation

◆ ASESet

uint32_t llvm::MipsABIFlagsSection::ASESet = 0

Definition at line 40 of file MipsABIFlagsSection.h.

Referenced by getASESetValue(), and setASESetFromPredicates().

◆ CPR1Size

Mips::AFL_REG llvm::MipsABIFlagsSection::CPR1Size = Mips::AFL_REG_NONE

Definition at line 34 of file MipsABIFlagsSection.h.

Referenced by getCPR1SizeValue(), and setCPR1SizeFromPredicates().

◆ CPR2Size

Mips::AFL_REG llvm::MipsABIFlagsSection::CPR2Size = Mips::AFL_REG_NONE

Definition at line 36 of file MipsABIFlagsSection.h.

Referenced by getCPR2SizeValue().

◆ FpABI

FpABIKind llvm::MipsABIFlagsSection::FpABI = FpABIKind::ANY
protected

◆ GPRSize

Mips::AFL_REG llvm::MipsABIFlagsSection::GPRSize = Mips::AFL_REG_NONE

Definition at line 32 of file MipsABIFlagsSection.h.

Referenced by getGPRSizeValue(), and setGPRSizeFromPredicates().

◆ Is32BitABI

bool llvm::MipsABIFlagsSection::Is32BitABI = false

◆ ISAExtension

Mips::AFL_EXT llvm::MipsABIFlagsSection::ISAExtension = Mips::AFL_EXT_NONE

Definition at line 38 of file MipsABIFlagsSection.h.

Referenced by getISAExtensionValue(), and setISAExtensionFromPredicates().

◆ ISALevel

uint8_t llvm::MipsABIFlagsSection::ISALevel = 0

Definition at line 28 of file MipsABIFlagsSection.h.

Referenced by getISALevelValue(), and setISALevelAndRevisionFromPredicates().

◆ ISARevision

uint8_t llvm::MipsABIFlagsSection::ISARevision = 0

◆ OddSPReg

bool llvm::MipsABIFlagsSection::OddSPReg = false

◆ Version

uint16_t llvm::MipsABIFlagsSection::Version = 0

Definition at line 26 of file MipsABIFlagsSection.h.

Referenced by getVersionValue().


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