Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
p_globals.m File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BLK_HEAD_IDX   1
#define BLK_STK_SIZE   20
#define MAX_BLK_LOOP_NUM   4095
#define CURR_BLK   blk_stk[blk_stk_idx].fld.blk_type
#define CURR_BLK_ERR   blk_stk[blk_stk_idx].fld.blk_err
#define CURR_BLK_FIRST_SH_IDX   blk_stk[blk_stk_idx].fld.first_sh_idx
#define CURR_BLK_FND_DEFAULT   blk_stk[blk_stk_idx].fld.fnd_default
#define CURR_BLK_LABEL   blk_stk[blk_stk_idx].fld.label_idx
#define CURR_BLK_NAME   blk_stk[blk_stk_idx].fld.name_idx
#define CURR_BLK_NO_EXEC   blk_stk[blk_stk_idx].fld.no_exec
#define CURR_BLK_DEF_LINE   blk_stk[blk_stk_idx].fld.def_line
#define CURR_BLK_DEF_COLUMN   blk_stk[blk_stk_idx].fld.def_column
#define BLK_BLOCKABLE_DIR_SH_IDX(IDX)   blk_stk[IDX].fld.blkbl_dir_sh_idx
#define BLK_BLOCKABLE_NEST_OK(IDX)   blk_stk[IDX].fld.blkbl_nest_ok
#define BLK_BLOCKABLE_NUM_LCVS(IDX)   blk_stk[IDX].fld.blkbl_num_lcvs
#define BLK_CASE_DEFAULT_LBL_COL_NUM(IDX)   blk_stk[IDX].fld.multiuse_opnd.col_num
#define BLK_CASE_DEFAULT_LBL_FLD(IDX)   blk_stk[IDX].fld.multiuse_opnd.fld
#define BLK_CASE_DEFAULT_LBL_IDX(IDX)   blk_stk[IDX].fld.multiuse_opnd.idx
#define BLK_CASE_DEFAULT_LBL_LINE_NUM(IDX)   blk_stk[IDX].fld.multiuse_opnd.line_num
#define BLK_CASE_DEFAULT_LBL_OPND(IDX)   blk_stk[IDX].fld.multiuse_opnd
#define BLK_CIF_SCOPE_ID(IDX)   blk_stk[IDX].fld.tc_temp_idx
#define BLK_CYCLE_STMT(IDX)   blk_stk[IDX].fld.has_cycle_stmt
#define BLK_DEF_COLUMN(IDX)   blk_stk[IDX].fld.def_column
#define BLK_DEF_LINE(IDX)   blk_stk[IDX].fld.def_line
#define BLK_DIR_NEST_CHECK_NUM_LCVS(IDX)   blk_stk[IDX].fld.dir_nest_num_lcvs
#define BLK_DIR_NEST_CHECK_SH_IDX(IDX)   blk_stk[IDX].fld.dir_nest_ck_sh_idx
#define BLK_DO_TYPE(IDX)   blk_stk[IDX].fld.do_type
#define BLK_DO_VAR_COL_NUM(IDX)   blk_stk[IDX].fld.multiuse_opnd.col_num
#define BLK_DO_VAR_FLD(IDX)   blk_stk[IDX].fld.multiuse_opnd.fld
#define BLK_DO_VAR_IDX(IDX)   blk_stk[IDX].fld.multiuse_opnd.idx
#define BLK_DO_VAR_LINE_NUM(IDX)   blk_stk[IDX].fld.multiuse_opnd.line_num
#define BLK_DO_VAR_OPND(IDX)   blk_stk[IDX].fld.multiuse_opnd
#define BLK_ENDDO_PARALLEL_SH_IDX(IDX)   blk_stk[IDX].fld.multiuse_opnd.idx
#define BLK_ENDPDO_SH_IDX(IDX)   blk_stk[IDX].fld.multiuse_opnd.idx
#define BLK_ERR(IDX)   blk_stk[IDX].fld.blk_err
#define BLK_EXIT_STMT(IDX)   blk_stk[IDX].fld.has_exit_stmt
#define BLK_FIRST_SH_IDX(IDX)   blk_stk[IDX].fld.first_sh_idx
#define BLK_FND_DEFAULT(IDX)   blk_stk[IDX].fld.fnd_default
#define BLK_HAS_NESTED_LOOP(IDX)   blk_stk[IDX].fld.has_nested_loop
#define BLK_INC_TEMP_IDX(IDX)   blk_stk[IDX].fld.inc_temp_idx
#define BLK_INDUC_TEMP_IDX(IDX)   blk_stk[IDX].fld.induc_temp_idx
#define BLK_INTERCHANGE_NUM_LCVS(IDX)   blk_stk[IDX].fld.intchg_num_lcvs
#define BLK_INTERCHANGE_DIR_SH_IDX(IDX)   blk_stk[IDX].fld.intchg_dir_sh_idx
#define BLK_IS_PARALLEL_REGION(IDX)   blk_stk[IDX].fld.parallel_region
#define BLK_LABEL(IDX)   blk_stk[IDX].fld.label_idx
#define BLK_LAST_CPNT_IDX(IDX)   blk_stk[IDX].fld_long.field32_5_1
#define BLK_LOOP_NUM(IDX)   blk_stk[IDX].fld.loop_num
#define BLK_NAME(IDX)   blk_stk[IDX].fld.name_idx
#define BLK_NO_EXEC(IDX)   blk_stk[IDX].fld.no_exec
#define BLK_NUM_CASES(IDX)   blk_stk[IDX].fld.top_lbl_idx
#define BLK_SKIP_LBL_IDX(IDX)   blk_stk[IDX].fld.skip_lbl_idx
#define BLK_START_TEMP_IDX(IDX)   blk_stk[IDX].fld.start_temp_idx
#define BLK_TC_TEMP_IDX(IDX)   blk_stk[IDX].fld.tc_temp_idx
#define BLK_TOP_LBL_IDX(IDX)   blk_stk[IDX].fld.top_lbl_idx
#define BLK_TYPE(IDX)   blk_stk[IDX].fld.blk_type
#define BLK_UNNAMED_INTERFACE(IDX)   blk_stk[IDX].fld.inc_temp_idx
#define BLK_AT_IDX(IDX)   blk_stk[IDX].fld.top_lbl_idx
#define BLK_BD_IDX(IDX)   blk_stk[IDX].fld_long.field32_5_1
#define BLK_CN_IDX(IDX)   blk_stk[IDX].fld.induc_temp_idx
#define BLK_CP_IDX(IDX)   blk_stk[IDX].fld.start_temp_idx
#define BLK_NP_IDX(IDX)   blk_stk[IDX].fld.skip_lbl_idx
#define BLK_SB_IDX(IDX)   blk_stk[IDX].fld_long.field32_5_2
#define BLK_SN_IDX(IDX)   blk_stk[IDX].fld.label_idx
#define BLK_TYP_IDX(IDX)   blk_stk[IDX].fld_long.field32_6_2
#define STMT_CANT_BE_IN_BLK(STMT, BLKTYPE)   (((stmt_in_blk[STMT] >> BLKTYPE) & 1) != 0)
#define STMT_LEGAL_IN_BLK(STMT, BLKTYPE)   (((stmt_in_blk[STMT] >> BLKTYPE) & 1) == 0)
#define STMT_OUT_OF_ORDER(CNTXT, STMT)   (CNTXT > stmt_top_cat[STMT])
#define SET_DIRECTIVE_STATE(REGION)   directive_state |= (1 << REGION)
#define CLEAR_DIRECTIVE_STATE(REGION)   directive_state &= (~(1 << REGION))
#define INSERT_IO_START
#define INSERT_IO_END
#define MATCHED_TOKEN_CLASS(class)   get_token (class)
#define POP_BLK_STK   blk_stk_idx--;
#define PUSH_BLK_STK(NEW_BLK)
#define LINK_TO_PARENT_BLK

Define Documentation

#define BLK_AT_IDX (   IDX)    blk_stk[IDX].fld.top_lbl_idx
#define BLK_BD_IDX (   IDX)    blk_stk[IDX].fld_long.field32_5_1
#define BLK_BLOCKABLE_DIR_SH_IDX (   IDX)    blk_stk[IDX].fld.blkbl_dir_sh_idx
#define BLK_BLOCKABLE_NEST_OK (   IDX)    blk_stk[IDX].fld.blkbl_nest_ok

Definition at line 69 of file p_globals.m.

Referenced by dump_blk_ntry(), and loop_end_processing().

#define BLK_BLOCKABLE_NUM_LCVS (   IDX)    blk_stk[IDX].fld.blkbl_num_lcvs
#define BLK_CASE_DEFAULT_LBL_COL_NUM (   IDX)    blk_stk[IDX].fld.multiuse_opnd.col_num

Definition at line 71 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_case_stmt().

#define BLK_CASE_DEFAULT_LBL_FLD (   IDX)    blk_stk[IDX].fld.multiuse_opnd.fld

Definition at line 73 of file p_globals.m.

Referenced by dump_blk_ntry(), end_select_blk(), parse_case_stmt(), and parse_select_stmt().

Definition at line 74 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_case_stmt().

#define BLK_CASE_DEFAULT_LBL_LINE_NUM (   IDX)    blk_stk[IDX].fld.multiuse_opnd.line_num

Definition at line 75 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_case_stmt().

#define BLK_CASE_DEFAULT_LBL_OPND (   IDX)    blk_stk[IDX].fld.multiuse_opnd

Definition at line 77 of file p_globals.m.

Referenced by end_select_blk().

#define BLK_CIF_SCOPE_ID (   IDX)    blk_stk[IDX].fld.tc_temp_idx
#define BLK_CN_IDX (   IDX)    blk_stk[IDX].fld.induc_temp_idx
#define BLK_CP_IDX (   IDX)    blk_stk[IDX].fld.start_temp_idx
#define BLK_CYCLE_STMT (   IDX)    blk_stk[IDX].fld.has_cycle_stmt

Definition at line 79 of file p_globals.m.

Referenced by dump_blk_ntry(), loop_end_processing(), and parse_cycle_stmt().

#define BLK_DEF_COLUMN (   IDX)    blk_stk[IDX].fld.def_column

Definition at line 80 of file p_globals.m.

Referenced by cif_begin_scope_rec(), dump_blk_ntry(), and pop_and_err_blk_stk().

#define BLK_DIR_NEST_CHECK_NUM_LCVS (   IDX)    blk_stk[IDX].fld.dir_nest_num_lcvs
#define BLK_DIR_NEST_CHECK_SH_IDX (   IDX)    blk_stk[IDX].fld.dir_nest_ck_sh_idx
#define BLK_DO_TYPE (   IDX)    blk_stk[IDX].fld.do_type

Definition at line 84 of file p_globals.m.

Referenced by dump_blk_ntry(), loop_end_processing(), and parse_do_stmt().

#define BLK_DO_VAR_COL_NUM (   IDX)    blk_stk[IDX].fld.multiuse_opnd.col_num

Definition at line 85 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_do_stmt().

#define BLK_DO_VAR_FLD (   IDX)    blk_stk[IDX].fld.multiuse_opnd.fld

Definition at line 86 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_do_stmt().

#define BLK_DO_VAR_IDX (   IDX)    blk_stk[IDX].fld.multiuse_opnd.idx

Definition at line 87 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_do_stmt().

#define BLK_DO_VAR_LINE_NUM (   IDX)    blk_stk[IDX].fld.multiuse_opnd.line_num

Definition at line 88 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_do_stmt().

#define BLK_DO_VAR_OPND (   IDX)    blk_stk[IDX].fld.multiuse_opnd

Definition at line 90 of file p_globals.m.

Referenced by end_do_parallel_blk(), and end_task_do_blk().

#define BLK_ERR (   IDX)    blk_stk[IDX].fld.blk_err
#define BLK_EXIT_STMT (   IDX)    blk_stk[IDX].fld.has_exit_stmt

Definition at line 93 of file p_globals.m.

Referenced by dump_blk_ntry(), loop_end_processing(), and parse_exit_stmt().

#define BLK_FND_DEFAULT (   IDX)    blk_stk[IDX].fld.fnd_default

Definition at line 95 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_case_stmt().

#define BLK_HAS_NESTED_LOOP (   IDX)    blk_stk[IDX].fld.has_nested_loop
#define BLK_HEAD_IDX   1

Definition at line 43 of file p_globals.m.

Referenced by iss_blk_stk_err(), parse_prog_unit(), and stmt_level_semantics().

#define BLK_INC_TEMP_IDX (   IDX)    blk_stk[IDX].fld.inc_temp_idx

Definition at line 97 of file p_globals.m.

Referenced by dump_blk_ntry().

#define BLK_INDUC_TEMP_IDX (   IDX)    blk_stk[IDX].fld.induc_temp_idx

Definition at line 98 of file p_globals.m.

Referenced by dump_blk_ntry().

#define BLK_LAST_CPNT_IDX (   IDX)    blk_stk[IDX].fld_long.field32_5_1

Definition at line 103 of file p_globals.m.

Referenced by dump_blk_ntry(), and parse_cpnt_dcl_stmt().

#define BLK_LOOP_NUM (   IDX)    blk_stk[IDX].fld.loop_num
#define BLK_NO_EXEC (   IDX)    blk_stk[IDX].fld.no_exec

Definition at line 106 of file p_globals.m.

Referenced by dump_blk_ntry().

#define BLK_NP_IDX (   IDX)    blk_stk[IDX].fld.skip_lbl_idx
#define BLK_NUM_CASES (   IDX)    blk_stk[IDX].fld.top_lbl_idx

Definition at line 107 of file p_globals.m.

Referenced by dump_blk_ntry(), end_select_blk(), and parse_case_stmt().

#define BLK_SB_IDX (   IDX)    blk_stk[IDX].fld_long.field32_5_2
#define BLK_SKIP_LBL_IDX (   IDX)    blk_stk[IDX].fld.skip_lbl_idx

Definition at line 108 of file p_globals.m.

Referenced by dump_blk_ntry(), loop_end_processing(), and parse_do_stmt().

#define BLK_SN_IDX (   IDX)    blk_stk[IDX].fld.label_idx
#define BLK_START_TEMP_IDX (   IDX)    blk_stk[IDX].fld.start_temp_idx

Definition at line 109 of file p_globals.m.

Referenced by dump_blk_ntry().

#define BLK_STK_SIZE   20

Definition at line 50 of file p_globals.m.

#define BLK_TC_TEMP_IDX (   IDX)    blk_stk[IDX].fld.tc_temp_idx

Definition at line 110 of file p_globals.m.

Referenced by dump_blk_ntry().

#define BLK_TOP_LBL_IDX (   IDX)    blk_stk[IDX].fld.top_lbl_idx

Definition at line 111 of file p_globals.m.

Referenced by dump_blk_ntry(), parse_dir_directives(), and parse_do_stmt().

#define BLK_TYP_IDX (   IDX)    blk_stk[IDX].fld_long.field32_6_2
#define BLK_UNNAMED_INTERFACE (   IDX)    blk_stk[IDX].fld.inc_temp_idx
#define CURR_BLK   blk_stk[blk_stk_idx].fld.blk_type

Definition at line 58 of file p_globals.m.

Referenced by blk_match_err(), check_for_vestigial_task_blks(), cif_begin_scope_rec(), cif_end_scope_rec(), end_critical_section_blk(), end_do_blk(), end_do_parallel_blk(), end_guard_blk(), end_if_blk(), end_labeled_do(), end_open_mp_critical_blk(), end_open_mp_do_blk(), end_open_mp_master_blk(), end_open_mp_ordered_blk(), end_open_mp_parallel_blk(), end_open_mp_parallel_do_blk(), end_open_mp_parallel_sections_blk(), end_open_mp_parallel_workshare_blk(), end_open_mp_section_blk(), end_open_mp_sections_blk(), end_open_mp_single_blk(), end_open_mp_workshare_blk(), end_parallel_blk(), end_parallel_case_blk(), end_pdo_blk(), end_psection_blk(), end_region_blk(), end_select_blk(), end_SGI_parallel_blk(), end_single_process_blk(), end_task_do_blk(), end_where_blk(), generic_spec_semantics(), iss_blk_stk_err(), issue_attr_blk_err(), parse_access_stmt(), parse_array_spec(), parse_assignment_stmt(), parse_attr_spec(), parse_attrs(), parse_case_stmt(), parse_common_stmt(), parse_contains_stmt(), parse_data_stmt(), parse_derived_type_stmt(), parse_dir_directives(), parse_else_stmt(), parse_end_stmt(), parse_entry_stmt(), parse_equivalence_stmt(), parse_forall(), parse_function_stmt(), parse_if_stmt(), parse_implicit_stmt(), parse_interface_stmt(), parse_length_selector(), parse_module_stmt(), parse_namelist_stmt(), parse_open_mp_directives(), parse_par_directives(), parse_parameter_stmt(), parse_pe_array_spec(), parse_pointer_stmt(), parse_prefix_spec(), parse_prog_unit(), parse_save_stmt(), parse_sequence_stmt(), parse_stmt_func_stmt(), parse_subroutine_stmt(), parse_type_dcl_stmt(), parse_typed_function_stmt(), parse_use_stmt(), parse_where_stmt(), start_new_prog_unit(), start_new_scp(), start_new_subpgm(), stmt_level_semantics(), and use_stmt_semantics().

#define CURR_BLK_FND_DEFAULT   blk_stk[blk_stk_idx].fld.fnd_default

Definition at line 61 of file p_globals.m.

Value:
{ int   _blk_idx;                                              \
                if (BLK_TYPE(blk_stk_idx - 1) == Doall_Blk ||                  \
                    BLK_TYPE(blk_stk_idx - 1) == Do_Parallel_Blk) {            \
                   _blk_idx = blk_stk_idx - 2;                                 \
                } else {                                                       \
                   _blk_idx = blk_stk_idx - 1;                                 \
                }                                                              \
                if ((Do_Blk <= BLK_TYPE(_blk_idx)  &&                          \
                    BLK_TYPE(_blk_idx) <= Case_Blk) ||                         \
                   (Parallel_Blk <= BLK_TYPE(_blk_idx)  &&                     \
                    BLK_TYPE(_blk_idx) <= Parallel_Case_Blk)) {                \
                   SH_PARENT_BLK_IDX(curr_stmt_sh_idx) =                       \
                         BLK_FIRST_SH_IDX(_blk_idx);                           \
                }}

Definition at line 207 of file p_globals.m.

Referenced by parse_case_stmt(), parse_do_stmt(), parse_else_stmt(), parse_if_stmt(), parse_mic_directives(), parse_open_mp_directives(), parse_par_directives(), parse_select_stmt(), and parse_star_directives().

#define MATCHED_TOKEN_CLASS (   class)    get_token (class)

Definition at line 190 of file p_globals.m.

Referenced by ck_lbl_construct_name(), create_kwd_text(), determine_stmt_type(), parse_actual_arg_spec(), parse_allocate_stmt(), parse_assert_directive(), parse_assign_stmt(), parse_assignment_stmt(), parse_attr_spec(), parse_attrs(), parse_auxiliary_dir(), parse_block_stmt(), parse_buffer_stmt(), parse_cache_align_name_list(), parse_cache_bypass_dir(), parse_cache_noalloc(), parse_call_stmt(), parse_case_stmt(), parse_common_dirs(), parse_common_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_cycle_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_deallocate_stmt(), parse_decode_stmt(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_dir_var_list(), parse_directive_stmt(), parse_distribution_dir(), parse_do_stmt(), parse_doall_cmic(), parse_dollar_directives(), parse_doparallel_cmic(), parse_dummy_args(), parse_else_stmt(), parse_encode_stmt(), parse_end_stmt(), parse_entry_stmt(), parse_equivalence_stmt(), parse_exit_stmt(), parse_fill_align_symbol(), parse_forall(), parse_format_stmt(), parse_function_stmt(), parse_generic_spec(), parse_goto_stmt(), parse_if_stmt(), parse_ignore_tkr(), parse_implicit_stmt(), parse_inline_always_never(), parse_inquire_stmt(), parse_io_control_list(), parse_label_list(), parse_length_selector(), parse_lhs(), parse_mic_directives(), parse_module_stmt(), parse_mp_directive(), parse_mult_opnd(), parse_name_dir(), parse_namelist_stmt(), parse_nosideeffects_dir(), parse_nullify_stmt(), parse_only_spec(), parse_open_mp_clauses(), parse_open_mp_directives(), parse_operand(), parse_par_directives(), parse_parallel_cmic(), parse_parameter_stmt(), parse_permutation_mic(), parse_pointer_stmt(), parse_prefetch_ref(), parse_prefix_spec(), parse_print_stmt(), parse_prog_unit(), parse_program_stmt(), parse_read_stmt(), parse_redistribute_dir(), parse_reference_list(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_directives(), parse_stmt_func_stmt(), parse_subroutine_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_typed_function_stmt(), parse_use_stmt(), parse_var_common_list(), parse_var_name_list(), parse_vfunction_dir(), parse_where_stmt(), parse_write_stmt(), and set_function_rslt().

#define MAX_BLK_LOOP_NUM   4095

Definition at line 51 of file p_globals.m.

Referenced by parse_do_stmt().

#define STMT_LEGAL_IN_BLK (   STMT,
  BLKTYPE 
)    (((stmt_in_blk[STMT] >> BLKTYPE) & 1) == 0)

Definition at line 135 of file p_globals.m.

Referenced by blk_match_err(), iss_blk_stk_err(), parse_case_stmt(), and parse_else_stmt().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines