Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <stdio.h>
#include <stdlib.h>
#include "defines.h"
#include "host.m"
#include "host.h"
#include "target.m"
#include "target.h"
#include "arith.h"
#include "globals.m"
#include "tokens.m"
#include "sytb.m"
#include "debug.m"
#include "globals.h"
#include "tokens.h"
#include "sytb.h"
Go to the source code of this file.
Defines | |
#define | OCT_FMT "%o" |
#define | HEX_FMT "%x" |
#define | DEC_FMT "%d" |
#define | LLOCT_FMT "%llo" |
#define | LLHEX_FMT "%llx" |
#define | LLDEC_FMT "%lld" |
#define | STR_FMT "\"%s\"" |
#define | DBL_FMT "%Le" |
#define | FLT_FMT "%e" |
#define | NAME_IDX(IDX) (table[IDX].name_idx) |
#define | DIFF(I) |
#define | MASK(I) -(RIGHT_JUSTIFY_SIGN_BIT(DIFF((I)) | -DIFF((I))))| mask |
#define | RUNNING_DIFF(I) tst_val | ((~mask) & DIFF(I)) |
Functions | |
char * | convert_to_string (long_type *the_constant, int type_idx, char *result) |
boolean | get_temp_file (char *open_status, FILE **file_ptr, char *file_name) |
int | srch_name_tbl (char *name_str, int name_len, int *name_idx, name_tbl_type *table, name_pool_type *pool, int first_entry, int last_entry) |
char * | convert_cval_to_string (long64 *the_constant, int type_idx, char *result) |
Variables | |
static char | USMID [] = "\n@(#)5.0_pl/sources/utils.c 5.9 10/14/99 12:53:57\n" |
#define DBL_FMT "%Le" |
Definition at line 84 of file utils.c.
Referenced by convert_to_string().
#define DEC_FMT "%d" |
Definition at line 72 of file utils.c.
Referenced by convert_to_string().
#define DIFF | ( | I | ) |
compare_names(&pool[NAME_IDX(idx)+(I)-1].name_long, \ HOST_BYTES_PER_WORD-1, \ &id[(I) - 1], \ HOST_BYTES_PER_WORD-1 )
Referenced by srch_name_tbl().
#define FLT_FMT "%e" |
Definition at line 91 of file utils.c.
Referenced by convert_to_string().
#define HEX_FMT "%x" |
Definition at line 71 of file utils.c.
Referenced by convert_to_string().
#define LLHEX_FMT "%llx" |
Definition at line 77 of file utils.c.
Referenced by convert_to_string().
#define LLOCT_FMT "%llo" |
Definition at line 76 of file utils.c.
Referenced by convert_to_string().
#define MASK | ( | I | ) | -(RIGHT_JUSTIFY_SIGN_BIT(DIFF((I)) | -DIFF((I))))| mask |
Referenced by srch_name_tbl().
#define NAME_IDX | ( | IDX | ) | (table[IDX].name_idx) |
#define OCT_FMT "%o" |
Definition at line 70 of file utils.c.
Referenced by convert_to_string().
#define RUNNING_DIFF | ( | I | ) | tst_val | ((~mask) & DIFF(I)) |
Referenced by srch_name_tbl().
char* convert_cval_to_string | ( | long64 * | the_constant, |
int | type_idx, | ||
char * | result | ||
) |
Definition at line 3879 of file utils.c.
References C_TO_F_INT, convert_to_string(), Func_Entry, Func_Exit, NULL, TRACE, and TYP_LINEAR.
char* convert_to_string | ( | long_type * | the_constant, |
int | type_idx, | ||
char * | result | ||
) |
Definition at line 119 of file utils.c.
References AR_convert_float_to_str(), AR_convert_int_to_str(), Binary_Fmt, Character_1, Character_Fmt, Complex_16, Complex_4, Complex_8, COMPLEX_DEFAULT_TYPE, convert_to_string_fmt, DBL_FMT, DEC_FMT, Dont_Care, FLT_FMT, Func_Entry, Func_Exit, Hex_Fmt, HEX_FMT, Integer_1, Integer_2, Integer_4, Integer_8, Internal, linear_to_arith, LLHEX_FMT, LLOCT_FMT, Logical_1, Logical_2, Logical_4, Logical_8, Long_Typeless, NULL, num_host_wds, OCT_FMT, Octal_Fmt, PRINTMSG(), Real_16, Real_4, Real_8, SHIFT_ARITH_ARG, Short_Typeless_Const, stat, stmt_start_col, stmt_start_line, THIS_IS_TRUE, TRACE, TYP_LINEAR, Typeless_4, and Typeless_8.
Referenced by chain_thru_sn_ntries(), cif_call_site_rec(), cif_named_constant_rec(), cif_send_attr(), convert_cval_to_string(), dump_at_ntry(), dump_cn_tree(), dump_dv(), dump_gb_ntry(), dump_gt_ntry(), print_attr_name(), print_const_entry(), print_const_f(), print_expanded_const(), print_fld_idx(), print_so(), print_type_f(), and stop_pause_stmt_semantics().
boolean get_temp_file | ( | char * | open_status, |
FILE ** | file_ptr, | ||
char * | file_name | ||
) |
Definition at line 475 of file utils.c.
References FALSE, Func_Entry, Func_Exit, NULL, result, strcpy, TRACE, and TRUE.
Referenced by cif_flush_include_recs(), and init_cif().
int srch_name_tbl | ( | char * | name_str, |
int | name_len, | ||
int * | name_idx, | ||
name_tbl_type * | table, | ||
name_pool_type * | pool, | ||
int | first_entry, | ||
int | last_entry | ||
) |
Definition at line 597 of file utils.c.
References DIFF, EXIT, Func_Entry, Func_Exit, idx, Internal, MASK, NULL, PRINTMSG(), RIGHT_JUSTIFY_SIGN_BIT, RUNNING_DIFF, stmt_start_line, stride, STRIDE_CALC, TRACE, and WORD_LEN.
Referenced by gen_compiler_tmp(), srch_cc_sym_tbl(), srch_global_name_tbl(), srch_hidden_name_tbl(), and srch_sym_tbl().