37 "mips-round-section-sizes",
cl::init(
false),
42 return STI->
hasFeature(Mips::FeatureMicroMips);
158 bool SaveLocationIsRegister) {}
264 int16_t Imm2,
SMLoc IDLoc,
280 emitRRR(Is64Bit ? Mips::DADDu : Mips::ADDu, DstReg, SrcReg, TrgReg,
SMLoc(),
285 int16_t ShiftAmount,
SMLoc IDLoc,
287 if (ShiftAmount >= 32) {
288 emitRRI(Mips::DSLL32, DstReg, SrcReg, ShiftAmount - 32, IDLoc, STI);
292 emitRRI(Mips::DSLL, DstReg, SrcReg, ShiftAmount, IDLoc, STI);
298 unsigned Opc = Mips::SLL;
301 emitRR(
Opc, Mips::ZERO, Mips::ZERO, IDLoc, STI);
308 emitRRI(
Opc, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
313 emitRR(Mips::MOVE16_MM, Mips::ZERO, Mips::ZERO, IDLoc, STI);
315 emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
342 unsigned LoOffset =
Offset & 0x0000ffff;
343 unsigned HiOffset = (
Offset & 0xffff0000) >> 16;
347 if (LoOffset & 0x8000)
351 emitRI(Mips::LUi, ATReg, HiOffset, IDLoc, STI);
352 if (BaseReg != Mips::ZERO)
353 emitRRR(Mips::ADDu, ATReg, ATReg, BaseReg, IDLoc, STI);
355 emitRRI(Opcode, SrcReg, ATReg, LoOffset, IDLoc, STI);
377 unsigned LoOffset =
Offset & 0x0000ffff;
378 unsigned HiOffset = (
Offset & 0xffff0000) >> 16;
382 if (LoOffset & 0x8000)
386 emitRI(Mips::LUi, TmpReg, HiOffset, IDLoc, STI);
387 if (BaseReg != Mips::ZERO)
388 emitRRR(Mips::ADDu, TmpReg, TmpReg, BaseReg, IDLoc, STI);
390 emitRRI(Opcode, DstReg, TmpReg, LoOffset, IDLoc, STI);
399 OS <<
"\t.dtprelword\t";
400 MAI->printExpr(OS, *
Value);
406 OS <<
"\t.dtpreldword\t";
407 MAI->printExpr(OS, *
Value);
413 OS <<
"\t.tprelword\t";
414 MAI->printExpr(OS, *
Value);
420 OS <<
"\t.tpreldword\t";
421 MAI->printExpr(OS, *
Value);
428 MAI->printExpr(OS, *
Value);
434 OS <<
"\t.gpdword\t";
435 MAI->printExpr(OS, *
Value);
440 OS <<
"\t.set\tmicromips\n";
445 OS <<
"\t.set\tnomicromips\n";
450 OS <<
"\t.set\tmips16\n";
455 OS <<
"\t.set\tnomips16\n";
460 OS <<
"\t.set\treorder\n";
465 OS <<
"\t.set\tnoreorder\n";
470 OS <<
"\t.set\tmacro\n";
475 OS <<
"\t.set\tnomacro\n";
480 OS <<
"\t.set\tmsa\n";
485 OS <<
"\t.set\tnomsa\n";
490 OS <<
"\t.set\tmt\n";
495 OS <<
"\t.set\tnomt\n";
500 OS <<
"\t.set\tcrc\n";
505 OS <<
"\t.set\tnocrc\n";
510 OS <<
"\t.set\tvirt\n";
515 OS <<
"\t.set\tnovirt\n";
520 OS <<
"\t.set\tginv\n";
525 OS <<
"\t.set\tnoginv\n";
530 OS <<
"\t.set\tat\n";
535 OS <<
"\t.set\tat=$" <<
Twine(RegNo) <<
"\n";
540 OS <<
"\t.set\tnoat\n";
545 OS <<
"\t.end\t" <<
Name <<
'\n';
549 OS <<
"\t.ent\t" << Symbol.getName() <<
'\n';
557 OS <<
"\t.nan\tlegacy\n";
561 OS <<
"\t.option\tpic0\n";
565 OS <<
"\t.option\tpic2\n";
582 OS <<
"\t.set arch=" << Arch <<
"\n";
587 OS <<
"\t.set\tmips0\n";
592 OS <<
"\t.set\tmips1\n";
597 OS <<
"\t.set\tmips2\n";
602 OS <<
"\t.set\tmips3\n";
607 OS <<
"\t.set\tmips4\n";
612 OS <<
"\t.set\tmips5\n";
617 OS <<
"\t.set\tmips32\n";
622 OS <<
"\t.set\tmips32r2\n";
627 OS <<
"\t.set\tmips32r3\n";
632 OS <<
"\t.set\tmips32r5\n";
637 OS <<
"\t.set\tmips32r6\n";
642 OS <<
"\t.set\tmips64\n";
647 OS <<
"\t.set\tmips64r2\n";
652 OS <<
"\t.set\tmips64r3\n";
657 OS <<
"\t.set\tmips64r5\n";
662 OS <<
"\t.set\tmips64r6\n";
667 OS <<
"\t.set\tdsp\n";
672 OS <<
"\t.set\tdspr2\n";
677 OS <<
"\t.set\tnodsp\n";
682 OS <<
"\t.set\tmips3d\n";
687 OS <<
"\t.set\tnomips3d\n";
692 OS <<
"\t.set\tpop\n";
697 OS <<
"\t.set\tpush\n";
702 OS <<
"\t.set\tsoftfloat\n";
707 OS <<
"\t.set\thardfloat\n";
714 for (
int i = 7; i >= 0; i--)
719 int CPUTopSavedRegOff) {
722 OS <<
',' << CPUTopSavedRegOff <<
'\n';
726 int FPUTopSavedRegOff) {
729 OS <<
"," << FPUTopSavedRegOff <<
'\n';
745 OS <<
"\t.cplocal\t$"
754 OS <<
"\t.cprestore\t" <<
Offset <<
"\n";
762 OS <<
"\t.cpsetup\t$"
778 bool SaveLocationIsRegister) {
786 OS <<
"\t.module\tsoftfloat\n";
807 OS <<
"\t.set\toddspreg\n";
812 OS <<
"\t.set\tnooddspreg\n";
816 OS <<
"\t.module\tsoftfloat\n";
820 OS <<
"\t.module\thardfloat\n";
824 OS <<
"\t.module\tmt\n";
828 OS <<
"\t.module\tcrc\n";
832 OS <<
"\t.module\tnocrc\n";
836 OS <<
"\t.module\tvirt\n";
840 OS <<
"\t.module\tnovirt\n";
844 OS <<
"\t.module\tginv\n";
848 OS <<
"\t.module\tnoginv\n";
880 unsigned EFlags = W.getELFHeaderEFlags();
894 if (Features[Mips::FeatureMips64r6])
896 else if (Features[Mips::FeatureMips64r2] ||
897 Features[Mips::FeatureMips64r3] ||
898 Features[Mips::FeatureMips64r5])
900 else if (Features[Mips::FeatureMips64])
902 else if (Features[Mips::FeatureMips5])
904 else if (Features[Mips::FeatureMips4])
906 else if (Features[Mips::FeatureMips3])
908 else if (Features[Mips::FeatureMips32r6])
910 else if (Features[Mips::FeatureMips32r2] ||
911 Features[Mips::FeatureMips32r3] ||
912 Features[Mips::FeatureMips32r5])
914 else if (Features[Mips::FeatureMips32])
916 else if (Features[Mips::FeatureMips2])
922 if (Features[Mips::FeatureCnMips])
926 if (Features[Mips::FeatureNaN2008])
929 W.setELFHeaderEFlags(EFlags);
961 if (RoundSectionSizes) {
969 Align Alignment = Section.getAlign();
982 unsigned EFlags = W.getELFHeaderEFlags();
991 if (Features[Mips::FeatureGP64Bit]) {
994 }
else if (Features[Mips::FeatureMips64r2] || Features[Mips::FeatureMips64])
999 if (!Features[Mips::FeatureNoABICalls])
1005 W.setELFHeaderEFlags(EFlags);
1036 S.ensureHeadroom(4);
1038 S.appendContents(4, 0);
1043 S.ensureHeadroom(8);
1046 S.appendContents(8, 0);
1051 S.ensureHeadroom(4);
1053 S.appendContents(4, 0);
1058 S.ensureHeadroom(8);
1060 S.appendContents(8, 0);
1065 S.ensureHeadroom(4);
1067 S.appendContents(4, 0);
1072 S.ensureHeadroom(8);
1074 S.appendContents(8, 0);
1078 MicroMipsEnabled =
true;
1083 MicroMipsEnabled =
false;
1089 unsigned Flags = W.getELFHeaderEFlags();
1091 W.setELFHeaderEFlags(Flags);
1096 unsigned Flags = W.getELFHeaderEFlags();
1098 W.setELFHeaderEFlags(Flags);
1104 unsigned Flags = W.getELFHeaderEFlags();
1106 W.setELFHeaderEFlags(Flags);
1117 OS.switchSection(Sec);
1122 OS.emitValueImpl(ExprRef, 4);
1142 OS.emitLabel(CurPCSym);
1161 unsigned Flags = W.getELFHeaderEFlags();
1163 W.setELFHeaderEFlags(Flags);
1168 unsigned Flags = W.getELFHeaderEFlags();
1170 W.setELFHeaderEFlags(Flags);
1175 unsigned Flags = W.getELFHeaderEFlags();
1176 Flags &= ~ELF::EF_MIPS_NAN2008;
1177 W.setELFHeaderEFlags(Flags);
1182 unsigned Flags = W.getELFHeaderEFlags();
1185 Flags &= ~ELF::EF_MIPS_PIC;
1186 W.setELFHeaderEFlags(Flags);
1191 unsigned Flags = W.getELFHeaderEFlags();
1198 W.setELFHeaderEFlags(Flags);
1219 int CPUTopSavedRegOff) {
1226 int FPUTopSavedRegOff) {
1362 bool SaveLocationIsRegister) {
1369 if (SaveLocationIsRegister) {
1391 OS.switchSection(Sec);
static bool hasShortDelaySlot(MCInst &Inst)
static bool isMicroMips(const MCSubtargetInfo *STI)
static void printHex32(unsigned Value, raw_ostream &OS)
static bool isMips32r6(const MCSubtargetInfo *STI)
Container class for subtarget features.
virtual bool useCodeAlign(const MCSection &Sec) const
MCContext & getContext() const
LLVM_ABI bool registerSymbol(const MCSymbol &Symbol)
static const MCBinaryExpr * createSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
Context object for machine code objects.
const MCObjectFileInfo * getObjectFileInfo() const
const MCAsmInfo * getAsmInfo() const
LLVM_ABI MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
ELFObjectWriter & getWriter()
Base class for the full range of assembler expressions which are needed for parsing.
@ SymbolRef
References to labels and assigned expressions.
Instances of this class represent a single low-level machine instruction.
void addOperand(const MCOperand Op)
void setOpcode(unsigned Op)
MCSection * getBSSSection() const
bool isPositionIndependent() const
MCSection * getTextSection() const
MCSection * getDataSection() const
void emitValueToAlignment(Align Alignment, int64_t Fill=0, uint8_t FillLen=1, unsigned MaxBytesToEmit=0) override
Emit some number of copies of Value until the byte alignment ByteAlignment is reached.
MCAssembler & getAssembler()
void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override
Emit the given Instruction into the current section.
void emitCodeAlignment(Align ByteAlignment, const MCSubtargetInfo *STI, unsigned MaxBytesToEmit=0) override
Emit nops until the byte alignment ByteAlignment is reached.
Instances of this class represent operands of the MCInst class.
static MCOperand createExpr(const MCExpr *Val)
static MCOperand createReg(MCRegister Reg)
static MCOperand createImm(int64_t Val)
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
uint16_t getEncodingValue(MCRegister Reg) const
Returns the encoding for Reg.
Wrapper class representing physical registers. Should be passed by value.
This represents a section on linux, lots of unix variants and some bare metal systems.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
void setAlignment(Align Value)
void ensureMinAlignment(Align MinAlignment)
Makes sure that Alignment is at least MinAlignment.
static const MCSpecifierExpr * create(const MCExpr *Expr, Spec S, MCContext &Ctx, SMLoc Loc=SMLoc())
Streaming machine code generation interface.
virtual void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI)
Emit the given Instruction into the current section.
MCContext & getContext() const
virtual void switchSection(MCSection *Section, uint32_t Subsec=0)
Set the current section where code is being emitted to Section.
Generic base class for all target subtargets.
bool hasFeature(unsigned Feature) const
const Triple & getTargetTriple() const
const FeatureBitset & getFeatureBits() const
Represent a reference to a symbol from inside an expression.
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx, SMLoc Loc=SMLoc())
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Target specific streamer interface.
MCStreamer & getStreamer()
void EmitMipsOptionRecords()
Emits all the option records stored up until the point it's called.
void createPendingLabelRelocs()
Mark labels as microMIPS, if necessary for the subtarget.
static const char * getRegisterName(MCRegister Reg)
void emitDirectiveSetMips32R3() override
void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value) override
void emitDirectiveSetArch(StringRef Arch) override
void emitDirectiveModuleGINV() override
bool emitDirectiveCpRestore(int Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) override
Emit a .cprestore directive.
MipsTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
void emitDirectiveSetMips5() override
void emitDirectiveCpLoad(unsigned RegNo) override
void emitDirectiveSetNoVirt() override
void emitDirectiveSetNoAt() override
void emitDirectiveSetNoCRC() override
void emitDirectiveSetMips32R5() override
void emitDirectiveSetNoMacro() override
void emitDirectiveModuleMT() override
void emitDirectiveSetNoOddSPReg() override
void emitDirectiveModuleCRC() override
void emitDirectiveEnt(const MCSymbol &Symbol) override
void emitDirectiveSetDspr2() override
void emitDirectiveSetMips1() override
void emitDirectiveSetMips64R2() override
void emitDirectiveSetMips4() override
void emitDirectiveModuleSoftFloat() override
void emitDirectiveSetMips16() override
void emitDirectiveSetMt() override
void emitDirectiveInsn() override
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) override
void emitDTPRel64Value(const MCExpr *) override
void emitDirectiveSetMicroMips() override
void emitTPRel64Value(const MCExpr *) override
void emitDirectiveModuleNoCRC() override
void emitDirectiveSetMips32R6() override
void emitDirectiveSetNoGINV() override
void emitDirectiveSetMips64R5() override
void emitDirectiveSetMips32() override
void emitDirectiveCpLocal(unsigned RegNo) override
void emitDirectiveSetNoMips3D() override
void emitDirectiveSetPush() override
void emitDirectiveSetNoMips16() override
void emitDirectiveSetNoDsp() override
void emitDirectiveSetMips32R2() override
void emitDirectiveSetMips64() override
void emitFrame(MCRegister StackReg, unsigned StackSize, MCRegister ReturnReg) override
void emitDirectiveModuleHardFloat() override
void emitDirectiveOptionPic0() override
void emitDirectiveSetMacro() override
void emitDirectiveSetCRC() override
void emitDirectiveSetNoReorder() override
void emitDirectiveEnd(StringRef Name) override
void emitDirectiveSetMips64R3() override
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override
void emitDirectiveSetNoMt() override
void emitDirectiveAbiCalls() override
void emitDirectiveSetMsa() override
void emitDirectiveOptionPic2() override
void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override
void emitDirectiveModuleVirt() override
void emitDirectiveSetGINV() override
void emitDirectiveSetNoMsa() override
void emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) override
void emitDirectiveCpAdd(unsigned RegNo) override
void emitDirectiveModuleNoVirt() override
void emitDirectiveNaN2008() override
void emitDirectiveSetPop() override
void emitDTPRel32Value(const MCExpr *) override
void emitDirectiveSetMips3() override
void emitDirectiveSetMips0() override
void emitTPRel32Value(const MCExpr *) override
void emitDirectiveSetHardFloat() override
void emitDirectiveModuleNoGINV() override
void emitDirectiveSetVirt() override
void emitDirectiveModuleFP() override
void emitDirectiveSetMips2() override
void emitDirectiveSetMips3D() override
void emitDirectiveSetAtWithArg(unsigned RegNo) override
void emitDirectiveSetReorder() override
void emitDirectiveNaNLegacy() override
void emitGPRel64Value(const MCExpr *) override
void emitDirectiveSetMips64R6() override
void emitDirectiveSetSoftFloat() override
void emitDirectiveSetNoMicroMips() override
void emitGPRel32Value(const MCExpr *) override
void emitDirectiveSetAt() override
void emitDirectiveSetOddSPReg() override
void emitDirectiveModuleOddSPReg() override
void emitDirectiveSetDsp() override
void emitDTPRel32Value(const MCExpr *) override
void emitDirectiveCpAdd(unsigned RegNo) override
void emitDirectiveCpLoad(unsigned RegNo) override
MipsTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
void emitDirectiveNaN2008() override
void emitDirectiveSetNoMicroMips() override
void emitGPRel64Value(const MCExpr *) override
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) override
void emitDirectiveInsn() override
void setUsesMicroMips() override
void emitDirectiveOptionPic2() override
void emitGPRel32Value(const MCExpr *) override
bool isMicroMipsEnabled() const
void emitDirectiveEnd(StringRef Name) override
void emitFrame(MCRegister StackReg, unsigned StackSize, MCRegister ReturnReg) override
bool emitDirectiveCpRestore(int Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) override
void emitTPRel64Value(const MCExpr *) override
void emitDirectiveSetMicroMips() override
void emitLabel(MCSymbol *Symbol) override
void emitTPRel32Value(const MCExpr *) override
void emitDTPRel64Value(const MCExpr *) override
void emitDirectiveCpLocal(unsigned RegNo) override
void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override
void emitDirectiveAbiCalls() override
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override
void emitAssignment(MCSymbol *Symbol, const MCExpr *Value) override
void emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) override
void emitDirectiveSetMips16() override
void emitDirectiveOptionPic0() override
void emitDirectiveEnt(const MCSymbol &Symbol) override
void emitDirectiveSetNoReorder() override
void emitDirectiveNaNLegacy() override
MCELFStreamer & getStreamer()
std::optional< MipsABIInfo > ABI
virtual void emitDirectiveSetMips64R5()
virtual void emitDirectiveSetAt()
virtual void emitDirectiveModuleNoVirt()
void emitRRX(unsigned Opcode, MCRegister Reg0, MCRegister Reg1, MCOperand Op2, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetReorder()
virtual void emitDirectiveSetNoCRC()
virtual void emitFrame(MCRegister StackReg, unsigned StackSize, MCRegister ReturnReg)
void emitRRRX(unsigned Opcode, MCRegister Reg0, MCRegister Reg1, MCRegister Reg2, MCOperand Op3, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveModuleNoGINV()
virtual void emitDirectiveSetSoftFloat()
virtual void emitDirectiveSetNoDsp()
void forbidModuleDirective()
virtual void emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister)
virtual void emitGPRel32Value(const MCExpr *)
virtual void emitDirectiveSetNoMicroMips()
void emitRX(unsigned Opcode, MCRegister Reg0, MCOperand Op1, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetDspr2()
virtual void emitDirectiveNaN2008()
virtual void emitDirectiveSetMips64R2()
virtual void emitDirectiveSetMips3D()
virtual void emitDirectiveEnd(StringRef Name)
virtual void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value)
virtual void emitDirectiveSetCRC()
virtual void emitTPRel64Value(const MCExpr *)
virtual void emitDirectiveSetMips64R3()
virtual void emitDirectiveSetNoVirt()
virtual void emitDirectiveSetGINV()
virtual void emitDirectiveSetMacro()
virtual void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg)
virtual void emitDirectiveSetMips3()
void emitR(unsigned Opcode, MCRegister Reg0, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetNoGINV()
virtual void setUsesMicroMips()
virtual void emitDirectiveSetMips32R3()
virtual void emitDirectiveSetMips32R2()
void emitRRI(unsigned Opcode, MCRegister Reg0, MCRegister Reg1, int16_t Imm, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveEnt(const MCSymbol &Symbol)
virtual void emitDirectiveSetMips1()
virtual void emitDirectiveSetDsp()
virtual void emitDirectiveSetNoMips3D()
void emitLoadWithImmOffset(unsigned Opcode, MCRegister DstReg, MCRegister BaseReg, int64_t Offset, MCRegister TmpReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a load instruction with an immediate offset.
virtual void emitDirectiveCpLocal(unsigned RegNo)
virtual void emitDirectiveCpLoad(unsigned RegNo)
virtual void emitDirectiveSetHardFloat()
void emitEmptyDelaySlot(bool hasShortDelaySlot, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitAddu(MCRegister DstReg, MCRegister SrcReg, MCRegister TrgReg, bool Is64Bit, const MCSubtargetInfo *STI)
void emitRI(unsigned Opcode, MCRegister Reg0, int32_t Imm, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitTPRel32Value(const MCExpr *)
virtual void emitDirectiveSetNoMips16()
virtual void emitDirectiveSetMips5()
virtual void emitDirectiveSetMips2()
virtual void emitDirectiveSetPush()
virtual void emitDirectiveSetMt()
virtual void emitDirectiveSetNoOddSPReg()
virtual void emitGPRel64Value(const MCExpr *)
void emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitRR(unsigned Opcode, MCRegister Reg0, MCRegister Reg1, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetOddSPReg()
virtual void emitDirectiveSetNoMt()
virtual void emitDirectiveModuleCRC()
virtual void emitDirectiveModuleGINV()
virtual void emitDirectiveSetNoAt()
virtual void emitDirectiveNaNLegacy()
virtual void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff)
void emitRRIII(unsigned Opcode, MCRegister Reg0, MCRegister Reg1, int16_t Imm0, int16_t Imm1, int16_t Imm2, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetPop()
virtual void emitDirectiveSetMicroMips()
virtual void emitDirectiveSetMips0()
virtual void emitDTPRel64Value(const MCExpr *)
virtual void emitDirectiveModuleSoftFloat()
virtual void emitDirectiveSetArch(StringRef Arch)
virtual void emitDTPRel32Value(const MCExpr *)
virtual void emitDirectiveSetAtWithArg(unsigned RegNo)
virtual bool emitDirectiveCpRestore(int Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveModuleNoCRC()
virtual void emitDirectiveSetNoMacro()
void emitDSLL(MCRegister DstReg, MCRegister SrcReg, int16_t ShiftAmount, SMLoc IDLoc, const MCSubtargetInfo *STI)
const MipsABIInfo & getABI() const
virtual void emitDirectiveModuleOddSPReg()
virtual void emitDirectiveCpAdd(unsigned RegNo)
virtual void emitDirectiveInsn()
virtual void emitDirectiveSetMips64R6()
virtual void emitDirectiveSetNoMsa()
virtual void emitDirectiveSetVirt()
void emitGPRestore(int Offset, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit the $gp restore operation for .cprestore.
MipsTargetStreamer(MCStreamer &S)
virtual void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff)
virtual void emitDirectiveModuleVirt()
void emitNop(SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitRRR(unsigned Opcode, MCRegister Reg0, MCRegister Reg1, MCRegister Reg2, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetNoReorder()
virtual void emitDirectiveSetMips32()
virtual void emitDirectiveOptionPic0()
virtual void emitDirectiveModuleMT()
virtual void emitDirectiveModuleHardFloat()
virtual void emitDirectiveSetMips32R5()
virtual void emitDirectiveSetMsa()
virtual void emitDirectiveSetMips32R6()
virtual void emitDirectiveSetMips4()
virtual void emitDirectiveOptionPic2()
virtual void emitDirectiveSetMips16()
virtual void emitDirectiveSetMips64()
virtual void emitDirectiveAbiCalls()
void emitStoreWithImmOffset(unsigned Opcode, MCRegister SrcReg, MCRegister BaseReg, int64_t Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a store instruction with an offset.
virtual void emitDirectiveModuleFP()
MipsABIFlagsSection ABIFlagsSection
Represents a location in source code.
StringRef - Represent a constant reference to a string, i.e.
LLVM_ABI std::string lower() const
ArchType getArch() const
Get the parsed architecture type of this triple.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
The instances of the Type class are immutable: once they are created, they are never changed.
LLVM Value Representation.
An efficient, type-erasing, non-owning reference to a callable.
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & write_hex(unsigned long long N)
Output N in hexadecimal, without any prefix or padding.
const MCSpecifierExpr * createGpOff(const MCExpr *Expr, Specifier S, MCContext &Ctx)
initializer< Ty > init(const Ty &Val)
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI void report_fatal_error(Error Err, bool gen_crash_diag=true)
This struct is a compact representation of a valid (non-zero power of two) alignment.
uint64_t value() const
This is a hole in the type system and should not be abused.
StringRef getFpABIString(FpABIKind Value)