37 "mips-round-section-sizes",
cl::init(
false),
42 return STI->
hasFeature(Mips::FeatureMicroMips);
160 bool SaveLocationIsRegister) {}
266 int16_t Imm2,
SMLoc IDLoc,
282 emitRRR(Is64Bit ? Mips::DADDu : Mips::ADDu, DstReg, SrcReg, TrgReg,
SMLoc(),
287 int16_t ShiftAmount,
SMLoc IDLoc,
289 if (ShiftAmount >= 32) {
290 emitRRI(Mips::DSLL32, DstReg, SrcReg, ShiftAmount - 32, IDLoc, STI);
294 emitRRI(Mips::DSLL, DstReg, SrcReg, ShiftAmount, IDLoc, STI);
300 unsigned Opc = Mips::SLL;
303 emitRR(
Opc, Mips::ZERO, Mips::ZERO, IDLoc, STI);
310 emitRRI(
Opc, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
315 emitRR(Mips::MOVE16_MM, Mips::ZERO, Mips::ZERO, IDLoc, STI);
317 emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
344 unsigned LoOffset =
Offset & 0x0000ffff;
345 unsigned HiOffset = (
Offset & 0xffff0000) >> 16;
349 if (LoOffset & 0x8000)
353 emitRI(Mips::LUi, ATReg, HiOffset, IDLoc, STI);
354 if (BaseReg != Mips::ZERO)
355 emitRRR(Mips::ADDu, ATReg, ATReg, BaseReg, IDLoc, STI);
357 emitRRI(Opcode, SrcReg, ATReg, LoOffset, IDLoc, STI);
379 unsigned LoOffset =
Offset & 0x0000ffff;
380 unsigned HiOffset = (
Offset & 0xffff0000) >> 16;
384 if (LoOffset & 0x8000)
388 emitRI(Mips::LUi, TmpReg, HiOffset, IDLoc, STI);
389 if (BaseReg != Mips::ZERO)
390 emitRRR(Mips::ADDu, TmpReg, TmpReg, BaseReg, IDLoc, STI);
392 emitRRI(Opcode, DstReg, TmpReg, LoOffset, IDLoc, STI);
401 OS <<
"\t.dtprelword\t";
408 OS <<
"\t.dtpreldword\t";
415 OS <<
"\t.tprelword\t";
422 OS <<
"\t.tpreldword\t";
436 OS <<
"\t.gpdword\t";
442 OS <<
"\t.set\tmicromips\n";
447 OS <<
"\t.set\tnomicromips\n";
452 OS <<
"\t.set\tmips16\n";
457 OS <<
"\t.set\tnomips16\n";
462 OS <<
"\t.set\treorder\n";
467 OS <<
"\t.set\tnoreorder\n";
472 OS <<
"\t.set\tmacro\n";
477 OS <<
"\t.set\tnomacro\n";
482 OS <<
"\t.set\tmsa\n";
487 OS <<
"\t.set\tnomsa\n";
492 OS <<
"\t.set\tmt\n";
497 OS <<
"\t.set\tnomt\n";
502 OS <<
"\t.set\tcrc\n";
507 OS <<
"\t.set\tnocrc\n";
512 OS <<
"\t.set\tvirt\n";
517 OS <<
"\t.set\tnovirt\n";
522 OS <<
"\t.set\tginv\n";
527 OS <<
"\t.set\tnoginv\n";
532 OS <<
"\t.set\teva\n";
537 OS <<
"\t.set\tnoeva\n";
542 OS <<
"\t.set\tat\n";
547 OS <<
"\t.set\tat=$" <<
Twine(RegNo) <<
"\n";
552 OS <<
"\t.set\tnoat\n";
557 OS <<
"\t.end\t" << Name <<
'\n';
561 OS <<
"\t.ent\t" << Symbol.getName() <<
'\n';
569 OS <<
"\t.nan\tlegacy\n";
573 OS <<
"\t.option\tpic0\n";
577 OS <<
"\t.option\tpic2\n";
594 OS <<
"\t.set arch=" << Arch <<
"\n";
599 OS <<
"\t.set\tmips0\n";
604 OS <<
"\t.set\tmips1\n";
609 OS <<
"\t.set\tmips2\n";
614 OS <<
"\t.set\tmips3\n";
619 OS <<
"\t.set\tmips4\n";
624 OS <<
"\t.set\tmips5\n";
629 OS <<
"\t.set\tmips32\n";
634 OS <<
"\t.set\tmips32r2\n";
639 OS <<
"\t.set\tmips32r3\n";
644 OS <<
"\t.set\tmips32r5\n";
649 OS <<
"\t.set\tmips32r6\n";
654 OS <<
"\t.set\tmips64\n";
659 OS <<
"\t.set\tmips64r2\n";
664 OS <<
"\t.set\tmips64r3\n";
669 OS <<
"\t.set\tmips64r5\n";
674 OS <<
"\t.set\tmips64r6\n";
679 OS <<
"\t.set\tdsp\n";
684 OS <<
"\t.set\tdspr2\n";
689 OS <<
"\t.set\tnodsp\n";
694 OS <<
"\t.set\tmips3d\n";
699 OS <<
"\t.set\tnomips3d\n";
704 OS <<
"\t.set\tpop\n";
709 OS <<
"\t.set\tpush\n";
714 OS <<
"\t.set\tsoftfloat\n";
719 OS <<
"\t.set\thardfloat\n";
726 for (
int i = 7; i >= 0; i--)
731 int CPUTopSavedRegOff) {
734 OS <<
',' << CPUTopSavedRegOff <<
'\n';
738 int FPUTopSavedRegOff) {
741 OS <<
"," << FPUTopSavedRegOff <<
'\n';
757 OS <<
"\t.cplocal\t$"
766 OS <<
"\t.cprestore\t" <<
Offset <<
"\n";
774 OS <<
"\t.cpsetup\t$"
790 bool SaveLocationIsRegister) {
798 OS <<
"\t.module\tsoftfloat\n";
800 OS <<
"\t.module\tfp=" <<
ABIFlagsSection.getFpABIString(FpABI) <<
"\n";
814 OS <<
"\t.module\t" << (
ABIFlagsSection.OddSPReg ?
"" :
"no") <<
"oddspreg\n";
819 OS <<
"\t.set\toddspreg\n";
824 OS <<
"\t.set\tnooddspreg\n";
828 OS <<
"\t.module\tsoftfloat\n";
832 OS <<
"\t.module\thardfloat\n";
836 OS <<
"\t.module\tmt\n";
840 OS <<
"\t.module\tcrc\n";
844 OS <<
"\t.module\tnocrc\n";
848 OS <<
"\t.module\tvirt\n";
852 OS <<
"\t.module\tnovirt\n";
856 OS <<
"\t.module\tginv\n";
860 OS <<
"\t.module\tnoginv\n";
892 unsigned EFlags = W.getELFHeaderEFlags();
906 if (Features[Mips::FeatureMips64r6])
908 else if (Features[Mips::FeatureMips64r2] ||
909 Features[Mips::FeatureMips64r3] ||
910 Features[Mips::FeatureMips64r5])
912 else if (Features[Mips::FeatureMips64])
914 else if (Features[Mips::FeatureMips5])
916 else if (Features[Mips::FeatureMips4])
918 else if (Features[Mips::FeatureMips3])
920 else if (Features[Mips::FeatureMips32r6])
922 else if (Features[Mips::FeatureMips32r2] ||
923 Features[Mips::FeatureMips32r3] ||
924 Features[Mips::FeatureMips32r5])
926 else if (Features[Mips::FeatureMips32])
928 else if (Features[Mips::FeatureMips2])
934 if (Features[Mips::FeatureCnMips])
936 else if (Features[Mips::FeatureR5900])
940 if (Features[Mips::FeatureNaN2008])
943 W.setELFHeaderEFlags(EFlags);
975 if (RoundSectionSizes) {
983 Align Alignment = Section.getAlign();
985 if (
getContext().getAsmInfo().useCodeAlign(Section))
996 unsigned EFlags = W.getELFHeaderEFlags();
1002 else if (
getABI().IsN32())
1005 if (Features[Mips::FeatureGP64Bit]) {
1008 }
else if (Features[Mips::FeatureMips64r2] || Features[Mips::FeatureMips64])
1013 if (!Features[Mips::FeatureNoABICalls])
1019 W.setELFHeaderEFlags(EFlags);
1050 S.ensureHeadroom(4);
1052 S.appendContents(4, 0);
1057 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);
1079 S.ensureHeadroom(4);
1081 S.appendContents(4, 0);
1086 S.ensureHeadroom(8);
1088 S.appendContents(8, 0);
1092 MicroMipsEnabled =
true;
1097 MicroMipsEnabled =
false;
1103 unsigned Flags = W.getELFHeaderEFlags();
1105 W.setELFHeaderEFlags(Flags);
1110 unsigned Flags = W.getELFHeaderEFlags();
1112 W.setELFHeaderEFlags(Flags);
1118 unsigned Flags = W.getELFHeaderEFlags();
1120 W.setELFHeaderEFlags(Flags);
1134 MCSymbol *Sym = Context.getOrCreateSymbol(Name);
1155 MCSymbol *CurPCSym = Context.createTempSymbol();
1175 unsigned Flags = W.getELFHeaderEFlags();
1177 W.setELFHeaderEFlags(Flags);
1182 unsigned Flags = W.getELFHeaderEFlags();
1184 W.setELFHeaderEFlags(Flags);
1189 unsigned Flags = W.getELFHeaderEFlags();
1190 Flags &=
~ELF::EF_MIPS_NAN2008;
1191 W.setELFHeaderEFlags(Flags);
1196 unsigned Flags = W.getELFHeaderEFlags();
1199 Flags &=
~ELF::EF_MIPS_PIC;
1200 W.setELFHeaderEFlags(Flags);
1205 unsigned Flags = W.getELFHeaderEFlags();
1212 W.setELFHeaderEFlags(Flags);
1227 FrameReg = RegInfo->getEncodingValue(StackReg);
1229 ReturnReg = RegInfo->getEncodingValue(ReturnReg_);
1233 int CPUTopSavedRegOff) {
1240 int FPUTopSavedRegOff) {
1376 bool SaveLocationIsRegister) {
1383 if (SaveLocationIsRegister) {
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.
void printExpr(raw_ostream &, const MCExpr &) 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
LLVM_ABI MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
const MCAsmInfo & getAsmInfo() const
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 emitCodeAlignment(Align ByteAlignment, const MCSubtargetInfo &STI, unsigned MaxBytesToEmit=0) override
Emit nops until the byte alignment ByteAlignment is reached.
void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override
Emit the given Instruction into the current section.
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...
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 bool popSection()
Restore the current and previous section from the section stack.
virtual void emitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI)
Emit the given Instruction into the current section.
MCContext & getContext() const
virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc=SMLoc())
Emit a label for Symbol into the current section.
virtual void emitIntValue(uint64_t Value, unsigned Size)
Special case of EmitValue that avoids the client having to pass in a MCExpr for constant integers.
void pushSection()
Save the current and previous section on the section stack.
virtual void switchSection(MCSection *Section, uint32_t Subsec=0)
Set the current section where code is being emitted to Section.
virtual void emitValueImpl(const MCExpr *Value, unsigned Size, SMLoc Loc=SMLoc())
Emit the expression Value into the output as a native integer of the given Size bytes.
Generic base class for all target subtargets.
bool hasFeature(unsigned Feature) const
LLVM_ABI void setOther(unsigned Other)
Represent a reference to a symbol from inside an expression.
const MCSymbol & getSymbol() const
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 ...
StringRef getName() const
getName - Get the symbol name.
MCStreamer & getStreamer()
MCTargetStreamer(MCStreamer &S)
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, unsigned AltIdx=Mips::NoRegAltName)
void emitDirectiveSetMips32R3() override
void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value) override
void emitDirectiveSetArch(StringRef Arch) override
void emitDirectiveModuleGINV() override
void emitDirectiveCpsetup(MCRegister Reg, int RegOrOffset, const MCSymbol &Sym, bool IsReg) override
MipsTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
void emitDirectiveSetEVA() override
void emitDirectiveSetMips5() override
void emitDirectiveSetNoVirt() override
void emitDirectiveSetNoAt() override
void emitDirectiveSetNoCRC() override
void emitDirectiveSetMips32R5() override
void emitDirectiveSetNoMacro() override
void emitDirectiveModuleMT() override
void emitDirectiveSetNoOddSPReg() override
void emitDirectiveCpLocal(MCRegister Reg) override
void emitDirectiveModuleCRC() override
void emitDirectiveEnt(const MCSymbol &Symbol) override
void emitDirectiveSetDspr2() override
void emitDirectiveSetMips1() override
void emitDirectiveSetMips64R2() override
void emitDirectiveSetMips4() override
void emitDirectiveSetNoEVA() override
void emitDirectiveModuleSoftFloat() override
void emitDirectiveSetMips16() override
void emitDirectiveSetMt() override
void emitDirectiveInsn() override
void emitDTPRel64Value(const MCExpr *) override
void emitDirectiveSetMicroMips() override
void emitTPRel64Value(const MCExpr *) override
void emitDirectiveModuleNoCRC() override
void emitDirectiveSetMips32R6() override
bool emitDirectiveCpRestore(int Offset, function_ref< MCRegister()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) override
Emit a .cprestore directive.
void emitDirectiveCpAdd(MCRegister Reg) override
void emitDirectiveSetNoGINV() override
void emitDirectiveSetMips64R5() override
void emitDirectiveSetMips32() override
void emitDirectiveCpLoad(MCRegister Reg) 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 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
bool emitDirectiveCpRestore(int Offset, function_ref< MCRegister()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) override
void emitDTPRel32Value(const MCExpr *) override
MipsTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
void emitDirectiveNaN2008() override
void emitDirectiveSetNoMicroMips() override
void emitGPRel64Value(const MCExpr *) 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
void emitDirectiveCpsetup(MCRegister Reg, int RegOrOffset, const MCSymbol &Sym, bool IsReg) override
void emitDirectiveCpAdd(MCRegister Reg) override
void emitDirectiveCpLocal(MCRegister Reg) 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 emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override
void emitDirectiveAbiCalls() override
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override
void emitDirectiveCpLoad(MCRegister Reg) 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 emitDirectiveSetEVA()
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 emitDirectiveCpLoad(MCRegister Reg)
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 emitDirectiveSetNoEVA()
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 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 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 bool emitDirectiveCpRestore(int Offset, function_ref< MCRegister()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveModuleCRC()
virtual void emitDirectiveModuleGINV()
virtual void emitDirectiveSetNoAt()
virtual void emitDirectiveNaNLegacy()
virtual void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff)
virtual void emitDirectiveCpsetup(MCRegister Reg, int RegOrOffset, const MCSymbol &Sym, bool IsReg)
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 emitDirectiveCpAdd(MCRegister Reg)
virtual void emitDirectiveSetAtWithArg(unsigned RegNo)
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 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()
void emitStoreWithImmOffset(unsigned Opcode, MCRegister SrcReg, MCRegister BaseReg, int64_t Offset, function_ref< MCRegister()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a store instruction with an offset.
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 emitDirectiveCpLocal(MCRegister Reg)
virtual void emitDirectiveSetMips16()
virtual void emitDirectiveSetMips64()
virtual void emitDirectiveAbiCalls()
virtual void emitDirectiveModuleFP()
MipsABIFlagsSection ABIFlagsSection
Represents a location in source code.
Represent a constant reference to a string, i.e.
LLVM_ABI std::string lower() const
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.
constexpr bool isInt(int64_t x)
Checks if an integer fits into the given bit width.
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.