Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
cwh_defines.h File Reference
#include "defs.h"
Include dependency graph for cwh_defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  W_node
struct  blist
struct  clist

Defines

#define cast_to_TY(x)   ((TY_IDX) (mUINT32)x) /* eraxxon: replace (void *) */
#define cast_to_WN(x)   ((WN *) (void *)x)
#define cast_to_ST(x)   ((ST *) (void *)x)
#define cast_to_LB(x)   ((LABEL_IDX) (mUINT32)x) /* eraxxon: replace (void *) */
#define cast_to_uint(x)   ((unsigned long) (void *)x)
#define cast_to_int(x)   ((long ) (void *)x)
#define cast_to_void(x)   ((void *)x)
#define cast_to_STB(x)   ((STB_pkt *) (void *)x)
#define DUMP_TY(ty)   dump_ty(ty)
#define DUMP_ST(st)   dump_st(st)
#define DUMP_LB(lb)   dump_label(lb)
#define DUMP_WN(wn)   fdump_tree(stdout,wn);
#define DUMP_STK   cwh_stk_dump()
#define bit_to_byte(a)   (a >> 3)
#define bit_to_byte_WN(a)   (cwh_expr_bincalc(OPR_DIV,WN_COPY_Tree(a),WN_CreateIntconst (OPC_U4INTCONST,8)))
#define byte_to_bit(a)   (a << 3)
#define test_flag(f, sh)   ((INT32)((f >> sh) & 1))
#define GLOBAL_LEVEL   1
#define HOST_LEVEL   GLOBAL_LEVEL + 1
#define INTERNAL_LEVEL   HOST_LEVEL + 1
#define WNOPR(w)   (WN_operator(w))
#define WNRTY(w)   (WN_rtype(w))
#define IS_GLOBAL_SYMTAB(s)   (SYMTAB_level(s) == GLOBAL_LEVEL)
#define IN_HOST_PU   (CURRENT_SYMTAB == HOST_LEVEL)
#define IN_NESTED_PU   (CURRENT_SYMTAB >= INTERNAL_LEVEL)
#define RESULT_SIZE   16
#define RESULT_ALIGN   8
#define W_wn(a)   (a.wn)
#define W_ty(a)   (a.ty)
#define iW_wn(a)   (a->wn)
#define iW_ty(a)   (a->ty)
#define I_element(i)   ((i)->element)
#define I_next(i)   ((i)->nxt)
#define L_first(l)   ((l)->first)
#define L_last(l)   ((l)->last)
#define L_num(l)   ((l)->nitems)
#define OPC_UNKNOWN   0
#define MAX_ARY_DIMS   7
#define NUM_LOG_KINDS   4
#define ANULL   -1
#define RESULT_SIZE   64
#define STRUCT_BY_VALUE(ty)

Typedefs

typedef INT64 OFFSET_64
typedef unsigned long ULONG
typedef long SLONG
typedef struct blist ITEM
typedef struct clist LIST

Functions

void dump_ty (TY_IDX ty)
void dump_st (ST *st)
void dump_label (LABEL_IDX lb)

Variables

MEM_POOLFE_Mempool

Define Documentation

#define ANULL   -1

Definition at line 85 of file cwh_defines.h.

Referenced by cwh_types_mk_basic_TY().

#define byte_to_bit (   a)    (a << 3)
#define cast_to_LB (   x)    ((LABEL_IDX) (mUINT32)x) /* eraxxon: replace (void *) */
#define cast_to_uint (   x)    ((unsigned long) (void *)x)

Definition at line 63 of file cwh_defines.h.

Referenced by cwh_addr_pstid(), cwh_addr_stid(), and cwh_types_fill_type().

#define cast_to_WN (   x)    ((WN *) (void *)x)

Definition at line 60 of file cwh_defines.h.

Referenced by cwh_types_mk_basic_TY(), fei_constant(), and fei_smt_parameter().

#define DUMP_LB (   lb)    dump_label(lb)

Definition at line 73 of file cwh_defines.h.

Referenced by cwh_stk_dump().

#define DUMP_ST (   st)    dump_st(st)

Definition at line 72 of file cwh_defines.h.

Referenced by cwh_auxst_dump_list(), and cwh_stk_dump().

#define DUMP_STK   cwh_stk_dump()

Definition at line 75 of file cwh_defines.h.

#define DUMP_TY (   ty)    dump_ty(ty)

Definition at line 71 of file cwh_defines.h.

Referenced by cwh_types_array_TY(), and cwh_types_scalar_TY().

#define DUMP_WN (   wn)    fdump_tree(stdout,wn);

Definition at line 74 of file cwh_defines.h.

Referenced by cwh_stk_dump().

#define GLOBAL_LEVEL   1

Definition at line 91 of file cwh_defines.h.

Definition at line 100 of file cwh_defines.h.

#define INTERNAL_LEVEL   HOST_LEVEL + 1

Definition at line 93 of file cwh_defines.h.

Referenced by fei_next_func_idx(), and fei_proc_imp().

#define IS_GLOBAL_SYMTAB (   s)    (SYMTAB_level(s) == GLOBAL_LEVEL)

Definition at line 99 of file cwh_defines.h.

#define iW_ty (   a)    (a->ty)

Definition at line 121 of file cwh_defines.h.

#define iW_wn (   a)    (a->wn)

Definition at line 120 of file cwh_defines.h.

#define L_last (   l)    ((l)->last)

Definition at line 146 of file cwh_defines.h.

Referenced by cwh_auxst_add_to_list(), and cwh_stab_full_split().

#define L_num (   l)    ((l)->nitems)
#define NUM_LOG_KINDS   4

Definition at line 154 of file cwh_defines.h.

Referenced by cwh_types_mk_logical_TY().

#define OPC_UNKNOWN   0

Definition at line 152 of file cwh_defines.h.

#define RESULT_ALIGN   8

Definition at line 104 of file cwh_defines.h.

Referenced by cwh_types_mk_result_temp_TY().

#define RESULT_SIZE   16

Definition at line 208 of file cwh_defines.h.

Referenced by cwh_types_mk_result_temp_TY().

#define RESULT_SIZE   64

Definition at line 208 of file cwh_defines.h.

#define STRUCT_BY_VALUE (   ty)
#define W_ty (   a)    (a.ty)

Typedef Documentation

typedef struct blist ITEM
typedef struct clist LIST
typedef INT64 OFFSET_64

Definition at line 56 of file cwh_defines.h.

typedef long SLONG

Definition at line 58 of file cwh_defines.h.

typedef unsigned long ULONG

Definition at line 57 of file cwh_defines.h.


Function Documentation

void dump_label ( LABEL_IDX  lb)

Definition at line 2758 of file symtab.cxx.

References idx, and Label_Table.

void dump_st ( ST st)

Definition at line 2709 of file symtab.cxx.

References ST::blk, Blk_Table, CLASS_BLOCK, CLASS_FUNC, ST::Print(), ST::pu, Pu_Table, ST::sym_class, and ST::u2.

Here is the call graph for this function:

void dump_ty ( TY_IDX  ty)

Definition at line 2738 of file symtab.cxx.

References TY::Print(), and Ty_Table.

Referenced by dump_ty_idx().

Here is the call graph for this function:


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines