LLVM  14.0.0git
Namespaces | Functions
WasmEmitter.cpp File Reference
#include "llvm/Object/Wasm.h"
#include "llvm/ObjectYAML/ObjectYAML.h"
#include "llvm/ObjectYAML/yaml2obj.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/LEB128.h"
Include dependency graph for WasmEmitter.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 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)
 
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()

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

◆ writeStringRef()

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

Definition at line 112 of file WasmEmitter.cpp.

References llvm::encodeULEB128().

◆ writeUint32()

static int writeUint32 ( raw_ostream OS,
uint32_t  Value 
)
static

◆ writeUint64()

static int writeUint64 ( raw_ostream OS,
uint64_t  Value 
)
static

◆ writeUint8()

static int writeUint8 ( raw_ostream OS,
uint8_t  Value 
)
static

Definition at line 105 of file WasmEmitter.cpp.

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

Referenced by writeLimits().