LLVM: lib/ObjectYAML/WasmEmitter.cpp File Reference (original) (raw)

The Wasm component of yaml2obj. More...

#include "[llvm/Object/Wasm.h](Object%5F2Wasm%5F8h%5Fsource.html)"
#include "[llvm/ObjectYAML/ObjectYAML.h](ObjectYAML%5F8h%5Fsource.html)"
#include "[llvm/ObjectYAML/yaml2obj.h](yaml2obj%5F8h%5Fsource.html)"
#include "[llvm/Support/Endian.h](Endian%5F8h%5Fsource.html)"
#include "[llvm/Support/LEB128.h](LEB128%5F8h%5Fsource.html)"

Go to the source code of this file.

Namespaces
namespace llvm
This is an optimization pass for GlobalISel generic memory operations.
namespace llvm::yaml
Functions
static int writeUint64 (raw_ostream &OS, uint64_t Value)
static int writeUint32 (raw_ostream &OS, uint32_t Value)
static int writeUint8 (raw_ostream &OS, uint8_t Value)
static int writeStringRef (const StringRef &Str, raw_ostream &OS)
static int writeLimits (const WasmYAML::Limits &Lim, raw_ostream &OS)
LLVM_ABI bool llvm::yaml::yaml2wasm (WasmYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH)

Detailed Description

The Wasm component of yaml2obj.

Definition in file WasmEmitter.cpp.

Function Documentation

writeLimits()

int writeLimits ( const WasmYAML::Limits & Lim, raw_ostream & OS ) static

Definition at line 118 of file WasmEmitter.cpp.

References llvm::encodeULEB128(), llvm::WasmYAML::Limits::Flags, llvm::WasmYAML::Limits::Maximum, llvm::WasmYAML::Limits::Minimum, llvm::wasm::WASM_LIMITS_FLAG_HAS_MAX, and writeUint8().

writeStringRef()

int writeStringRef ( const StringRef & Str, raw_ostream & OS ) static

Definition at line 112 of file WasmEmitter.cpp.

References llvm::encodeULEB128().

writeUint32()

int writeUint32 ( raw_ostream & OS, uint32_t Value ) static

Definition at line 98 of file WasmEmitter.cpp.

References llvm::Data, llvm::raw_ostream::write(), and llvm::support::endian::write32le().

writeUint64()

int writeUint64 ( raw_ostream & OS, uint64_t Value ) static

Definition at line 91 of file WasmEmitter.cpp.

References llvm::Data, llvm::raw_ostream::write(), and llvm::support::endian::write64le().

writeUint8()

int writeUint8 ( raw_ostream & OS, uint8_t Value ) static

Definition at line 105 of file WasmEmitter.cpp.

References llvm::Data, and llvm::raw_ostream::write().

Referenced by writeLimits().