LLVM API Documentation

Public Member Functions
llvm::MipsELFStreamer Class Reference

#include <MipsELFStreamer.h>

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

List of all members.

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.

Detailed Description

Definition at line 29 of file MipsELFStreamer.h.


Constructor & Destructor Documentation

llvm::MipsELFStreamer::MipsELFStreamer ( MCContext Context,
MCAsmBackend MAB,
raw_ostream OS,
MCCodeEmitter Emitter,
const MCSubtargetInfo STI 
) [inline]

Member Function Documentation

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().


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