LLVM
8.0.1
|
This part is for ascii assembly output. More...
#include "Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h"
Public Member Functions | |
WebAssemblyTargetAsmStreamer (MCStreamer &S, formatted_raw_ostream &OS) | |
void | emitLocal (ArrayRef< wasm::ValType > Types) override |
.local More... | |
void | emitEndFunc () override |
.endfunc More... | |
void | emitFunctionType (const MCSymbolWasm *Sym) override |
.functype More... | |
void | emitIndIdx (const MCExpr *Value) override |
.indidx More... | |
void | emitGlobalType (const MCSymbolWasm *Sym) override |
.globaltype More... | |
void | emitEventType (const MCSymbolWasm *Sym) override |
.eventtype More... | |
void | emitImportModule (const MCSymbolWasm *Sym, StringRef ImportModule) override |
.import_module More... | |
void | emitImportName (const MCSymbolWasm *Sym, StringRef ImportName) override |
.import_name More... | |
Public Member Functions inherited from llvm::WebAssemblyTargetStreamer | |
WebAssemblyTargetStreamer (MCStreamer &S) | |
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, raw_ostream &OS, const MCInst &Inst, const MCSubtargetInfo &STI) |
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 | finish () |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::WebAssemblyTargetStreamer | |
void | emitValueType (wasm::ValType Type) |
Protected Attributes inherited from llvm::MCTargetStreamer | |
MCStreamer & | Streamer |
This part is for ascii assembly output.
Definition at line 58 of file WebAssemblyTargetStreamer.h.
WebAssemblyTargetAsmStreamer::WebAssemblyTargetAsmStreamer | ( | MCStreamer & | S, |
formatted_raw_ostream & | OS | ||
) |
Definition at line 35 of file WebAssemblyTargetStreamer.cpp.
|
overridevirtual |
.endfunc
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 62 of file WebAssemblyTargetStreamer.cpp.
References llvm::wasm::WasmSignature::Params, llvm::wasm::WasmSignature::Returns, and llvm::WebAssembly::typeToString().
|
overridevirtual |
.eventtype
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 108 of file WebAssemblyTargetStreamer.cpp.
References assert(), llvm::MCSymbol::getName(), llvm::MCSymbolWasm::getSignature(), and llvm::MCSymbolWasm::isEvent().
|
overridevirtual |
.functype
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 93 of file WebAssemblyTargetStreamer.cpp.
References assert(), llvm::MCSymbol::getName(), llvm::MCSymbolWasm::getSignature(), and llvm::MCSymbolWasm::isFunction().
|
overridevirtual |
.globaltype
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 100 of file WebAssemblyTargetStreamer.cpp.
References assert(), llvm::MCSymbolWasm::getGlobalType(), llvm::MCSymbol::getName(), llvm::MCSymbolWasm::isGlobal(), llvm::wasm::WasmGlobalType::Type, and llvm::WebAssembly::typeToString().
|
overridevirtual |
.import_module
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 115 of file WebAssemblyTargetStreamer.cpp.
References llvm::MCSymbol::getName().
|
overridevirtual |
.import_name
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 121 of file WebAssemblyTargetStreamer.cpp.
.indidx
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 127 of file WebAssemblyTargetStreamer.cpp.
|
overridevirtual |
.local
Implements llvm::WebAssemblyTargetStreamer.
Definition at line 55 of file WebAssemblyTargetStreamer.cpp.
References llvm::ArrayRef< T >::empty(), and printTypes().