14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H
28 class MachineBasicBlock;
29 class MipsTargetStreamer;
40 bool emitPseudoExpansionLowering(
MCStreamer &OutStreamer,
46 void emitPseudoIndirectBranch(
MCStreamer &OutStreamer,
60 std::map<const char *, const llvm::Mips16HardFloatInfo::FuncSignature *>
63 void emitInlineAsmStart()
const override;
73 unsigned Reg1,
unsigned Reg2);
76 unsigned Reg1,
unsigned Reg2,
unsigned Reg3);
79 unsigned Reg1,
unsigned Reg2,
unsigned FPReg1,
80 unsigned FPReg2,
bool LE);
93 bool isLongBranchPseudo(
int Opcode)
const;
102 std::unique_ptr<MCStreamer> Streamer)
103 :
AsmPrinter(TM, std::move(Streamer)), MCP(nullptr),
104 InConstantPool(
false), MCInstLowering(*this) {}
107 return "Mips Assembly Printer";
113 bool UsingConstantPools =
114 (Subtarget->inMips16Mode() && Subtarget->useConstantIslands());
115 if (!UsingConstantPools)
121 void printSavedRegsBitmask();
122 void emitFrameDirective();
123 const char *getCurrentABIString()
const;
124 void EmitFunctionEntryLabel()
override;
125 void EmitFunctionBodyStart()
override;
126 void EmitFunctionBodyEnd()
override;
128 bool isBlockOnlyReachableByFallthrough(
130 bool PrintAsmOperand(
const MachineInstr *MI,
unsigned OpNo,
131 unsigned AsmVariant,
const char *ExtraCode,
133 bool PrintAsmMemoryOperand(
const MachineInstr *MI,
unsigned OpNum,
134 unsigned AsmVariant,
const char *ExtraCode,
142 const char *Modifier =
nullptr);
144 void EmitStartOfAsmFile(
Module &M)
override;
145 void EmitEndOfAsmFile(
Module &M)
override;
The MachineConstantPool class keeps track of constants referenced by a function which must be spilled...
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
A Module instance is used to store all the information related to an LLVM module. ...
const char * getPassName() const override
getPassName - Return a nice clean name for a pass.
virtual void EmitConstantPool()
Print to the current output stream assembly representations of the constants in the constant pool MCP...
Reg
All possible values of the reg field in the ModR/M byte.
MipsMCInstLower - This class is used to lower an MachineInstr into an.
static void printOperand(raw_ostream &OS, uint8_t Opcode, unsigned OperandIdx, uint64_t Operand, uint64_t CodeAlignmentFactor, int64_t DataAlignmentFactor)
Print Opcode's operand number OperandIdx which has value Operand.
void EmitConstantPool() override
Print to the current output stream assembly representations of the constants in the constant pool MCP...
Streaming machine code generation interface.
This class is intended to be used as a driving class for all asm writers.
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
MipsMCInstLower MCInstLowering
MipsAsmPrinter(TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
MachineOperand class - Representation of each machine instruction operand.
Representation of each machine instruction.
const MipsSubtarget * Subtarget
MCSubtargetInfo - Generic base class for all target subtargets.
MipsFunctionInfo - This class is derived from MachineFunction private Mips target-specific informatio...
This class implements an extremely fast bulk output stream that can only output to a stream...
Primary interface to the complete machine description for the target machine.
const MipsFunctionInfo * MipsFI
Instances of this class represent operands of the MCInst class.