Get properties of instructions. More...
Modules | |
| For loops | |
Getters on for loops. | |
| Function calls | |
| Getters on function calls. | |
| If Then Else | |
Getters on if then else branchs. | |
| Mixed instruction types | |
| Getters on several types of instructions. | |
| X10 constructs | |
| Getters on X10 constructs. | |
Functions | |
| instruction_type | instruction_get_type (const instruction *instr) |
| Get an instruction's type. More... | |
Get properties of instructions.
1.0.0The type of an instruction can be inspected with instruction_get_type().
The following getters are valid for several types of instructions. Their behaviour depends on the actual type of the target instruction.
This getter is only valid for INSTR_FOR and INSTR_CALL.
This getter is not valid for INSTR_CALL, INSTR_ADVANCE and INSTR_UNKNOWN. It is valid to use this getter for all other types of instruction.
It returns the inner body of the target instruction. For instructions which may have two bodies (INSTR_IF and INSTR_IF_ELSE), this getter returns the body which is known as "true" body.
Depending on an instruction's type, the behaviour of this getter is equivalent to:
The getters specific to INSTR_CALL instructions are:
The getters for INSTR_FOR instructions are:
The getters for INSTR_IF and INSTR_IF_ELSE instructions are:
Use instruction_other_get_block() to get the inner block of INSTR_FINISH, INSTR_CLOCKED_FINISH, INSTR_ASYNC and INSTR_CLOCKED_ASYNC instructions.
|
related |
Get an instruction's type.
1.0.0| instr | Target instruction. |