Get properties of instructions.
More...
|
| void | instruction_for_loop_set_body (instruction *instr, instruction_list *body) |
| | Set a for loop's body. More...
|
| |
| void | instruction_for_loop_set_identifier (instruction *instr, char *identifier) |
| | Set a for loop's identifier. More...
|
| |
| void | instruction_for_loop_set_left_boundary (instruction *instr, expression *left) |
| | Set a for loop's left boundary. More...
|
| |
| void | instruction_for_loop_set_right_boundary (instruction *instr, expression *right) |
| | Set a for loop's right boundary. More...
|
| |
| void | instruction_function_call_set_arguments (instruction *instr, expression_list *arguments) |
| | Set a function call's arguments. More...
|
| |
| void | instruction_function_call_set_identifier (instruction *instr, char *identifier) |
| | Set a function call's identifier. More...
|
| |
| void | instruction_if_then_else_set_condition (instruction *instr, expression *condition) |
| | Set a branching condition. More...
|
| |
| void | instruction_if_then_else_set_false_body (instruction *instr, instruction_list *false_body) |
| | Set a branch's new false body. More...
|
| |
| void | instruction_if_then_else_set_has_else (instruction *instr, bool has_else) |
| | Set a if_then_else::has_else property. More...
|
| |
| void | instruction_if_then_else_set_true_body (instruction *instr, instruction_list *true_body) |
| | Set a branch's new true body. More...
|
| |
| void | instruction_other_set_block (instruction *instr, instruction_list *block) |
| | Set a X10 construct's body. More...
|
| |
| void | instruction_set_type (instruction *instr, instruction_type t) |
| | Set an instruction's type. More...
|
| |
Get properties of instructions.
- Since
- version
1.0.0
These functions allow the user to set the properties of an instruction. Please set coherent properties. If you are not confident a given set of properties would be coherent, please fallback to the functions from Constructors / Destructors to directly build a correct instruction.
Set a for loop's body.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| body | The target for loop's new body. |
| void instruction_for_loop_set_identifier |
( |
instruction * |
instr, |
|
|
char * |
identifier |
|
) |
| |
|
related |
Set a for loop's identifier.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| identifier | The target for loop's new identifier. |
Set a for loop's left boundary.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| left | The target for loop's new left boundary. |
Set a for loop's right boundary.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| right | The target for loop's new right boundary. |
Set a function call's arguments.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| arguments | The target function call's new arguments. |
| void instruction_function_call_set_identifier |
( |
instruction * |
instr, |
|
|
char * |
identifier |
|
) |
| |
|
related |
Set a function call's identifier.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| identifier | The target function call's new identifier. |
Set a branching condition.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| condition | The target branch's new branching condition. |
Set a branch's new false body.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| false_body | The target branch's new false body. |
| void instruction_if_then_else_set_has_else |
( |
instruction * |
instr, |
|
|
bool |
has_else |
|
) |
| |
|
related |
Set a branch's new true body.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| true_body | The target branch's new true body. |
Set a X10 construct's body.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| block | The target X10 construct's new body. |
Set an instruction's type.
- Since
- version
1.0.0
- Parameters
-
| instr | Target instruction. |
| t | The target instruction new instruction type. |