14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSASMPRINTER_H
28 class MachineBasicBlock;
29 class MipsTargetStreamer;
43 void LowerPATCHABLE_FUNCTION_ENTER(
const MachineInstr &MI);
44 void LowerPATCHABLE_FUNCTION_EXIT(
const MachineInstr &MI);
54 bool emitPseudoExpansionLowering(
MCStreamer &OutStreamer,
60 void emitPseudoIndirectBranch(
MCStreamer &OutStreamer,
74 std::map<const char *, const llvm::Mips16HardFloatInfo::FuncSignature *>
77 void emitInlineAsmStart()
const override;
87 unsigned Reg1,
unsigned Reg2);
90 unsigned Reg1,
unsigned Reg2,
unsigned Reg3);
93 unsigned Reg1,
unsigned Reg2,
unsigned FPReg1,
94 unsigned FPReg2,
bool LE);
107 bool isLongBranchPseudo(
int Opcode)
const;
116 std::unique_ptr<MCStreamer> Streamer)
117 :
AsmPrinter(TM, std::move(Streamer)), MCP(nullptr),
118 InConstantPool(
false), MCInstLowering(*this) {}
125 bool UsingConstantPools =
126 (Subtarget->inMips16Mode() && Subtarget->useConstantIslands());
127 if (!UsingConstantPools)
133 void printSavedRegsBitmask();
134 void emitFrameDirective();
135 const char *getCurrentABIString()
const;
136 void EmitFunctionEntryLabel()
override;
137 void EmitFunctionBodyStart()
override;
138 void EmitFunctionBodyEnd()
override;
140 bool isBlockOnlyReachableByFallthrough(
142 bool PrintAsmOperand(
const MachineInstr *MI,
unsigned OpNo,
143 unsigned AsmVariant,
const char *ExtraCode,
145 bool PrintAsmMemoryOperand(
const MachineInstr *MI,
unsigned OpNum,
146 unsigned AsmVariant,
const char *ExtraCode,
152 const char *Modifier =
nullptr);
154 void EmitStartOfAsmFile(
Module &M)
override;
155 void EmitEndOfAsmFile(
Module &M)
override;
157 void EmitDebugThreadLocal(
const MCExpr *
Value,
unsigned Size)
const 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. ...
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.
Reg
All possible values of the reg field in the ModR/M byte.
MipsMCInstLower - This class is used to lower an MachineInstr into an.
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...
Function Alias Analysis false
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.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
Representation of each machine instruction.
static bool printOperand(raw_ostream &OS, const SelectionDAG *G, const SDValue Value)
const MipsSubtarget * Subtarget
MCSubtargetInfo - 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.