13 #ifndef LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H 14 #define LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H 29 class MCSubtargetInfo;
31 class MachineBasicBlock;
32 class MachineConstantPool;
33 class MachineFunction;
36 class MipsFunctionInfo;
37 class MipsTargetStreamer;
53 void LowerPATCHABLE_FUNCTION_ENTER(
const MachineInstr &MI);
54 void LowerPATCHABLE_FUNCTION_EXIT(
const MachineInstr &MI);
64 bool InConstantPool =
false;
66 std::map<const char *, const Mips16HardFloatInfo::FuncSignature *>
72 bool emitPseudoExpansionLowering(
MCStreamer &OutStreamer,
78 void emitPseudoIndirectBranch(
MCStreamer &OutStreamer,
84 void emitInlineAsmStart()
const override;
94 unsigned Reg1,
unsigned Reg2);
97 unsigned Reg1,
unsigned Reg2,
unsigned Reg3);
100 unsigned Reg1,
unsigned Reg2,
unsigned FPReg1,
101 unsigned FPReg2,
bool LE);
114 bool isLongBranchPseudo(
int Opcode)
const;
122 std::unique_ptr<MCStreamer> Streamer)
123 :
AsmPrinter(TM,
std::move(Streamer)), MCInstLowering(*this) {}
130 bool UsingConstantPools =
132 if (!UsingConstantPools)
138 void printSavedRegsBitmask();
139 void emitFrameDirective();
140 const char *getCurrentABIString()
const;
141 void EmitFunctionEntryLabel()
override;
142 void EmitFunctionBodyStart()
override;
143 void EmitFunctionBodyEnd()
override;
145 bool isBlockOnlyReachableByFallthrough(
147 bool PrintAsmOperand(
const MachineInstr *MI,
unsigned OpNo,
149 bool PrintAsmMemoryOperand(
const MachineInstr *MI,
unsigned OpNum,
155 const char *Modifier =
nullptr);
157 void EmitStartOfAsmFile(
Module &M)
override;
158 void EmitEndOfAsmFile(
Module &M)
override;
160 void EmitDebugValue(
const MCExpr *
Value,
unsigned Size)
const override;
165 #endif // LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H The MachineConstantPool class keeps track of constants referenced by a function which must be spilled...
This class represents lattice values for constants.
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. ...
bool inMips16Mode() const
virtual void EmitConstantPool()
Print to the current output stream assembly representations of the constants in the constant pool MCP...
Base class for the full range of assembler expressions which are needed for parsing.
MipsMCInstLower - This class is used to lower an MachineInstr into an MCInst.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
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)
static bool useConstantIslands()
static void printMemOperand(raw_ostream &OS, const MachineMemOperand &MMO, const MachineFunction *MF, const Module *M, const MachineFrameInfo *MFI, const TargetInstrInfo *TII, LLVMContext &Ctx)
MachineOperand class - Representation of each machine instruction operand.
Representation of each machine instruction.
static bool printOperand(raw_ostream &OS, const SelectionDAG *G, const SDValue Value)
const MipsSubtarget * Subtarget
Generic base class for all target subtargets.
MipsFunctionInfo - This class is derived from MachineFunction private Mips target-specific informatio...
LLVM Value Representation.
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
StringRef - Represent a constant reference to a string, i.e.
Instances of this class represent operands of the MCInst class.