LLVM 17.0.0git
|
#include "Target/CSKY/MCTargetDesc/CSKYTargetStreamer.h"
Classes | |
struct | SymbolIndex |
Public Member Functions | |
CSKYTargetStreamer (MCStreamer &S) | |
virtual void | emitTextAttribute (unsigned Attribute, StringRef String) |
virtual void | emitAttribute (unsigned Attribute, unsigned Value) |
virtual void | finishAttributeSection () |
virtual void | emitTargetAttributes (const MCSubtargetInfo &STI) |
const MCExpr * | addConstantPoolEntry (const MCExpr *, SMLoc Loc, const MCExpr *AdjustExpr=nullptr) |
Add a new entry to the constant pool for the current section and return an MCExpr that can be used to refer to the constant pool location. | |
void | emitCurrentConstantPool () |
void | finish () override |
![]() | |
MCTargetStreamer (MCStreamer &S) | |
virtual | ~MCTargetStreamer () |
MCStreamer & | getStreamer () |
virtual void | emitLabel (MCSymbol *Symbol) |
virtual void | emitAssignment (MCSymbol *Symbol, const MCExpr *Value) |
virtual void | prettyPrintAsm (MCInstPrinter &InstPrinter, uint64_t Address, const MCInst &Inst, const MCSubtargetInfo &STI, raw_ostream &OS) |
virtual void | emitDwarfFileDirective (StringRef Directive) |
virtual void | changeSection (const MCSection *CurSection, MCSection *Section, const MCExpr *SubSection, raw_ostream &OS) |
Update streamer for a new active section. | |
virtual void | emitValue (const MCExpr *Value) |
virtual void | emitRawBytes (StringRef Data) |
Emit the bytes in Data into the output. | |
virtual void | emitConstantPools () |
virtual void | finish () |
Protected Attributes | |
std::unique_ptr< CSKYConstantPool > | ConstantPool |
DenseMap< SymbolIndex, const MCExpr * > | ConstantMap |
unsigned | ConstantCounter = 0 |
![]() | |
MCStreamer & | Streamer |
Definition at line 45 of file CSKYTargetStreamer.h.
CSKYTargetStreamer::CSKYTargetStreamer | ( | MCStreamer & | S | ) |
Definition at line 82 of file CSKYTargetStreamer.cpp.
const MCExpr * CSKYTargetStreamer::addConstantPoolEntry | ( | const MCExpr * | Expr, |
SMLoc | Loc, | ||
const MCExpr * | AdjustExpr = nullptr |
||
) |
Add a new entry to the constant pool for the current section and return an MCExpr that can be used to refer to the constant pool location.
Definition at line 86 of file CSKYTargetStreamer.cpp.
References llvm::ConstantPool::addEntry(), ConstantCounter, ConstantMap, llvm::MCTargetStreamer::getStreamer(), Sym, and llvm::CSKYMCExpr::VK_CSKY_Invalid.
Definition at line 129 of file CSKYTargetStreamer.cpp.
void CSKYTargetStreamer::emitCurrentConstantPool | ( | ) |
Definition at line 113 of file CSKYTargetStreamer.cpp.
References llvm::ConstantPool::clearCache(), and llvm::MCTargetStreamer::Streamer.
|
virtual |
Definition at line 127 of file CSKYTargetStreamer.cpp.
Definition at line 130 of file CSKYTargetStreamer.cpp.
|
overridevirtual |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 119 of file CSKYTargetStreamer.cpp.
References ConstantCounter, finishAttributeSection(), and llvm::MCTargetStreamer::Streamer.
|
virtual |
Definition at line 132 of file CSKYTargetStreamer.cpp.
Referenced by llvm::CSKYAsmPrinter::emitEndOfAsmFile(), and finish().
|
protected |
Definition at line 57 of file CSKYTargetStreamer.h.
Referenced by addConstantPoolEntry(), and finish().
|
protected |
Definition at line 55 of file CSKYTargetStreamer.h.
Referenced by addConstantPoolEntry().
|
protected |
Definition at line 53 of file CSKYTargetStreamer.h.