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

Classes

struct  WasmObjectHeader
 
struct  WasmSignature
 
struct  WasmExport
 
struct  WasmLimits
 
struct  WasmTable
 
struct  WasmInitExpr
 
struct  WasmGlobal
 
struct  WasmImport
 
struct  WasmLocalDecl
 
struct  WasmFunction
 
struct  WasmDataSegment
 
struct  WasmElemSegment
 
struct  WasmRelocation
 
struct  WasmLinkingData
 
struct  Global
 

Enumerations

enum  : unsigned {
  WASM_SEC_CUSTOM = 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  {
  WASM_TYPE_I32 = -0x01, WASM_TYPE_I64 = -0x02, WASM_TYPE_F32 = -0x03, WASM_TYPE_F64 = -0x04,
  WASM_TYPE_ANYFUNC = -0x10, WASM_TYPE_FUNC = -0x20, 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
}
 
enum  : unsigned { WASM_NAMES_FUNCTION = 0x1, WASM_NAMES_LOCAL = 0x2 }
 
enum  : unsigned { WASM_LIMITS_FLAG_HAS_MAX = 0x1 }
 
enum  ValType { ValType::I32 = WASM_TYPE_I32, ValType::I64 = WASM_TYPE_I64, ValType::F32 = WASM_TYPE_F32, ValType::F64 = WASM_TYPE_F64 }
 
enum  : unsigned { WASM_STACK_POINTER = 0x1, WASM_SYMBOL_INFO = 0x2, WASM_DATA_SIZE = 0x3, WASM_DATA_ALIGNMENT = 0x4 }
 
enum  : unsigned { WASM_SYMBOL_FLAG_WEAK = 0x1 }
 
enum  : unsigned
 

Variables

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

Enumeration Type Documentation

anonymous enum : unsigned
Enumerator
WASM_SEC_CUSTOM 
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 120 of file Wasm.h.

anonymous enum
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 136 of file Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_EXTERNAL_FUNCTION 
WASM_EXTERNAL_TABLE 
WASM_EXTERNAL_MEMORY 
WASM_EXTERNAL_GLOBAL 

Definition at line 147 of file 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 155 of file Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_NAMES_FUNCTION 
WASM_NAMES_LOCAL 

Definition at line 164 of file Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_LIMITS_FLAG_HAS_MAX 

Definition at line 169 of file Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_STACK_POINTER 
WASM_SYMBOL_INFO 
WASM_DATA_SIZE 
WASM_DATA_ALIGNMENT 

Definition at line 182 of file Wasm.h.

anonymous enum : unsigned
Enumerator
WASM_SYMBOL_FLAG_WEAK 

Definition at line 189 of file Wasm.h.

anonymous enum : unsigned

Definition at line 195 of file Wasm.h.

enum llvm::wasm::ValType
strong
Enumerator
I32 
I64 
F32 
F64 

Definition at line 174 of file Wasm.h.

Variable Documentation

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

Definition at line 24 of file Wasm.h.

const uint32_t llvm::wasm::WasmPageSize = 65536

Definition at line 28 of file Wasm.h.

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

Definition at line 26 of file Wasm.h.

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