osprey/be/whirl2c/token_buffer.cxx File Reference

#include <stdio.h>
#include <string.h>
#include "defs.h"
#include "srcpos.h"
#include "token_buffer.h"
#include "errors.h"
#include "mempool.h"
#include "wn.h"
#include "ir_reader.h"

Include dependency graph for token_buffer.cxx:

Go to the source code of this file.

Data Types

type  String_Value
union  Token_Value
type  Token
type  Token_Sequence
type  Token_Buffer

Defines

#define strcpy   DO_NOT_USE_STRCPY
#define TB_TYPE_ALLOC_N(type, count)   TYPE_MEM_POOL_ALLOC_N(type, Malloc_Mem_Pool, count)
#define TB_TYPE_REALLOC_N(type, old_ptr, old_count, new_count)
#define TB_FREE(ptr)   MEM_POOL_FREE(Malloc_Mem_Pool, ptr)
#define SPACE   ' '
#define NEWLINE   '\n'
#define COMMA   ','
#define SEMICOLON   ';'
#define LEFT_PAREN   '('
#define RIGHT_PAREN   ')'
#define LEFT_BRACKET   '['
#define RIGHT_BRACKET   ']'
#define LEFT_BRACE   '{'
#define RIGHT_BRACE   '}'
#define PLUS   '+'
#define MINUS   '-'
#define MULTIPLY   '*'
#define DIVIDE   '/'
#define BITAND   '&'
#define BITOR   '|'
#define MODULUS   '%'
#define EQUAL   '='
#define QUESTION_MARK   '?'
#define COLON   ':'
#define LESS_THAN   '<'
#define LARGER_THAN   '>'
#define NOT   '!'
#define BIT_COMPLEMENT   '~'
#define FORTRAN_COMMENT_CHAR   'C'
#define MAX_STRING_IDX   (STRING_IDX)0x7fffffffU
#define MAX_TOKEN_IDX   (TOKEN_IDX)0x7fffffffU
#define NO_STRING_IDX   (STRING_IDX)0xffffffffU
#define NO_TOKEN_IDX   (TOKEN_IDX)0xffffffffU
#define INIT_STRING_BUFFER_SIZE   1024
#define INIT_TOKEN_BUFFER_SIZE   512
#define TOKEN_kind(t)   (t)->kind
#define TOKEN_next(t)   (t)->next
#define TOKEN_srcpos(t)   (t)->value.srcpos
#define TOKEN_char(t)   (t)->value.str_val.string.ch[0]
#define TOKEN_short_string(t)   (t)->value.str_val.string.ch
#define TOKEN_string_idx(t)   (t)->value.str_val.string.idx
#define TOKEN_string_size(t)   (t)->value.str_val.size
#define TOKEN_is_short_string(t)   (TOKEN_string_size(t) <= sizeof(STRING_IDX))
#define TOKEN_is_string(t)
#define TOKEN_BUFFER_get_char_string(buf, a_token)
#define WRITE_BUFFER_SIZE   256
#define INVALID_SPLIT_PT   -1
#define MAX_INDENTATION   40
#define MAX_INDENTATION_STEP   10
#define USE_UNLIMITED_LINE_LENGTH   (Max_Line_Length == 0)
#define MAX_F77_DIRECTIVE_PREFIX_SIZE   24
#define DBGOUT   stderr
#define CAN_SPLIT_LINE   (last_split_pt != INVALID_SPLIT_PT)
#define NEED_TO_SPLIT_LINE   (!USE_UNLIMITED_LINE_LENGTH && Current_Output_Col > Max_Line_Length)
#define is_binary_or_tertiary_op(c)
#define is_begin_grouping(c)
#define is_end_grouping(c)
#define is_unary_op(c1, c2)
#define is_comma_or_semicolon(c)   (c==COMMA || c==SEMICOLON)

Typedefs

typedef mUINT32 STRING_IDX
typedef mUINT32 TOKEN_IDX
typedef enum Token_Kind TOKEN_KIND
typedef struct String_Value STRING_VALUE
typedef union Token_Value TOKEN_VALUE
typedef struct Token TOKEN
typedef struct Token_Sequence TOKEN_SEQUENCE

Enumerations

enum  Token_Kind {
  STRING_TOKEN = 0, SPECIAL_TOKEN = 1, SEPARATOR_TOKEN = 2, DIRECTIVE_TOKEN = 3,
  F77_SEQNO_TOKEN = 4, SRCPOS_MAP_TOKEN = 5, SRCPOS_DIRECTIVE_TOKEN = 6
}

Functions/Subroutines

void dbg_tokens (TOKEN_BUFFER buf, BOOL with_token_name)
static TOKEN_IDX get_new_tokens (TOKEN_BUFFER buf, INT number_of_tokens)
static STRING_IDX get_new_string (TOKEN_BUFFER buf, INT16 stringsize)
static char * Allocate_Token_String (TOKEN_BUFFER buf, TOKEN *a_token, STRING_IDX str_size)
static void free_buffer_list (TOKEN_BUFFER free_list)
static TOKEN_IDX indented_newline_token (TOKEN_BUFFER buffer, UINT num_lines, BOOL continuation, const char *label)
static TOKEN_IDX F77_comment_line_token (TOKEN_BUFFER buffer, UINT num_lines, const char *comment_prefix, BOOL indent_last_line)
static TOKEN_IDX F77_directive_line_token (TOKEN_BUFFER buffer, const char *directive_prefix)
static TOKEN_IDX string_token (TOKEN_BUFFER buffer, const char *string)
static TOKEN_IDX f77_seqno_token (TOKEN_BUFFER buffer, const char *seqno)
static TOKEN_IDX special_char_token (TOKEN_BUFFER buffer, char special)
static TOKEN_IDX Srcpos_Map_Token (TOKEN_BUFFER buffer, SRCPOS srcpos)
static TOKEN_IDX Srcpos_Directive_Token (TOKEN_BUFFER buffer, SRCPOS srcpos)
static TOKEN_SEQUENCE copy_token_list (TOKEN_BUFFER to_buffer, TOKEN_BUFFER from_buffer)
static void append_token_list (TOKEN_BUFFER buffer, TOKEN_SEQUENCE token_list)
static void prepend_token_list (TOKEN_BUFFER buffer, TOKEN_SEQUENCE token_list)
static void write_into_string_buf (const char *from, UINT from_size, char **into, UINT *into_size)
static void flush_write_buffer (FILE *ofile, char **buffer, UINT *buflen)
static void Output_Character (FILE *ofile, char **strbuf, UINT *strlen, char c)
static void Split_The_Current_Output_Line (FILE *ofile, char **strbuf, UINT *strlen)
static void Output_Srcpos_Map (FILE *mapfile, SRCPOS srcpos)
static void Output_Srcpos_Directive (FILE *ofile, char **strbuf, UINT *strlen, SRCPOS srcpos)
static void write_token (FILE *ofile, char **strbuf, UINT *strlen, TOKEN_BUFFER buffer, TOKEN_IDX this_token)
static void write_separator (FILE *ofile, char **strbuf, UINT *strlen, TOKEN_BUFFER buffer, TOKEN_IDX idx1, TOKEN_IDX idx2)
static void write_F77_separator (FILE *ofile, char **strbuf, UINT *strlen, TOKEN_BUFFER buffer, TOKEN_IDX idx1, TOKEN_IDX idx2)
static TOKEN_IDX Skip_Srcpos_Map (FILE *srcpos_map_file, TOKEN_BUFFER buf, TOKEN_IDX token_idx)
static TOKEN_IDX Str_Skip_Srcpos_Map (TOKEN_BUFFER buf, TOKEN_IDX token_idx)
static void Write_Srcpos_File_Map_Table (FILE *srcpos_map_file)
void Initialize_Token_Buffer (FORMAT_KIND output_format, BOOL prompf_srcmap_format)
void Terminate_Token_Buffer (FILE *srcpos_map_file)
void Set_Maximum_Linelength (UINT32 max_linelength)
BOOL HAS_Maximum_Linelength (void)
UINT32 Get_Maximum_Linelength (void)
void Free_Token_Buffer_Memory (void)
TOKEN_BUFFER New_Token_Buffer (void)
void Reclaim_Token_Buffer (TOKEN_BUFFER *tokens)
BOOL Is_Empty_Token_Buffer (TOKEN_BUFFER tokens)
BOOL Identical_Token_Lists (TOKEN_BUFFER tokens1, TOKEN_BUFFER tokens2)
UINT Current_Indentation (void)
void Set_Current_Indentation (UINT indent)
void Set_Indentation_Step (UINT num_spaces)
void Increment_Indentation (void)
void Decrement_Indentation (void)
void Zero_Indentation (void)
void Append_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines)
void Append_Token_String (TOKEN_BUFFER tokens, const char *string)
void Append_Token_Special (TOKEN_BUFFER tokens, char special)
void Append_And_Copy_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER copy_tokens)
void Append_And_Reclaim_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER *reclaim_tokens)
void Prepend_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines)
void Prepend_Token_String (TOKEN_BUFFER tokens, const char *string)
void Prepend_Token_Special (TOKEN_BUFFER tokens, char special)
void Prepend_And_Copy_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER copy_tokens)
void Prepend_And_Reclaim_Token_List (TOKEN_BUFFER result_tokens, TOKEN_BUFFER *reclaim_tokens)
void Append_F77_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines, const char *label)
void Prepend_F77_Indented_Newline (TOKEN_BUFFER tokens, UINT num_lines, const char *label)
void Append_F77_Indented_Continuation (TOKEN_BUFFER tokens)
void Prepend_F77_Indented_Continuation (TOKEN_BUFFER tokens)
void Append_F77_Comment_Newline (TOKEN_BUFFER tokens, UINT num_lines, BOOL indent_last_line)
void Prepend_F77_Comment_Newline (TOKEN_BUFFER tokens, UINT num_lines, BOOL indent_last_line)
void Append_F77_Directive_Newline (TOKEN_BUFFER tokens, const char *directive_prefix)
void Prepend_F77_Directive_Newline (TOKEN_BUFFER tokens, const char *directive_prefix)
void Append_F77_Sequence_No (TOKEN_BUFFER tokens, const char *seq_no)
void Prepend_F77_Sequence_No (TOKEN_BUFFER tokens, const char *seq_no)
void Append_Srcpos_Map (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Append_Srcpos_Directive (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Prepend_Srcpos_Map (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Prepend_Srcpos_Directive (TOKEN_BUFFER tokens, SRCPOS srcpos)
void Write_And_Reclaim_Tokens (FILE *ofile, FILE *srcpos_map_file, TOKEN_BUFFER *tokens)
void Str_Write_And_Reclaim_Tokens (char *strbuf, UINT32 buflen, TOKEN_BUFFER *tokens)
void Write_String (FILE *ofile, FILE *srcpos_map_file, const char *str)

Variables

static TOKEN_BUFFER buffer_free_list = NULL
static char write_buffer [WRITE_BUFFER_SIZE+1]
static INT32 write_buffer_next = 0
static INT32 last_split_pt = INVALID_SPLIT_PT
static UINT32 indentation_increment = 2
static INT32 current_indentation = 0
static INT32 requested_indentation = 0
static UINT32 Max_Line_Length = 0
static FORMAT_KIND Output_Format = FREE_FORMAT
static UINT32 Current_Output_Col = 1
static UINT32 Current_Output_Line = 1
static UINT32 Max_Srcpos_Map_Filenum = 0
static UINT32 Default_Max_Line_Length [NUM_FORMAT_KINDS+1]
static BOOL Inside_F77_Directive = FALSE
static UINT32 Max_Line_Length_Outside_F77_Directive
static char F77_Directive_Continuation [MAX_F77_DIRECTIVE_PREFIX_SIZE+1]
static BOOL Emit_Prompf_Srcpos_Map = FALSE


Define Documentation

#define BIT_COMPLEMENT   '~'

Definition at line 163 of file token_buffer.cxx.

#define BITAND   '&'

Definition at line 154 of file token_buffer.cxx.

#define BITOR   '|'

Definition at line 155 of file token_buffer.cxx.

#define CAN_SPLIT_LINE   (last_split_pt != INVALID_SPLIT_PT)

Definition at line 409 of file token_buffer.cxx.

Referenced by Output_Character().

#define COLON   ':'

#define COMMA   ','

Definition at line 142 of file token_buffer.cxx.

Referenced by _ld_read(), _ld_write(), _mr_scan_complex(), get_punctuator(), init_date_time_info(), l_write(), paren_grp_is_cplx_const(), parse_access_stmt(), parse_actual_arg_spec(), parse_allocate_stmt(), parse_array_spec(), parse_attr_spec(), parse_attrs(), parse_auxiliary_dir(), parse_buffer_stmt(), parse_cache_align_name_list(), parse_cache_bypass_dir(), parse_cache_noalloc(), parse_case_stmt(), parse_common_dirs(), parse_common_stmt(), parse_copy_assumed_shape_dir(), parse_cpnt_dcl_stmt(), parse_data_imp_do(), parse_data_stmt(), parse_deallocate_stmt(), parse_decode_stmt(), parse_define_str(), parse_deref(), parse_derived_type_stmt(), parse_dir_directives(), parse_dir_var_list(), parse_distribution_dir(), parse_do_stmt(), parse_doall_cmic(), parse_dollar_directives(), parse_dummy_args(), parse_encode_stmt(), parse_equivalence_stmt(), parse_err_flush(), parse_fill_align_symbol(), parse_forall(), parse_goto_stmt(), parse_if_stmt(), parse_ignore_tkr(), parse_imp_do(), parse_implicit_stmt(), parse_initializer(), parse_inline_always_never(), parse_int_or_star_list(), parse_io_control_list(), parse_io_list(), parse_label_list(), parse_lhs(), parse_mic_directives(), parse_module_stmt(), parse_mp_directive(), 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_parallel_cmic(), parse_parameter_stmt(), parse_pe_array_spec(), parse_permutation_mic(), parse_pointer_stmt(), parse_prefetch_ref(), parse_print_stmt(), parse_read_stmt(), parse_redistribute_dir(), parse_reference_list(), parse_sgi_dir_inline(), parse_slash_common_dirs(), parse_star_dir_directives(), parse_star_directives(), parse_stmt_func_stmt(), parse_symmetric_dir(), parse_type_dcl_stmt(), parse_type_spec(), parse_use_stmt(), parse_var_common_list(), parse_var_name_list(), parse_vfunction_dir(), parse_write_stmt(), process_A_option(), process_a_option(), process_M_option(), process_O_option(), process_R_option(), process_reshape_array(), process_u_option(), process_x_option(), scan_cc_macro(), write_opt_action(), and write_option_names().

#define DBGOUT   stderr

Definition at line 318 of file token_buffer.cxx.

Referenced by dbg_tokens().

#define DIVIDE   '/'

#define EQUAL   '='

Definition at line 157 of file token_buffer.cxx.

#define FORTRAN_COMMENT_CHAR   'C'

Definition at line 164 of file token_buffer.cxx.

#define INIT_STRING_BUFFER_SIZE   1024

Definition at line 173 of file token_buffer.cxx.

Referenced by New_Token_Buffer().

#define INIT_TOKEN_BUFFER_SIZE   512

Definition at line 174 of file token_buffer.cxx.

Referenced by New_Token_Buffer().

#define INVALID_SPLIT_PT   -1

#define is_begin_grouping ( c   ) 

Value:

Definition at line 444 of file token_buffer.cxx.

Referenced by write_separator().

#define is_binary_or_tertiary_op ( c   ) 

Value:

(c==PLUS          || \
    c==MINUS         || \
    c==MULTIPLY      || \
    c==DIVIDE        || \
    c==BITAND        || \
    c==BITOR         || \
    c==MODULUS       || \
    c==EQUAL         || \
    c==NOT           || \
    c==QUESTION_MARK || \
    c==COLON         || \
    c==LESS_THAN     || \
    c==LARGER_THAN)

Definition at line 428 of file token_buffer.cxx.

Referenced by write_separator().

#define is_comma_or_semicolon ( c   )     (c==COMMA || c==SEMICOLON)

Definition at line 469 of file token_buffer.cxx.

Referenced by write_separator().

#define is_end_grouping ( c   ) 

Value:

Definition at line 449 of file token_buffer.cxx.

Referenced by write_separator().

#define is_unary_op ( c1,
c2   ) 

Value:

((is_binary_or_tertiary_op(c1) || \
     is_begin_grouping(c1)        || \
     is_comma_or_semicolon(c1))     && \
    is_binary_or_tertiary_op(c2)    && \
    c1 != c2                        && \
    c2 != EQUAL                     && \
    !is_end_grouping(c1)            && \
    !(c1==MINUS && c2==LARGER_THAN))

Definition at line 458 of file token_buffer.cxx.

Referenced by write_separator().

#define LARGER_THAN   '>'

Definition at line 161 of file token_buffer.cxx.

#define LEFT_BRACE   '{'

Definition at line 148 of file token_buffer.cxx.

Referenced by write_separator().

#define LEFT_BRACKET   '['

Definition at line 146 of file token_buffer.cxx.

#define LEFT_PAREN   '('

Definition at line 144 of file token_buffer.cxx.

#define LESS_THAN   '<'

Definition at line 160 of file token_buffer.cxx.

#define MAX_F77_DIRECTIVE_PREFIX_SIZE   24

Definition at line 305 of file token_buffer.cxx.

Referenced by write_token().

#define MAX_INDENTATION   40

#define MAX_INDENTATION_STEP   10

Definition at line 269 of file token_buffer.cxx.

Referenced by Set_Indentation_Step().

#define MAX_STRING_IDX   (STRING_IDX)0x7fffffffU

Definition at line 169 of file token_buffer.cxx.

Referenced by get_new_string().

#define MAX_TOKEN_IDX   (TOKEN_IDX)0x7fffffffU

Definition at line 170 of file token_buffer.cxx.

Referenced by get_new_tokens().

#define MINUS   '-'

Definition at line 151 of file token_buffer.cxx.

Referenced by alpha_lookup_xfloating_lib_func(), alpha_rtx_costs(), analyze_insn_to_expand_var(), apply_distributive_law(), arithmetic_instr(), arm_arm_address_cost(), arm_gen_constant(), arm_legitimate_address_p(), arm_legitimize_address(), arm_reload_in_hi(), arm_reload_out_hi(), arm_rtx_costs(), arm_rtx_costs_1(), arm_select_cc_mode(), arm_size_rtx_costs(), arm_split_constant(), avr_rtx_costs(), bad_signed_byte_operand(), bfin_rtx_costs(), binary_float_operator(), binary_fp_operator(), break_out_memory_refs(), c4x_check_legit_addr(), c4x_legitimate_address_p(), c4x_print_operand_address(), c4x_rtx_costs(), c4x_S_constraint(), c4x_S_indirect(), check_attr_value(), check_pic(), check_return_regs(), combine_simplify_rtx(), combine_var_copies_in_loop_exit(), commutative_operand_precedence(), condexec_addsub_operator(), condexec_sf_add_operator(), condexec_si_binary_operator(), condop_operator(), const_ok_for_op(), constant_pool_expr_1(), convert_hex_literal(), copy_all_regs(), cris_additive_operand_extend_operator(), cris_got_symbol(), cris_gotless_symbol(), cris_notice_update_cc(), cris_op_str(), cris_operand_extend_operator(), cris_orthogonal_operator(), cris_output_addr_const(), cris_pic_symbol_type_of(), cris_symbol(), crx_decompose_address(), crx_print_operand_address(), cse_insn(), darwin_local_data_pic(), decode_rtx_const(), default_rtx_costs(), determine_max_iter(), eliminate_regs(), eliminate_regs_1(), emit_case_nodes(), emit_move_resolve_push(), emit_soft_tfmode_binop(), errata_emit_nops(), expand_binop(), expand_builtin(), expand_builtin_apply(), expand_field_assignment(), expand_mult_highpart_adjust(), expand_sync_fetch_operation(), expand_sync_operation(), expand_vector_binop(), express_from_1(), final_giv_value(), find_base_term(), find_base_value(), find_reloads_address_1(), find_replacement(), fixup_match_1(), float_binary(), fold_rtx(), force_operand(), force_to_mode(), frv_print_operand(), frv_rtx_costs(), gen_mod_subtract(), gen_subdi3(), gen_subhi3(), gen_subqi3(), gen_subsi3(), gen_tablejump(), get_biv_step_1(), get_integer_term(), get_jump_table_offset(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_related_value(), gt_ggc_mx_rtx_def(), h8sx_binary_memory_operator(), hppa_legitimize_address(), hppa_rtx_costs(), ia64_expand_atomic_op(), ia64_rtx_costs(), if_then_else_cond(), implies_p(), init_alignment_context(), init_expmed(), init_optabs(), insert_var_expansion_initialization(), instantiate_virtual_regs_1(), intop_compare_operator(), ip2k_rtx_costs(), iq2000_rtx_costs(), is_cond_candidate(), iv_add(), iv_analyze(), iv_analyze_biv(), iv_analyze_expr(), iv_number_of_iterations(), ix86_rtx_costs(), legitimate_pic_address_disp_p(), legitimize_address(), legitimize_operands(), loop_iterations(), m68hc11_arith_operator(), m68hc11_non_shift_operator(), m68hc11_notice_update_cc(), m68hc11_rtx_costs(), m68hc11_rtx_costs_1(), machopic_indirect_data_reference(), machopic_legitimize_pic_address(), machopic_operand_p(), make_compound_operation(), make_tree(), mark_loop_jump(), memop_valid(), memory_address(), mips16_gp_offset(), mips16_gp_offset_p(), mips16_optimize_gp(), mips16_output_gp_offset(), mips_legitimate_address_p(), mips_linked_madd_p(), mips_rtx_costs(), mn10300_address_cost(), mn10300_address_cost_1(), must_parenthesize(), noce_try_addcc(), noce_try_store_flag_constants(), noce_try_store_flag_inc(), noncommutative_float_operator(), nonzero_bits1(), notice_update_cc(), notice_update_cc_on_set(), num_sign_bit_copies1(), output_387_binary_op(), output_addr_const(), output_addr_const_pdp11(), output_fpops(), output_global_address(), output_pic_addr_const(), parse_initializer(), parse_level_2(), pcrel_constant_p(), plus_minus_operand_p(), print_exp(), print_operand(), print_operand_address(), propagate_one_insn(), queued_subexp_p(), ra_print_rtx_2op(), recog_1(), recog_10(), recog_12(), recog_13(), recog_14(), recog_16(), recog_17(), recog_18(), recog_19(), recog_2(), recog_20(), recog_21(), recog_22(), recog_24(), recog_25(), recog_26(), recog_27(), recog_28(), recog_29(), recog_3(), recog_30(), recog_31(), recog_38(), recog_4(), recog_5(), recog_6(), recog_7(), recog_8(), recog_9(), record_set(), rs6000_emit_sync(), rs6000_legitimize_reload_address(), rs6000_rtx_costs(), rtl_gen_const_delta_profiler(), rtl_gen_interval_profiler(), rtx_needs_barrier(), rtx_to_tree_code(), s390_cannot_force_const_mem(), s390_decompose_address(), s390_expand_atomic(), s390_offset_p(), s390_output_symbolic_const(), s390_overlap_p(), s390_rtx_costs(), s390_select_ccmode(), safe_insn_src_p(), sched_analyze_insn(), score_rtx_costs(), score_select_cc_mode(), select_cc_mode(), sh_rtx_costs(), shiftable_operator(), simple_rhs_p(), simple_set_p(), simplify_binary_operation(), simplify_binary_operation_1(), simplify_comparison(), simplify_const_binary_operation(), simplify_const_relational_operation(), simplify_for_convex(), simplify_gen_binary(), simplify_giv_expr(), simplify_if_then_else(), simplify_plus_minus(), simplify_relational_operation(), simplify_relational_operation_1(), simplify_shift_const(), simplify_shift_const_1(), simplify_unary_operation(), simplify_unary_operation_1(), single_insn_src_p(), sp64_medium_pic_operand(), sparc_cannot_force_const_mem(), sparc_rtx_costs(), split_1(), split_2(), split_insns(), stack_adjust_offset_pre_post(), summarize_insn(), thumb_rtx_costs(), unroll_loop(), unroll_loop_runtime_iterations(), unspec_caller_rtx_p(), v850_output_addr_const_extra(), validate_replace_rtx_1(), vax_rtx_cost(), vax_rtx_costs(), write_attr_value(), write_test_expr(), xstormy16_expand_arith(), and xtensa_rtx_costs().

#define MODULUS   '%'

Definition at line 156 of file token_buffer.cxx.

#define MULTIPLY   '*'

Definition at line 152 of file token_buffer.cxx.

#define NEED_TO_SPLIT_LINE   (!USE_UNLIMITED_LINE_LENGTH && Current_Output_Col > Max_Line_Length)

Definition at line 410 of file token_buffer.cxx.

Referenced by Output_Character().

#define NEWLINE   '\n'

#define NO_STRING_IDX   (STRING_IDX)0xffffffffU

Definition at line 171 of file token_buffer.cxx.

#define NO_TOKEN_IDX   (TOKEN_IDX)0xffffffffU

#define NOT   '!'

Definition at line 162 of file token_buffer.cxx.

Referenced by add_values_to_cover(), alpha_split_atomic_op(), apply_distributive_law(), arm_rtx_costs(), arm_rtx_costs_1(), arm_select_cc_mode(), arm_size_rtx_costs(), avr_rtx_costs(), check_attr_test(), check_return_regs(), combine_simplify_rtx(), commutative_operand_precedence(), compute_alternative_mask(), compute_predicate_codes(), condexec_si_unary_operator(), condexec_unary_operator(), cris_op_str(), distribute_and_simplify_rtx(), eliminate_regs(), eliminate_regs_1(), elimination_effects(), evaluate_eq_attr(), expand_builtin(), expand_field_assignment(), expand_sync_fetch_operation(), expand_sync_operation(), extract_left_shift(), find_and_mark_used_attributes(), find_split_point(), fold_rtx(), force_to_mode(), frv_rtx_costs(), gen_one_cmpldi2(), gen_one_cmplhi2(), gen_one_cmplqi2(), gen_one_cmplsi2(), gt_ggc_mx_rtx_def(), h8sx_unary_memory_operator(), ia64_expand_atomic_op(), init_alignment_context(), init_optabs(), instantiate_virtual_regs_1(), ip2k_rtx_costs(), iq2000_rtx_costs(), ix86_expand_int_movcc(), ix86_expand_unary_operator(), ix86_rtx_costs(), m68hc11_notice_update_cc(), m68hc11_rtx_costs(), m68hc11_rtx_costs_1(), m68hc11_unary_operator(), mark_mode_tests(), mips_rtx_costs(), needs_variable(), notice_update_cc(), notice_update_cc_on_set(), num_sign_bit_copies1(), peephole2_1(), print_exp(), print_operand(), ra_print_rtx_1op(), recog_1(), recog_10(), recog_11(), recog_15(), recog_2(), recog_21(), recog_27(), recog_28(), recog_29(), recog_3(), recog_30(), recog_4(), recog_5(), recog_6(), recog_8(), recog_9(), rs6000_emit_sync(), rs6000_rtx_costs(), rs6000_split_atomic_op(), rtx_needs_barrier(), s390_rtx_costs(), safe_insn_src_p(), score_rtx_costs(), score_select_cc_mode(), simplify_and_tree(), simplify_binary_operation(), simplify_binary_operation_1(), simplify_comparison(), simplify_const_unary_operation(), simplify_giv_expr(), simplify_logical(), simplify_or_tree(), simplify_plus_minus(), simplify_set(), simplify_shift_const(), simplify_shift_const_1(), simplify_test_exp(), simplify_unary_operation(), simplify_unary_operation_1(), simplify_with_current_value_aux(), single_insn_src_p(), sparc_rtx_costs(), split_1(), split_2(), summarize_insn(), thumb_rtx_costs(), unroll_loop(), validate_exp(), vax_notice_update_cc(), vax_rtx_cost(), vax_rtx_costs(), write_attr_set(), write_predicate_expr(), write_predicate_stmts(), write_test_expr(), xstormy16_expand_arith(), and xtensa_rtx_costs().

#define PLUS   '+'

Definition at line 150 of file token_buffer.cxx.

Referenced by _beautify(), add_cost(), addition_operation(), addr24_operand(), addr32_operand(), addrs_ok_for_quad_peep(), adjacent_mem_locations(), alignable_memory_operand(), aligned_memory_operand(), alpha_emit_conditional_branch(), alpha_expand_block_clear(), alpha_expand_block_move(), alpha_legitimate_address_p(), alpha_legitimize_address(), alpha_legitimize_reload_address(), alpha_lookup_xfloating_lib_func(), alpha_rtx_costs(), analyze_insn_to_expand_var(), annotate_constant_pool_refs(), apply_distributive_law(), arc_address_cost(), arc_print_operand_address(), arithmetic_instr(), arm_arm_address_cost(), arm_coproc_mem_operand(), arm_debugger_arg_offset(), arm_gen_constant(), arm_gen_rotated_half_load(), arm_legitimate_address_p(), arm_legitimize_address(), arm_no_early_mul_dep(), arm_output_load_gr(), arm_print_value(), arm_reload_in_hi(), arm_reload_out_hi(), arm_rtx_costs(), arm_rtx_costs_1(), arm_select_cc_mode(), arm_size_rtx_costs(), arm_thumb_address_cost(), avoid_constant_pool_reference(), avr_address_cost(), avr_rtx_costs(), b_mode_operand(), bad_signed_byte_operand(), basic_induction_var(), bfin_delegitimize_address(), bfin_legitimate_address_p(), bfin_rtx_costs(), binary_float_operator(), binary_fp_operator(), block_alloc(), block_move_sequence(), break_out_memory_refs(), byte_accesses_mergeable_p(), c4x_address_cost(), c4x_arn_mem_operand(), c4x_check_legit_addr(), c4x_legitimate_address_p(), c4x_print_operand_address(), c4x_Q_constraint(), c4x_R_constraint(), c4x_R_indirect(), c4x_rtx_costs(), c4x_S_address_parse(), c4x_S_constraint(), c4x_S_indirect(), calc_address_cost(), calculate_giv_inc(), canon_rtx(), check_attr_value(), check_return_regs(), check_sibcall_argument_overlap_1(), choose_reload_regs(), cirrus_memory_offset(), cleanup_subreg_operands(), combine_simplify_rtx(), combine_stack_adjustments_for_block(), combine_var_copies_in_loop_exit(), commutative_float_operator(), commutative_operand_precedence(), compute_argument_addresses(), compute_mov_length(), condexec_addsub_operator(), condexec_sf_add_operator(), condexec_si_binary_operator(), condop_operator(), const_ok_for_op(), constant_call_address_operand(), constant_operand(), constant_pool_address_operand(), constant_pool_expr_1(), constantpool_address_p(), construct_dispose_instruction(), construct_prepare_instruction(), construct_restore_jr(), construct_save_jarl(), convert_hex_literal(), convert_memory_address(), copy_all_regs(), copy_insn_1(), copy_insn_list(), copy_loop_body(), copy_rtx(), copy_rtx_if_shared(), copy_rtx_if_shared_1(), cris_additive_operand_extend_operator(), cris_address_cost(), cris_commutative_orth_op(), cris_emit_movem_store(), cris_got_symbol(), cris_gotless_symbol(), cris_movem_load_rest_p(), cris_notice_update_cc(), cris_op_str(), cris_operand_extend_operator(), cris_orthogonal_operator(), cris_output_addr_const(), cris_pic_symbol_type_of(), cris_plus_or_bound_operator(), cris_print_operand(), cris_print_operand_address(), cris_reload_address_legitimized(), cris_side_effect_mode_ok(), cris_store_multiple_op_p(), cris_symbol(), cris_valid_pic_const(), crx_decompose_address(), crx_print_operand_address(), cse_rtx_varies_p(), d30v_expand_builtin_saveregs(), d30v_legitimate_address_p(), d30v_print_operand_memory_reference(), data_segment_operand(), dbl_memory_one_insn_operand(), decode_rtx_const(), decompose(), default_rtx_costs(), delete_address_reloads(), determine_max_iter(), double_memory_operand(), double_reg_from_memory(), double_reg_to_memory(), dsp16xx_address_cost(), effective_address_32bit_p(), eligible_for_epilogue_delay(), eligible_for_restore_insn(), eligible_for_sibcall_delay(), eliminate_constant_term(), eliminate_regs(), eliminate_regs_1(), eliminate_regs_in_insn(), elimination_effects(), emit_block_move_via_loop(), emit_move_resolve_push(), emit_move_sequence(), emit_note_insn_var_location(), emit_prefetch_instructions(), emit_soft_tfmode_binop(), emit_unrolled_add(), ep_memory_operand(), epilogue_renumber(), errata_emit_nops(), exp_equiv_p(), expand_binop(), expand_builtin(), expand_epilogue(), expand_expr(), expand_expr_addr_expr_1(), expand_expr_real_1(), expand_inline_function(), expand_main_function(), expand_mult_highpart_adjust(), expand_sync_fetch_operation(), expand_sync_operation(), expand_vector_binop(), expr_equiv_p(), express_from(), express_from_1(), extendpsi_operand(), extra_constraint(), extra_constraint_Q(), extract_force_align_mem_bit_field(), extract_left_shift(), find_addr_reg(), find_base_term(), find_base_value(), find_best_addr(), find_common_reg_term(), find_constant_term_loc(), find_equiv_reg(), find_inc_amount(), find_reloads(), find_reloads_address(), find_reloads_address_1(), find_reloads_address_part(), find_reloads_subreg_address(), find_replacement(), find_split_point(), find_splittable_givs(), find_splittable_regs(), find_temp_slot_from_address(), find_use_as_address(), fix_lexical_addr(), fixed_base_plus_p(), fixup_match_1(), fixup_match_2(), fixup_stack_1(), float_binary(), fold_rtx(), fold_rtx_mem_1(), fold_rtx_mult_add(), force_operand(), force_reg(), force_to_mode(), form_sum(), forwarding_offset(), fr30_print_operand(), frv_const_unspec_p(), frv_emit_movsi(), frv_ifcvt_rewrite_mem(), frv_legitimate_address_p(), frv_print_operand(), frv_print_operand_memory_reference(), frv_rtx_costs(), function_invariant_p(), gen_adddi3(), gen_addhi3(), gen_addqi3(), gen_addsi3(), gen_compare(), gen_edge_profiler(), gen_mod_pow2(), gen_movdi(), gen_movsi(), gen_reload(), gen_reload_insi(), gen_tablejump(), general_induction_var(), general_movsrc_operand(), get_address_cost(), get_aligned_mem(), get_biv_step_1(), get_integer_term(), get_iv_value(), get_jump_table_offset(), get_mem_expr_from_op(), get_operand_digit(), get_operand_dot(), get_operand_letter(), get_operand_quote(), get_operator(), get_related_value(), get_unaligned_address(), get_unaligned_offset(), global_symbolic_operand(), got_symbolic_operand(), gpr_or_memory_operand_with_scratch(), group1_mem_operand(), gt_ggc_mx_rtx_def(), GTY(), h8300_adjust_insn_length(), h8300_classify_operand(), h8300_legitimate_address_p(), h8300_short_move_mem_p(), h8300_stack_offset_p(), h8sx_binary_memory_operator(), hppa_address_cost(), hppa_legitimize_address(), hppa_rtx_costs(), i386_simplify_dwarf_addr(), i960_address_cost(), i960_expr_alignment(), i960_print_operand_addr(), ia64_expand_atomic_op(), ia64_expand_load_address(), ia64_expand_move(), ia64_expand_tls_address(), ia64_legitimate_constant_p(), ia64_rtx_costs(), ia64_secondary_reload_class(), if_then_else_cond(), impossible_plus_operand(), inc_for_reload(), indexed_operand(), indirect_operand(), indirectable_address_p(), init_alias_analysis(), init_caller_save(), init_expmed(), init_optabs(), init_propagate_block_info(), insert_var_expansion_initialization(), instantiate_virtual_regs_1(), instantiate_virtual_regs_in_insn(), instantiate_virtual_regs_in_rtx(), int_2word_operand(), intop_compare_operator(), ip2k_address_uses_reg_p(), ip2k_adjust_stack_ref(), ip2k_check_can_adjust_stack_ref(), ip2k_ip_operand(), ip2k_rtx_costs(), ip2k_short_operand(), ip2k_symbol_ref_operand(), ip2k_xexp_not_uses_reg_for_mem(), iq2000_address_cost(), iq2000_count_memory_refs(), iq2000_legitimate_address_p(), iq2000_move_1word(), iq2000_rtx_costs(), is_cond_candidate(), is_function_label_plus_const(), is_regfile_address(), iv_add(), iv_analyze(), iv_analyze_biv(), iv_analyze_expr(), iv_number_of_iterations(), iv_subreg(), ix86_decompose_address(), ix86_delegitimize_address(), ix86_expand_binary_operator(), ix86_expand_int_movcc(), ix86_expand_move(), ix86_expand_push(), ix86_find_base_term(), ix86_preferred_reload_class(), ix86_rtx_costs(), larl_operand(), legitimate_address_p(), legitimate_constant_p(), legitimate_constant_pool_address_p(), legitimate_indexed_address_p(), legitimate_pic_address_disp_p(), legitimate_pic_operand_p(), legitimize_address(), legitimize_operands(), legitimize_pic_address(), legitimize_reload_address(), legitimize_tls_address(), load_multiple_operation(), load_multiple_sequence(), load_update_operand(), local_symbolic_operand(), long_immediate_loadstore_operand(), loop_iterations(), lwa_operand(), m32c_immd_dbl_mov(), m32c_legitimate_address_p(), m32c_legitimize_address(), m32c_legitimize_reload_address(), m32c_preferred_reload_class(), m32r_legitimate_pic_operand_p(), m32r_legitimize_pic_address(), m32r_print_operand_address(), m68hc11_address_cost(), m68hc11_arith_operator(), m68hc11_non_shift_operator(), m68hc11_notice_update_cc(), m68hc11_page0_symbol_p(), m68hc11_reload_operands(), m68hc11_rtx_costs(), m68hc11_rtx_costs_1(), m68hc11_small_indexed_indirect_p(), m68hc11_valid_addressing_p(), m68k_rtx_costs(), m88k_debugger_offset(), machopic_indirect_data_reference(), machopic_legitimize_pic_address(), make_compound_operation(), make_tree(), mark_loop_jump(), mark_not_eliminable(), maybe_get_pool_constant(), mcore_const_costs(), mcore_load_multiple_operation(), mcore_output_movedouble(), mcore_print_operand_address(), mcore_store_multiple_operation(), mda_classify_address(), mdx_block_move_loop(), mem_min_alignment(), mem_overlaps_already_clobbered_arg_p(), memop_valid(), memory_address(), memory_indexed_operand(), memory_offset_in_range_p(), memory_reload_operand(), memref_is_stack_slot(), memrefs_conflict_p(), mems_ok_for_ldd_peep(), mems_ok_for_quad_peep(), merge_outer_ops(), mips16_constant(), mips16_gp_offset_p(), mips16_optimize_gp(), mips16_output_gp_offset(), mips_address_cost(), mips_block_move_loop(), mips_build_lower(), mips_classify_address(), mips_count_memory_refs(), mips_expand_prologue(), mips_find_symbol(), mips_legitimate_address_p(), mips_legitimize_address(), mips_linked_madd_p(), mips_move_1word(), mips_rtx_costs(), mips_secondary_reload_class(), mips_split_const(), mmix_constant_address_p(), mmix_legitimate_address(), mmix_print_operand_address(), mn10300_address_cost(), mn10300_address_cost_1(), mn10300_secondary_reload_class(), move2add_note_store(), move_operand(), move_src_operand(), mt_legitimate_simple_address_p(), mt_print_operand_simple_address(), must_parenthesize(), noce_mem_write_may_trap_or_fault_p(), noce_try_addcc(), noce_try_store_flag_constants(), noce_try_store_flag_inc(), nonoverlapping_memrefs_p(), nonzero_address_p(), nonzero_bits1(), not_modify_reg(), notice_update_cc(), notice_update_cc_on_set(), ns32k_address_cost(), num_sign_bit_copies1(), offset_address(), offsettable_address_p(), out_movhi_mr_r(), out_movhi_r_mr(), out_movqi_mr_r(), out_movqi_r_mr(), out_movsi_mr_r(), out_movsi_r_mr(), output_387_binary_op(), output_854(), output_addr_const(), output_addr_const_pdp11(), output_constant_pool(), output_constant_pool_1(), output_fpop(), output_fpops(), output_global_address(), output_move_double(), output_move_himode(), output_movedouble(), output_pic_addr_const(), output_restore(), output_shift_insn(), output_sibcall(), output_toc(), pa_combine_instructions(), pa_commutative_p(), parse_initializer(), parse_level_2(), pattern_is_ok_for_dispose(), pattern_is_ok_for_epilogue(), pattern_is_ok_for_prepare(), pattern_is_ok_for_prologue(), peephole2_1(), peephole2_2(), pic_address_needs_scratch(), pic_symbolic_operand(), pj_output_rval(), plus_constant(), plus_constant_wide(), plus_minus_operand_p(), plus_xor_ior_operator(), pop_multiple_operation(), precondition_loop_p(), preferred_reload_class(), prefetch_cc_operand(), prefetch_nocc_operand(), prepare_move_operands(), print_address_operand(), print_exp(), print_operand(), print_operand_address(), print_shift_count_operand(), process_set(), promotable_binary_operator(), propagate_one_insn(), protect_from_queue(), purge_mem_unchanging_flag(), push_multiple_operation(), push_operand(), push_reload(), put_var_into_stack(), queued_subexp_p(), r_or_s_operand(), ra_print_rtx_2op(), recog(), recog_1(), recog_10(), recog_11(), recog_12(), recog_13(), recog_14(), recog_16(), recog_17(), recog_18(), recog_19(), recog_2(), recog_20(), recog_21(), recog_22(), recog_23(), recog_24(), recog_25(), recog_26(), recog_27(), recog_28(), recog_29(), recog_3(), recog_30(), recog_31(), recog_32(), recog_33(), recog_34(), recog_35(), recog_36(), recog_37(), recog_38(), recog_4(), recog_5(), recog_6(), recog_7(), recog_8(), recog_9(), record_address_regs(), record_giv(), record_set(), reg_or_0_or_nonsymb_mem_operand(), reg_overlap_mentioned_for_reload_p(), reg_plus_index_p(), reg_scan_mark_refs(), register_indirect_p(), regmove_optimize(), reload(), reload_combine(), reload_combine_note_use(), reload_cse_move2add(), reload_inner_reg_of_subreg(), remove_constant_addition(), replace_constant_pool_ref(), replace_oldest_value_addr(), romp_initialize_trampoline(), round_trampoline_addr(), rs6000_emit_move(), rs6000_emit_sync(), rs6000_legitimate_address(), rs6000_legitimate_offset_address_p(), rs6000_legitimize_address(), rs6000_legitimize_reload_address(), rs6000_mode_dependent_address(), rs6000_rtx_costs(), rs6000_split_multireg_move(), rtl_gen_edge_profiler(), rtl_gen_interval_profiler(), rtl_gen_one_value_profiler_no_edge_manipulation(), rtl_gen_pow2_profiler(), rtx_addr_can_trap_p(), rtx_addr_can_trap_p_1(), rtx_equal_for_memref_p(), rtx_needs_barrier(), rtx_renumbered_equal_p(), rtx_to_tree_code(), s390_cannot_force_const_mem(), s390_decompose_address(), s390_decompose_shift_count(), s390_delegitimize_address(), s390_expand_atomic(), s390_expand_plus_operand(), s390_output_symbolic_const(), s390_plus_operand(), s390_preferred_reload_class(), s390_rtx_costs(), s390_secondary_input_reload_class(), s390_secondary_output_reload_class(), s390_select_ccmode(), s390_simplify_dwarf_addr(), s_operand(), safe_from_p(), safe_insn_src_p(), save_restore_insns(), scan_rtx_address(), sched_analyze_insn(), score_add_offset(), score_legitimize_address(), score_rtx_costs(), score_select_cc_mode(), score_split_const(), sdata_symbolic_operand(), secondary_reload_class(), select_cc_mode(), seth_add3_operand(), setup_incoming_varargs(), sge_plus(), sge_plus_constant(), sh_address_cost(), sh_mark_label(), sh_rtx_costs(), sh_secondary_reload(), shift_count_operand(), shiftable_operator(), short_memory_operand(), simple_memory_operand(), simple_rhs_p(), simple_set_p(), simplify_and_const_int(), simplify_and_const_int_1(), simplify_binary_operation(), simplify_binary_operation_1(), simplify_comparison(), simplify_const_binary_operation(), simplify_for_convex(), simplify_gen_binary(), simplify_giv_expr(), simplify_if_then_else(), simplify_logical(), simplify_plus_minus(), simplify_relational_operation_1(), simplify_shift_const(), simplify_shift_const_1(), simplify_unary_operation(), simplify_unary_operation_1(), single_insn_src_p(), skip_stack_adjustment(), slots_overlap_p(), small_data_operand(), small_symbolic_operand(), smalloffset_mem_p(), sp_operand(), sp_operand2(), sparc_cannot_force_const_mem(), sparc_expand_move(), sparc_rtx_costs(), spe_synthesize_frame_save(), special_symbolref_operand(), split_1(), split_2(), split_4(), split_insns(), split_iv(), stack_adjust_offset_pre_post(), stack_memref_p(), store_field(), store_multiple_operation(), store_multiple_sequence(), store_one_arg(), store_update_operand(), subst_constants(), subst_indexed_address(), subst_reg_equivs(), substitute_ep_register(), subtract_reg_term(), summarize_insn(), symbolic_memory_operand(), symbolic_operand(), text_segment_operand(), thumb_legitimate_address_p(), thumb_legitimize_address(), thumb_legitimize_reload_address(), thumb_load_double_from_address(), thumb_rtx_costs(), tls_call_delay(), tls_symbolic_operand_type(), try_combine(), unaligned_memory_operand(), unroll_loop(), unspec_caller_rtx_p(), update_equiv_regs(), update_temp_slot_address(), use_anchored_address(), v850_reorg(), validate_replace_rtx_1(), vax_address_cost(), vax_address_cost_1(), vax_mode_dependent_address_p(), vax_rtx_cost(), vax_rtx_costs(), verify_rtx_sharing(), walk_alter_subreg(), word_offset_memref_operand(), write_attr_value(), write_test_expr(), x86_64_sign_extended_value(), x86_64_zero_extended_value(), xstormy16_address_cost(), xstormy16_below100_symbol(), xstormy16_carry_plus_operand(), xstormy16_expand_arith(), xstormy16_legitimate_address_p(), xstormy16_mode_dependent_address_p(), xstormy16_print_operand_address(), xstormy16_split_move(), and xtensa_rtx_costs().

#define QUESTION_MARK   '?'

Definition at line 158 of file token_buffer.cxx.

#define RIGHT_BRACE   '}'

Definition at line 149 of file token_buffer.cxx.

#define RIGHT_BRACKET   ']'

Definition at line 147 of file token_buffer.cxx.

#define RIGHT_PAREN   ')'

Definition at line 145 of file token_buffer.cxx.

#define SEMICOLON   ';'

Definition at line 143 of file token_buffer.cxx.

#define SPACE   ' '

#define strcpy   DO_NOT_USE_STRCPY

Definition at line 125 of file token_buffer.cxx.

Referenced by Instr::__profile_init(), __profile_init(), _ARGCHCK(), _bfd_coff_link_input_bfd(), _bfd_compute_and_write_armap(), _bfd_construct_extended_name_table(), _bfd_ecoff_write_armap(), _bfd_elf_discard_section_eh_frame(), _bfd_mn10300_elf_create_dynamic_sections(), _bfd_vms_write_hdr(), _bfd_write_archive_contents(), _bfd_xcoff64_put_ldsymbol_name(), _bfd_xcoff_put_ldsymbol_name(), _bfd_XXi_swap_sym_in(), _cpp_builtin_macro_text(), _dwarf_add_simple_name_entry(), _dwarf_print_one_locdesc(), _dwarf_pro_generate_debugframe(), _dwarf_pro_generate_debugline(), _dwarf_transform_simplename_to_disk(), _dwf_pro_generate_ehframe(), _PXFGETGRGID(), _PXFGETGRNAM(), _PXFGETPWNAM(), _PXFGETPWUID(), _PXFSETENV(), _rnl90to77(), _stat(), ada_demangle(), Menu_info::Add(), add_entry(), IPA_FEEDBACK_STRINGS::Add_id_string(), add_implicit_var(), PROMPF_TRANS::Add_Index_Name(), add_line_info(), add_opcode_entry(), add_to_fp_table(), add_to_list(), add_to_sequence(), add_unique_name(), Adjust_Opnd_Name(), adorn_decl(), allocate_global_data_opd(), alpha_start_function(), aout_adobe_callback(), append_default_options(), AR_convert_float_to_str(), AR_convert_int_to_str(), arcExtMap_add(), arm_encode_call_attribute(), ascii_BE_node(), ascii_c_const(), ascii_c_entry(), ascii_c_entry_end(), ascii_c_lint_directive(), ascii_c_macro_def(), ascii_c_object(), ascii_c_opts(), ascii_c_tag(), ascii_cc_entry(), ascii_cc_enum(), ascii_cc_obj(), ascii_cc_type(), ascii_cifhdr(), ascii_comblk(), ascii_const(), ascii_endunit(), ascii_entry(), ascii_f90_comblk(), ascii_f90_const(), ascii_f90_derived_type(), ascii_f90_entry(), ascii_f90_int_block(), ascii_f90_label(), ascii_f90_misc_opts(), ascii_f90_namelist(), ascii_f90_object(), ascii_f90_rename(), ascii_file(), ascii_geometry(), ascii_label(), ascii_mach_char(), ascii_message(), ascii_misc_opts(), ascii_namelist(), ascii_object(), ascii_orig_cmd(), ascii_summary(), ascii_unit(), AUXSTAT(), basename(), bfd_arm_update_notes(), bfd_boolean(), bfd_ecoff_debug_one_external(), bfd_elf64_archive_write_armap(), bfd_fill_in_gnu_debuglink_section(), bfd_mach_o_openr_next_archived_file(), bfd_mach_o_scan_read_dylib(), bfd_mach_o_scan_read_dylinker(), bfd_mach_o_scan_read_symtab(), bfd_xcoff_export_symbol(), bfd_xcoff_size_dynamic_sections(), blank_arg(), block_err_string(), Build_Radio_Box(), builtin_define_float_constants(), c4x_output_cbranch(), CG_Compute_Checksum(), Cg_Dwarf_Output_Asm_Bytes_Sym_Relocs(), CG_Edge_Profile_Annotation(), CG_End_Final(), CG_Init_Gcov(), CGEMIT_Print_Inst(), CGEMIT_Prn_Scn_In_Asm(), CGEMIT_Register_Definitions(), CGTARG_TN_And_Name_For_Asm_Constraint(), change_suffix(), check_cmic_blk_branches(), IPA_LNO_READ_FILE::Check_Section_Headers(), check_section_headers(), choose_temp_base(), choose_tmpdir(), cif_flush_include_recs(), common_handle_option(), compile_resource_file(), complete_intrinsic_definition(), Concat2_Strings(), concat_names(), concat_path(), concat_strings(), constructor_callback(), coverage_init(), cpp_included(), Cray_Woff(), create_file_names(), create_mod_info_file(), Create_New_Relocation_Section(), create_option_list(), create_pseudo_type_info(), IPA_LNO_WRITE_FILE::Create_Temp_File(), create_temp_file(), create_tmp_file(), create_unique_file(), Create_Unique_Name(), crx_prepare_push_pop_string(), cvrt_str_to_cn(), cwh_dst_get_command_line_options(), cwh_dst_init_file(), cwh_dst_member(), cwh_dst_mk_common(), cwh_dst_mk_formal(), cwh_dst_mk_variable(), cwh_dst_struct_type(), cwh_stab_adjust_name(), cwh_stab_split_ST(), cwh_stmt_init_pu(), cwh_types_mk_anon_name(), cxx_keyword_subst(), d_demangle(), decToString(), default_function_rodata_section(), DEFUN(), deps_add_default_target(), Diag_Set_Phase(), dirname(), do_option_spec(), do_processing(), do_spec_1(), do_spec_path(), doall_cmic_semantics(), dofloat(), DRA_EC_Array_Portion_Parms(), DRA_Insert_Mangling_Sigs(), DRA_Make_File_Name(), DRA_Process_Commons(), DRA_Process_Globals(), driver_basename(), DST_build(), DST_Create_Subprogram(), DST_Create_var(), DST_get_command_line_options(), DST_mk_name(), DST_mk_string(), Instr::Dump_all(), Dump_all(), dupargv(), dwarf_add_AT_comp_dir(), dwarf_add_AT_const_value_string(), dwarf_add_AT_name(), dwarf_add_AT_producer(), dwarf_add_AT_string(), dwarf_add_directory_decl(), dwarf_add_file_decl(), dwarf_get_macro_details(), dwarf_linesrc(), dwarf_srcfiles(), dyn_string_append(), dyn_string_append_cstr(), dyn_string_copy(), dyn_string_copy_cstr(), ecoff_type_to_string(), EDGE_PROFILE::EDGE_PROFILE(), edit_file(), EKAPI_GetOperandInfo4Grp(), elf64_hppa_finalize_opd(), elf_link_add_object_symbols(), ELF_object::ELF_object(), ELF_object64::ELF_object64(), elfcore_grok_nto_regs(), elfcore_grok_nto_status(), emit_ldm_seq(), emit_stm_seq(), Emit_Unwind_Directives_For_OP(), encap_write_object_contents(), end_final(), enter_cmd_line_cc_define(), enter_intrinsic_info(), enter_predefined_macros(), evaluate_eq_attr(), expand_lib(), ext_msg(), f77_map_datapool_(), f77_map_datapool_pad_(), f_clos_com(), f_open_com(), Fb_File_Info::Fb_File_Info(), fei_end_ioblock(), fei_smt_parameter(), fei_start_ioblock(), ffecom_open_include_(), ffeglobal_proc_def_arg(), ffelex_file_fixed(), ffelex_image_char_(), ffelex_token_new_character(), ffelex_token_new_name(), ffelex_token_new_names(), ffesymbol_attrs_string(), ffewhere_line_new(), fill_edata(), fill_ent(), fill_exported_offsets(), fill_option_info(), find_a_file(), find_executable(), find_extern_def(), find_files_in_directory(), find_include_file(), find_separate_debug_file(), find_spec_file(), find_subframework_file(), find_toolroot(), fix_argv(), fixed_classify_line(), flushout(), folder_driver(), format_reg(), Format_Succ(), framework_construct_pathname(), free_classify_line(), Full_Path_Name(), Fuse(), Fuse_Outer_Loops(), Fuse_Test(), gen_call_type_descriptor(), gen_declarator(), Gen_Impld_Io_Calls(), gen_loop_lbl_name(), Generate_Asm_String(), Get_Annotation_Filename_With_Path(), get_attr_value(), get_charset_aliases(), get_command_line(), Get_Dir_Dst_Info(), get_executable_dir(), get_extra_symtab_args(), get_field_name(), Get_File_Dst_Info(), get_full_phase_name(), Get_Irb_File_Name(), get_machine_chars(), Get_Name(), get_operand_letter(), Get_PU_Profile(), get_register_operand(), get_temp_file(), getcwd(), GTY(), h8300_encode_label(), handle_mode_attribute(), hppa_encode_label(), ia64_dis_opcode(), ia64_hpux_add_extern_decl(), id_str(), ident_subst(), ieee_object_p(), if(), ihex_scan(), import_milli(), init_branch_prob(), init_cif(), init_compiler(), init_debug_file(), init_iconv_desc(), init_msg_processing(), init_release_level(), init_src_input(), CG_BROWSER::Initialize_Keymap(), WB_BROWSER::Initialize_Keymap(), Initialize_Keymap(), Inline_Call(), insert_completer_entry(), insertOpcode(), INVLPG_Fixup(), ipa_compile_init(), ipa_compose_comma_list(), ipa_link_line_argv(), IPA_reorder_legality_process(), ipa_search_command_line(), ipacom_add_comment(), ipacom_doit(), ipacom_process_symtab(), is_directory(), issue_msg(), java_init(), jcf_path_extdirs_arg(), jcf_path_init(), KEY_SCH::KEY_SCH(), label_ref_semantics(), linux_tally_symbols(), list_to_string(), Lits_Generator(), load_data(), load_so(), locate_lib(), lookup_line(), lower_bit_field_id(), lower_cray_io_items(), lsm_tmp_name_add(), luxworks_dsp16xx_file_start(), m32r_elf_create_dynamic_sections(), m32r_encode_section_info(), m68hc11_encode_label(), Machine_Done(), machopic_finish(), machopic_output_indirection(), main(), make_a_section_from_file(), Make_Absolute_Path(), make_bfd_asection(), make_class_file_name(), make_decl_rtl(), make_ii_file_name(), Make_IoRuntime_ST(), make_nlist(), make_one(), make_relative_prefix(), make_rii_file_name(), make_table_changes(), make_tail(), make_temp_file(), Make_Temp_File(), malloc_new_inpool_(), malloc_pool_new(), malloc_resize_inpool_(), mdp_linsn(), mdp_sinsn(), merge_parameter(), mingw_scan(), mips_elf_create_procedure_table(), mips_output_conditional_branch(), mmix_encode_section_info(), mmix_output_octa(), mmo_create_symbol(), mmo_init(), LOOP_MODEL::Model(), mp_directive_semantics(), mpw_fopen(), msp430_doubleoperand(), msp430_nooperands(), SYMBOL::Name(), named_section(), NAMEs_rsNe_work(), New_Extension(), new_section(), new_symbol_string(), note_not_unrolled(), ntr_file_in_fp_tbl(), ntr_msg_queue(), ntr_next_msg_queue(), oappend(), objc_demangle(), open_arith_file(), open_files(), open_include_file(), open_intrinsics_file(), output_387_binary_op(), output_bb(), output_bvb(), output_call(), output_cbranch(), output_condjump(), output_fpops(), output_in_line_mul(), output_inline_const(), output_jump(), output_move_dconst(), output_return_instruction(), output_ubranch(), output_v8plus_shift(), output_v9branch(), parallel_cmic_semantics(), parse_case_stmt(), parse_data_stmt(), parse_decorate_script(), parse_deref(), parse_imp_do(), parse_initializer(), Parse_inline_script(), parse_open_mp_directives(), parse_output_constraint(), Parse_script(), pe_dll_add_excludes(), Perform_Alias_Class_Annotation(), Perform_Inline_Script_Analysis(), Perform_Loop_Nest_Optimization(), PNI_Fixup(), ppc_elf_final_write_processing(), prefix_from_string(), preprocess_args(), Print_FU_Class(), Print_inline_decision(), print_insn(), print_insn_ia64(), CODEREP::Print_kind(), print_operand_address(), print_operand_value(), print_pattern(), Print_Prompl_Msgs(), print_two_operand(), print_with_operands(), process_args(), process_aux_info_file(), process_C_option(), process_cmd_line(), process_command(), Process_Command_Line(), Process_Control_Opt(), process_def_file(), Process_Feedback_Options(), Process_Filename_Options(), Process_GDAR(), process_include(), process_O_option(), RINIT::Process_region(), Process_Store(), process_u_option(), process_zip_dir(), Properties_Generator(), Instr::PU_Profile_Handle::PU_Profile_Handle(), PU_Profile_Handle::PU_Profile_Handle(), put_c_str_in_cn(), put_decl_string(), put_external_label(), put_file_name_in_cn(), quick_symbol(), read_name(), read_name_map(), read_table(), real_to_decimal(), real_to_hexadecimal(), Remove_Extension(), rename_c_file(), Replace_Substring(), resolve_ext_opr(), RID_level_str(), RID_type_str(), RNL(), rs6000_emit_epilogue(), rs6000_gen_section_name(), safe_strcpy(), Save_Cur_PU_Name(), save_expr(), Save_Str2(), Save_Symbol_Name(), savestring(), KEY_SCH::Schedule_DDG(), send_attr_ntry(), separate_loop_and_scalar_expand(), Menu_info::Set(), Set_Error_Source(), Instr::PU_Profile_Handle::Set_file_name(), PU_Profile_Handle::Set_file_name(), set_mingw(), set_prog_file_names(), Instr::PU_Profile_Handle::Set_pu_name(), PU_Profile_Handle::Set_pu_name(), Set_Register_Range_Not_Allocatable(), set_scripts_dir(), set_system_module_path(), set_user_assembler_name(), sgi_cmd_line(), sh64_elf64_add_symbol_hook(), sh64_elf64_create_dynamic_sections(), sh64_elf_add_symbol_hook(), sh_elf_create_dynamic_sections(), SNL_TRANS_INDEX_DATA::SNL_TRANS_INDEX_DATA(), sparc64_elf_add_symbol_hook(), sparc_v8plus_shift(), Split_Using_Preg(), srec_scan(), ST2C_Get_Common_Block(), store_string(), strdup(), string_copy(), strlist(), sunos_add_dynamic_symbols(), sunos_scan_dynamic_symbol(), Syl2Eun(), Targ_Format_String(), TI_Initialize(), to_host_dir_spec(), to_host_file_spec(), translate_unix(), type_to_string(), unexpand_if_needed(), unlikely_text_section(), unparse_instr(), unwind_get_obj_phdr(), update_global_line(), utime(), v850_encode_data_area(), validate_O_option(), COMP_UNIT::Verify_IR(), vfp_output_fstmx(), vho_lower_icall(), Vintrinsic_Fission(), VPARAMS(), vstr_concat(), W2CF_Create_Symbol(), W2CF_Create_Symhdr(), W2CF_Get_Ftn_St_Name(), W2CF_Symtab_Nameof_Preg(), W2CF_Symtab_Nameof_St(), Walk_Loop_Dependence(), walk_rtx(), WGEN_Set_Line_And_File(), WHIRL2C_make_valid_c_name(), WHIRL2F_make_valid_name(), ANL_CBUF::Write_Char(), write_comments_(), IPA_LNO_WRITE_FILE::Write_Headers(), write_instr_name_(), write_langs(), write_opt_action(), write_option_names(), write_output(), ANL_CBUF::Write_String(), write_subroutine(), xcoff_link_add_dynamic_symbols(), xstormy16_output_cbranch_si(), xtensa_format_decode(), xtensa_format_lookup(), xtensa_funcUnit_lookup(), xtensa_get_property_section_name(), xtensa_insnbuf_to_chars(), xtensa_interface_lookup(), xtensa_opcode_decode(), xtensa_opcode_lookup(), xtensa_operand_do_reloc(), xtensa_operand_encode(), xtensa_operand_get_field(), xtensa_operand_set_field(), xtensa_operand_undo_reloc(), xtensa_regfile_lookup(), xtensa_regfile_lookup_shortname(), xtensa_state_lookup(), xtensa_sysreg_lookup(), xtensa_sysreg_lookup_name(), and yyparse().

#define TB_FREE ( ptr   )     MEM_POOL_FREE(Malloc_Mem_Pool, ptr)

Definition at line 136 of file token_buffer.cxx.

Referenced by free_buffer_list().

#define TB_TYPE_ALLOC_N ( type,
count   )     TYPE_MEM_POOL_ALLOC_N(type, Malloc_Mem_Pool, count)

Definition at line 129 of file token_buffer.cxx.

Referenced by New_Token_Buffer().

#define TB_TYPE_REALLOC_N ( type,
old_ptr,
old_count,
new_count   ) 

Value:

TYPE_MEM_POOL_REALLOC_N(type, Malloc_Mem_Pool, old_ptr,\
         old_count, new_count)

Definition at line 132 of file token_buffer.cxx.

Referenced by get_new_string(), and get_new_tokens().

#define TOKEN_BUFFER_get_char_string ( buf,
a_token   ) 

Value:

(TOKEN_is_short_string(a_token)? \
    TOKEN_short_string(a_token) : \
    &buf->strings[TOKEN_string_idx(a_token)])

Definition at line 252 of file token_buffer.cxx.

Referenced by Allocate_Token_String(), dbg_tokens(), Identical_Token_Lists(), and write_token().

#define TOKEN_char (  )     (t)->value.str_val.string.ch[0]

#define TOKEN_is_short_string (  )     (TOKEN_string_size(t) <= sizeof(STRING_IDX))

Definition at line 218 of file token_buffer.cxx.

Referenced by Allocate_Token_String(), and copy_token_list().

#define TOKEN_is_string (  ) 

Value:

Definition at line 219 of file token_buffer.cxx.

Referenced by copy_token_list().

#define TOKEN_kind (  )     (t)->kind

#define TOKEN_next (  )     (t)->next

#define TOKEN_short_string (  )     (t)->value.str_val.string.ch

Definition at line 214 of file token_buffer.cxx.

Referenced by Allocate_Token_String().

#define TOKEN_srcpos (  )     (t)->value.srcpos

#define TOKEN_string_idx (  )     (t)->value.str_val.string.idx

Definition at line 215 of file token_buffer.cxx.

Referenced by Allocate_Token_String(), and copy_token_list().

#define TOKEN_string_size (  )     (t)->value.str_val.size

#define USE_UNLIMITED_LINE_LENGTH   (Max_Line_Length == 0)

Definition at line 276 of file token_buffer.cxx.

#define WRITE_BUFFER_SIZE   256

Definition at line 261 of file token_buffer.cxx.

Referenced by Output_Character(), and Split_The_Current_Output_Line().


Typedef Documentation

Definition at line 167 of file token_buffer.cxx.

typedef struct Token TOKEN

typedef mUINT32 TOKEN_IDX

Definition at line 168 of file token_buffer.cxx.

typedef enum Token_Kind TOKEN_KIND

typedef union Token_Value TOKEN_VALUE


Enumeration Type Documentation

enum Token_Kind

Enumerator:
STRING_TOKEN 
SPECIAL_TOKEN 
SEPARATOR_TOKEN 
DIRECTIVE_TOKEN 
F77_SEQNO_TOKEN 
SRCPOS_MAP_TOKEN 
SRCPOS_DIRECTIVE_TOKEN 

Definition at line 176 of file token_buffer.cxx.


Function Documentation

static char* Allocate_Token_String ( TOKEN_BUFFER  buf,
TOKEN a_token,
STRING_IDX  str_size 
) [static]

void Append_And_Copy_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER  copy_tokens 
)

void Append_And_Reclaim_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER reclaim_tokens 
)

Definition at line 1717 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_symbol(), INITV2C_val(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_func_header(), TY2C_prototype_params(), TY2F_Declare_Common_Flds(), TY2F_Translate_ArrayElt(), 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_extract_bits(), 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_io(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_mstore(), WN2F_stid(), WN2F_Translate_DoLoop_Bound(), and WN2F_translate_purple_main().

void Append_F77_Comment_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
BOOL  indent_last_line 
)

void Append_F77_Directive_Newline ( TOKEN_BUFFER  tokens,
const char *  directive_prefix 
)

void Append_F77_Indented_Continuation ( TOKEN_BUFFER  tokens  ) 

void Append_F77_Indented_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
const char *  label 
)

void Append_F77_Sequence_No ( TOKEN_BUFFER  tokens,
const char *  seq_no 
)

void Append_Indented_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines 
)

void Append_Srcpos_Directive ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

void Append_Srcpos_Map ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

static void append_token_list ( TOKEN_BUFFER  buffer,
TOKEN_SEQUENCE  token_list 
) [static]

void Append_Token_Special ( TOKEN_BUFFER  tokens,
char  special 
)

Definition at line 1690 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_symbol(), INITVKIND_val(), 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_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(), TY2F_Append_ARB(), TY2F_Append_Assumed_Single_Dim(), TY2F_array(), 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(), 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_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_Gen_Const_Array_Index(), WN2C_Gen_Field_Access(), WN2C_generate_cast(), WN2C_if(), WN2C_imagpart(), WN2C_infix_op(), WN2C_intrinsic_op(), WN2C_label(), WN2C_lda(), WN2C_lda_label(), 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_array(), WN2F_array_bounds(), WN2F_Array_Slots(), WN2F_ashr(), WN2F_Binary_Substr_Op(), WN2F_Block(), WN2F_bnor(), WN2F_call(), WN2F_Callsite_Directives(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), 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_implied_do(), WN2F_Infix_Op(), 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_namelist(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_type(), WN2F_istore(), WN2F_lda(), WN2F_ldid(), WN2F_Load_Return_Reg(), WN2F_lshr(), WN2F_madd(), WN2F_mstore(), WN2F_msub(), WN2F_nmadd(), WN2F_nmsub(), WN2F_Normalize_Idx_To_Onedim(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), WN2F_paren(), WN2F_prefetch(), WN2F_process_pragma(), WN2F_realpart(), WN2F_recip(), WN2F_return(), WN2F_return_val(), WN2F_rsqrt(), WN2F_select(), WN2F_stid(), WN2F_String_Argument(), WN2F_Substring(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), WN2F_Translate_StringLEN(), WN2F_while_do(), Write_Scalar_Typedef(), and Write_Typedef().

void Append_Token_String ( TOKEN_BUFFER  tokens,
const char *  string 
)

Definition at line 1674 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(), Emit_To_PUinfo_Pragmas(), INIT2F_Implied_DoLoop(), INIT2F_Translate_Char_Ref(), INITO2F_translate(), INITV2C_block_array(), INITV2C_block_struct(), INITV2C_struct_fill(), INITV2C_symbol(), INITVKIND_const(), ST2C_basic_decl(), ST2C_Declare_Tempvar(), ST2C_Define_A_Common_Block(), ST2C_Define_Preg(), ST2C_formal_ref_decl(), ST2C_func_header(), ST2C_use_const(), ST2C_use_func(), ST2C_Use_Preg(), ST2C_use_var(), ST2C_weakext_translate(), ST2F_decl_func(), ST2F_decl_var(), ST2F_Declare_Return_Type(), ST2F_Declare_Tempvar(), ST2F_Define_Preg(), ST2F_deref_translate(), ST2F_func_header(), 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_complete_struct(), TY2C_function(), TY2C_get_field_info(), TY2C_prepend_filler_field(), TY2C_prepend_FLD_list(), TY2C_prototype_params(), TY2F_Append_ARB(), 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_agoto(), WN2C_alloca(), WN2C_altentry(), WN2C_Append_Assignment(), WN2C_append_label_name(), WN2C_Append_Pragma_Newline(), WN2C_Append_Purple_Funcinfo(), WN2C_array(), WN2C_Assign_Complex_Const(), WN2C_based_lvalue(), WN2C_block(), WN2C_call(), WN2C_Callsite_Directives(), WN2C_comment(), WN2C_compgoto(), WN2C_complex(), 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_Gen_Const_Array_Index(), WN2C_Gen_Field_Access(), WN2C_goto(), WN2C_if(), WN2C_iload(), WN2C_imagpart(), WN2C_intrinsic_op(), WN2C_lda(), WN2C_ldid(), WN2C_Load_Return_Reg(), 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_ashr(), WN2F_Begin_Prompf_Transformed_Func(), WN2F_Binary_Substr_Op(), WN2F_Block(), WN2F_block(), WN2F_bnor(), WN2F_call(), WN2F_Callsite_Directives(), WN2F_comment(), 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_if(), WN2F_iload(), WN2F_iloadx(), WN2F_imagpart(), WN2F_Infix_Op(), 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_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_lda(), WN2F_ldid(), WN2F_Load_Return_Reg(), WN2F_lshr(), WN2F_mload(), 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_realpart(), WN2F_recip(), WN2F_region(), WN2F_return(), WN2F_return_val(), WN2F_rsqrt(), WN2F_select(), WN2F_Start_Prompf_Construct(), WN2F_stid(), WN2F_String_Argument(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), WN2F_Translate_StringLEN(), WN2F_unsupported(), WN2F_while_do(), Write_Scalar_Typedef(), and Write_Typedef().

static TOKEN_SEQUENCE copy_token_list ( TOKEN_BUFFER  to_buffer,
TOKEN_BUFFER  from_buffer 
) [static]

UINT Current_Indentation ( void   ) 

void dbg_tokens ( TOKEN_BUFFER  buf,
BOOL  with_token_name 
)

void Decrement_Indentation ( void   ) 

static TOKEN_IDX F77_comment_line_token ( TOKEN_BUFFER  buffer,
UINT  num_lines,
const char *  comment_prefix,
BOOL  indent_last_line 
) [static]

static TOKEN_IDX F77_directive_line_token ( TOKEN_BUFFER  buffer,
const char *  directive_prefix 
) [static]

static TOKEN_IDX f77_seqno_token ( TOKEN_BUFFER  buffer,
const char *  seqno 
) [static]

static void flush_write_buffer ( FILE ofile,
char **  buffer,
UINT buflen 
) [static]

static void free_buffer_list ( TOKEN_BUFFER  free_list  )  [static]

void Free_Token_Buffer_Memory ( void   ) 

Definition at line 1485 of file token_buffer.cxx.

References free_buffer_list().

UINT32 Get_Maximum_Linelength ( void   ) 

Definition at line 1478 of file token_buffer.cxx.

References Max_Line_Length.

Referenced by TCON2C_translate(), and TCON2F_translate().

static STRING_IDX get_new_string ( TOKEN_BUFFER  buf,
INT16  stringsize 
) [static]

static TOKEN_IDX get_new_tokens ( TOKEN_BUFFER  buf,
INT  number_of_tokens 
) [static]

BOOL HAS_Maximum_Linelength ( void   ) 

Definition at line 1471 of file token_buffer.cxx.

References Max_Line_Length.

BOOL Identical_Token_Lists ( TOKEN_BUFFER  tokens1,
TOKEN_BUFFER  tokens2 
)

void Increment_Indentation ( void   ) 

static TOKEN_IDX indented_newline_token ( TOKEN_BUFFER  buffer,
UINT  num_lines,
BOOL  continuation,
const char *  label 
) [static]

void Initialize_Token_Buffer ( FORMAT_KIND  output_format,
BOOL  prompf_srcmap_format 
)

BOOL Is_Empty_Token_Buffer ( TOKEN_BUFFER  tokens  ) 

TOKEN_BUFFER New_Token_Buffer ( void   ) 

Definition at line 1492 of file token_buffer.cxx.

References 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_symbol(), INITV2C_val(), INITVKIND_const(), INITVKIND_symoff(), INITVKIND_val(), write_st::operator()(), 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_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(), TY2F_Declare_Common_Flds(), TY2F_Purple_Assumed_Sized_Array(), TY2F_Purple_Ptr_As_Array(), TY2F_Translate_ArrayElt(), 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_io(), WN2F_io_control(), WN2F_istore(), WN2F_Load_Return_Reg(), WN2F_mstore(), WN2F_Prepend_Value_Reference(), WN2F_stid(), WN2F_Translate_DoLoop_Bound(), WN2F_translate_purple_main(), Write_Scalar_Typedef(), and Write_Typedef().

static void Output_Character ( FILE ofile,
char **  strbuf,
UINT strlen,
char  c 
) [static]

static void Output_Srcpos_Directive ( FILE ofile,
char **  strbuf,
UINT strlen,
SRCPOS  srcpos 
) [static]

static void Output_Srcpos_Map ( FILE mapfile,
SRCPOS  srcpos 
) [static]

void Prepend_And_Copy_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER  copy_tokens 
)

void Prepend_And_Reclaim_Token_List ( TOKEN_BUFFER  result_tokens,
TOKEN_BUFFER reclaim_tokens 
)

void Prepend_F77_Comment_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
BOOL  indent_last_line 
)

void Prepend_F77_Directive_Newline ( TOKEN_BUFFER  tokens,
const char *  directive_prefix 
)

void Prepend_F77_Indented_Continuation ( TOKEN_BUFFER  tokens  ) 

void Prepend_F77_Indented_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines,
const char *  label 
)

void Prepend_F77_Sequence_No ( TOKEN_BUFFER  tokens,
const char *  seq_no 
)

void Prepend_Indented_Newline ( TOKEN_BUFFER  tokens,
UINT  num_lines 
)

void Prepend_Srcpos_Directive ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

void Prepend_Srcpos_Map ( TOKEN_BUFFER  tokens,
SRCPOS  srcpos 
)

static void prepend_token_list ( TOKEN_BUFFER  buffer,
TOKEN_SEQUENCE  token_list 
) [static]

void Prepend_Token_Special ( TOKEN_BUFFER  tokens,
char  special 
)

void Prepend_Token_String ( TOKEN_BUFFER  tokens,
const char *  string 
)

void Reclaim_Token_Buffer ( TOKEN_BUFFER tokens  ) 

void Set_Current_Indentation ( UINT  indent  ) 

void Set_Indentation_Step ( UINT  num_spaces  ) 

Definition at line 1619 of file token_buffer.cxx.

References indentation_increment, and MAX_INDENTATION_STEP.

void Set_Maximum_Linelength ( UINT32  max_linelength  ) 

Definition at line 1461 of file token_buffer.cxx.

References Default_Max_Line_Length, Max_Line_Length, and Output_Format.

Referenced by W2C_Init(), and W2F_Init().

static TOKEN_IDX Skip_Srcpos_Map ( FILE srcpos_map_file,
TOKEN_BUFFER  buf,
TOKEN_IDX  token_idx 
) [static]

static TOKEN_IDX special_char_token ( TOKEN_BUFFER  buffer,
char  special 
) [static]

static void Split_The_Current_Output_Line ( FILE ofile,
char **  strbuf,
UINT strlen 
) [static]

static TOKEN_IDX Srcpos_Directive_Token ( TOKEN_BUFFER  buffer,
SRCPOS  srcpos 
) [static]

static TOKEN_IDX Srcpos_Map_Token ( TOKEN_BUFFER  buffer,
SRCPOS  srcpos 
) [static]

static TOKEN_IDX Str_Skip_Srcpos_Map ( TOKEN_BUFFER  buf,
TOKEN_IDX  token_idx 
) [static]

void Str_Write_And_Reclaim_Tokens ( char *  strbuf,
UINT32  buflen,
TOKEN_BUFFER tokens 
)

static TOKEN_IDX string_token ( TOKEN_BUFFER  buffer,
const char *  string 
) [static]

void Terminate_Token_Buffer ( FILE srcpos_map_file  ) 

void Write_And_Reclaim_Tokens ( FILE ofile,
FILE srcpos_map_file,
TOKEN_BUFFER tokens 
)

static void write_F77_separator ( FILE ofile,
char **  strbuf,
UINT strlen,
TOKEN_BUFFER  buffer,
TOKEN_IDX  idx1,
TOKEN_IDX  idx2 
) [static]

Definition at line 1333 of file token_buffer.cxx.

References write_separator().

Referenced by Str_Write_And_Reclaim_Tokens(), and Write_And_Reclaim_Tokens().

static void write_into_string_buf ( const char *  from,
UINT  from_size,
char **  into,
UINT into_size 
) [static]

Definition at line 910 of file token_buffer.cxx.

References fprintf(), and strncpy().

Referenced by flush_write_buffer().

static void write_separator ( FILE ofile,
char **  strbuf,
UINT strlen,
TOKEN_BUFFER  buffer,
TOKEN_IDX  idx1,
TOKEN_IDX  idx2 
) [static]

static void Write_Srcpos_File_Map_Table ( FILE srcpos_map_file  )  [static]

void Write_String ( FILE ofile,
FILE srcpos_map_file,
const char *  str 
)

static void write_token ( FILE ofile,
char **  strbuf,
UINT strlen,
TOKEN_BUFFER  buffer,
TOKEN_IDX  this_token 
) [static]

void Zero_Indentation ( void   ) 

Definition at line 1654 of file token_buffer.cxx.

References current_indentation, and requested_indentation.


Variable Documentation

TOKEN_BUFFER buffer_free_list = NULL [static]

Definition at line 258 of file token_buffer.cxx.

INT32 current_indentation = 0 [static]

UINT32 Current_Output_Col = 1 [static]

UINT32 Default_Max_Line_Length[NUM_FORMAT_KINDS+1] [static]

Initial value:

{
   0,  
   0,  
   72  
}

Definition at line 295 of file token_buffer.cxx.

Referenced by Initialize_Token_Buffer(), and Set_Maximum_Linelength().

BOOL Emit_Prompf_Srcpos_Map = FALSE [static]

char F77_Directive_Continuation[MAX_F77_DIRECTIVE_PREFIX_SIZE+1] [static]

Definition at line 308 of file token_buffer.cxx.

Referenced by Split_The_Current_Output_Line(), and write_token().

BOOL Inside_F77_Directive = FALSE [static]

Definition at line 306 of file token_buffer.cxx.

Referenced by Output_Character(), Split_The_Current_Output_Line(), and write_token().

INT32 last_split_pt = INVALID_SPLIT_PT [static]

UINT32 Max_Line_Length = 0 [static]

Definition at line 307 of file token_buffer.cxx.

Referenced by Output_Character(), and write_token().

FORMAT_KIND Output_Format = FREE_FORMAT [static]

char write_buffer[WRITE_BUFFER_SIZE+1] [static]

INT32 write_buffer_next = 0 [static]


Generated on Wed Apr 8 14:36:46 2009 for Open64 by  doxygen 1.5.6