LLVM 20.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 |
Public Member Functions inherited from llvm::MCTargetStreamer | |
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, uint32_t 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 |
Protected Attributes inherited from llvm::MCTargetStreamer | |
MCStreamer & | Streamer |
Definition at line 45 of file CSKYTargetStreamer.h.
CSKYTargetStreamer::CSKYTargetStreamer | ( | MCStreamer & | S | ) |
Definition at line 81 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 85 of file CSKYTargetStreamer.cpp.
References llvm::ConstantPool::addEntry(), ConstantCounter, ConstantMap, llvm::MCTargetStreamer::getStreamer(), Sym, and llvm::CSKYMCExpr::VK_CSKY_Invalid.
Definition at line 128 of file CSKYTargetStreamer.cpp.
void CSKYTargetStreamer::emitCurrentConstantPool | ( | ) |
Definition at line 112 of file CSKYTargetStreamer.cpp.
References llvm::ConstantPool::clearCache(), and llvm::MCTargetStreamer::Streamer.
|
virtual |
Definition at line 126 of file CSKYTargetStreamer.cpp.
Definition at line 129 of file CSKYTargetStreamer.cpp.
|
overridevirtual |
Reimplemented from llvm::MCTargetStreamer.
Definition at line 118 of file CSKYTargetStreamer.cpp.
References ConstantCounter, finishAttributeSection(), and llvm::MCTargetStreamer::Streamer.
|
virtual |
Definition at line 131 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.