No Clock  1.0.2

Get properties of instructions. More...

Functions

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...
 

Detailed Description

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.

Function Documentation

void instruction_for_loop_set_body ( instruction *  instr,
instruction_list *  body 
)
related

Set a for loop's body.

Since
version 1.0.0
Parameters
instrTarget instruction.
bodyThe 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
instrTarget instruction.
identifierThe target for loop's new identifier.
void instruction_for_loop_set_left_boundary ( instruction *  instr,
expression *  left 
)
related

Set a for loop's left boundary.

Since
version 1.0.0
Parameters
instrTarget instruction.
leftThe target for loop's new left boundary.
void instruction_for_loop_set_right_boundary ( instruction *  instr,
expression *  right 
)
related

Set a for loop's right boundary.

Since
version 1.0.0
Parameters
instrTarget instruction.
rightThe target for loop's new right boundary.
void instruction_function_call_set_arguments ( instruction *  instr,
expression_list *  arguments 
)
related

Set a function call's arguments.

Since
version 1.0.0
Parameters
instrTarget instruction.
argumentsThe 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
instrTarget instruction.
identifierThe target function call's new identifier.
void instruction_if_then_else_set_condition ( instruction *  instr,
expression *  condition 
)
related

Set a branching condition.

Since
version 1.0.0
Parameters
instrTarget instruction.
conditionThe target branch's new branching condition.
void instruction_if_then_else_set_false_body ( instruction *  instr,
instruction_list *  false_body 
)
related

Set a branch's new false body.

Since
version 1.0.0
Parameters
instrTarget instruction.
false_bodyThe target branch's new false body.
void instruction_if_then_else_set_has_else ( instruction *  instr,
bool  has_else 
)
related

Set a if_then_else::has_else property.

Since
version 1.0.0
Parameters
instrTarget instruction.
has_elseThe target branch's new if_then_else::has_else property.
void instruction_if_then_else_set_true_body ( instruction *  instr,
instruction_list *  true_body 
)
related

Set a branch's new true body.

Since
version 1.0.0
Parameters
instrTarget instruction.
true_bodyThe target branch's new true body.
void instruction_other_set_block ( instruction *  instr,
instruction_list *  block 
)
related

Set a X10 construct's body.

Since
version 1.0.0
Parameters
instrTarget instruction.
blockThe target X10 construct's new body.
void instruction_set_type ( instruction *  instr,
instruction_type  t 
)
related

Set an instruction's type.

Since
version 1.0.0
Parameters
instrTarget instruction.
tThe target instruction new instruction type.