LLVM API Documentation
#include <MipsELFStreamer.h>
Public Member Functions | |
MipsELFStreamer (MCContext &Context, MCAsmBackend &MAB, raw_ostream &OS, MCCodeEmitter *Emitter, const MCSubtargetInfo &STI) | |
void | EmitInstruction (const MCInst &Inst, const MCSubtargetInfo &STI) override |
void | EmitMipsOptionRecords () |
Emits all the option records stored up until the point it's called. |
Definition at line 29 of file MipsELFStreamer.h.
llvm::MipsELFStreamer::MipsELFStreamer | ( | MCContext & | Context, |
MCAsmBackend & | MAB, | ||
raw_ostream & | OS, | ||
MCCodeEmitter * | Emitter, | ||
const MCSubtargetInfo & | STI | ||
) | [inline] |
Definition at line 34 of file MipsELFStreamer.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
void MipsELFStreamer::EmitInstruction | ( | const MCInst & | Inst, |
const MCSubtargetInfo & | STI | ||
) | [override, virtual] |
Overriding this function allows us to add arbitrary behaviour before the Inst
is actually emitted. For example, we can inspect the operands and gather sufficient information that allows us to reason about the register usage for the translation unit.
Reimplemented from llvm::MCObjectStreamer.
Definition at line 14 of file MipsELFStreamer.cpp.
References llvm::MCStreamer::getContext(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCContext::getRegisterInfo(), llvm::MCOperand::isReg(), and llvm::MipsRegInfoRecord::SetPhysRegUsed().
Emits all the option records stored up until the point it's called.
Definition at line 32 of file MipsELFStreamer.cpp.
References I.
Referenced by llvm::MipsTargetELFStreamer::finish().