LLVM 20.0.0git
Public Member Functions | List of all members
llvm::WebAssemblyTargetAsmStreamer Class Referencefinal

This part is for ascii assembly output. More...

#include "Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h"

Inheritance diagram for llvm::WebAssemblyTargetAsmStreamer:
Inheritance graph
[legend]

Public Member Functions

 WebAssemblyTargetAsmStreamer (MCStreamer &S, formatted_raw_ostream &OS)
 
void emitLocal (ArrayRef< wasm::ValType > Types) override
 .local
 
void emitFunctionType (const MCSymbolWasm *Sym) override
 .functype
 
void emitIndIdx (const MCExpr *Value) override
 .indidx
 
void emitGlobalType (const MCSymbolWasm *Sym) override
 .globaltype
 
void emitTableType (const MCSymbolWasm *Sym) override
 .tabletype
 
void emitTagType (const MCSymbolWasm *Sym) override
 .tagtype
 
void emitImportModule (const MCSymbolWasm *Sym, StringRef ImportModule) override
 .import_module
 
void emitImportName (const MCSymbolWasm *Sym, StringRef ImportName) override
 .import_name
 
void emitExportName (const MCSymbolWasm *Sym, StringRef ExportName) override
 .export_name
 
- Public Member Functions inherited from llvm::WebAssemblyTargetStreamer
 WebAssemblyTargetStreamer (MCStreamer &S)
 
virtual void emitLocal (ArrayRef< wasm::ValType > Types)=0
 .local
 
virtual void emitFunctionType (const MCSymbolWasm *Sym)=0
 .functype
 
virtual void emitIndIdx (const MCExpr *Value)=0
 .indidx
 
virtual void emitGlobalType (const MCSymbolWasm *Sym)=0
 .globaltype
 
virtual void emitTableType (const MCSymbolWasm *Sym)=0
 .tabletype
 
virtual void emitTagType (const MCSymbolWasm *Sym)=0
 .tagtype
 
virtual void emitImportModule (const MCSymbolWasm *Sym, StringRef ImportModule)=0
 .import_module
 
virtual void emitImportName (const MCSymbolWasm *Sym, StringRef ImportName)=0
 .import_name
 
virtual void emitExportName (const MCSymbolWasm *Sym, StringRef ExportName)=0
 .export_name
 
- 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, 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::WebAssemblyTargetStreamer
void emitValueType (wasm::ValType Type)
 
- Protected Attributes inherited from llvm::MCTargetStreamer
MCStreamerStreamer
 

Detailed Description

This part is for ascii assembly output.

Definition at line 60 of file WebAssemblyTargetStreamer.h.

Constructor & Destructor Documentation

◆ WebAssemblyTargetAsmStreamer()

WebAssemblyTargetAsmStreamer::WebAssemblyTargetAsmStreamer ( MCStreamer S,
formatted_raw_ostream OS 
)

Definition at line 34 of file WebAssemblyTargetStreamer.cpp.

Member Function Documentation

◆ emitExportName()

void WebAssemblyTargetAsmStreamer::emitExportName ( const MCSymbolWasm Sym,
StringRef  ExportName 
)
overridevirtual

.export_name

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 111 of file WebAssemblyTargetStreamer.cpp.

References Sym.

◆ emitFunctionType()

void WebAssemblyTargetAsmStreamer::emitFunctionType ( const MCSymbolWasm Sym)
overridevirtual

.functype

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 61 of file WebAssemblyTargetStreamer.cpp.

References assert(), llvm::WebAssembly::signatureToString(), and Sym.

◆ emitGlobalType()

void WebAssemblyTargetAsmStreamer::emitGlobalType ( const MCSymbolWasm Sym)
overridevirtual

.globaltype

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 68 of file WebAssemblyTargetStreamer.cpp.

References assert(), Sym, and llvm::WebAssembly::typeToString().

◆ emitImportModule()

void WebAssemblyTargetAsmStreamer::emitImportModule ( const MCSymbolWasm Sym,
StringRef  ImportModule 
)
overridevirtual

.import_module

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 99 of file WebAssemblyTargetStreamer.cpp.

References Sym.

◆ emitImportName()

void WebAssemblyTargetAsmStreamer::emitImportName ( const MCSymbolWasm Sym,
StringRef  ImportName 
)
overridevirtual

.import_name

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 105 of file WebAssemblyTargetStreamer.cpp.

References Sym.

◆ emitIndIdx()

void WebAssemblyTargetAsmStreamer::emitIndIdx ( const MCExpr Value)
overridevirtual

.indidx

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 117 of file WebAssemblyTargetStreamer.cpp.

◆ emitLocal()

void WebAssemblyTargetAsmStreamer::emitLocal ( ArrayRef< wasm::ValType Types)
overridevirtual

.local

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 54 of file WebAssemblyTargetStreamer.cpp.

References printTypes().

◆ emitTableType()

void WebAssemblyTargetAsmStreamer::emitTableType ( const MCSymbolWasm Sym)
overridevirtual

◆ emitTagType()

void WebAssemblyTargetAsmStreamer::emitTagType ( const MCSymbolWasm Sym)
overridevirtual

.tagtype

Implements llvm::WebAssemblyTargetStreamer.

Definition at line 92 of file WebAssemblyTargetStreamer.cpp.

References assert(), Sym, and llvm::WebAssembly::typeListToString().


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