LLVM 22.0.0git
llvm::CSKYTargetStreamer Class Reference

#include "Target/CSKY/MCTargetDesc/CSKYTargetStreamer.h"

Inheritance diagram for llvm::CSKYTargetStreamer:
[legend]

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 MCExpraddConstantPoolEntry (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 ()
MCStreamergetStreamer ()
MCContextgetContext ()
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 ()

Protected Attributes

std::unique_ptr< CSKYConstantPoolConstantPool
DenseMap< SymbolIndex, const MCExpr * > ConstantMap
unsigned ConstantCounter = 0
Protected Attributes inherited from llvm::MCTargetStreamer
MCStreamerStreamer

Detailed Description

Definition at line 45 of file CSKYTargetStreamer.h.

Constructor & Destructor Documentation

◆ CSKYTargetStreamer()

Member Function Documentation

◆ addConstantPoolEntry()

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 ConstantCounter, ConstantMap, ConstantPool, llvm::dyn_cast(), llvm::MCTargetStreamer::getStreamer(), and llvm::CSKY::S_Invalid.

◆ emitAttribute()

void CSKYTargetStreamer::emitAttribute ( unsigned Attribute,
unsigned Value )
virtual

Definition at line 129 of file CSKYTargetStreamer.cpp.

◆ emitCurrentConstantPool()

void CSKYTargetStreamer::emitCurrentConstantPool ( )

Definition at line 113 of file CSKYTargetStreamer.cpp.

References ConstantPool, and llvm::MCTargetStreamer::Streamer.

◆ emitTargetAttributes()

void CSKYTargetStreamer::emitTargetAttributes ( const MCSubtargetInfo & STI)
virtual

Definition at line 127 of file CSKYTargetStreamer.cpp.

◆ emitTextAttribute()

void CSKYTargetStreamer::emitTextAttribute ( unsigned Attribute,
StringRef String )
virtual

Definition at line 130 of file CSKYTargetStreamer.cpp.

References llvm::String.

◆ finish()

void CSKYTargetStreamer::finish ( )
overridevirtual

◆ finishAttributeSection()

void CSKYTargetStreamer::finishAttributeSection ( )
virtual

Definition at line 132 of file CSKYTargetStreamer.cpp.

Referenced by llvm::CSKYAsmPrinter::emitEndOfAsmFile(), and finish().

Member Data Documentation

◆ ConstantCounter

unsigned llvm::CSKYTargetStreamer::ConstantCounter = 0
protected

Definition at line 57 of file CSKYTargetStreamer.h.

Referenced by addConstantPoolEntry(), and finish().

◆ ConstantMap

DenseMap<SymbolIndex, const MCExpr *> llvm::CSKYTargetStreamer::ConstantMap
protected

Definition at line 55 of file CSKYTargetStreamer.h.

Referenced by addConstantPoolEntry().

◆ ConstantPool

std::unique_ptr<CSKYConstantPool> llvm::CSKYTargetStreamer::ConstantPool
protected

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