LLVM API Documentation
#include <MipsTargetStreamer.h>
Definition at line 187 of file MipsTargetStreamer.h.
Definition at line 334 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_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_CPIC, llvm::ELF::EF_MIPS_NAN2008, llvm::ELF::EF_MIPS_PIC, Features, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCSubtargetInfo::getFeatureBits(), llvm::MCContext::getObjectFileInfo(), llvm::MCObjectFileInfo::getRelocM(), getStreamer(), llvm::MCSubtargetInfo::getTargetTriple(), llvm::Reloc::PIC_, llvm::MCAssembler::setELFHeaderEFlags(), and T.
void MipsTargetELFStreamer::emitAssignment | ( | MCSymbol * | Symbol, |
const MCExpr * | Value | ||
) | [override, virtual] |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 436 of file MipsTargetStreamer.cpp.
References llvm::MCExpr::getKind(), llvm::MCObjectStreamer::getOrCreateSymbolData(), llvm::MCELF::getOther(), getStreamer(), llvm::MCELF::GetType(), llvm::MCELF::setOther(), llvm::ELF::STO_MIPS_MICROMIPS, llvm::ELF::STT_FUNC, and llvm::MCExpr::SymbolRef.
void MipsTargetELFStreamer::emitDirectiveAbiCalls | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 533 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_CPIC, llvm::ELF::EF_MIPS_PIC, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveCpload | ( | unsigned | RegNo | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 600 of file MipsTargetStreamer.cpp.
References llvm::MCInst::addOperand(), llvm::MCInst::clear(), llvm::MCSymbolRefExpr::Create(), llvm::MCOperand::CreateExpr(), llvm::MCOperand::CreateReg(), llvm::MCObjectStreamer::EmitInstruction(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCContext::GetOrCreateSymbol(), llvm::MCAssembler::getOrCreateSymbolData(), getStreamer(), isN32(), isN64(), llvm::MCInst::setOpcode(), llvm::MCSymbolRefExpr::VK_Mips_ABS_HI, and llvm::MCSymbolRefExpr::VK_Mips_ABS_LO.
void MipsTargetELFStreamer::emitDirectiveCpsetup | ( | unsigned | RegNo, |
int | RegOrOffset, | ||
const MCSymbol & | Sym, | ||
bool | IsReg | ||
) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 651 of file MipsTargetStreamer.cpp.
References llvm::MCInst::addOperand(), llvm::MCInst::clear(), llvm::MCSymbolRefExpr::Create(), llvm::MCOperand::CreateExpr(), llvm::MCOperand::CreateImm(), llvm::MCOperand::CreateReg(), llvm::MCObjectStreamer::EmitInstruction(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCSymbol::getName(), getStreamer(), isN32(), isN64(), llvm::MCInst::setOpcode(), llvm::MCSymbolRefExpr::VK_Mips_GPOFF_HI, and llvm::MCSymbolRefExpr::VK_Mips_GPOFF_LO.
void MipsTargetELFStreamer::emitDirectiveEnd | ( | StringRef | Name | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 491 of file MipsTargetStreamer.cpp.
References llvm::MCSymbolRefExpr::Create(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitValueImpl(), 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::SectionKind::getMetadata(), llvm::MCAssembler::getOrCreateSectionData(), getStreamer(), llvm::MipsTargetStreamer::GPRBitMask, llvm::MipsTargetStreamer::GPRInfoSet, llvm::MipsTargetStreamer::GPROffset, llvm::MCStreamer::PopSection(), llvm::MCStreamer::PushSection(), llvm::MipsTargetStreamer::ReturnReg, llvm::MCSectionData::setAlignment(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHT_PROGBITS, llvm::ELF::SHT_REL, llvm::MCStreamer::SwitchSection(), and llvm::MCSymbolRefExpr::VK_None.
void MipsTargetELFStreamer::emitDirectiveEnt | ( | const MCSymbol & | Symbol | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 529 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::FPRInfoSet, llvm::MipsTargetStreamer::FrameInfoSet, and llvm::MipsTargetStreamer::GPRInfoSet.
void MipsTargetELFStreamer::emitDirectiveModuleOddSPReg | ( | bool | Enabled, |
bool | IsO32ABI | ||
) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 722 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::ABIFlagsSection, Enabled, and llvm::MipsABIFlagsSection::OddSPReg.
void MipsTargetELFStreamer::emitDirectiveNaN2008 | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 540 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_NAN2008, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveNaNLegacy | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 547 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_NAN2008, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveOptionPic0 | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 554 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_PIC, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveOptionPic2 | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 563 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_CPIC, llvm::ELF::EF_MIPS_PIC, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveSetMicroMips | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 460 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_MICROMIPS, llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveSetMips16 | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 475 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_ARCH_ASE_M16, llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitDirectiveSetNoMicroMips | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 470 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::forbidModuleDirective().
void MipsTargetELFStreamer::emitDirectiveSetNoReorder | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 483 of file MipsTargetStreamer.cpp.
References llvm::ELF::EF_MIPS_NOREORDER, llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getELFHeaderEFlags(), getStreamer(), and llvm::MCAssembler::setELFHeaderEFlags().
void MipsTargetELFStreamer::emitFMask | ( | unsigned | FPUBitmask, |
int | FPUTopSavedRegOff | ||
) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 593 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::FPRBitMask, llvm::MipsTargetStreamer::FPRInfoSet, and llvm::MipsTargetStreamer::FPROffset.
void MipsTargetELFStreamer::emitFrame | ( | unsigned | StackReg, |
unsigned | StackSize, | ||
unsigned | ReturnReg | ||
) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 575 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.
void MipsTargetELFStreamer::emitLabel | ( | MCSymbol * | Symbol | ) | [override, virtual] |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 397 of file MipsTargetStreamer.cpp.
References llvm::MCObjectStreamer::getOrCreateSymbolData(), getStreamer(), llvm::MCELF::GetType(), isMicroMipsEnabled(), llvm::MCELF::setOther(), llvm::ELF::STO_MIPS_MICROMIPS, and llvm::ELF::STT_FUNC.
void MipsTargetELFStreamer::emitMask | ( | unsigned | CPUBitmask, |
int | CPUTopSavedRegOff | ||
) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 586 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::GPRBitMask, llvm::MipsTargetStreamer::GPRInfoSet, and llvm::MipsTargetStreamer::GPROffset.
void MipsTargetELFStreamer::emitMipsAbiFlags | ( | ) | [override, virtual] |
Reimplemented from llvm::MipsTargetStreamer.
Definition at line 708 of file MipsTargetStreamer.cpp.
References llvm::MipsTargetStreamer::ABIFlagsSection, llvm::MCObjectStreamer::getAssembler(), llvm::MCAssembler::getContext(), llvm::MCContext::getELFSection(), llvm::SectionKind::getMetadata(), llvm::MCAssembler::getOrCreateSectionData(), getStreamer(), llvm::MCSectionData::setAlignment(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHT_MIPS_ABIFLAGS, and llvm::MCStreamer::SwitchSection().
Referenced by finish().
void MipsTargetELFStreamer::finish | ( | ) | [override, virtual] |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 411 of file MipsTargetStreamer.cpp.
References emitMipsAbiFlags(), llvm::MipsELFStreamer::EmitMipsOptionRecords(), llvm::MCSectionData::getAlignment(), llvm::MCObjectStreamer::getAssembler(), llvm::MCObjectFileInfo::getBSSSection(), llvm::MCAssembler::getContext(), llvm::MCObjectFileInfo::getDataSection(), llvm::MCContext::getObjectFileInfo(), llvm::MCAssembler::getOrCreateSectionData(), getStreamer(), llvm::MCObjectFileInfo::getTextSection(), llvm::MCSectionData::setAlignment(), and llvm::MCTargetStreamer::Streamer.
Reimplemented from llvm::MCTargetStreamer.
Definition at line 456 of file MipsTargetStreamer.cpp.
References llvm::MCTargetStreamer::Streamer.
Referenced by emitAssignment(), emitDirectiveAbiCalls(), emitDirectiveCpload(), emitDirectiveCpsetup(), emitDirectiveEnd(), emitDirectiveNaN2008(), emitDirectiveNaNLegacy(), emitDirectiveOptionPic0(), emitDirectiveOptionPic2(), emitDirectiveSetMicroMips(), emitDirectiveSetMips16(), emitDirectiveSetNoReorder(), emitFrame(), emitLabel(), emitMipsAbiFlags(), finish(), and MipsTargetELFStreamer().
bool llvm::MipsTargetELFStreamer::isMicroMipsEnabled | ( | ) | const [inline] |
Definition at line 193 of file MipsTargetStreamer.h.
Referenced by emitLabel().
bool llvm::MipsTargetELFStreamer::isN32 | ( | ) | const [inline, protected] |
Definition at line 230 of file MipsTargetStreamer.h.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by emitDirectiveCpload(), and emitDirectiveCpsetup().
bool llvm::MipsTargetELFStreamer::isN64 | ( | ) | const [inline, protected] |
Definition at line 231 of file MipsTargetStreamer.h.
References llvm::MCSubtargetInfo::getFeatureBits().
Referenced by emitDirectiveCpload(), and emitDirectiveCpsetup().
bool llvm::MipsTargetELFStreamer::isO32 | ( | ) | const [inline, protected] |
Definition at line 229 of file MipsTargetStreamer.h.
References llvm::MCSubtargetInfo::getFeatureBits().