LLVM
8.0.1
|
#include "Target/Mips/MCTargetDesc/MipsABIFlagsSection.h"
Public Types | |
enum | FpABIKind { FpABIKind::ANY, FpABIKind::XX, FpABIKind::S32, FpABIKind::S64, FpABIKind::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 |
Definition at line 22 of file MipsABIFlagsSection.h.
|
strong |
Enumerator | |
---|---|
ANY | |
XX | |
S32 | |
S64 | |
SOFT |
Definition at line 24 of file MipsABIFlagsSection.h.
|
default |
|
inline |
Definition at line 62 of file MipsABIFlagsSection.h.
References ASESet.
Referenced by llvm::operator<<().
uint8_t MipsABIFlagsSection::getCPR1SizeValue | ( | ) |
Definition at line 51 of file MipsABIFlagsSection.cpp.
References llvm::Mips::AFL_REG_32, CPR1Size, FpABI, and XX.
Referenced by getGPRSizeValue(), and llvm::operator<<().
|
inline |
Definition at line 59 of file MipsABIFlagsSection.h.
References CPR2Size, and getFpABIValue().
Referenced by llvm::operator<<().
|
inline |
Definition at line 64 of file MipsABIFlagsSection.h.
References llvm::Mips::AFL_FLAGS1_ODDSPREG.
Referenced by llvm::operator<<().
|
inline |
Definition at line 73 of file MipsABIFlagsSection.h.
Referenced by llvm::operator<<().
|
inline |
Definition at line 75 of file MipsABIFlagsSection.h.
References FpABI.
Referenced by llvm::MipsTargetAsmStreamer::emitDirectiveModuleFP().
Definition at line 38 of file MipsABIFlagsSection.cpp.
References llvm_unreachable, S32, S64, and XX.
Referenced by llvm::MipsTargetAsmStreamer::emitDirectiveModuleFP(), llvm::MipsTargetAsmStreamer::emitDirectiveSetFp(), and setFpABI().
uint8_t MipsABIFlagsSection::getFpABIValue | ( | ) |
Definition at line 18 of file MipsABIFlagsSection.cpp.
References ANY, FpABI, Is32BitABI, llvm_unreachable, OddSPReg, S32, S64, SOFT, llvm::Mips::Val_GNU_MIPS_ABI_FP_64, llvm::Mips::Val_GNU_MIPS_ABI_FP_64A, llvm::Mips::Val_GNU_MIPS_ABI_FP_ANY, llvm::Mips::Val_GNU_MIPS_ABI_FP_DOUBLE, llvm::Mips::Val_GNU_MIPS_ABI_FP_SOFT, llvm::Mips::Val_GNU_MIPS_ABI_FP_XX, and XX.
Referenced by getCPR2SizeValue(), and llvm::operator<<().
|
inline |
Definition at line 57 of file MipsABIFlagsSection.h.
References getCPR1SizeValue(), and GPRSize.
Referenced by llvm::operator<<().
|
inline |
Definition at line 61 of file MipsABIFlagsSection.h.
References ISAExtension.
Referenced by llvm::operator<<().
|
inline |
Definition at line 55 of file MipsABIFlagsSection.h.
References ISALevel.
Referenced by llvm::operator<<().
|
inline |
Definition at line 56 of file MipsABIFlagsSection.h.
References ISARevision.
Referenced by llvm::operator<<().
|
inline |
Definition at line 54 of file MipsABIFlagsSection.h.
References Version.
Referenced by llvm::operator<<().
|
inline |
Definition at line 192 of file MipsABIFlagsSection.h.
References llvm::operator<<(), setASESetFromPredicates(), setCPR1SizeFromPredicates(), setFpAbiFromPredicates(), setGPRSizeFromPredicates(), setISAExtensionFromPredicates(), and setISALevelAndRevisionFromPredicates().
Referenced by llvm::MipsTargetStreamer::updateABIInfo().
|
inline |
Definition at line 150 of file MipsABIFlagsSection.h.
References llvm::Mips::AFL_ASE_CRC, llvm::Mips::AFL_ASE_DSP, llvm::Mips::AFL_ASE_DSPR2, llvm::Mips::AFL_ASE_GINV, llvm::Mips::AFL_ASE_MICROMIPS, llvm::Mips::AFL_ASE_MIPS16, llvm::Mips::AFL_ASE_MSA, llvm::Mips::AFL_ASE_MT, and llvm::Mips::AFL_ASE_VIRT.
Referenced by setAllFromPredicates().
|
inline |
Definition at line 132 of file MipsABIFlagsSection.h.
References llvm::Mips::AFL_REG_128, llvm::Mips::AFL_REG_32, llvm::Mips::AFL_REG_64, and llvm::Mips::AFL_REG_NONE.
Referenced by setAllFromPredicates().
Definition at line 76 of file MipsABIFlagsSection.h.
References getFpABIString().
|
inline |
Definition at line 173 of file MipsABIFlagsSection.h.
References ANY, S32, S64, SOFT, and XX.
Referenced by setAllFromPredicates().
|
inline |
Definition at line 127 of file MipsABIFlagsSection.h.
References llvm::Mips::AFL_REG_32, and llvm::Mips::AFL_REG_64.
Referenced by setAllFromPredicates().
|
inline |
Definition at line 142 of file MipsABIFlagsSection.h.
References llvm::Mips::AFL_EXT_NONE, and llvm::Mips::AFL_EXT_OCTEON.
Referenced by setAllFromPredicates().
|
inline |
Definition at line 84 of file MipsABIFlagsSection.h.
References llvm_unreachable.
Referenced by setAllFromPredicates().
uint32_t llvm::MipsABIFlagsSection::ASESet = 0 |
Definition at line 41 of file MipsABIFlagsSection.h.
Referenced by getASESetValue().
Mips::AFL_REG llvm::MipsABIFlagsSection::CPR1Size = Mips::AFL_REG_NONE |
Definition at line 35 of file MipsABIFlagsSection.h.
Referenced by getCPR1SizeValue().
Mips::AFL_REG llvm::MipsABIFlagsSection::CPR2Size = Mips::AFL_REG_NONE |
Definition at line 37 of file MipsABIFlagsSection.h.
Referenced by getCPR2SizeValue().
|
protected |
Definition at line 49 of file MipsABIFlagsSection.h.
Referenced by getCPR1SizeValue(), getFpABI(), and getFpABIValue().
Mips::AFL_REG llvm::MipsABIFlagsSection::GPRSize = Mips::AFL_REG_NONE |
Definition at line 33 of file MipsABIFlagsSection.h.
Referenced by getGPRSizeValue().
Definition at line 45 of file MipsABIFlagsSection.h.
Referenced by llvm::MipsTargetStreamer::emitDirectiveModuleOddSPReg(), and getFpABIValue().
Mips::AFL_EXT llvm::MipsABIFlagsSection::ISAExtension = Mips::AFL_EXT_NONE |
Definition at line 39 of file MipsABIFlagsSection.h.
Referenced by getISAExtensionValue().
uint8_t llvm::MipsABIFlagsSection::ISALevel = 0 |
Definition at line 29 of file MipsABIFlagsSection.h.
Referenced by getISALevelValue().
uint8_t llvm::MipsABIFlagsSection::ISARevision = 0 |
Definition at line 31 of file MipsABIFlagsSection.h.
Referenced by getISARevisionValue().
Definition at line 43 of file MipsABIFlagsSection.h.
Referenced by llvm::MipsTargetStreamer::emitDirectiveModuleOddSPReg(), llvm::MipsTargetAsmStreamer::emitDirectiveModuleOddSPReg(), and getFpABIValue().
uint16_t llvm::MipsABIFlagsSection::Version = 0 |
Definition at line 27 of file MipsABIFlagsSection.h.
Referenced by getVersionValue().