Loops

Enumerations

enum  arbb_loop_type_t { arbb_loop_for, arbb_loop_while }
 

The set of allowed loop types.

More...
enum  arbb_loop_block_t { arbb_loop_block_init, arbb_loop_block_cond, arbb_loop_block_body, arbb_loop_block_step }
 

The set of allowed loop block types.

More...

Functions

ARBB_VM_EXPORT arbb_error_t arbb_begin_loop (arbb_function_t function, arbb_loop_type_t loop_type, arbb_error_details_t *details)
 Begins a structured loop of the provided type.
ARBB_VM_EXPORT arbb_error_t arbb_begin_loop_block (arbb_function_t function, arbb_loop_block_t block_type, arbb_error_details_t *details)
 Begins a loop block within a given control flow statement, such as a condition block or a body block.
ARBB_VM_EXPORT arbb_error_t arbb_loop_condition (arbb_function_t function, arbb_variable_t condition, arbb_error_details_t *details)
 Exits the structured loop currently being defined if the provided condition is true.
ARBB_VM_EXPORT arbb_error_t arbb_end_loop (arbb_function_t function, arbb_error_details_t *details)
 Ends the structured loop currently being defined.
ARBB_VM_EXPORT arbb_error_t arbb_break (arbb_function_t function, arbb_error_details_t *details)
 Inserts a break statement in the current function.
ARBB_VM_EXPORT arbb_error_t arbb_continue (arbb_function_t function, arbb_error_details_t *details)
 Inserts a continue statement in the current function.

Enumeration Type Documentation

The set of allowed loop types.

See Also

arbb_begin_loop()
Enumerator:
arbb_loop_for 

A for loop with an initializer, condition, step, and body block.

arbb_loop_while 

A while loop with a condition and body block.

Definition at line 891 of file arbb_vmapi.h.

The set of allowed loop block types.

See Also

arbb_begin_loop_block()
Enumerator:
arbb_loop_block_init 

An initializer block.

arbb_loop_block_cond 

A condition block.

arbb_loop_block_body 

A body block.

arbb_loop_block_step 

A step block.

Definition at line 899 of file arbb_vmapi.h.


Function Documentation

ARBB_VM_EXPORT arbb_error_t arbb_begin_loop ( arbb_function_t  function,
arbb_loop_type_t  loop_type,
arbb_error_details_t details 
)

Begins a structured loop of the provided type.

This call must be followed by calls to arbb_begin_loop_block() and a call to arbb_end_loop(). No statements can be added before the first call to arbb_begin_loop_block().

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_begin_loop_block ( arbb_function_t  function,
arbb_loop_block_t  block_type,
arbb_error_details_t details 
)

Begins a loop block within a given control flow statement, such as a condition block or a body block.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_loop_condition ( arbb_function_t  function,
arbb_variable_t  condition,
arbb_error_details_t details 
)

Exits the structured loop currently being defined if the provided condition is true.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_end_loop ( arbb_function_t  function,
arbb_error_details_t details 
)

Ends the structured loop currently being defined.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_break ( arbb_function_t  function,
arbb_error_details_t details 
)

Inserts a break statement in the current function.

Returns:
An error code depending on the result of the operation:
ARBB_VM_EXPORT arbb_error_t arbb_continue ( arbb_function_t  function,
arbb_error_details_t details 
)

Inserts a continue statement in the current function.

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

Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.