LLVM 20.0.0git
|
#include "Target/Mips/MipsTargetStreamer.h"
Additional Inherited Members | |
Protected Attributes inherited from llvm::MipsTargetStreamer | |
std::optional< MipsABIInfo > | ABI |
MipsABIFlagsSection | ABIFlagsSection |
bool | GPRInfoSet |
unsigned | GPRBitMask |
int | GPROffset |
bool | FPRInfoSet |
unsigned | FPRBitMask |
int | FPROffset |
bool | FrameInfoSet |
int | FrameOffset |
unsigned | FrameReg |
unsigned | GPReg |
unsigned | ReturnReg |
Protected Attributes inherited from llvm::MCTargetStreamer | |
MCStreamer & | Streamer |
Definition at line 312 of file MipsTargetStreamer.h.
MipsTargetELFStreamer::MipsTargetELFStreamer | ( | MCStreamer & | S, |
const MCSubtargetInfo & | STI | ||
) |
Definition at line 801 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::ABI, llvm::ELF::EF_MIPS_ARCH_1, llvm::ELF::EF_MIPS_ARCH_2, llvm::ELF::EF_MIPS_ARCH_3, llvm::ELF::EF_MIPS_ARCH_32, llvm::ELF::EF_MIPS_ARCH_32R2, llvm::ELF::EF_MIPS_ARCH_32R6, llvm::ELF::EF_MIPS_ARCH_4, llvm::ELF::EF_MIPS_ARCH_5, llvm::ELF::EF_MIPS_ARCH_64, llvm::ELF::EF_MIPS_ARCH_64R2, llvm::ELF::EF_MIPS_ARCH_64R6, llvm::ELF::EF_MIPS_MACH_OCTEON, llvm::ELF::EF_MIPS_NAN2008, llvm::Triple::getArch(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCContext::getObjectFileInfo(), getStreamer(), llvm::MCSubtargetInfo::getTargetTriple(), llvm::MCELFStreamer::getWriter(), llvm::MCObjectFileInfo::isPositionIndependent(), llvm::Triple::mips, llvm::Triple::mipsel, llvm::MipsABIInfo::N64(), and llvm::MipsABIInfo::O32().
|
overridevirtual |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 965 of file MipsTargetStreamer.cpp.
References llvm::ELF::STO_MIPS_MICROMIPS, and llvm::MCExpr::SymbolRef.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1068 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_CPIC, llvm::ELF::EF_MIPS_PIC, getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1141 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::emitAddu(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MipsTargetStreamer::getABI(), and llvm::MipsTargetStreamer::GPReg.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1152 of file MipsTargetStreamer.cpp.
References llvm::MCInst::addOperand(), llvm::MCInst::clear(), llvm::MCSymbolRefExpr::create(), llvm::MipsMCExpr::create(), llvm::MCOperand::createExpr(), llvm::MCOperand::createReg(), llvm::MCObjectStreamer::emitInstruction(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MipsTargetStreamer::getABI(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCContext::getOrCreateSymbol(), getStreamer(), llvm::MipsTargetStreamer::GPReg, llvm::MipsMCExpr::MEK_HI, llvm::MipsMCExpr::MEK_LO, llvm::MCAssembler::registerSymbol(), llvm::MCInst::setOpcode(), and llvm::MCSymbolRefExpr::VK_None.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1209 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::emitDirectiveCpLocal().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1214 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::emitDirectiveCpRestore(), llvm::MipsTargetStreamer::emitStoreWithImmOffset(), llvm::MipsTargetStreamer::getABI(), llvm::MipsTargetStreamer::GPReg, and llvm::Offset.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1278 of file MipsTargetStreamer.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), llvm::MCObjectStreamer::emitInstruction(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MipsTargetStreamer::getABI(), getStreamer(), llvm::MipsTargetStreamer::GPReg, and llvm::MCInst::setOpcode().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1235 of file MipsTargetStreamer.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCOperand::createExpr(), llvm::MipsMCExpr::createGpOff(), llvm::MipsTargetStreamer::emitRRI(), llvm::MipsTargetStreamer::emitRRR(), llvm::MipsTargetStreamer::emitRRX(), llvm::MipsTargetStreamer::emitRX(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MipsTargetStreamer::getABI(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), getStreamer(), llvm::MipsTargetStreamer::GPReg, llvm::MipsMCExpr::MEK_HI, llvm::MipsMCExpr::MEK_LO, and Sym.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1016 of file MipsTargetStreamer.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::MCContext::createTempSymbol(), llvm::MipsTargetStreamer::FPRBitMask, llvm::MipsTargetStreamer::FPRInfoSet, llvm::MipsTargetStreamer::FPROffset, llvm::MipsTargetStreamer::FrameInfoSet, llvm::MipsTargetStreamer::FrameOffset, llvm::MipsTargetStreamer::FrameReg, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCContext::getELFSection(), llvm::MCContext::getOrCreateSymbol(), getStreamer(), llvm::MipsTargetStreamer::GPRBitMask, llvm::MipsTargetStreamer::GPRInfoSet, llvm::MipsTargetStreamer::GPROffset, Name, OS, llvm::MipsTargetStreamer::ReturnReg, llvm::MCSection::setAlignment(), llvm::ELF::SHT_PROGBITS, Size, Sym, and llvm::MCSymbolRefExpr::VK_None.
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1061 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::FPRInfoSet, llvm::MipsTargetStreamer::FrameInfoSet, llvm::MipsTargetStreamer::GPRInfoSet, and llvm::ELF::STT_FUNC.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1110 of file MipsTargetStreamer.cpp.
References llvm::MipsELFStreamer::createPendingLabelRelocs(), llvm::MipsTargetStreamer::emitDirectiveInsn(), and llvm::MCTargetStreamer::Streamer.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1075 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_NAN2008, getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1082 of file MipsTargetStreamer.cpp.
References getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1089 of file MipsTargetStreamer.cpp.
References getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1098 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_CPIC, llvm::ELF::EF_MIPS_PIC, getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 983 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::forbidModuleDirective().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1000 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_ARCH_ASE_M16, llvm::MipsTargetStreamer::forbidModuleDirective(), getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 988 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::forbidModuleDirective().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1008 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_NOREORDER, llvm::MipsTargetStreamer::forbidModuleDirective(), getStreamer(), and llvm::MCELFStreamer::getWriter().
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1134 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::FPRBitMask, llvm::MipsTargetStreamer::FPRInfoSet, and llvm::MipsTargetStreamer::FPROffset.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1116 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::FrameInfoSet, llvm::MipsTargetStreamer::FrameOffset, llvm::MipsTargetStreamer::FrameReg, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCRegisterInfo::getEncodingValue(), llvm::MCContext::getRegisterInfo(), getStreamer(), and llvm::MipsTargetStreamer::ReturnReg.
|
overridevirtual |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 881 of file MipsTargetStreamer.cpp.
References llvm::MCObjectStreamer::getAssembler(), getStreamer(), isMicroMipsEnabled(), llvm::MCAssembler::registerSymbol(), llvm::ELF::STO_MIPS_MICROMIPS, and llvm::ELF::STT_FUNC.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 1127 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::GPRBitMask, llvm::MipsTargetStreamer::GPRInfoSet, and llvm::MipsTargetStreamer::GPROffset.
void MipsTargetELFStreamer::emitMipsAbiFlags | ( | ) |
Definition at line 1302 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::ABIFlagsSection, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCContext::getELFSection(), getStreamer(), OS, llvm::MCSection::setAlignment(), llvm::ELF::SHF_ALLOC, and llvm::ELF::SHT_MIPS_ABIFLAGS.
Referenced by finish().
|
overridevirtual |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 892 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_32BITMODE, llvm::ELF::EF_MIPS_ABI2, llvm::ELF::EF_MIPS_ABI_O32, llvm::ELF::EF_MIPS_CPIC, llvm::ELF::EF_MIPS_PIC, llvm::MCObjectStreamer::emitCodeAlignment(), emitMipsAbiFlags(), llvm::MipsELFStreamer::EmitMipsOptionRecords(), llvm::MCELFStreamer::emitValueToAlignment(), llvm::MCSection::ensureMinAlignment(), llvm::MipsTargetStreamer::getABI(), llvm::MCObjectStreamer::getAssembler(), llvm::MCObjectFileInfo::getBSSSection(), llvm::MCAssembler::getContext(), llvm::MCObjectFileInfo::getDataSection(), llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCContext::getObjectFileInfo(), getStreamer(), llvm::MCObjectFileInfo::getTextSection(), llvm::MCELFStreamer::getWriter(), llvm::MipsABIInfo::IsN32(), llvm::MipsABIInfo::IsO32(), llvm::MCTargetStreamer::Streamer, llvm::MCStreamer::switchSection(), and llvm::Align::value().
MCELFStreamer & MipsTargetELFStreamer::getStreamer | ( | ) |
Definition at line 979 of file MipsTargetStreamer.cpp.
References llvm::MCTargetStreamer::Streamer.
Referenced by emitDirectiveAbiCalls(), emitDirectiveCpLoad(), emitDirectiveCpreturn(), emitDirectiveCpsetup(), emitDirectiveEnd(), emitDirectiveNaN2008(), emitDirectiveNaNLegacy(), emitDirectiveOptionPic0(), emitDirectiveOptionPic2(), emitDirectiveSetMips16(), emitDirectiveSetNoReorder(), emitFrame(), emitLabel(), emitMipsAbiFlags(), finish(), MipsTargetELFStreamer(), and setUsesMicroMips().
|
inline |
Definition at line 318 of file MipsTargetStreamer.h.
Referenced by llvm::MipsELFStreamer::createPendingLabelRelocs(), and emitLabel().
|
inlineoverridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 322 of file MipsTargetStreamer.h.
|
overridevirtual |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 993 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_MICROMIPS, getStreamer(), and llvm::MCELFStreamer::getWriter().