34 "mips-round-section-sizes",
cl::init(
false),
69 unsigned ReturnReg) {}
113 bool SaveLocationIsRegister) {}
185 unsigned Reg2,
SMLoc IDLoc,
191 int16_t Imm,
SMLoc IDLoc,
197 unsigned TrgReg,
bool Is64Bit,
199 emitRRR(Is64Bit ? Mips::DADDu : Mips::ADDu, DstReg, SrcReg, TrgReg,
SMLoc(),
204 int16_t ShiftAmount,
SMLoc IDLoc,
206 if (ShiftAmount >= 32) {
207 emitRRI(Mips::DSLL32, DstReg, SrcReg, ShiftAmount - 32, IDLoc, STI);
211 emitRRI(Mips::DSLL, DstReg, SrcReg, ShiftAmount, IDLoc, STI);
216 if (hasShortDelaySlot)
217 emitRR(Mips::MOVE16_MM, Mips::ZERO, Mips::ZERO, IDLoc, STI);
219 emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
223 emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI);
235 unsigned Opcode,
unsigned SrcReg,
unsigned BaseReg, int64_t Offset,
239 emitRRI(Opcode, SrcReg, BaseReg, Offset, IDLoc, STI);
247 unsigned ATReg = GetATReg();
251 unsigned LoOffset = Offset & 0x0000ffff;
252 unsigned HiOffset = (Offset & 0xffff0000) >> 16;
256 if (LoOffset & 0x8000)
260 emitRI(Mips::LUi, ATReg, HiOffset, IDLoc, STI);
261 if (BaseReg != Mips::ZERO)
262 emitRRR(Mips::ADDu, ATReg, ATReg, BaseReg, IDLoc, STI);
264 emitRRI(Opcode, SrcReg, ATReg, LoOffset, IDLoc, STI);
270 unsigned Opcode,
unsigned SrcReg,
unsigned BaseReg,
MCOperand &HiOperand,
277 emitRX(Mips::LUi, ATReg, HiOperand, IDLoc, STI);
278 if (BaseReg != Mips::ZERO)
279 emitRRR(Mips::ADDu, ATReg, ATReg, BaseReg, IDLoc, STI);
281 emitRRX(Opcode, SrcReg, ATReg, LoOperand, IDLoc, STI);
289 unsigned BaseReg, int64_t Offset,
290 unsigned TmpReg,
SMLoc IDLoc,
293 emitRRI(Opcode, DstReg, BaseReg, Offset, IDLoc, STI);
304 unsigned LoOffset = Offset & 0x0000ffff;
305 unsigned HiOffset = (Offset & 0xffff0000) >> 16;
309 if (LoOffset & 0x8000)
313 emitRI(Mips::LUi, TmpReg, HiOffset, IDLoc, STI);
314 if (BaseReg != Mips::ZERO)
315 emitRRR(Mips::ADDu, TmpReg, TmpReg, BaseReg, IDLoc, STI);
317 emitRRI(Opcode, DstReg, TmpReg, LoOffset, IDLoc, STI);
329 unsigned TmpReg,
SMLoc IDLoc,
337 emitRX(Mips::LUi, TmpReg, HiOperand, IDLoc, STI);
338 if (BaseReg != Mips::ZERO)
339 emitRRR(Mips::ADDu, TmpReg, TmpReg, BaseReg, IDLoc, STI);
341 emitRRX(Opcode, DstReg, TmpReg, LoOperand, IDLoc, STI);
349 OS <<
"\t.set\tmicromips\n";
354 OS <<
"\t.set\tnomicromips\n";
359 OS <<
"\t.set\tmips16\n";
364 OS <<
"\t.set\tnomips16\n";
369 OS <<
"\t.set\treorder\n";
374 OS <<
"\t.set\tnoreorder\n";
379 OS <<
"\t.set\tmacro\n";
384 OS <<
"\t.set\tnomacro\n";
389 OS <<
"\t.set\tmsa\n";
394 OS <<
"\t.set\tnomsa\n";
399 OS <<
"\t.set\tmt\n";
404 OS <<
"\t.set\tnomt\n";
409 OS <<
"\t.set\tat\n";
414 OS <<
"\t.set\tat=$" <<
Twine(RegNo) <<
"\n";
419 OS <<
"\t.set\tnoat\n";
424 OS <<
"\t.end\t" << Name <<
'\n';
428 OS <<
"\t.ent\t" << Symbol.
getName() <<
'\n';
436 OS <<
"\t.nan\tlegacy\n";
440 OS <<
"\t.option\tpic0\n";
444 OS <<
"\t.option\tpic2\n";
453 unsigned ReturnReg) {
461 OS <<
"\t.set arch=" << Arch <<
"\n";
466 OS <<
"\t.set\tmips0\n";
471 OS <<
"\t.set\tmips1\n";
476 OS <<
"\t.set\tmips2\n";
481 OS <<
"\t.set\tmips3\n";
486 OS <<
"\t.set\tmips4\n";
491 OS <<
"\t.set\tmips5\n";
496 OS <<
"\t.set\tmips32\n";
501 OS <<
"\t.set\tmips32r2\n";
506 OS <<
"\t.set\tmips32r3\n";
511 OS <<
"\t.set\tmips32r5\n";
516 OS <<
"\t.set\tmips32r6\n";
521 OS <<
"\t.set\tmips64\n";
526 OS <<
"\t.set\tmips64r2\n";
531 OS <<
"\t.set\tmips64r3\n";
536 OS <<
"\t.set\tmips64r5\n";
541 OS <<
"\t.set\tmips64r6\n";
546 OS <<
"\t.set\tdsp\n";
551 OS <<
"\t.set\tnodsp\n";
556 OS <<
"\t.set\tpop\n";
561 OS <<
"\t.set\tpush\n";
566 OS <<
"\t.set\tsoftfloat\n";
571 OS <<
"\t.set\thardfloat\n";
578 for (
int i = 7; i >= 0; i--)
579 OS.
write_hex((Value & (0xF << (i * 4))) >> (i * 4));
583 int CPUTopSavedRegOff) {
586 OS <<
',' << CPUTopSavedRegOff <<
'\n';
590 int FPUTopSavedRegOff) {
593 OS <<
"," << FPUTopSavedRegOff <<
'\n';
606 OS <<
"\t.cprestore\t" << Offset <<
"\n";
614 OS <<
"\t.cpsetup\t$"
630 bool SaveLocationIsRegister) {
636 OS <<
"\t.module\tfp=";
656 OS <<
"\t.set\toddspreg\n";
661 OS <<
"\t.set\tnooddspreg\n";
665 OS <<
"\t.module\tsoftfloat\n";
669 OS <<
"\t.module\thardfloat\n";
673 OS <<
"\t.module\tmt\n";
718 if (Features[Mips::FeatureMips64r6])
720 else if (Features[Mips::FeatureMips64r2] ||
721 Features[Mips::FeatureMips64r3] ||
722 Features[Mips::FeatureMips64r5])
724 else if (Features[Mips::FeatureMips64])
726 else if (Features[Mips::FeatureMips5])
728 else if (Features[Mips::FeatureMips4])
730 else if (Features[Mips::FeatureMips3])
732 else if (Features[Mips::FeatureMips32r6])
734 else if (Features[Mips::FeatureMips32r2] ||
735 Features[Mips::FeatureMips32r3] ||
736 Features[Mips::FeatureMips32r5])
738 else if (Features[Mips::FeatureMips32])
740 else if (Features[Mips::FeatureMips2])
746 if (Features[Mips::FeatureCnMips])
750 if (Features[Mips::FeatureNaN2008])
757 auto *
Symbol = cast<MCSymbolELF>(S);
783 if (RoundSectionSizes) {
813 else if (
getABI().IsN32())
816 if (Features[Mips::FeatureGP64Bit]) {
819 }
else if (Features[Mips::FeatureMips64r2] || Features[Mips::FeatureMips64])
824 if (!Features[Mips::FeatureNoABICalls])
842 auto *
Symbol = cast<MCSymbolELF>(S);
846 const auto &RhsSym = cast<MCSymbolELF>(
860 MicroMipsEnabled =
true;
865 MicroMipsEnabled =
false;
997 unsigned ReturnReg_) {
1008 int CPUTopSavedRegOff) {
1015 int FPUTopSavedRegOff) {
1115 emitRRR(Mips::OR64, RegOrOffset, Mips::GP, Mips::ZERO,
SMLoc(), &STI);
1118 emitRRI(Mips::SD, Mips::GP, Mips::SP, RegOrOffset,
SMLoc(), &STI);
1155 emitRRR(Mips::DADDu, Mips::GP, Mips::GP, RegNo,
SMLoc(), &STI);
1159 bool SaveLocationIsRegister) {
1166 if (SaveLocationIsRegister) {
void emitDirectiveSetDsp() override
void emitDirectiveEnd(StringRef Name) override
virtual void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff)
void emitRR(unsigned Opcode, unsigned Reg0, unsigned Reg1, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitDirectiveSetMips3() override
void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override
void emitDirectiveModuleMT() override
void setELFHeaderEFlags(unsigned Flags)
Instances of this class represent a uniqued identifier for a section in the current translation unit...
void emitDirectiveModuleSoftFloat() override
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) override
void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) override
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
bool UseCodeAlign() const override
Return true if a .align directive should use "optimized nops" to fill instead of 0s.
virtual void emitDirectiveOptionPic2()
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
void emitDirectiveOptionPic2() override
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
void emitDirectiveSetMips2() override
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
void emitDirectiveSetReorder() override
void emitDirectiveSetNoMicroMips() override
static MCOperand createExpr(const MCExpr *Val)
void emitDirectiveSetMt() override
void emitAddu(unsigned DstReg, unsigned SrcReg, unsigned TrgReg, bool Is64Bit, const MCSubtargetInfo *STI)
Target specific streamer interface.
void emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) override
void setAlignment(unsigned Value)
void emitDirectiveSetOddSPReg() override
void emitDirectiveNaN2008() override
An efficient, type-erasing, non-owning reference to a callable.
void emitDirectiveOptionPic0() override
virtual void emitDirectiveSetNoReorder()
void emitDirectiveModuleFP() override
virtual void emitDirectiveModuleHardFloat()
void registerSymbol(const MCSymbol &Symbol, bool *Created=nullptr)
void PushSection()
Save the current and previous section on the section stack.
MCSection * getDataSection() const
void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value) override
constexpr bool isInt< 16 >(int64_t x)
void emitGPRestore(int Offset, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit the $gp restore operation for .cprestore.
unsigned getELFHeaderEFlags() const
ELF e_header flags.
unsigned getAlignment() const
void emitDirectiveSetMips32R6() override
MCContext & getContext() const
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.
MipsTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
bool emitDirectiveCpRestore(int Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) override
Emit a .cprestore directive.
void emitDirectiveCpLoad(unsigned RegNo) override
virtual void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI, bool PrintSchedInfo=false)
Emit the given Instruction into the current section.
virtual void emitDirectiveSetMips32R3()
virtual void emitDirectiveSetMicroMips()
void emitDirectiveSetNoMt() override
virtual void emitDirectiveSetMips3()
void emitDirectiveSetAt() override
void emitDirectiveSetPop() override
void emitDirectiveSetMips4() override
void emitFrame(unsigned StackReg, unsigned StackSize, unsigned ReturnReg) override
static MCOperand createReg(unsigned Reg)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
virtual void emitDirectiveModuleMT()
void emitLoadWithImmOffset(unsigned Opcode, unsigned DstReg, unsigned BaseReg, int64_t Offset, unsigned TmpReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a load instruction with an immediate offset.
void emitDirectiveAbiCalls() override
void emitDirectiveSetMicroMips() override
virtual void emitFrame(unsigned StackReg, unsigned StackSize, unsigned ReturnReg)
virtual void emitDirectiveSetMips0()
void emitDirectiveSetNoAt() override
virtual void emitDirectiveSetSoftFloat()
virtual void emitDirectiveSetNoMacro()
void emitDirectiveSetMsa() override
Base class for the full range of assembler expressions which are needed for parsing.
virtual void emitDirectiveSetPush()
bool registerSection(MCSection &Section)
virtual void emitDirectiveEnd(StringRef Name)
Represent a reference to a symbol from inside an expression.
virtual void emitDirectiveSetMips32R6()
void emitDirectiveSetMips1() override
void createPendingLabelRelocs()
Mark labels as microMIPS, if necessary for the subtarget.
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override
virtual void emitDirectiveSetMips1()
virtual void emitDirectiveModuleOddSPReg()
Context object for machine code objects.
void emitNop(SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveModuleSoftFloat()
MCSection * getBSSSection() const
static const MCBinaryExpr * createSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
void emitDirectiveSetSoftFloat() override
MipsABIFlagsSection ABIFlagsSection
raw_ostream & write_hex(unsigned long long N)
Output N in hexadecimal, without any prefix or padding.
void emitDirectiveSetMips32R2() override
virtual void emitDirectiveModuleFP()
void emitDirectiveSetMips5() override
void emitDirectiveSetMips0() override
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
void emitLabel(MCSymbol *Symbol) override
virtual void emitDirectiveSetOddSPReg()
virtual void emitDirectiveSetMips64R2()
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...
virtual void emitDirectiveSetNoOddSPReg()
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) override
Expected< const typename ELFT::Sym * > getSymbol(typename ELFT::SymRange Symbols, uint32_t Index)
Instances of this class represent a single low-level machine instruction.
void emitRX(unsigned Opcode, unsigned Reg0, MCOperand Op1, SMLoc IDLoc, const MCSubtargetInfo *STI)
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
virtual void setUsesMicroMips()
Function Alias Analysis false
void emitDirectiveSetMips16() override
initializer< Ty > init(const Ty &Val)
void emitDirectiveNaNLegacy() override
void emitDirectiveSetHardFloat() override
void emitDirectiveSetMips32R3() override
Streaming machine code generation interface.
void emitDirectiveSetMips64() override
MCSymbol * createTempSymbol(bool CanBeUnnamed=true)
Create and return a new assembler temporary symbol with a unique but unspecified name.
virtual void emitDirectiveSetMips4()
Container class for subtarget features.
static const MipsMCExpr * createGpOff(MipsExprKind Kind, const MCExpr *Expr, MCContext &Ctx)
The instances of the Type class are immutable: once they are created, they are never changed...
virtual void emitDirectiveSetNoMicroMips()
virtual void emitDirectiveSetNoDsp()
StringRef getFpABIString(FpABIKind Value)
void emitDirectiveSetNoReorder() override
virtual void emitDirectiveSetMips16()
virtual void SwitchSection(MCSection *Section, const MCExpr *Subsection=nullptr)
Set the current section where code is being emitted to Section.
MCAssembler & getAssembler()
static ManagedStatic< OptionRegistry > OR
virtual void emitDirectiveSetMacro()
void emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) override
virtual void emitDirectiveNaN2008()
void emitRI(unsigned Opcode, unsigned Reg0, int32_t Imm, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveCpLoad(unsigned RegNo)
virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value=0, unsigned ValueSize=1, unsigned MaxBytesToEmit=0)
Emit some number of copies of Value until the byte alignment ByteAlignment is reached.
void emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetArch(StringRef Arch)
void emitDirectiveSetMips32() override
virtual void emitDirectiveSetDsp()
virtual void emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff)
MCSection * getTextSection() const
void emitDirectiveSetMips64R2() override
void emitDirectiveSetMacro() override
virtual void emitDirectiveSetMips32R5()
void emitDirectiveSetNoMsa() override
void emitDirectiveSetMips64R3() override
virtual void emitDirectiveSetMips32R2()
void emitLoadWithSymOffset(unsigned Opcode, unsigned DstReg, unsigned BaseReg, MCOperand &HiOperand, MCOperand &LoOperand, unsigned ATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a load instruction with an symbol offset.
void emitDirectiveSetMips16() override
virtual void emitDirectiveSetFp(MipsABIFlagsSection::FpABIKind Value)
void emitRRR(unsigned Opcode, unsigned Reg0, unsigned Reg1, unsigned Reg2, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveAbiCalls()
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override
virtual void emitDirectiveSetMips64R6()
void emitDirectiveEnt(const MCSymbol &Symbol) override
MCStreamer & getStreamer()
void emitDirectiveEnt(const MCSymbol &Symbol) override
void setOpcode(unsigned Op)
virtual void emitDirectiveOptionPic0()
void emitDSLL(unsigned DstReg, unsigned SrcReg, int16_t ShiftAmount, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitAssignment(MCSymbol *Symbol, const MCExpr *Value) override
const MipsABIInfo & getABI() const
virtual void EmitCodeAlignment(unsigned ByteAlignment, unsigned MaxBytesToEmit=0)
Emit nops until the byte alignment ByteAlignment is reached.
virtual void emitDirectiveSetPop()
void emitDirectiveSetMips32R5() override
void emitEmptyDelaySlot(bool hasShortDelaySlot, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitDirectiveInsn() override
bool isPositionIndependent() const
virtual void emitDirectiveSetAt()
virtual void emitDirectiveSetNoMips16()
void emitDirectiveSetNoOddSPReg() override
const FeatureBitset & getFeatureBits() const
getFeatureBits - Return the feature bits.
bool isMicroMipsEnabled() const
void emitDirectiveSetAtWithArg(unsigned RegNo) override
void emitDirectiveEnd(StringRef Name) override
MipsTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
virtual void emitDirectiveInsn()
void setUsesMicroMips() override
void EmitMipsOptionRecords()
Emits all the option records stored up until the point it's called.
void emitDirectiveSetNoDsp() override
virtual void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg)
static const MipsMCExpr * create(MipsExprKind Kind, const MCExpr *Expr, MCContext &Ctx)
void emitDirectiveSetMips64R5() override
void emitStoreWithImmOffset(unsigned Opcode, unsigned SrcReg, unsigned BaseReg, int64_t Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a store instruction with an offset.
virtual void emitDirectiveSetMips64R3()
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
virtual void emitDirectiveSetMips64R5()
const MCRegisterInfo * getRegisterInfo() const
void emitDirectiveCpLoad(unsigned RegNo) override
static std::vector< std::string > Flags
virtual void emitDirectiveEnt(const MCSymbol &Symbol)
StringRef getName() const
getName - Get the symbol name.
virtual void emitDirectiveSetHardFloat()
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
virtual void emitDirectiveSetMips64()
MCELFStreamer & getStreamer()
virtual bool emitDirectiveCpRestore(int Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetMips5()
void emitDirectiveSetNoMips16() override
void emitDirectiveOptionPic2() override
virtual void emitDirectiveSetMips2()
MCSubtargetInfo - Generic base class for all target subtargets.
This represents a section on linux, lots of unix variants and some bare metal systems.
References to labels and assigned expressions.
void emitDirectiveSetNoMacro() override
MipsTargetStreamer(MCStreamer &S)
void emitDirectiveSetNoMicroMips() override
const Triple & getTargetTriple() const
getTargetTriple - Return the target triple string.
void emitFrame(unsigned StackReg, unsigned StackSize, unsigned ReturnReg) override
void emitDirectiveSetMips64R6() override
virtual void emitDirectiveSetMt()
static bool hasShortDelaySlot(unsigned Opcode)
void emitDirectiveSetArch(StringRef Arch) override
void emitDirectiveModuleOddSPReg() override
void emitDirectiveAbiCalls() override
void emitRRI(unsigned Opcode, unsigned Reg0, unsigned Reg1, int16_t Imm, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitRRX(unsigned Opcode, unsigned Reg0, unsigned Reg1, MCOperand Op2, SMLoc IDLoc, const MCSubtargetInfo *STI)
virtual void emitDirectiveSetNoMt()
bool PopSection()
Restore the current and previous section from the section stack.
MCSectionELF * getELFSection(const Twine &Section, unsigned Type, unsigned Flags)
virtual void emitDirectiveSetReorder()
static const char * getRegisterName(unsigned RegNo)
uint16_t getEncodingValue(unsigned RegNo) const
Returns the encoding for RegNo.
LLVM Value Representation.
void forbidModuleDirective()
const MCObjectFileInfo * getObjectFileInfo() const
virtual void emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister)
llvm::Optional< MipsABIInfo > ABI
const FeatureBitset Features
virtual void emitDirectiveNaNLegacy()
virtual void EmitLabel(MCSymbol *Symbol, SMLoc Loc=SMLoc())
Emit a label for Symbol into the current section.
void emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc, const MCSubtargetInfo *STI)
void emitDirectiveSetNoReorder() override
This class implements an extremely fast bulk output stream that can only output to a stream...
virtual void emitDirectiveSetMips32()
virtual void emitDirectiveSetNoMsa()
void addOperand(const MCOperand &Op)
StringRef - Represent a constant reference to a string, i.e.
void emitDirectiveNaN2008() override
virtual void emitDirectiveSetMsa()
static void printHex32(unsigned Value, raw_ostream &OS)
virtual void emitDirectiveSetNoAt()
Represents a location in source code.
Instances of this class represent operands of the MCInst class.
bool emitDirectiveCpRestore(int Offset, function_ref< unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) override
virtual void emitDirectiveSetAtWithArg(unsigned RegNo)
static MCOperand createImm(int64_t Val)
void emitDirectiveInsn() override
void emitDirectiveSetPush() override
LLVM_NODISCARD std::string lower() const
void emitDirectiveModuleHardFloat() override
void emitDirectiveNaNLegacy() override
void emitStoreWithSymOffset(unsigned Opcode, unsigned SrcReg, unsigned BaseReg, MCOperand &HiOperand, MCOperand &LoOperand, unsigned ATReg, SMLoc IDLoc, const MCSubtargetInfo *STI)
Emit a store instruction with an symbol offset.
void emitDirectiveOptionPic0() override
void emitDirectiveSetMicroMips() override
void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI, bool=false) override
Emit the given Instruction into the current section.