LLVM  4.0.0
Classes | Enumerations | Variables
llvm::wasm Namespace Reference

Classes

struct  WasmObjectHeader
 
struct  WasmSection
 

Enumerations

enum  : unsigned {
  WASM_SEC_USER = 0, WASM_SEC_TYPE = 1, WASM_SEC_IMPORT = 2, WASM_SEC_FUNCTION = 3,
  WASM_SEC_TABLE = 4, WASM_SEC_MEMORY = 5, WASM_SEC_GLOBAL = 6, WASM_SEC_EXPORT = 7,
  WASM_SEC_START = 8, WASM_SEC_ELEM = 9, WASM_SEC_CODE = 10, WASM_SEC_DATA = 11
}
 
enum  : unsigned {
  WASM_TYPE_I32 = 0x7f, WASM_TYPE_I64 = 0x7e, WASM_TYPE_F32 = 0x7d, WASM_TYPE_F64 = 0x7c,
  WASM_TYPE_ANYFUNC = 0x70, WASM_TYPE_FUNC = 0x60, WASM_TYPE_NORESULT = 0x40
}
 
enum  : unsigned { WASM_EXTERNAL_FUNCTION = 0x0, WASM_EXTERNAL_TABLE = 0x1, WASM_EXTERNAL_MEMORY = 0x2, WASM_EXTERNAL_GLOBAL = 0x3 }
 
enum  : unsigned {
  WASM_OPCODE_END = 0x0b, WASM_OPCODE_GET_GLOBAL = 0x23, WASM_OPCODE_I32_CONST = 0x41, WASM_OPCODE_I64_CONST = 0x42,
  WASM_OPCODE_F32_CONST = 0x43, WASM_OPCODE_F64_CONST = 0x44
}
 

Variables

const char WasmMagic [] = {'\0', 'a', 's', 'm'}
 
const uint32_t WasmVersion = 0xd
 

Enumeration Type Documentation

anonymous enum : unsigned
Enumerator
WASM_SEC_USER 
WASM_SEC_TYPE 
WASM_SEC_IMPORT 
WASM_SEC_FUNCTION 
WASM_SEC_TABLE 
WASM_SEC_MEMORY 
WASM_SEC_GLOBAL 
WASM_SEC_EXPORT 
WASM_SEC_START 
WASM_SEC_ELEM 
WASM_SEC_CODE 
WASM_SEC_DATA 

Definition at line 40 of file Support/Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_TYPE_I32 
WASM_TYPE_I64 
WASM_TYPE_F32 
WASM_TYPE_F64 
WASM_TYPE_ANYFUNC 
WASM_TYPE_FUNC 
WASM_TYPE_NORESULT 

Definition at line 56 of file Support/Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_EXTERNAL_FUNCTION 
WASM_EXTERNAL_TABLE 
WASM_EXTERNAL_MEMORY 
WASM_EXTERNAL_GLOBAL 

Definition at line 67 of file Support/Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_OPCODE_END 
WASM_OPCODE_GET_GLOBAL 
WASM_OPCODE_I32_CONST 
WASM_OPCODE_I64_CONST 
WASM_OPCODE_F32_CONST 
WASM_OPCODE_F64_CONST 

Definition at line 75 of file Support/Wasm.h.

Variable Documentation

const char llvm::wasm::WasmMagic[] = {'\0', 'a', 's', 'm'}

Definition at line 24 of file Support/Wasm.h.

const uint32_t llvm::wasm::WasmVersion = 0xd

Definition at line 26 of file Support/Wasm.h.

Referenced by llvm::object::WasmObjectFile::WasmObjectFile().