Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
typedef enum Format_Kind FORMAT_KIND |
typedef struct Token_Buffer* TOKEN_BUFFER |
Definition at line 148 of file token_buffer.h.
enum Format_Kind |
Definition at line 127 of file token_buffer.h.
void Append_And_Copy_Token_List | ( | TOKEN_BUFFER | result_tokens, |
TOKEN_BUFFER | copy_tokens | ||
) |
Definition at line 1645 of file token_buffer.cxx.
References append_token_list(), copy_token_list(), Token_Sequence::first, Is_True, NO_TOKEN_IDX, and NULL.
Referenced by Append_And_Reclaim_Token_List(), and INIT2F_Translate_Array_Ref().
void Append_And_Reclaim_Token_List | ( | TOKEN_BUFFER | result_tokens, |
TOKEN_BUFFER * | reclaim_tokens | ||
) |
Definition at line 1659 of file token_buffer.cxx.
References Append_And_Copy_Token_List(), and Reclaim_Token_Buffer().
Referenced by Append_A_Clause_Symbol(), Append_Clause_Expressions(), Append_Nest_Clauses(), INIT2F_Append_Initializer(), INIT2F_Implied_DoLoop(), INITO2F_translate(), INITV2C_symoff(), INITV2C_val(), PARAMETER2F_translate(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2F_decl_parameter(), ST2F_decl_type(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_func_header(), TY2C_prototype_params(), TY2C_Translate_Structure(), TY2F_Declare_Common_Flds(), TY2F_Translate_ArrayElt(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Structure(), WN2C_address_add(), WN2C_append_addr_plus_expr(), WN2C_Append_Assignment(), WN2C_append_cast(), WN2C_Append_Preg(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_array(), WN2C_based_lvalue(), WN2C_block(), WN2C_bnor(), WN2C_call(), WN2C_cvt(), WN2C_cvtl(), WN2C_Declare_Return_Variable(), WN2C_funcall_op(), WN2C_Function_Return_Value(), WN2C_iload(), WN2C_infix_op(), WN2C_intrinsic_op(), WN2C_lda(), WN2C_ldid(), WN2C_Load_From_PregIdx(), WN2C_Load_Return_Reg(), WN2C_madd(), WN2C_mload(), WN2C_msub(), WN2C_nmadd(), WN2C_nmsub(), WN2C_parm(), WN2C_Store_Return_Reg(), WN2C_tas(), WN2C_translate_purple_main(), WN2C_Value_Reference(), WN2F_Append_Block_Data(), WN2F_Append_IO_CtrlList(), WN2F_block(), WN2F_call(), WN2F_cvt(), WN2F_cvtl(), WN2F_Denormalize_Array_Idx(), WN2F_Exit_PU_Block(), WN2F_interface_blk(), WN2F_io(), WN2F_ios_inqlength(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_mstore(), WN2F_OLD_Den_Arr_Idx(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_tempvar_rhs(), WN2F_Translate_DoLoop_Bound(), and WN2F_translate_purple_main().
void Append_F77_Comment_Newline | ( | TOKEN_BUFFER | tokens, |
UINT | num_lines, | ||
BOOL | indent_last_line | ||
) |
Definition at line 1796 of file token_buffer.cxx.
References append_token_list(), F77_ANSI_FORMAT, F77_comment_line_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Output_Format.
Referenced by WHIRL2F_Append_Comment(), WN2F_eval(), WN2F_istore(), WN2F_prefetch(), and WN2F_pstore().
void Append_F77_Directive_Newline | ( | TOKEN_BUFFER | tokens, |
const char * | directive_prefix | ||
) |
Definition at line 1832 of file token_buffer.cxx.
References append_token_list(), F77_ANSI_FORMAT, F77_directive_line_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Output_Format.
Referenced by W2F_Outfile_Translate_Pu(), WN2F_Begin_Prompf_Transformed_Func(), WN2F_Callsite_Directives(), WN2F_Directive_Newline(), WN2F_End_Prompf_Construct(), WN2F_End_Prompf_Transformed_Func(), WN2F_Prompf_Construct_End(), WN2F_Prompf_Construct_Start(), and WN2F_Start_Prompf_Construct().
void Append_F77_Indented_Continuation | ( | TOKEN_BUFFER | tokens | ) |
Definition at line 1766 of file token_buffer.cxx.
References append_token_list(), F77_ANSI_FORMAT, F77_TAB_FORMAT, Token_Sequence::first, indented_newline_token(), Is_True, Token_Sequence::last, NULL, Output_Format, and TRUE.
Referenced by WN2F_iload().
void Append_F77_Indented_Newline | ( | TOKEN_BUFFER | tokens, |
UINT | num_lines, | ||
const char * | label | ||
) |
Definition at line 1732 of file token_buffer.cxx.
References append_token_list(), F77_ANSI_FORMAT, F77_TAB_FORMAT, FALSE, Token_Sequence::first, indented_newline_token(), Is_True, Token_Sequence::last, NULL, and Output_Format.
Referenced by INITO2F_translate(), write_st::operator()(), PARAMETER2F_translate(), ST2F_decl_parameter(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_func_header(), TY2F_Declare_Common_Flds(), TY2F_Equivalence_FldList(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Structure(), WN2F_Append_Block_Data(), WN2F_Append_Symtab_Consts(), WN2F_casegoto(), WN2F_Emit_End_Stmt(), WN2F_Exit_PU_Block(), WN2F_interface_blk(), WN2F_namelist_stmt(), WN2F_nullify_stmt(), WN2F_pragma(), WN2F_Stmt_Newline(), and WN2F_translate_purple_main().
void Append_F77_Sequence_No | ( | TOKEN_BUFFER | tokens, |
const char * | seq_no | ||
) |
Definition at line 1864 of file token_buffer.cxx.
References append_token_list(), f77_seqno_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Output_Format.
void Append_Indented_Newline | ( | TOKEN_BUFFER | tokens, |
UINT | num_lines | ||
) |
Definition at line 1603 of file token_buffer.cxx.
References append_token_list(), FALSE, Token_Sequence::first, indented_newline_token(), Is_True, Token_Sequence::last, and NULL.
Referenced by ST2C_Declare_Tempvar(), ST2C_Define_Common_Blocks(), ST2C_Define_Preg(), ST2C_func_header(), ST2C_weakext_translate(), TY2C_Output_Struct_Type(), TY2C_Translate_Structure(), WN2C_Append_Prompf_Flag_Newline(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_block(), WN2C_compgoto(), WN2C_condbr(), WN2C_Declare_Return_Parameter(), WN2C_do_loop(), WN2C_func_entry(), WN2C_if(), WN2C_mstore(), WN2C_pragma(), WN2C_prefetch(), WN2C_Prefetch_Map(), WN2C_Stmt_Newline(), WN2C_switch(), WN2C_translate_purple_main(), Write_Scalar_Typedef(), and Write_Typedef().
void Append_Srcpos_Directive | ( | TOKEN_BUFFER | tokens, |
SRCPOS | srcpos | ||
) |
Definition at line 1911 of file token_buffer.cxx.
References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Srcpos_Directive_Token().
Referenced by WN2C_Stmt_Newline(), and WN2F_Stmt_Newline().
void Append_Srcpos_Map | ( | TOKEN_BUFFER | tokens, |
SRCPOS | srcpos | ||
) |
Definition at line 1898 of file token_buffer.cxx.
References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and Srcpos_Map_Token().
Referenced by WN2C_Stmt_Newline(), WN2F_Directive_Newline(), and WN2F_Stmt_Newline().
void Append_Token_Special | ( | TOKEN_BUFFER | tokens, |
char | special | ||
) |
Definition at line 1632 of file token_buffer.cxx.
References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and special_char_token().
Referenced by Append_Arg_Numbers(), Append_Array_Segment(), Append_Clause_Expressions(), Append_Clause_Symbols(), Append_Distribution(), Append_Implicit_Locals(), Append_Nest_Clauses(), Append_Pragma_Clauses(), Append_Prefetch_Attributes(), Append_Reduction_Clause(), Append_Reduction_Operator(), INIT2F_Append_Initializer(), INIT2F_Implied_DoLoop(), INIT2F_Translate_Char_Ref(), INITO2C_translate(), INITO2F_translate(), INITV2C_array_dimension(), INITV2C_block_array(), INITV2C_block_struct(), INITV2C_block_union(), INITV2C_struct_fill(), INITV2C_symoff(), INITV2C_symoff_help(), INITV2C_val(), INITVKIND_val(), PARAMETER2F_translate(), ST2C_decl_const(), ST2C_decl_var(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), ST2C_weakext_translate(), ST2F_decl_parameter(), ST2F_decl_var(), ST2F_func_header(), ST2F_use_var(), TCON2C_translate(), TCON2F_translate(), TY2C_array(), TY2C_function(), TY2C_Output_Struct_Type(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2C_scalar(), TY2C_Translate_Structure(), TY2F_Append_ARB(), TY2F_Append_Assumed_Single_Dim(), TY2F_array(), TY2F_array_for_pointer(), TY2F_Equivalence(), TY2F_Fld_Separator(), TY2F_List_Common_Flds(), TY2F_pointer(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), TY2F_Translate_EquivCommon_PtrFld(), W2F_Outfile_Translate_Pu(), WHIRL2C_parenthesize(), WHIRL2F_Parenthesize(), WN2C_address_add(), WN2C_alloca(), WN2C_altentry(), WN2C_append_addr_plus_const(), WN2C_append_addr_plus_expr(), WN2C_Append_Assignment(), WN2C_Append_Purple_Funcinfo(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_array(), WN2C_Assign_Complex_Const(), WN2C_based_lvalue(), WN2C_block(), WN2C_bnor(), WN2C_call(), WN2C_Callsite_Directives(), WN2C_comma(), WN2C_compgoto(), WN2C_complex(), WN2C_compose_bits(), WN2C_condbr(), WN2C_const(), WN2C_dealloca(), WN2C_Declare_Return_Parameter(), WN2C_Declare_Return_Variable(), WN2C_do_loop(), WN2C_do_while(), WN2C_extract_bits(), WN2C_func_entry(), WN2C_funcall_op(), WN2C_Function_Call_Lhs(), WN2C_generate_cast(), WN2C_if(), WN2C_imagpart(), WN2C_infix_op(), WN2C_intrinsic_op(), WN2C_label(), WN2C_lda(), WN2C_ldid(), WN2C_Load_Return_Reg(), WN2C_madd(), WN2C_mstore(), WN2C_msub(), WN2C_nmadd(), WN2C_nmsub(), WN2C_Normalize_Idx_To_Onedim(), WN2C_paren(), WN2C_pragma_list_end(), WN2C_prefetch(), WN2C_process_pragma(), WN2C_rcomma(), WN2C_realpart(), WN2C_return_val(), WN2C_select(), WN2C_Store_Return_Reg(), WN2C_switch(), WN2C_Translate_Comma_Sequence(), WN2C_translate_purple_main(), WN2C_Translate_Stmt_Sequence(), WN2C_while_do(), WN2F_Address_Of(), WN2F_alloca(), WN2F_Append_Block_Data(), WN2F_Append_IO_CtrlList(), WN2F_Append_IO_List(), WN2F_Append_Purple_Funcinfo(), WN2F_Append_Purple_Xsym(), WN2F_ar_construct(), WN2F_array(), WN2F_array_bounds(), WN2F_Array_Slots(), WN2F_arrsection(), WN2F_arrsection_bounds(), WN2F_Arrsection_Slots(), WN2F_ashr(), WN2F_Binary_Substr_Op(), WN2F_Block(), WN2F_bnor(), WN2F_call(), WN2F_Callsite_Directives(), WN2F_casegoto(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), WN2F_const(), WN2F_Convert(), WN2F_dealloca(), WN2F_Denormalize_Array_Idx(), WN2F_do_loop(), WN2F_do_while(), WN2F_emit_ctrl(), WN2F_Emit_End_Stmt(), WN2F_End_Routine_Strings(), WN2F_eq(), WN2F_eval(), WN2F_Expr_Plus_Literal(), WN2F_Funcall_Op(), WN2F_if(), WN2F_iload(), WN2F_imagpart(), WN2F_implicit_bnd(), WN2F_implied_do(), WN2F_Infix_Op(), WN2F_intconst(), WN2F_interface_blk(), WN2F_Intr_Funcall(), WN2F_Intr_Infix(), WN2F_intrinsic_call(), WN2F_io_control(), WN2F_io_format(), WN2F_io_list(), WN2F_io_unit(), WN2F_ios_accept(), WN2F_ios_decode(), WN2F_ios_definefile(), WN2F_ios_encode(), WN2F_ios_inqlength(), WN2F_ios_namelist(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_type(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_lshr(), WN2F_madd(), WN2F_mstore(), WN2F_msub(), WN2F_nmadd(), WN2F_nmsub(), WN2F_noio_implied_do(), WN2F_Normalize_Idx_To_Onedim(), WN2F_nullify_stmt(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_OLD_Den_Arr_Idx(), WN2F_paren(), WN2F_parm(), WN2F_prefetch(), WN2F_process_pragma(), WN2F_pstid(), WN2F_pstore(), WN2F_realpart(), WN2F_recip(), WN2F_return(), WN2F_rsqrt(), WN2F_select(), WN2F_src_triplet(), WN2F_stid(), WN2F_strctfld(), WN2F_String_Argument(), WN2F_Substring(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), WN2F_Translate_StringLEN(), WN2F_triplet(), WN2F_where(), WN2F_while_do(), Write_Scalar_Typedef(), and Write_Typedef().
void Append_Token_String | ( | TOKEN_BUFFER | tokens, |
const char * | string | ||
) |
Definition at line 1616 of file token_buffer.cxx.
References append_token_list(), Token_Sequence::first, Is_True, Token_Sequence::last, NULL, and string_token().
Referenced by Append_Arg_Numbers(), Append_Cplus_Initialization(), Append_Distribution(), Append_Implicit_Locals(), Append_MP_Schedtype(), Append_Nest_Clauses(), Append_Pragma_Clauses(), Append_Prefetch_Attributes(), Append_Reduction_Clause(), Append_Reduction_Operator(), Append_ST_String(), Emit_To_PUinfo_Pragmas(), INIT2F_Implied_DoLoop(), INIT2F_Translate_Char_Ref(), INITO2F_translate(), INITV2C_block_array(), INITV2C_block_struct(), INITV2C_struct_fill(), INITV2C_symoff(), INITVKIND_const(), PARAMETER2F_translate(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), ST2C_use_const(), ST2C_use_func(), ST2C_Use_Preg(), ST2C_use_var(), ST2C_weakext_translate(), ST2F_decl_func(), ST2F_decl_parameter(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_deref_translate(), ST2F_func_header(), ST2F_output_keyword(), ST2F_use_block(), ST2F_use_func(), ST2F_Use_Preg(), ST2F_use_var(), TCON2C_Append_String_Const(), TCON2C_translate(), TCON2F_Append_String_Const(), TCON2F_hollerith(), TCON2F_translate(), TY2C_function(), TY2C_get_field_info(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2C_Translate_Structure(), TY2F_Append_Array_Bnd_Ph(), TY2F_Append_Assumed_Single_Dim(), TY2F_Declare_Common_Flds(), TY2F_Equivalence(), TY2F_List_Common_Flds(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Fld_Path(), TY2F_Translate_Structure(), WHIRL2F_Append_Comment(), WN2C_alloca(), WN2C_altentry(), WN2C_Append_Assignment(), WN2C_append_label_name(), WN2C_Append_Pragma_Newline(), WN2C_Append_Purple_Funcinfo(), WN2C_Assign_Complex_Const(), WN2C_based_lvalue(), WN2C_block(), WN2C_call(), WN2C_Callsite_Directives(), WN2C_comment(), WN2C_compgoto(), WN2C_complex(), WN2C_compose_bits(), WN2C_condbr(), WN2C_const(), WN2C_dealloca(), WN2C_Declare_Return_Parameter(), WN2C_Declare_Return_Variable(), WN2C_do_loop(), WN2C_do_while(), WN2C_End_Prompf_Construct(), WN2C_exc_scope_begin(), WN2C_exc_scope_end(), WN2C_extract_bits(), WN2C_func_entry(), WN2C_funcall_op(), WN2C_Function_Call_Lhs(), WN2C_Function_Return_Value(), WN2C_goto(), WN2C_if(), WN2C_iload(), WN2C_imagpart(), WN2C_intrinsic_op(), WN2C_lda(), WN2C_ldid(), WN2C_Load_Return_Reg(), WN2C_lvalue_st(), WN2C_mload(), WN2C_mstore(), WN2C_Normalize_Idx_To_Onedim(), WN2C_pragma(), WN2C_prefetch(), WN2C_Prefetch_Map(), WN2C_process_pragma(), WN2C_Prompf_Construct_End(), WN2C_Prompf_Construct_Start(), WN2C_rcomma(), WN2C_realpart(), WN2C_region(), WN2C_return(), WN2C_return_val(), WN2C_Start_Prompf_Construct(), WN2C_Store_Return_Reg(), WN2C_switch(), WN2C_translate_purple_main(), WN2C_Translate_Stmt_Sequence(), WN2C_unsupported(), WN2C_while_do(), WN2F_agoto(), WN2F_alloca(), WN2F_Append_Block_Data(), WN2F_Append_Pragma_Preamble(), WN2F_Append_Prefetch_Map(), WN2F_Append_Purple_Funcinfo(), WN2F_Append_Purple_Xsym(), WN2F_array(), WN2F_array_bounds(), WN2F_arrsection(), WN2F_arrsection_bounds(), WN2F_ashr(), WN2F_Begin_Prompf_Transformed_Func(), WN2F_Binary_Substr_Op(), WN2F_block(), WN2F_Block(), WN2F_bnor(), WN2F_call(), WN2F_Callsite_Directives(), WN2F_casegoto(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), WN2F_dealloca(), WN2F_do_loop(), WN2F_do_while(), WN2F_emit_ctrl(), WN2F_Emit_End_Stmt(), WN2F_End_Prompf_Construct(), WN2F_End_Prompf_Transformed_Func(), WN2F_End_Routine_Strings(), WN2F_eq(), WN2F_eval(), WN2F_Exit_PU_Block(), WN2F_Funcall_Op(), WN2F_Function_Call_Lhs(), WN2F_goto(), WN2F_idname(), WN2F_if(), WN2F_iload(), WN2F_iloadx(), WN2F_imagpart(), WN2F_Infix_Op(), WN2F_interface_blk(), WN2F_Intr_Funcall(), WN2F_Intr_Infix(), WN2F_intrinsic_call(), WN2F_io(), WN2F_io_control(), WN2F_io_format(), WN2F_io_list(), WN2F_io_unit(), WN2F_ios_accept(), WN2F_ios_backspace(), WN2F_ios_close(), WN2F_ios_cr(), WN2F_ios_decode(), WN2F_ios_definefile(), WN2F_ios_delete(), WN2F_ios_encode(), WN2F_ios_endfile(), WN2F_ios_find(), WN2F_ios_inqlength(), WN2F_ios_inquire(), WN2F_ios_namelist(), WN2F_ios_open(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_rewind(), WN2F_ios_rewrite(), WN2F_ios_type(), WN2F_ios_unlock(), WN2F_ios_write(), WN2F_istorex(), WN2F_label(), WN2F_ldid(), WN2F_Load_Return_Reg(), WN2F_lshr(), WN2F_mload(), WN2F_namelist_stmt(), WN2F_nullify_stmt(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_pragma(), WN2F_pragma_list_end(), WN2F_prefetch(), WN2F_process_pragma(), WN2F_Prompf_Construct_End(), WN2F_Prompf_Construct_Start(), WN2F_pstid(), WN2F_pstore(), WN2F_realpart(), WN2F_recip(), WN2F_return(), WN2F_return_val(), WN2F_rsqrt(), WN2F_select(), WN2F_Start_Prompf_Construct(), WN2F_stid(), WN2F_strctfld(), WN2F_String_Argument(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), WN2F_Translate_StringLEN(), WN2F_unsupported(), WN2F_where(), WN2F_while_do(), Write_Scalar_Typedef(), and Write_Typedef().
UINT Current_Indentation | ( | void | ) |
Definition at line 1541 of file token_buffer.cxx.
References requested_indentation.
Referenced by INIT2F_Implied_DoLoop(), ST2C_Declare_Tempvar(), ST2C_Define_Preg(), ST2C_Get_Common_Ty2c_List(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), TY2C_struct(), TY2C_Translate_Structure(), TY2F_Translate_Structure(), WN2C_Append_Pragma_Newline(), WN2C_Append_Prompf_Flag_Newline(), WN2C_block(), WN2C_exc_scope_begin(), WN2C_exc_scope_end(), WN2C_iload(), WN2C_prefetch(), WN2F_func_entry(), WN2F_iload(), and WN2F_prefetch().
void Decrement_Indentation | ( | void | ) |
Definition at line 1582 of file token_buffer.cxx.
References current_indentation, indentation_increment, and requested_indentation.
Referenced by ST2C_func_header(), TY2C_complete_struct(), TY2C_Translate_Structure(), TY2F_Translate_Structure(), W2F_Outfile_Translate_Pu(), WN2C_block(), WN2C_compgoto(), WN2C_condbr(), WN2C_decr_indentation_for_stmt_body(), WN2C_func_entry(), WN2C_mstore(), WN2C_pragma_list_end(), WN2C_process_pragma(), WN2C_switch(), WN2C_translate_purple_main(), WN2F_do_loop(), WN2F_do_while(), WN2F_if(), WN2F_interface_blk(), and WN2F_while_do().
void Free_Token_Buffer_Memory | ( | void | ) |
Definition at line 1427 of file token_buffer.cxx.
References free_buffer_list().
UINT32 Get_Maximum_Linelength | ( | void | ) |
Definition at line 1420 of file token_buffer.cxx.
References Max_Line_Length.
Referenced by TCON2C_translate(), and TCON2F_translate().
BOOL Has_Maximum_Linelength | ( | void | ) |
BOOL Identical_Token_Lists | ( | TOKEN_BUFFER | tokens1, |
TOKEN_BUFFER | tokens2 | ||
) |
Definition at line 1482 of file token_buffer.cxx.
References DIRECTIVE_TOKEN, F77_SEQNO_TOKEN, FALSE, Is_True, NULL, SEPARATOR_TOKEN, SPECIAL_TOKEN, SRCPOS_DIRECTIVE_TOKEN, SRCPOS_MAP_TOKEN, STRING_TOKEN, TOKEN_BUFFER_get_char_string, TOKEN_char, TOKEN_kind, TOKEN_srcpos, TOKEN_string_size, Token_Buffer::tokens, and Token_Buffer::tokens_used.
Referenced by WN2F_istore(), WN2F_mstore(), WN2F_pstid(), WN2F_pstore(), and WN2F_stid().
void Increment_Indentation | ( | void | ) |
Definition at line 1571 of file token_buffer.cxx.
References current_indentation, indentation_increment, MAX_INDENTATION, and requested_indentation.
Referenced by ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), TY2C_complete_struct(), TY2C_Translate_Structure(), TY2F_Translate_Structure(), W2F_Outfile_Translate_Pu(), WN2C_block(), WN2C_compgoto(), WN2C_condbr(), WN2C_func_entry(), WN2C_incr_indentation_for_stmt_body(), WN2C_mstore(), WN2C_process_pragma(), WN2C_switch(), WN2C_translate_purple_main(), WN2F_do_loop(), WN2F_do_while(), WN2F_if(), WN2F_interface_blk(), and WN2F_while_do().
void Initialize_Token_Buffer | ( | FORMAT_KIND | output_format, |
BOOL | prompf_srcmap_format | ||
) |
Definition at line 1373 of file token_buffer.cxx.
References Current_Output_Col, Current_Output_Line, Default_Max_Line_Length, Emit_Prompf_Srcpos_Map, INVALID_SPLIT_PT, last_split_pt, Max_Line_Length, Max_Srcpos_Map_Filenum, Output_Format, and write_buffer_next.
Referenced by W2C_Init(), and W2F_Init().
BOOL Is_Empty_Token_Buffer | ( | TOKEN_BUFFER | tokens | ) |
Definition at line 1474 of file token_buffer.cxx.
References Is_True, NULL, and Token_Buffer::tokens_used.
Referenced by INIT2F_Append_Initializer(), WN2C_block(), WN2F_Append_Block_Data(), WN2F_Emit_End_Stmt(), and WN2F_Exit_PU_Block().
TOKEN_BUFFER New_Token_Buffer | ( | void | ) |
Definition at line 1434 of file token_buffer.cxx.
References buffer_free_list, Token_Buffer::chars_allocated, Token_Buffer::chars_used, Token_Sequence::first, INIT_STRING_BUFFER_SIZE, INIT_TOKEN_BUFFER_SIZE, Token_Sequence::last, Token_Buffer::next, NO_TOKEN_IDX, NULL, Token_Buffer::strings, TB_TYPE_ALLOC_N, Token_Buffer::token_list, Token_Buffer::tokens, Token_Buffer::tokens_allocated, and Token_Buffer::tokens_used.
Referenced by Append_A_Clause_Symbol(), Append_Clause_Expressions(), Append_Nest_Clauses(), Emit_To_PUinfo_Pragmas(), INIT2F_Implied_DoLoop(), INIT2F_ptr_or_scalar(), INIT2F_substring(), INIT2F_Translate_Array_Ref(), INITO2F_translate(), INITV2C_symoff(), INITV2C_val(), INITVKIND_const(), INITVKIND_symoff(), INITVKIND_val(), write_st::operator()(), PARAMETER2F_translate(), PUinfo_init_pu(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2C_Get_Common_Ty2c_List(), ST2F_decl_parameter(), ST2F_decl_type(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_func_header(), TY2C_get_field_info(), TY2C_Output_Struct_Type(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2C_Translate_Structure(), TY2F_Declare_Common_Flds(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), TY2F_Translate_Common(), TY2F_Translate_EquivCommon_PtrFld(), TY2F_Translate_Structure(), W2C_def_TY(), W2C_Outfile_Fini(), W2C_Outfile_Translate_Pu(), W2C_Translate_Istore_Lhs(), W2C_Translate_Purple_Main(), W2C_Translate_Stid_Lhs(), W2C_Translate_Wn(), W2C_Translate_Wn_Str(), W2F_def_ST(), W2F_Outfile_Fini(), W2F_Outfile_Translate_Pu(), W2F_Translate_Istore_Lhs(), W2F_Translate_Purple_Main(), W2F_Translate_Stid_Lhs(), W2F_Translate_Wn(), W2F_Translate_Wn_Str(), WN2C_Append_Assignment(), WN2C_Append_Preg(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2C_array(), WN2C_block(), WN2C_call(), WN2C_cvt(), WN2C_cvtl(), WN2C_Declare_Return_Variable(), WN2C_Function_Call_Lhs(), WN2C_Function_Return_Value(), WN2C_generate_cast(), WN2C_iload(), WN2C_intrinsic_op(), WN2C_istore(), WN2C_istorex(), WN2C_lda(), WN2C_ldid(), WN2C_Load_From_PregIdx(), WN2C_Load_Return_Reg(), WN2C_mload(), WN2C_mstore(), WN2C_parm(), WN2C_stid(), WN2C_Store_Return_Reg(), WN2C_tas(), WN2C_Translate_Arithmetic_Operand(), WN2C_translate_purple_main(), WN2C_Value_Reference(), WN2F_Append_Block_Data(), WN2F_Append_IO_CtrlList(), WN2F_Append_Symtab_Consts(), WN2F_block(), WN2F_call(), WN2F_cvt(), WN2F_cvtl(), WN2F_Denormalize_Array_Idx(), WN2F_Enter_PU_Block(), WN2F_Exit_PU_Block(), WN2F_Function_Call_Lhs(), WN2F_interface_blk(), WN2F_io(), WN2F_io_control(), WN2F_ios_inqlength(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_mstore(), WN2F_OLD_Den_Arr_Idx(), WN2F_Prepend_Value_Reference(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_tempvar_rhs(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), Write_Scalar_Typedef(), and Write_Typedef().
void Prepend_And_Copy_Token_List | ( | TOKEN_BUFFER | result_tokens, |
TOKEN_BUFFER | copy_tokens | ||
) |
Definition at line 1710 of file token_buffer.cxx.
References copy_token_list(), Token_Sequence::first, Is_True, NO_TOKEN_IDX, NULL, and prepend_token_list().
Referenced by INIT2F_Prepend_Equivalence(), and Prepend_And_Reclaim_Token_List().
void Prepend_And_Reclaim_Token_List | ( | TOKEN_BUFFER | result_tokens, |
TOKEN_BUFFER * | reclaim_tokens | ||
) |
Definition at line 1723 of file token_buffer.cxx.
References Prepend_And_Copy_Token_List(), and Reclaim_Token_Buffer().
Referenced by Emit_To_PUinfo_Pragmas(), ST2C_Define_A_Common_Block(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2F_Prepend_Structures(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), WN2C_Function_Call_Lhs(), WN2C_prepend_cast(), WN2C_Value_Reference(), WN2F_Function_Call_Lhs(), WN2F_Prepend_Value_Reference(), and WN2F_Translate_DoLoop_Bound().
void Prepend_F77_Comment_Newline | ( | TOKEN_BUFFER | tokens, |
UINT | num_lines, | ||
BOOL | indent_last_line | ||
) |
Definition at line 1814 of file token_buffer.cxx.
References F77_ANSI_FORMAT, F77_comment_line_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, Output_Format, and prepend_token_list().
void Prepend_F77_Directive_Newline | ( | TOKEN_BUFFER | tokens, |
const char * | directive_prefix | ||
) |
Definition at line 1848 of file token_buffer.cxx.
References F77_ANSI_FORMAT, F77_directive_line_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, Output_Format, and prepend_token_list().
void Prepend_F77_Indented_Continuation | ( | TOKEN_BUFFER | tokens | ) |
Definition at line 1781 of file token_buffer.cxx.
References F77_ANSI_FORMAT, F77_TAB_FORMAT, Token_Sequence::first, indented_newline_token(), Is_True, Token_Sequence::last, NULL, Output_Format, prepend_token_list(), and TRUE.
void Prepend_F77_Indented_Newline | ( | TOKEN_BUFFER | tokens, |
UINT | num_lines, | ||
const char * | label | ||
) |
Definition at line 1749 of file token_buffer.cxx.
References F77_ANSI_FORMAT, F77_TAB_FORMAT, FALSE, Token_Sequence::first, indented_newline_token(), Is_True, Token_Sequence::last, NULL, Output_Format, and prepend_token_list().
Referenced by INIT2F_Prepend_Equivalence(), and TY2F_void().
void Prepend_F77_Sequence_No | ( | TOKEN_BUFFER | tokens, |
const char * | seq_no | ||
) |
Definition at line 1881 of file token_buffer.cxx.
References f77_seqno_token(), F77_TAB_FORMAT, Token_Sequence::first, Is_True, Token_Sequence::last, NULL, Output_Format, and prepend_token_list().
void Prepend_Indented_Newline | ( | TOKEN_BUFFER | tokens, |
UINT | num_lines | ||
) |
Definition at line 1668 of file token_buffer.cxx.
References FALSE, Token_Sequence::first, indented_newline_token(), Is_True, Token_Sequence::last, NULL, and prepend_token_list().
Referenced by TY2C_complete_struct(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), and Write_Typedef().
void Prepend_Srcpos_Directive | ( | TOKEN_BUFFER | tokens, |
SRCPOS | srcpos | ||
) |
Definition at line 1937 of file token_buffer.cxx.
References Token_Sequence::first, Is_True, Token_Sequence::last, NULL, prepend_token_list(), and Srcpos_Directive_Token().
void Prepend_Srcpos_Map | ( | TOKEN_BUFFER | tokens, |
SRCPOS | srcpos | ||
) |
Definition at line 1924 of file token_buffer.cxx.
References Token_Sequence::first, Is_True, Token_Sequence::last, NULL, prepend_token_list(), and Srcpos_Map_Token().
void Prepend_Token_Special | ( | TOKEN_BUFFER | tokens, |
char | special | ||
) |
Definition at line 1697 of file token_buffer.cxx.
References Token_Sequence::first, Is_True, Token_Sequence::last, NULL, prepend_token_list(), and special_char_token().
Referenced by Append_Clause_Expressions(), INIT2F_Append_Initializer(), INIT2F_Prepend_Equivalence(), INITV2C_symoff(), TY2C_array(), TY2C_complete_struct(), TY2C_get_field_info(), TY2C_pointer(), TY2F_pointer(), TY2F_Translate_ArrayElt(), WHIRL2C_parenthesize(), WHIRL2F_Parenthesize(), WN2C_Append_Assignment(), WN2C_array(), WN2C_based_lvalue(), WN2C_Function_Call_Lhs(), WN2C_Function_Return_Value(), WN2C_lda(), WN2C_ldid(), WN2C_Load_From_PregIdx(), WN2C_Load_Return_Reg(), WN2C_memref_lhs(), WN2C_mload(), WN2C_mstore(), WN2C_stid_lhs(), WN2C_Store_Return_Reg(), WN2F_Address_Of(), WN2F_Convert(), WN2F_Function_Call_Lhs(), WN2F_istore(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), and WN2F_Translate_DoLoop_Bound().
void Prepend_Token_String | ( | TOKEN_BUFFER | tokens, |
const char * | string | ||
) |
Definition at line 1681 of file token_buffer.cxx.
References Token_Sequence::first, Is_True, Token_Sequence::last, NULL, prepend_token_list(), and string_token().
Referenced by INIT2F_Append_Initializer(), INIT2F_Prepend_Equivalence(), INITV2C_symoff(), ST2C_basic_decl(), ST2C_Define_Preg(), ST2C_func_header(), ST2F_decl_var(), ST2F_func_header(), TY2C_complete_struct(), TY2C_get_field_info(), TY2C_prepend_qualifiers(), TY2C_scalar(), TY2C_struct(), TY2C_translate(), TY2C_void(), TY2F_array(), TY2F_array_for_pointer(), TY2F_invalid(), TY2F_pointer(), TY2F_scalar(), TY2F_struct(), TY2F_Translate_ArrayElt(), TY2F_Translate_Structure(), TY2F_void(), WN2C_ldid(), WN2F_Address_Of(), WN2F_call(), WN2F_Convert(), WN2F_interface_blk(), WN2F_istore(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_Translate_DoLoop_Bound(), and Write_Typedef().
void Reclaim_Token_Buffer | ( | TOKEN_BUFFER * | tokens | ) |
Definition at line 1465 of file token_buffer.cxx.
References buffer_free_list, and NULL.
Referenced by Append_And_Reclaim_Token_List(), INIT2F_Implied_DoLoop(), INIT2F_Translate_Array_Ref(), INITV2C_block_struct(), Prepend_And_Reclaim_Token_List(), PUinfo_exit_pu(), Str_Write_And_Reclaim_Tokens(), WN2C_Function_Call_Lhs(), WN2C_MemAccess_Type(), WN2C_SymAccess_Type(), WN2F_Denormalize_Array_Idx(), WN2F_istore(), WN2F_mstore(), WN2F_OLD_Den_Arr_Idx(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), and Write_And_Reclaim_Tokens().
void Set_Current_Indentation | ( | UINT | ident | ) |
Definition at line 1548 of file token_buffer.cxx.
References current_indentation, MAX_INDENTATION, and requested_indentation.
Referenced by INIT2F_Implied_DoLoop(), ST2C_Declare_Tempvar(), ST2C_Define_Preg(), ST2C_Get_Common_Ty2c_List(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), TY2C_struct(), TY2F_Translate_Structure(), WN2C_Append_Pragma_Newline(), WN2C_Append_Prompf_Flag_Newline(), WN2C_block(), WN2C_exc_scope_begin(), WN2C_exc_scope_end(), WN2C_iload(), WN2C_prefetch(), WN2F_iload(), and WN2F_prefetch().
void Set_Indentation_Step | ( | UINT | num_spaces | ) |
Definition at line 1561 of file token_buffer.cxx.
References indentation_increment, and MAX_INDENTATION_STEP.
void Set_Maximum_Linelength | ( | UINT32 | max_linelength | ) |
Definition at line 1403 of file token_buffer.cxx.
References Default_Max_Line_Length, Max_Line_Length, and Output_Format.
Referenced by W2C_Init(), and W2F_Init().
void Str_Write_And_Reclaim_Tokens | ( | char * | strbuf, |
UINT32 | buflen, | ||
TOKEN_BUFFER * | tokens | ||
) |
Definition at line 2005 of file token_buffer.cxx.
References Current_Output_Col, Current_Output_Line, Token_Sequence::first, flush_write_buffer(), FREE_FORMAT, Is_True, NO_TOKEN_IDX, NULL, Output_Format, Reclaim_Token_Buffer(), Str_Skip_Srcpos_Map(), Token_Buffer::token_list, TOKEN_next, write_F77_separator(), write_separator(), and write_token().
Referenced by W2C_Translate_Istore_Lhs(), W2C_Translate_Stid_Lhs(), W2C_Translate_Wn_Str(), W2F_Translate_Istore_Lhs(), W2F_Translate_Stid_Lhs(), and W2F_Translate_Wn_Str().
void Terminate_Token_Buffer | ( | FILE * | srcpos_map_file | ) |
Definition at line 1390 of file token_buffer.cxx.
References free_buffer_list(), Max_Srcpos_Map_Filenum, and Write_Srcpos_File_Map_Table().
Referenced by End_Locations_File(), W2C_Fini(), and W2F_Fini().
void Write_And_Reclaim_Tokens | ( | FILE * | ofile, |
FILE * | srcpos_map_file, | ||
TOKEN_BUFFER * | tokens | ||
) |
Definition at line 1950 of file token_buffer.cxx.
References Current_Output_Col, Current_Output_Line, Token_Sequence::first, flush_write_buffer(), FREE_FORMAT, Is_True, NO_TOKEN_IDX, NULL, Output_Format, Reclaim_Token_Buffer(), Skip_Srcpos_Map(), Token_Buffer::token_list, TOKEN_next, write_F77_separator(), write_separator(), and write_token().
Referenced by write_st::operator()(), TY2C_Output_Struct_Type(), TY2C_Translate_Structure(), W2C_def_TY(), W2C_Outfile_Fini(), W2C_Outfile_Translate_Pu(), W2C_Translate_Purple_Main(), W2C_Translate_Wn(), W2F_def_ST(), W2F_Outfile_Fini(), W2F_Outfile_Translate_Pu(), W2F_Translate_Purple_Main(), W2F_Translate_Wn(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Types(), WN2C_Append_Symtab_Vars(), WN2F_Append_Symtab_Consts(), Write_Scalar_Typedef(), and Write_Typedef().
void Write_String | ( | FILE * | ofile, |
FILE * | srcpos_map_file, | ||
const char * | str | ||
) |
Definition at line 2055 of file token_buffer.cxx.
References Current_Output_Col, Current_Output_Line, and NULL.
Referenced by Begin_New_Locations_File(), End_Locations_File(), W2C_Outfile_Init(), W2F_Outfile_Init(), WN2C_translate_file_scope_defs(), and WN2C_translate_structured_types().
void Zero_Indentation | ( | void | ) |
Definition at line 1596 of file token_buffer.cxx.
References current_indentation, and requested_indentation.