LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::MipsAsmPrinter Class Reference

#include "Target/Mips/MipsAsmPrinter.h"

Inheritance diagram for llvm::MipsAsmPrinter:
Inheritance graph
[legend]
Collaboration diagram for llvm::MipsAsmPrinter:
Collaboration graph
[legend]

Public Member Functions

void LowerPATCHABLE_FUNCTION_ENTER (const MachineInstr &MI)
 
void LowerPATCHABLE_FUNCTION_EXIT (const MachineInstr &MI)
 
void LowerPATCHABLE_TAIL_CALL (const MachineInstr &MI)
 
 MipsAsmPrinter (TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
 
StringRef getPassName () const override
 getPassName - Return a nice clean name for a pass. More...
 
bool runOnMachineFunction (MachineFunction &MF) override
 Emit the specified function out to the OutStreamer. More...
 
void EmitConstantPool () override
 Print to the current output stream assembly representations of the constants in the constant pool MCP. More...
 
void EmitInstruction (const MachineInstr *MI) override
 Targets should implement this to emit instructions. More...
 
void printSavedRegsBitmask ()
 
void emitFrameDirective ()
 Frame Directive. More...
 
const chargetCurrentABIString () const
 Emit Set directives. More...
 
void EmitFunctionEntryLabel () override
 EmitFunctionEntryLabel - Emit the label that is the entrypoint for the function. More...
 
void EmitFunctionBodyStart () override
 EmitFunctionBodyStart - Targets can override this to emit stuff before the first basic block in the function. More...
 
void EmitFunctionBodyEnd () override
 EmitFunctionBodyEnd - Targets can override this to emit stuff after the last basic block in the function. More...
 
void EmitBasicBlockEnd (const MachineBasicBlock &MBB) override
 Targets can override this to emit stuff at the end of a basic block. More...
 
bool isBlockOnlyReachableByFallthrough (const MachineBasicBlock *MBB) const override
 isBlockOnlyReachableByFallthough - Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through. More...
 
bool PrintAsmOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &O) override
 Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant. More...
 
bool PrintAsmMemoryOperand (const MachineInstr *MI, unsigned OpNum, unsigned AsmVariant, const char *ExtraCode, raw_ostream &O) override
 Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant as an address. More...
 
void printOperand (const MachineInstr *MI, int opNum, raw_ostream &O)
 
void printMemOperand (const MachineInstr *MI, int opNum, raw_ostream &O)
 
void printMemOperandEA (const MachineInstr *MI, int opNum, raw_ostream &O)
 
void printFCCOperand (const MachineInstr *MI, int opNum, raw_ostream &O, const char *Modifier=nullptr)
 
void printRegisterList (const MachineInstr *MI, int opNum, raw_ostream &O)
 
void EmitStartOfAsmFile (Module &M) override
 This virtual method can be overridden by targets that want to emit something at the start of their file. More...
 
void EmitEndOfAsmFile (Module &M) override
 This virtual method can be overridden by targets that want to emit something at the end of their file. More...
 
void PrintDebugValueComment (const MachineInstr *MI, raw_ostream &OS)
 
void EmitDebugValue (const MCExpr *Value, unsigned Size) const override
 Emit the directive and value for debug thread local expression. More...
 
- Public Member Functions inherited from llvm::AsmPrinter
 ~AsmPrinter () override
 
DwarfDebuggetDwarfDebug ()
 
DwarfDebuggetDwarfDebug () const
 
uint16_t getDwarfVersion () const
 
void setDwarfVersion (uint16_t Version)
 
bool isPositionIndependent () const
 
bool isVerbose () const
 Return true if assembly output should contain comments. More...
 
unsigned getFunctionNumber () const
 Return a unique ID for the current function. More...
 
virtual const MCSymbolgetFunctionFrameSymbol () const
 Return symbol for the function pseudo stack if the stack frame is not a register based. More...
 
MCSymbolgetFunctionBegin () const
 
MCSymbolgetFunctionEnd () const
 
MCSymbolgetCurExceptionSym ()
 
const TargetLoweringObjectFilegetObjFileLowering () const
 Return information about object file lowering. More...
 
const DataLayoutgetDataLayout () const
 Return information about data layout. More...
 
unsigned getPointerSize () const
 Return the pointer size from the TargetMachine. More...
 
const MCSubtargetInfogetSubtargetInfo () const
 Return information about subtarget. More...
 
void EmitToStreamer (MCStreamer &S, const MCInst &Inst)
 
const MCSectiongetCurrentSection () const
 Return the current section we are emitting to. More...
 
void getNameWithPrefix (SmallVectorImpl< char > &Name, const GlobalValue *GV) const
 
MCSymbolgetSymbol (const GlobalValue *GV) const
 
void recordSled (MCSymbol *Sled, const MachineInstr &MI, SledKind Kind, uint8_t Version=0)
 
void emitXRayTable ()
 Emit a table with all XRay instrumentation points. More...
 
void getAnalysisUsage (AnalysisUsage &AU) const override
 Record analysis usage. More...
 
bool doInitialization (Module &M) override
 Set up the AsmPrinter when we are working on a new module. More...
 
bool doFinalization (Module &M) override
 Shut down the asmprinter. More...
 
void SetupMachineFunction (MachineFunction &MF)
 This should be called when a new MachineFunction is being processed from runOnMachineFunction. More...
 
void EmitFunctionBody ()
 This method emits the body and trailer for a function. More...
 
void emitCFIInstruction (const MachineInstr &MI)
 
void emitFrameAlloc (const MachineInstr &MI)
 
void emitStackSizeSection (const MachineFunction &MF)
 
CFIMoveType needsCFIMoves () const
 
bool needsOnlyDebugCFIMoves () const
 Returns false if needsCFIMoves() == CFI_M_EH for any function in the module. More...
 
bool needsSEHMoves ()
 
virtual void EmitJumpTableInfo ()
 Print assembly representations of the jump tables used by the current function to the current output stream. More...
 
virtual void EmitGlobalVariable (const GlobalVariable *GV)
 Emit the specified global variable to the .s file. More...
 
bool EmitSpecialLLVMGlobal (const GlobalVariable *GV)
 Check to see if the specified global is a special global used by LLVM. More...
 
void EmitAlignment (unsigned NumBits, const GlobalObject *GV=nullptr) const
 Emit an alignment directive to the specified power of two boundary. More...
 
virtual const MCExprlowerConstant (const Constant *CV)
 Lower the specified LLVM Constant to an MCExpr. More...
 
void EmitGlobalConstant (const DataLayout &DL, const Constant *CV)
 Print a general LLVM constant to the .s file. More...
 
void computeGlobalGOTEquivs (Module &M)
 Unnamed constant global variables solely contaning a pointer to another globals variable act like a global variable "proxy", or GOT equivalents, i.e., it's only used to hold the address of the latter. More...
 
void emitGlobalGOTEquivs ()
 Constant expressions using GOT equivalent globals may not be eligible for PC relative GOT entry conversion, in such cases we need to emit the proxies we previously omitted in EmitGlobalVariable. More...
 
void emitStackMaps (StackMaps &SM)
 Emit the stack maps. More...
 
virtual void EmitBasicBlockStart (const MachineBasicBlock &MBB) const
 Targets can override this to emit stuff at the start of a basic block. More...
 
virtual MCSymbolGetCPISymbol (unsigned CPID) const
 Return the symbol for the specified constant pool entry. More...
 
virtual void EmitMachineConstantPoolValue (MachineConstantPoolValue *MCPV)
 
virtual void EmitXXStructor (const DataLayout &DL, const Constant *CV)
 Targets can override this to change how global constants that are part of a C++ static/global constructor list are emitted. More...
 
virtual void emitImplicitDef (const MachineInstr *MI) const
 Targets can override this to customize the output of IMPLICIT_DEF instructions in verbose mode. More...
 
MCSymbolcreateTempSymbol (const Twine &Name) const
 
MCSymbolgetSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix) const
 Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix. More...
 
MCSymbolGetExternalSymbolSymbol (StringRef Sym) const
 Return the MCSymbol for the specified ExternalSymbol. More...
 
MCSymbolGetJTISymbol (unsigned JTID, bool isLinkerPrivate=false) const
 Return the symbol for the specified jump table entry. More...
 
MCSymbolGetJTSetSymbol (unsigned UID, unsigned MBBID) const
 Return the symbol for the specified jump table .set FIXME: privatize to AsmPrinter. More...
 
MCSymbolGetBlockAddressSymbol (const BlockAddress *BA) const
 Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block. More...
 
MCSymbolGetBlockAddressSymbol (const BasicBlock *BB) const
 
void printOffset (int64_t Offset, raw_ostream &OS) const
 This is just convenient handler for printing offsets. More...
 
void emitInt8 (int Value) const
 Emit a byte directive and value. More...
 
void emitInt16 (int Value) const
 Emit a short directive and value. More...
 
void emitInt32 (int Value) const
 Emit a long directive and value. More...
 
void emitInt64 (uint64_t Value) const
 Emit a long long directive and value. More...
 
void EmitLabelDifference (const MCSymbol *Hi, const MCSymbol *Lo, unsigned Size) const
 Emit something like ".long Hi-Lo" where the size in bytes of the directive is specified by Size and Hi/Lo specify the labels. More...
 
void EmitLabelDifferenceAsULEB128 (const MCSymbol *Hi, const MCSymbol *Lo) const
 Emit something like ".uleb128 Hi-Lo". More...
 
void EmitLabelPlusOffset (const MCSymbol *Label, uint64_t Offset, unsigned Size, bool IsSectionRelative=false) const
 Emit something like ".long Label+Offset" where the size in bytes of the directive is specified by Size and Label specifies the label. More...
 
void EmitLabelReference (const MCSymbol *Label, unsigned Size, bool IsSectionRelative=false) const
 Emit something like ".long Label" where the size in bytes of the directive is specified by Size and Label specifies the label. More...
 
void EmitDwarfOffset (const MCSymbol *Label, uint64_t Offset) const
 Emit something like ".long Label + Offset". More...
 
void EmitSLEB128 (int64_t Value, const char *Desc=nullptr) const
 Emit the specified signed leb128 value. More...
 
void EmitULEB128 (uint64_t Value, const char *Desc=nullptr) const
 Emit the specified unsigned leb128 value. More...
 
void EmitEncodingByte (unsigned Val, const char *Desc=nullptr) const
 Emit a .byte 42 directive that corresponds to an encoding. More...
 
unsigned GetSizeOfEncodedValue (unsigned Encoding) const
 Return the size of the encoding in bytes. More...
 
void EmitTTypeReference (const GlobalValue *GV, unsigned Encoding) const
 Emit reference to a ttype global with a specified encoding. More...
 
void emitDwarfSymbolReference (const MCSymbol *Label, bool ForceOffset=false) const
 Emit a reference to a symbol for use in dwarf. More...
 
void emitDwarfStringOffset (DwarfStringPoolEntry S) const
 Emit the 4-byte offset of a string from the start of its section. More...
 
void emitDwarfStringOffset (DwarfStringPoolEntryRef S) const
 Emit the 4-byte offset of a string from the start of its section. More...
 
virtual unsigned getISAEncoding ()
 Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified. More...
 
void emitCFIInstruction (const MCCFIInstruction &Inst) const
 Emit frame instruction to describe the layout of the frame. More...
 
template<typename T >
void emitDwarfAbbrevs (const T &Abbrevs) const
 Emit Dwarf abbreviation table. More...
 
void emitDwarfAbbrev (const DIEAbbrev &Abbrev) const
 
void emitDwarfDIE (const DIE &Die) const
 Recursively emit Dwarf DIE tree. More...
 
virtual void PrintSpecial (const MachineInstr *MI, raw_ostream &OS, const char *Code) const
 Print information related to the specified machine instr that is independent of the operand, and may be independent of the instr itself. More...
 
- Public Member Functions inherited from llvm::MachineFunctionPass
bool doInitialization (Module &) override
 doInitialization - Virtual method overridden by subclasses to do any necessary initialization before any pass is run. More...
 
- Public Member Functions inherited from llvm::FunctionPass
 FunctionPass (char &pid)
 
PasscreatePrinterPass (raw_ostream &OS, const std::string &Banner) const override
 createPrinterPass - Get a function printer pass. More...
 
void assignPassManager (PMStack &PMS, PassManagerType T) override
 Find appropriate Function Pass Manager or Call Graph Pass Manager in the PM Stack and add self into that manager. More...
 
PassManagerType getPotentialPassManagerType () const override
 Return what kind of Pass Manager can manage this pass. More...
 
- Public Member Functions inherited from llvm::Pass
 Pass (PassKind K, char &pid)
 
 Pass (const Pass &)=delete
 
Passoperator= (const Pass &)=delete
 
virtual ~Pass ()
 
PassKind getPassKind () const
 
AnalysisID getPassID () const
 getPassID - Return the PassID number that corresponds to this pass. More...
 
virtual void print (raw_ostream &OS, const Module *M) const
 print - Print out the internal state of the pass. More...
 
void dump () const
 
virtual void preparePassManager (PMStack &)
 Check if available pass managers are suitable for this pass or not. More...
 
void setResolver (AnalysisResolver *AR)
 
AnalysisResolvergetResolver () const
 
virtual void releaseMemory ()
 releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. More...
 
virtual void * getAdjustedAnalysisPointer (AnalysisID ID)
 getAdjustedAnalysisPointer - This method is used when a pass implements an analysis interface through multiple inheritance. More...
 
virtual ImmutablePassgetAsImmutablePass ()
 
virtual PMDataManagergetAsPMDataManager ()
 
virtual void verifyAnalysis () const
 verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis information. More...
 
virtual void dumpPassStructure (unsigned Offset=0)
 
template<typename AnalysisType >
AnalysisType * getAnalysisIfAvailable () const
 getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to get analysis information that might be around, for example to update it. More...
 
bool mustPreserveAnalysisID (char &AID) const
 mustPreserveAnalysisID - This method serves the same function as getAnalysisIfAvailable, but works if you just have an AnalysisID. More...
 
template<typename AnalysisType >
AnalysisType & getAnalysis () const
 getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More...
 
template<typename AnalysisType >
AnalysisType & getAnalysis (Function &F)
 getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More...
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI) const
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI, Function &F)
 

Public Attributes

const MipsSubtargetSubtarget
 
const MipsFunctionInfoMipsFI
 
MipsMCInstLower MCInstLowering
 
- Public Attributes inherited from llvm::AsmPrinter
TargetMachineTM
 Target machine description. More...
 
const MCAsmInfoMAI
 Target Asm Printer information. More...
 
MCContextOutContext
 This is the context for the output file that we are streaming. More...
 
std::unique_ptr< MCStreamerOutStreamer
 This is the MCStreamer object for the file we are generating. More...
 
MachineFunctionMF = nullptr
 The current machine function. More...
 
MachineModuleInfoMMI = nullptr
 This is a pointer to the current MachineModuleInfo. More...
 
MachineDominatorTreeMDT = nullptr
 This is a pointer to the current MachineLoopInfo. More...
 
MachineLoopInfoMLI = nullptr
 This is a pointer to the current MachineLoopInfo. More...
 
MachineOptimizationRemarkEmitterORE
 Optimization remark emitter. More...
 
MCSymbolCurrentFnSym = nullptr
 The symbol for the current function. More...
 
MCSymbolCurrentFnSymForSize = nullptr
 The symbol used to represent the start of the current function for the purpose of calculating its size (e.g. More...
 
MapVector< const MCSymbol *, GOTEquivUsePairGlobalGOTEquivs
 
bool EnablePrintSchedInfo = false
 Enable print [latency:throughput] in output. More...
 
SmallVector< XRayFunctionEntry, 4 > Sleds
 
unsigned XRayFnUniqueID = 0
 

Additional Inherited Members

- Public Types inherited from llvm::AsmPrinter
enum  SledKind : uint8_t {
  SledKind::FUNCTION_ENTER = 0, SledKind::FUNCTION_EXIT = 1, SledKind::TAIL_CALL = 2, SledKind::LOG_ARGS_ENTER = 3,
  SledKind::CUSTOM_EVENT = 4, SledKind::TYPED_EVENT = 5
}
 
enum  CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug }
 
using GOTEquivUsePair = std::pair< const GlobalVariable *, unsigned >
 Map global GOT equivalent MCSymbols to GlobalVariables and keep track of its number of uses by other globals. More...
 
- Static Public Member Functions inherited from llvm::Pass
static const PassInfolookupPassInfo (const void *TI)
 
static const PassInfolookupPassInfo (StringRef Arg)
 
static PasscreatePass (AnalysisID ID)
 
- Protected Member Functions inherited from llvm::AsmPrinter
 AsmPrinter (TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
 
- Protected Member Functions inherited from llvm::MachineFunctionPass
 MachineFunctionPass (char &ID)
 
void getAnalysisUsage (AnalysisUsage &AU) const override
 getAnalysisUsage - Subclasses that override getAnalysisUsage must call this. More...
 
virtual MachineFunctionProperties getRequiredProperties () const
 
virtual MachineFunctionProperties getSetProperties () const
 
virtual MachineFunctionProperties getClearedProperties () const
 
- Protected Member Functions inherited from llvm::FunctionPass
bool skipFunction (const Function &F) const
 Optional passes call this function to check whether the pass should be skipped. More...
 
- Protected Attributes inherited from llvm::AsmPrinter
SmallVector< HandlerInfo, 1 > Handlers
 A vector of all debug/EH info emitters we should use. More...
 

Detailed Description

Definition at line 43 of file MipsAsmPrinter.h.

Constructor & Destructor Documentation

◆ MipsAsmPrinter()

llvm::MipsAsmPrinter::MipsAsmPrinter ( TargetMachine TM,
std::unique_ptr< MCStreamer Streamer 
)
inlineexplicit

Definition at line 122 of file MipsAsmPrinter.h.

Member Function Documentation

◆ EmitBasicBlockEnd()

void MipsAsmPrinter::EmitBasicBlockEnd ( const MachineBasicBlock MBB)
overridevirtual

Targets can override this to emit stuff at the end of a basic block.

Reimplemented from llvm::AsmPrinter.

Definition at line 463 of file MipsAsmPrinter.cpp.

References llvm::AsmPrinter::EmitBasicBlockEnd(), llvm::MipsTargetStreamer::emitDirectiveInsn(), and llvm::MachineBasicBlock::empty().

◆ EmitConstantPool()

void llvm::MipsAsmPrinter::EmitConstantPool ( )
inlineoverridevirtual

Print to the current output stream assembly representations of the constants in the constant pool MCP.

EmitConstantPool - Print to the current output stream assembly representations of the constants in the constant pool MCP.

This is used to print out constants which have been "spilled to memory" by the code generator.

Reimplemented from llvm::AsmPrinter.

Definition at line 130 of file MipsAsmPrinter.h.

References llvm::AsmPrinter::EmitConstantPool(), llvm::MipsSubtarget::inMips16Mode(), llvm::RISCVFenceField::O, printMemOperand(), printOperand(), Size, and llvm::MipsSubtarget::useConstantIslands().

◆ EmitDebugValue()

void MipsAsmPrinter::EmitDebugValue ( const MCExpr Value,
unsigned  Size 
) const
overridevirtual

Emit the directive and value for debug thread local expression.

Value - The value to emit. Size - The size of the integer (in bytes) to emit.

Reimplemented from llvm::AsmPrinter.

Definition at line 1249 of file MipsAsmPrinter.cpp.

References llvm::AsmPrinter::EmitDebugValue(), llvm::MCStreamer::EmitDTPRel32Value(), llvm::MCStreamer::EmitDTPRel64Value(), llvm::MachineFunction::getJumpTableInfo(), I, llvm::HexagonISD::JT, llvm_unreachable, llvm::MipsMCExpr::MEK_DTPREL, llvm::AsmPrinter::MF, and llvm::MIPS_NACL_BUNDLE_ALIGN.

◆ EmitEndOfAsmFile()

void MipsAsmPrinter::EmitEndOfAsmFile ( Module )
overridevirtual

◆ emitFrameDirective()

void MipsAsmPrinter::emitFrameDirective ( )

◆ EmitFunctionBodyEnd()

void MipsAsmPrinter::EmitFunctionBodyEnd ( )
overridevirtual

◆ EmitFunctionBodyStart()

void MipsAsmPrinter::EmitFunctionBodyStart ( )
overridevirtual

◆ EmitFunctionEntryLabel()

void MipsAsmPrinter::EmitFunctionEntryLabel ( )
overridevirtual

◆ EmitInstruction()

void MipsAsmPrinter::EmitInstruction ( const MachineInstr )
overridevirtual

Targets should implement this to emit instructions.

Reimplemented from llvm::AsmPrinter.

Definition at line 187 of file MipsAsmPrinter.cpp.

References llvm::MachineConstantPoolEntry::ConstVal, E, llvm::MCStreamer::EmitDataRegion(), emitDirectiveRelocJalr(), llvm::AsmPrinter::EmitGlobalConstant(), llvm::MCStreamer::EmitLabel(), llvm::AsmPrinter::EmitMachineConstantPoolValue(), llvm::AsmPrinter::EmitToStreamer(), llvm::MipsTargetStreamer::forbidModuleDirective(), llvm::MachineConstantPool::getConstants(), llvm::AsmPrinter::GetCPISymbol(), llvm::MachineFunction::getDataLayout(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), I, llvm::MipsSubtarget::inMips16Mode(), llvm::MachineBasicBlock::instr_end(), llvm::MachineInstr::isCall(), llvm::MachineInstr::isDebugLabel(), llvm::MachineInstr::isDebugValue(), llvm::MachineInstr::isIndirectBranch(), llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry(), llvm::MachineInstr::isReturn(), llvm_unreachable, llvm::MipsMCInstLower::Lower(), LowerPATCHABLE_FUNCTION_ENTER(), LowerPATCHABLE_FUNCTION_EXIT(), LowerPATCHABLE_TAIL_CALL(), llvm::MachineConstantPoolEntry::MachineCPVal, llvm::MCDR_DataRegion, llvm::MCDR_DataRegionEnd, MCInstLowering, llvm::AsmPrinter::MF, llvm::AsmPrinter::OutContext, PrintDebugValueComment(), Subtarget, llvm::AsmPrinter::TM, and llvm::MachineConstantPoolEntry::Val.

◆ EmitStartOfAsmFile()

void MipsAsmPrinter::EmitStartOfAsmFile ( Module )
overridevirtual

This virtual method can be overridden by targets that want to emit something at the start of their file.

Reimplemented from llvm::AsmPrinter.

Definition at line 767 of file MipsAsmPrinter.cpp.

References llvm::MCStreamer::AddBlankLine(), llvm::MCStreamer::AddComment(), llvm::MCInst::addOperand(), assert(), CDRet, CFRet, llvm::MCSymbolRefExpr::create(), llvm::MCOperand::createExpr(), llvm::Target::createMCSubtargetInfo(), llvm::MCOperand::createReg(), llvm::MCBinaryExpr::createSub(), llvm::MCContext::createTempSymbol(), DDSig, DFSig, DRet, DSig, E, llvm::MipsTargetStreamer::emitDirectiveAbiCalls(), llvm::MipsTargetStreamer::emitDirectiveEnd(), llvm::MipsTargetStreamer::emitDirectiveEnt(), llvm::MipsTargetStreamer::emitDirectiveModuleFP(), llvm::MipsTargetStreamer::emitDirectiveModuleOddSPReg(), llvm::MipsTargetStreamer::emitDirectiveNaN2008(), llvm::MipsTargetStreamer::emitDirectiveNaNLegacy(), llvm::MipsTargetStreamer::emitDirectiveOptionPic0(), llvm::MipsTargetStreamer::emitDirectiveSetAt(), llvm::MipsTargetStreamer::emitDirectiveSetMacro(), llvm::MipsTargetStreamer::emitDirectiveSetNoMicroMips(), llvm::MipsTargetStreamer::emitDirectiveSetNoMips16(), llvm::MipsTargetStreamer::emitDirectiveSetPop(), llvm::MipsTargetStreamer::emitDirectiveSetPush(), llvm::MipsTargetStreamer::emitDirectiveSetReorder(), llvm::MCStreamer::emitELFSize(), llvm::MCStreamer::EmitInstruction(), llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::EmitSymbolAttribute(), llvm::MCStreamer::EmitValueToAlignment(), FDSig, FFSig, FRet, FSig, llvm::MipsTargetMachine::getABI(), getCurrentABIString(), llvm::AsmPrinter::getDataLayout(), llvm::MCContext::getELFSection(), llvm::MCContext::getObjectFileInfo(), llvm::MCContext::getOrCreateSymbol(), llvm::TargetMachine::getTarget(), llvm::TargetMachine::getTargetCPU(), llvm::TargetMachine::getTargetFeatureString(), llvm::TargetMachine::getTargetTriple(), I, llvm::MipsSubtarget::isABICalls(), llvm::MipsTargetMachine::isLittleEndian(), llvm::DataLayout::isLittleEndian(), llvm::MipsABIInfo::IsO32(), llvm::AsmPrinter::isPositionIndependent(), llvm::MCObjectFileInfo::isPositionIndependent(), llvm::AArch64CC::LE, llvm::MCSA_ELF_TypeFunction, llvm::MCSA_Global, NoFPRet, NoSig, OR, llvm::AsmPrinter::OutContext, llvm::Mips16HardFloatInfo::FuncSignature::ParamSig, llvm::MCStreamer::PopSection(), llvm::MCStreamer::PushSection(), RA, Reg, llvm::Mips16HardFloatInfo::FuncSignature::RetSig, llvm::MIPS_MC::selectMipsCPU(), llvm::MCInst::setOpcode(), llvm::MipsTargetStreamer::setPic(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_EXECINSTR, llvm::ELF::SHT_PROGBITS, llvm::Triple::str(), llvm::MCStreamer::SwitchSection(), llvm::ARMBuildAttrs::Symbol, llvm::AsmPrinter::TM, and llvm::MipsTargetStreamer::updateABIInfo().

◆ getCurrentABIString()

const char * MipsAsmPrinter::getCurrentABIString ( ) const

◆ getPassName()

StringRef llvm::MipsAsmPrinter::getPassName ( ) const
inlineoverridevirtual

getPassName - Return a nice clean name for a pass.

This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.

Reimplemented from llvm::Pass.

Definition at line 126 of file MipsAsmPrinter.h.

◆ isBlockOnlyReachableByFallthrough()

bool MipsAsmPrinter::isBlockOnlyReachableByFallthrough ( const MachineBasicBlock MBB) const
overridevirtual

isBlockOnlyReachableByFallthough - Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through.

Reimplemented from llvm::AsmPrinter.

Definition at line 473 of file MipsAsmPrinter.cpp.

References llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::empty(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getBasicBlock(), I, llvm::MachineBasicBlock::isEHPad(), llvm::MachineBasicBlock::isLayoutSuccessor(), llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_empty(), and llvm::MachineBasicBlock::pred_end().

◆ LowerPATCHABLE_FUNCTION_ENTER()

void MipsAsmPrinter::LowerPATCHABLE_FUNCTION_ENTER ( const MachineInstr MI)

Definition at line 1230 of file MipsAsmPrinter.cpp.

References llvm::AsmPrinter::FUNCTION_ENTER.

Referenced by EmitInstruction().

◆ LowerPATCHABLE_FUNCTION_EXIT()

void MipsAsmPrinter::LowerPATCHABLE_FUNCTION_EXIT ( const MachineInstr MI)

Definition at line 1234 of file MipsAsmPrinter.cpp.

References llvm::AsmPrinter::FUNCTION_EXIT.

Referenced by EmitInstruction().

◆ LowerPATCHABLE_TAIL_CALL()

void MipsAsmPrinter::LowerPATCHABLE_TAIL_CALL ( const MachineInstr MI)

Definition at line 1238 of file MipsAsmPrinter.cpp.

References llvm::AsmPrinter::TAIL_CALL.

Referenced by EmitInstruction().

◆ PrintAsmMemoryOperand()

bool MipsAsmPrinter::PrintAsmMemoryOperand ( const MachineInstr MI,
unsigned  OpNo,
unsigned  AsmVariant,
const char ExtraCode,
raw_ostream OS 
)
overridevirtual

Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant as an address.

Targets should override this to format as appropriate. This method can return true if the operand is erroneous.

Reimplemented from llvm::AsmPrinter.

Definition at line 619 of file MipsAsmPrinter.cpp.

References assert(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MipsInstPrinter::getRegisterName(), llvm::MachineOperand::isImm(), llvm::MipsSubtarget::isLittle(), and Subtarget.

◆ PrintAsmOperand()

bool MipsAsmPrinter::PrintAsmOperand ( const MachineInstr MI,
unsigned  OpNo,
unsigned  AsmVariant,
const char ExtraCode,
raw_ostream O 
)
overridevirtual

Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant.

PrintAsmOperand - Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant.

Targets should override this to format as appropriate. This method can return true if the operand is erroneous.

Targets should override this to format as appropriate.

Reimplemented from llvm::AsmPrinter.

Definition at line 513 of file MipsAsmPrinter.cpp.

References llvm::MachineOperand::getImm(), llvm::InlineAsm::getNumOperandRegisters(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MipsInstPrinter::getRegisterName(), llvm::MachineOperand::getType(), llvm::MipsSubtarget::isGP64bit(), llvm::MachineOperand::isImm(), llvm::MipsSubtarget::isLittle(), llvm::isPowerOf2_64(), llvm::MachineOperand::isReg(), llvm::Log2_64(), llvm::MachineOperand::MO_Immediate, llvm::AsmPrinter::PrintAsmOperand(), printOperand(), Reg, Subtarget, and llvm::Twine::utohexstr().

◆ PrintDebugValueComment()

void MipsAsmPrinter::PrintDebugValueComment ( const MachineInstr MI,
raw_ostream OS 
)

Definition at line 1242 of file MipsAsmPrinter.cpp.

Referenced by EmitInstruction().

◆ printFCCOperand()

void MipsAsmPrinter::printFCCOperand ( const MachineInstr MI,
int  opNum,
raw_ostream O,
const char Modifier = nullptr 
)

◆ printMemOperand()

void MipsAsmPrinter::printMemOperand ( const MachineInstr MI,
int  opNum,
raw_ostream O 
)

◆ printMemOperandEA()

void MipsAsmPrinter::printMemOperandEA ( const MachineInstr MI,
int  opNum,
raw_ostream O 
)

Definition at line 744 of file MipsAsmPrinter.cpp.

References printFCCOperand(), and printOperand().

Referenced by printMemOperand().

◆ printOperand()

void MipsAsmPrinter::printOperand ( const MachineInstr MI,
int  opNum,
raw_ostream O 
)

Definition at line 655 of file MipsAsmPrinter.cpp.

References llvm::MachineOperand::getBlockAddress(), llvm::AsmPrinter::GetBlockAddressSymbol(), llvm::AsmPrinter::getDataLayout(), llvm::AsmPrinter::getFunctionNumber(), llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineOperand::getMBB(), llvm::MCSymbol::getName(), llvm::MachineOperand::getOffset(), llvm::MachineInstr::getOperand(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::MachineOperand::getReg(), llvm::MipsInstPrinter::getRegisterName(), llvm::AsmPrinter::getSymbol(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineOperand::getTargetFlags(), llvm::MachineOperand::getType(), llvm_unreachable, llvm::StringRef::lower(), llvm::AsmPrinter::MAI, llvm::MipsII::MO_ABS_HI, llvm::MipsII::MO_ABS_LO, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_GlobalAddress, llvm::MipsII::MO_GOT, llvm::MipsII::MO_GOT_CALL, llvm::MipsII::MO_GOT_DISP, llvm::MipsII::MO_GOT_OFST, llvm::MipsII::MO_GOT_PAGE, llvm::MipsII::MO_GOTTPREL, llvm::MipsII::MO_GPOFF_HI, llvm::MipsII::MO_GPOFF_LO, llvm::MipsII::MO_GPREL, llvm::MipsII::MO_HIGHER, llvm::MipsII::MO_HIGHEST, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_Register, llvm::MipsII::MO_TLSGD, llvm::MipsII::MO_TPREL_HI, llvm::MipsII::MO_TPREL_LO, llvm::Pass::print(), llvm::MCSymbol::print(), and printMemOperand().

Referenced by PrintAsmOperand(), printMemOperand(), printMemOperandEA(), and printRegisterList().

◆ printRegisterList()

void MipsAsmPrinter::printRegisterList ( const MachineInstr MI,
int  opNum,
raw_ostream O 
)

Definition at line 760 of file MipsAsmPrinter.cpp.

References llvm::MachineInstr::getNumOperands(), and printOperand().

Referenced by printFCCOperand().

◆ printSavedRegsBitmask()

void MipsAsmPrinter::printSavedRegsBitmask ( )

◆ runOnMachineFunction()

bool MipsAsmPrinter::runOnMachineFunction ( MachineFunction MF)
overridevirtual

Member Data Documentation

◆ MCInstLowering

MipsMCInstLower llvm::MipsAsmPrinter::MCInstLowering

Definition at line 120 of file MipsAsmPrinter.h.

Referenced by EmitFunctionBodyStart(), EmitInstruction(), and runOnMachineFunction().

◆ MipsFI

const MipsFunctionInfo* llvm::MipsAsmPrinter::MipsFI

Definition at line 119 of file MipsAsmPrinter.h.

Referenced by runOnMachineFunction().

◆ Subtarget

const MipsSubtarget* llvm::MipsAsmPrinter::Subtarget

The documentation for this class was generated from the following files: