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

Go to the source code of this file.

Defines

#define UPCR_BARRIERFLAG_ANONYMOUS   1 /* keep this consistent with upcr.h */
#define UPCR_BARRIERVAL_ANONYMOUS   0xdeadbeef
#define MAX_LINE_LEN_UPC   100
#define MTYPE_To_Shared_TY(t)   MTYPE_TO_Shared_TY_array[t]

Enumerations

enum  CONSISTENCY_class { STRICT_CONSISTENCY, RELAXED_CONSISTENCY, NO_CONSISTENCY }

Functions

void Save_Upc_Rts_Calls (char *name, ST *st)
void Upc_Translate_Name (char *from, char **to)
void Initialize_Upc_Metadata ()
void Initialize_Upc_Vars ()
void Find_Upc_Vars ()
void Verify_Upc_Metadata ()
void Initialize_Upc_Types (char *, UINT, char *, UINT, char *, UINT, char *, UINT)
void Upc_Lower_SymbolTable ()
void Create_Special_Shared_Global_Symbols ()
UINT64 Get_Type_Inner_Size (TY_IDX idx)
TY_IDX Get_Inner_Array_Type (TY_IDX idx)
TY_IDX TY_To_Sptr_Idx (TY_IDX)
UINT Get_Type_Block_Size (TY_IDX idx)
BOOL WN_Type_Is_Shared_Ptr (const WN *wn, BOOL real_ptr=FALSE)
BOOL Type_Is_Shared_Ptr (TY_IDX idx, BOOL real_ptr=FALSE)
TY_IDX Fix_Intrinsic_Return_Type (INTRINSIC i)
BOOL Types_Are_Equiv (TY_IDX idx1, TY_IDX idx2)
BOOL Need_StoP_Cvt (TY_IDX src_idx, TY_IDX dest_idx, INTRINSIC *iop)
BOOL TY_is_pshared (TY_IDX idx)
BOOL Use_32_Bit (const char *filename)
UINT Adjust_Field_Offset (TY_IDX struct_idx, UINT field_id)
UINT Adjust_Field_Offset (TY &struct_idx, UINT field_id)
TY_IDX Get_Field_Type (TY_IDX struct_type, UINT field_id)
UINT Adjusted_Type_Size (TY_IDX idx, unsigned int pshared=0, unsigned int shared=0)
bool is_upcr_ptr (TY_IDX ty)

Variables

TY_IDX shared_ptr_idx
TY_IDX pshared_ptr_idx
int compiling_upc
char * shared_ptr_name
STupc_ptradd_st
STupc_ptrdiff_st
STupc_ptrget_st
STupc_ptrput_st
STupc_putblock_st
STupc_getblock_st
STupc_threadof_st
STupc_mythread_st
STupc_memget_st
STupc_memput_st
STupc_memcpy_st
STupc_adddisp_st
STupc_getshared_st
STupc_phreset_st
STupc_nulleq_st
STupc_nullneq_st
STupc_ptreqtest_st
STupc_ptrneqtest_st
TY_IDX upc_hsync_reg_ty
TY_IDX upc_hsync_mem_ty
STupc_forall_control_st
TY_IDX MTYPE_TO_Shared_TY_array [MTYPE_LAST+1]

Define Documentation

#define MAX_LINE_LEN_UPC   100

Definition at line 32 of file upc_symtab_utils.h.

Referenced by Use_32_Bit().

#define MTYPE_To_Shared_TY (   t)    MTYPE_TO_Shared_TY_array[t]

Definition at line 86 of file upc_symtab_utils.h.

Referenced by Create_Special_Shared_Global_Symbols().

#define UPCR_BARRIERFLAG_ANONYMOUS   1 /* keep this consistent with upcr.h */

Definition at line 29 of file upc_symtab_utils.h.

#define UPCR_BARRIERVAL_ANONYMOUS   0xdeadbeef

Definition at line 30 of file upc_symtab_utils.h.


Enumeration Type Documentation

Enumerator:
STRICT_CONSISTENCY 
RELAXED_CONSISTENCY 
NO_CONSISTENCY 

Definition at line 14 of file upc_symtab_utils.h.


Function Documentation

UINT Adjust_Field_Offset ( TY_IDX  struct_idx,
UINT  field_id 
)

Definition at line 470 of file upc_symtab_utils.cxx.

References Adjusted_Type_Size(), FLD_last_field(), FLD_type(), Is_True, KIND_STRUCT, Make_fld_iter(), TY_align(), TY_fld(), TY_kind(), TY_To_Sptr_Idx(), and Type_Is_Shared_Ptr().

Here is the call graph for this function:

void Find_Upc_Vars ( )

Definition at line 644 of file upc_symtab_utils.cxx.

References For_all_until(), FOREACH_SYMBOL, GLOBAL_SYMTAB, Is_True, NULL, pshared_ptr_idx, s, shared_ptr_idx, ST_name(), and Ty_Table.

Referenced by main().

Here is the call graph for this function:

Definition at line 812 of file upc_symtab_utils.cxx.

References pshared_ptr_idx, and shared_ptr_idx.

TY_IDX Get_Field_Type ( TY_IDX  struct_type,
UINT  field_id 
)

Definition at line 61 of file upc_symtab_utils.cxx.

References FLD_get_to_field(), FLD_type(), FLD_HANDLE::Is_Null(), Is_True, KIND_STRUCT, and TY_kind().

Here is the call graph for this function:

Definition at line 130 of file upc_symtab_utils.cxx.

References Is_True, KIND_ARRAY, TY_etype(), and TY_kind().

Referenced by Get_Access_Consistency(), Get_Type_Block_Size(), Get_Type_Inner_Size(), Type_Is_Shared_Ptr(), and Types_Are_Equiv().

Here is the call graph for this function:

Definition at line 208 of file upc_symtab_utils.cxx.

References FOREACH_SYMBOL, GLOBAL_SYMTAB, Save_Upc_Rts_Calls(), and ST_name().

Here is the call graph for this function:

void Initialize_Upc_Types ( char *  ,
UINT  ,
char *  ,
UINT  ,
char *  ,
UINT  ,
char *  ,
UINT   
)

Definition at line 681 of file upc_symtab_utils.cxx.

References CLASS_VAR, EXPORT_PREEMPTIBLE, GLOBAL_SYMTAB, idx, MTYPE_I4, MTYPE_To_TY, New_ST(), Save_Str(), SCLASS_COMMON, and ST_Init().

Here is the call graph for this function:

bool is_upcr_ptr ( TY_IDX  ty)

Definition at line 71 of file upc_symtab_utils.cxx.

References pshared_ptr_idx, shared_ptr_idx, and TY_name().

Referenced by FLD_get_to_field(), and TY2C_Output_Struct_Type().

Here is the call graph for this function:

BOOL Need_StoP_Cvt ( TY_IDX  src_idx,
TY_IDX  dest_idx,
INTRINSIC *  iop 
)

Definition at line 833 of file upc_symtab_utils.cxx.

References FALSE, Get_Type_Block_Size(), Get_Type_Inner_Size(), Is_True, KIND_ARRAY, KIND_POINTER, KIND_SCALAR, result, TRUE, TY_is_shared(), TY_kind(), and TY_pointed().

Here is the call graph for this function:

void Save_Upc_Rts_Calls ( char *  name,
ST st 
)

Definition at line 83 of file upc_symtab_utils.cxx.

Referenced by Initialize_Upc_Metadata().

BOOL Types_Are_Equiv ( TY_IDX  idx1,
TY_IDX  idx2 
)

Definition at line 907 of file upc_symtab_utils.cxx.

References Get_Inner_Array_Type(), Get_Type_Inner_Size(), KIND_ARRAY, KIND_POINTER, TRUE, TY_kind(), and TY_pointed().

Here is the call graph for this function:

void Upc_Translate_Name ( char *  from,
char **  to 
)

Definition at line 118 of file upc_symtab_utils.cxx.

References upc_library_names.

BOOL Use_32_Bit ( const char *  filename)

Definition at line 663 of file upc_symtab_utils.cxx.

References FALSE, MAX_LINE_LEN_UPC, NULL, size, and TRUE.

Definition at line 527 of file upc_symtab_utils.cxx.

References Is_True, and shared_ptr_idx.

BOOL WN_Type_Is_Shared_Ptr ( const WN wn,
BOOL  real_ptr = FALSE 
)

Definition at line 760 of file upc_symtab_utils.cxx.

References OPR_CONST, Type_Is_Shared_Ptr(), WN_operator(), and WN_ty().

Here is the call graph for this function:


Variable Documentation

Definition at line 9 of file upc_symtab_utils.cxx.

Definition at line 28 of file upc_symtab_utils.cxx.

Definition at line 35 of file upc_symtab_utils.cxx.

Definition at line 29 of file upc_symtab_utils.cxx.

Definition at line 27 of file upc_symtab_utils.cxx.

Definition at line 25 of file upc_symtab_utils.cxx.

Definition at line 26 of file upc_symtab_utils.cxx.

Definition at line 24 of file upc_symtab_utils.cxx.

Definition at line 31 of file upc_symtab_utils.cxx.

Definition at line 32 of file upc_symtab_utils.cxx.

Definition at line 30 of file upc_symtab_utils.cxx.

Definition at line 19 of file upc_symtab_utils.cxx.

Definition at line 20 of file upc_symtab_utils.cxx.

Definition at line 33 of file upc_symtab_utils.cxx.

Definition at line 21 of file upc_symtab_utils.cxx.

Definition at line 34 of file upc_symtab_utils.cxx.

Definition at line 22 of file upc_symtab_utils.cxx.

Definition at line 23 of file upc_symtab_utils.cxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines