LLVM  15.0.0git
Classes | Public Member Functions | Protected Attributes | List of all members
llvm::CSKYTargetStreamer Class Reference

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

Inheritance diagram for llvm::CSKYTargetStreamer:
Inheritance graph
[legend]
Collaboration diagram for llvm::CSKYTargetStreamer:
Collaboration graph
[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. More...
 
void emitCurrentConstantPool ()
 
void finish () override
 
- Public Member Functions inherited from llvm::MCTargetStreamer
 MCTargetStreamer (MCStreamer &S)
 
virtual ~MCTargetStreamer ()
 
MCStreamergetStreamer ()
 
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. More...
 
virtual void emitValue (const MCExpr *Value)
 
virtual void emitRawBytes (StringRef Data)
 Emit the bytes in Data into the output. More...
 
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()

CSKYTargetStreamer::CSKYTargetStreamer ( MCStreamer S)

Definition at line 82 of file CSKYTargetStreamer.cpp.

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 llvm::ConstantPool::addEntry(), ConstantCounter, ConstantMap, llvm::MCTargetStreamer::getStreamer(), Index, and llvm::CSKYMCExpr::VK_CSKY_Invalid.

◆ emitAttribute()

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

Definition at line 129 of file CSKYTargetStreamer.cpp.

◆ emitCurrentConstantPool()

void CSKYTargetStreamer::emitCurrentConstantPool ( )

◆ 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.

◆ 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

Definition at line 53 of file CSKYTargetStreamer.h.


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