Types

All variables in the VM have a corresponding type represented by a arbb_type_t object.

Enumerations

enum  arbb_scalar_type_t {
  arbb_i8, arbb_i16, arbb_i32, arbb_i64,
  arbb_u8, arbb_u16, arbb_u32, arbb_u64,
  arbb_f32, arbb_f64, arbb_boolean, arbb_usize,
  arbb_isize
}
 

The fixed set of scalar types provided.

More...

Functions

ARBB_VM_EXPORT arbb_error_t arbb_get_scalar_type (arbb_context_t context, arbb_type_t *out_type, arbb_scalar_type_t scalar_type, arbb_error_details_t *details)
 Sets out_type to the arbb_type_t object corresponding to a scalar of type scalar_type.
ARBB_VM_EXPORT arbb_error_t arbb_sizeof_type (arbb_context_t context, uint64_t *out_size, arbb_type_t type, arbb_error_details_t *details)
ARBB_VM_EXPORT arbb_error_t arbb_get_dense_type (arbb_context_t context, arbb_type_t *out_type, arbb_type_t element_type, unsigned int dimensionality, arbb_error_details_t *details)
 Sets out_type to the arbb_type_t object corresponding to a dense container with the specified element type and dimensionality.
ARBB_VM_EXPORT arbb_error_t arbb_get_nested_type (arbb_context_t context, arbb_type_t *out_type, arbb_type_t element_type, arbb_error_details_t *details)
 Sets *out_type to the arbb_type_t object corresponding to a nested container with the specified element type.

Enumeration Type Documentation

The fixed set of scalar types provided.

Enumerator:
arbb_i8 

8-bit signed integer

arbb_i16 

16-bit signed integer

arbb_i32 

32-bit signed integer

arbb_i64 

64-bit signed integer

arbb_u8 

8-bit unsigned integer

arbb_u16 

16-bit unsigned integer

arbb_u32 

32-bit unsigned integer

arbb_u64 

64-bit unsigned integer

arbb_f32 

32-bit floating point number

arbb_f64 

64-bit floating point number

arbb_boolean 

boolean true/false value

arbb_usize 

unsigned array index or size

arbb_isize 

signed array index or size

Definition at line 306 of file arbb_vmapi.h.


Function Documentation

ARBB_VM_EXPORT arbb_error_t arbb_get_scalar_type ( arbb_context_t  context,
arbb_type_t out_type,
arbb_scalar_type_t  scalar_type,
arbb_error_details_t details 
)

Sets out_type to the arbb_type_t object corresponding to a scalar of type scalar_type.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_sizeof_type ( arbb_context_t  context,
uint64_t *  out_size,
arbb_type_t  type,
arbb_error_details_t details 
)
Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_get_dense_type ( arbb_context_t  context,
arbb_type_t out_type,
arbb_type_t  element_type,
unsigned int  dimensionality,
arbb_error_details_t details 
)

Sets out_type to the arbb_type_t object corresponding to a dense container with the specified element type and dimensionality.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_get_nested_type ( arbb_context_t  context,
arbb_type_t out_type,
arbb_type_t  element_type,
arbb_error_details_t details 
)

Sets *out_type to the arbb_type_t object corresponding to a nested container with the specified element type.

Returns:
An error code depending on the result of the operation:

Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.