PIPS
|
Functions | |
bool | native_call_p (call c, string op_name) |
Test if a call is a native instruction of the language. More... | |
bool | native_instruction_p (instruction i, string op_name) |
Test if an instruction is a native instruction of the language. More... | |
bool | instruction_assign_p (instruction i) |
Test if an instruction is an assignment. More... | |
bool | instruction_continue_p (instruction i) |
Test if an instruction is a CONTINUE, that is the FORTRAN nop, the ";" in C or the "pass" in Python... More... | |
bool | return_instruction_p (instruction i) |
Test if an instruction is a C or Fortran "return". More... | |
bool | fortran_return_instruction_p (instruction i) |
bool | C_return_instruction_p (instruction i) |
bool | exit_instruction_p (instruction i) |
bool | abort_instruction_p (instruction i) |
bool | instruction_stop_p (instruction i) |
Test if an instruction is a Fortran STOP. More... | |
bool | instruction_format_p (instruction i) |
Test if an instruction is a Fortran FORMAT. More... | |
bool | assignment_block_p (instruction i) |
Checks if an instruction block is a list of assignments, possibly followed by a continue. More... | |
bool abort_instruction_p | ( | instruction | i | ) |
Definition at line 205 of file instruction.c.
References ABORT_FUNCTION_NAME, and native_instruction_p().
Referenced by abort_statement_p().
bool assignment_block_p | ( | instruction | i | ) |
Checks if an instruction block is a list of assignments, possibly followed by a continue.
FOREACH cannot be used in this case
Definition at line 230 of file instruction.c.
References assignment_statement_p(), CAR, CDR, continue_statement_p(), ENDP, instruction_block, MAPL, and STATEMENT.
Referenced by assignment_block_or_statement_p(), and perfectly_nested_loop_p().
bool C_return_instruction_p | ( | instruction | i | ) |
Definition at line 196 of file instruction.c.
References C_RETURN_FUNCTION_NAME, and native_instruction_p().
Referenced by C_return_statement_p().
bool exit_instruction_p | ( | instruction | i | ) |
Definition at line 201 of file instruction.c.
References EXIT_FUNCTION_NAME, and native_instruction_p().
Referenced by exit_statement_p().
bool fortran_return_instruction_p | ( | instruction | i | ) |
Definition at line 191 of file instruction.c.
References native_instruction_p(), and RETURN_FUNCTION_NAME.
Referenced by fortran_return_statement_p().
bool instruction_assign_p | ( | instruction | i | ) |
Test if an instruction is an assignment.
Definition at line 164 of file instruction.c.
References ASSIGN_OPERATOR_NAME, and native_instruction_p().
Referenced by assignment_statement_p(), FindDefinitionsOf_rewrite(), full_copy_p(), hpfc_overlap_kill_unused_scalars_rewrite(), instruction_identification(), sww_seq_rwt(), text_loop(), text_loop_cmf(), and text_loop_craft().
bool instruction_continue_p | ( | instruction | i | ) |
Test if an instruction is a CONTINUE, that is the FORTRAN nop, the ";" in C or the "pass" in Python...
according to the language.
Definition at line 173 of file instruction.c.
References CONTINUE_FUNCTION_NAME, and native_instruction_p().
Referenced by continue_statement_p(), instruction_identification(), and text_instruction().
bool instruction_format_p | ( | instruction | i | ) |
Test if an instruction is a Fortran FORMAT.
Definition at line 222 of file instruction.c.
References FORMAT_FUNCTION_NAME, and native_instruction_p().
Referenced by figure_out_if_it_is_a_format(), format_statement_p(), gather_and_remove_all_format_statements_rewrite(), and instruction_identification().
bool instruction_stop_p | ( | instruction | i | ) |
Test if an instruction is a Fortran STOP.
Definition at line 214 of file instruction.c.
References native_instruction_p(), and STOP_FUNCTION_NAME.
Referenced by instruction_identification(), and stop_statement_p().
Test if a call is a native instruction of the language.
c | is the call to investigate |
s | is the name of the native instruction to investigate |
op_name | p_name |
Definition at line 124 of file instruction.c.
References call_function, entity_user_name(), and f().
Referenced by native_instruction_p().
bool native_instruction_p | ( | instruction | i, |
string | op_name | ||
) |
Test if an instruction is a native instruction of the language.
i | is the instruction to investigate |
s | is the name of the native instruction to investigate |
op_name | p_name |
Definition at line 144 of file instruction.c.
References expression_syntax, instruction_call, instruction_call_p, instruction_expression, instruction_expression_p, native_call_p(), syntax_call, and syntax_call_p.
Referenced by abort_instruction_p(), C_return_instruction_p(), com_statement_p(), exit_instruction_p(), fortran_return_instruction_p(), gen_mpi_send_recv(), instruction_assign_p(), instruction_continue_p(), instruction_format_p(), instruction_stop_p(), return_instruction_p(), and write_statement_p().
bool return_instruction_p | ( | instruction | i | ) |
Test if an instruction is a C or Fortran "return".
Note that this function is not named "instruction_return_p" since it would mean return is a field of instruction ... which used to be the case :)
Definition at line 185 of file instruction.c.
References C_RETURN_FUNCTION_NAME, native_instruction_p(), and RETURN_FUNCTION_NAME.
Referenced by controlize(), instruction_identification(), one_liner_p(), return_statement_p(), and set_pattern().