Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
IR::InitializerExpression Struct Reference

#include <Module.h>

Collaboration diagram for IR::InitializerExpression:

Public Types

enum class  Type : U8 {
  i32_const = 0x41 , i64_const = 0x42 , f32_const = 0x43 , f64_const = 0x44 ,
  get_global = 0x23 , error = 0xff
}
 

Public Member Functions

 InitializerExpression ()
 
 InitializerExpression (I32 inI32)
 
 InitializerExpression (I64 inI64)
 
 InitializerExpression (F32 inF32)
 
 InitializerExpression (F64 inF64)
 
 InitializerExpression (Type inType, Uptr inGlobalIndex)
 

Public Attributes

Type type
 
union { 
 
   I32   i32 
 
   I64   i64 
 
   F32   f32 
 
   F64   f64 
 
   Uptr   globalIndex 
 
};  
 

Detailed Description

Definition at line 12 of file Module.h.

Member Enumeration Documentation

◆ Type

Enumerator
i32_const 
i64_const 
f32_const 
f64_const 
get_global 
error 

Definition at line 14 of file Module.h.

Constructor & Destructor Documentation

◆ InitializerExpression() [1/6]

IR::InitializerExpression::InitializerExpression ( )
inline

Definition at line 32 of file Module.h.

◆ InitializerExpression() [2/6]

IR::InitializerExpression::InitializerExpression ( I32 inI32)
inline

Definition at line 33 of file Module.h.

◆ InitializerExpression() [3/6]

IR::InitializerExpression::InitializerExpression ( I64 inI64)
inline

Definition at line 34 of file Module.h.

◆ InitializerExpression() [4/6]

IR::InitializerExpression::InitializerExpression ( F32 inF32)
inline

Definition at line 35 of file Module.h.

◆ InitializerExpression() [5/6]

IR::InitializerExpression::InitializerExpression ( F64 inF64)
inline

Definition at line 36 of file Module.h.

◆ InitializerExpression() [6/6]

IR::InitializerExpression::InitializerExpression ( Type inType,
Uptr inGlobalIndex )
inline

Definition at line 37 of file Module.h.

37: type(inType), globalIndex(inGlobalIndex) { WAVM_ASSERT_THROW(inType == Type::get_global); }
#define WAVM_ASSERT_THROW(cond)
Definition Errors.h:29

Member Data Documentation

◆ [union]

◆ f32

F32 IR::InitializerExpression::f32

Definition at line 28 of file Module.h.

◆ f64

F64 IR::InitializerExpression::f64

Definition at line 29 of file Module.h.

◆ globalIndex

Uptr IR::InitializerExpression::globalIndex

Definition at line 30 of file Module.h.

◆ i32

I32 IR::InitializerExpression::i32

Definition at line 26 of file Module.h.

◆ i64

I64 IR::InitializerExpression::i64

Definition at line 27 of file Module.h.

◆ type

Type IR::InitializerExpression::type

Definition at line 23 of file Module.h.


The documentation for this struct was generated from the following file: