LLVM  6.0.0svn
Classes | Namespaces | Macros | Enumerations | Variables
Wasm.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "WasmRelocs/WebAssembly.def"
Include dependency graph for Wasm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 
 llvm::wasm
 

Macros

#define WASM_RELOC(name, value)   name = value,
 

Enumerations

enum  : unsigned {
  llvm::wasm::WASM_SEC_CUSTOM = 0, llvm::wasm::WASM_SEC_TYPE = 1, llvm::wasm::WASM_SEC_IMPORT = 2, llvm::wasm::WASM_SEC_FUNCTION = 3,
  llvm::wasm::WASM_SEC_TABLE = 4, llvm::wasm::WASM_SEC_MEMORY = 5, llvm::wasm::WASM_SEC_GLOBAL = 6, llvm::wasm::WASM_SEC_EXPORT = 7,
  llvm::wasm::WASM_SEC_START = 8, llvm::wasm::WASM_SEC_ELEM = 9, llvm::wasm::WASM_SEC_CODE = 10, llvm::wasm::WASM_SEC_DATA = 11
}
 
enum  {
  llvm::wasm::WASM_TYPE_I32 = -0x01, llvm::wasm::WASM_TYPE_I64 = -0x02, llvm::wasm::WASM_TYPE_F32 = -0x03, llvm::wasm::WASM_TYPE_F64 = -0x04,
  llvm::wasm::WASM_TYPE_ANYFUNC = -0x10, llvm::wasm::WASM_TYPE_FUNC = -0x20, llvm::wasm::WASM_TYPE_NORESULT = -0x40
}
 
enum  : unsigned { llvm::wasm::WASM_EXTERNAL_FUNCTION = 0x0, llvm::wasm::WASM_EXTERNAL_TABLE = 0x1, llvm::wasm::WASM_EXTERNAL_MEMORY = 0x2, llvm::wasm::WASM_EXTERNAL_GLOBAL = 0x3 }
 
enum  : unsigned {
  llvm::wasm::WASM_OPCODE_END = 0x0b, llvm::wasm::WASM_OPCODE_GET_GLOBAL = 0x23, llvm::wasm::WASM_OPCODE_I32_CONST = 0x41, llvm::wasm::WASM_OPCODE_I64_CONST = 0x42,
  llvm::wasm::WASM_OPCODE_F32_CONST = 0x43, llvm::wasm::WASM_OPCODE_F64_CONST = 0x44
}
 
enum  : unsigned { llvm::wasm::WASM_NAMES_FUNCTION = 0x1, llvm::wasm::WASM_NAMES_LOCAL = 0x2 }
 
enum  : unsigned { llvm::wasm::WASM_LIMITS_FLAG_HAS_MAX = 0x1 }
 
enum  llvm::wasm::ValType { llvm::wasm::ValType::I32 = WASM_TYPE_I32, llvm::wasm::ValType::I64 = WASM_TYPE_I64, llvm::wasm::ValType::F32 = WASM_TYPE_F32, llvm::wasm::ValType::F64 = WASM_TYPE_F64 }
 
enum  : unsigned {
  llvm::wasm::WASM_STACK_POINTER = 0x1, llvm::wasm::WASM_SYMBOL_INFO = 0x2, llvm::wasm::WASM_DATA_SIZE = 0x3, llvm::wasm::WASM_DATA_ALIGNMENT = 0x4,
  llvm::wasm::WASM_SEGMENT_INFO = 0x5
}
 
enum  : unsigned { llvm::wasm::WASM_SYMBOL_BINDING_GLOBAL = 0x0, llvm::wasm::WASM_SYMBOL_BINDING_WEAK = 0x1, llvm::wasm::WASM_SYMBOL_BINDING_LOCAL = 0x2 }
 
enum  : unsigned
 

Variables

const char llvm::wasm::WasmMagic [] = {'\0', 'a', 's', 'm'}
 
const uint32_t llvm::wasm::WasmVersion = 0x1
 
const uint32_t llvm::wasm::WasmPageSize = 65536
 
const unsigned llvm::wasm::WASM_SYMBOL_BINDING_MASK = 0x3
 

Macro Definition Documentation

◆ WASM_RELOC

#define WASM_RELOC (   name,
  value 
)    name = value,

Definition at line 200 of file Wasm.h.