OpenADFortTk (basic)
src/lib/support/Open64IRInterface/stab_attr.h File Reference
#include "Open64BasicTypes.h"
Include dependency graph for stab_attr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Stab_Reset_Referenced_Flag (SYMTAB_IDX symtab)
bool IsActivePU (ST *pu_st)
BOOL Stab_Identical_Types (TY_IDX t1, TY_IDX t2, BOOL check_quals, BOOL check_scalars, BOOL ptrs_as_scalars)
BOOL Stab_Assignment_Compatible_Types (TY_IDX t1, TY_IDX t2, BOOL check_quals, BOOL check_scalars, BOOL ptrs_as_scalars)
bool WN2F_Can_Assign_Types (TY_IDX ty1, TY_IDX ty2)
BOOL Stab_Is_Element_Type_Of_Array (TY_IDX atype, TY_IDX etype)
BOOL Stab_Array_Has_Dynamic_Bounds (TY_IDX ty)
BOOL Stab_Is_Assumed_Sized_Array (TY_IDX ty)
BOOL Stab_Is_Equivalenced_Struct (TY_IDX ty)
TY_IDX Stab_Get_Mload_Ty (TY_IDX base, STAB_OFFSET offset, STAB_OFFSET size)
TY_IDX Stab_Mtype_To_Ty (TYPE_ID mtype)
BOOL TY_Is_Scalar (TY_IDX ty)
BOOL TY_IsNonScalar (TY_IDX ty)
BOOL TY_Is_Array (TY_IDX ty)
BOOL TY_IsRecord (TY_IDX ty)
BOOL TY_Is_Structured (TY_IDX ty)
BOOL TY_Is_Struct (TY_IDX ty)
BOOL TY_Is_Union (TY_IDX ty)
BOOL TY_Is_Pointer (TY_IDX ty)
BOOL TY_Is_String (TY_IDX ty)
BOOL TY_Is_Integral (TY_IDX ty)
BOOL TY_Is_Quad (TY_IDX ty)
BOOL TY_Is_Complex (TY_IDX ty)
BOOL TY_Is_Function (TY_IDX ty)
BOOL TY_Is_Array_Or_Function (TY_IDX ty)
BOOL TY_Is_Pointer_Or_Scalar (TY_IDX ty)
BOOL TY_Is_Character_Reference (TY_IDX ty)
BOOL TY_Is_Character_String (TY_IDX ty)
BOOL TY_Is_Chararray (TY_IDX ty)
BOOL TY_Is_Chararray_Reference (TY_IDX ty)
BOOL TY_Is_Array_Of_Chars (TY_IDX ty)
BOOL TY_Is_Array_Of_UChars (TY_IDX ty)
BOOL TY_Is_Preg_Type (TY_IDX ty)
BOOL FLD_Is_Bitfield (FLD_HANDLE fld, FLD_HANDLE next_fld, INT64 max_size)
BOOL Stab_Is_Valid_Base (const ST *st)
BOOL Stab_Is_Common_Block (const ST *st)
BOOL Stab_Is_Equivalence_Block (const ST *st)
BOOL Stab_Is_Based_At_Common_Block (const ST *st)
BOOL Stab_Is_Based_At_Common_Or_Equivalence (const ST *st)
BOOL Stab_Is_In_Module (const ST *st)
BOOL Stab_Is_Module (const ST *st)
BOOL Stab_No_Linkage (const ST *st)
BOOL Stab_External_Linkage (const ST *st)
BOOL Stab_External_Def_Linkage (const ST *st)
BOOL Stab_Identical_Quals (TY_IDX t1, TY_IDX t2)
BOOL Stab_Assign_Compatible_Pointer_Quals (TY_IDX t1, TY_IDX t2)
BOOL STAB_PARAM_HAS_IMPLICIT_LENGTH (const ST *st)
BOOL STAB_IS_POINTER_REF_PARAM (const ST *st)
BOOL Func_Return_Character (TY_IDX func_ty)
TY_IDX Func_Return_Type (TY_IDX func_ty)
BOOL Func_Return_To_Param (TY_IDX func_ty)
TY_IDX Stab_Pointer_To (TY_IDX pointee)
TY_IDX Stab_Array_Of (TY_IDX etype, mINT64 num_elts)
void Stab_Free_Namebufs (void)
char * Get_Name_Buf_Slot (UINT size)
const char * Num2Str (INT64 number, const char *fmt)
const char * Ptr_as_String (const void *ptr)
const char * StrCat (const char *name1, const char *name2)
const char * StrCat (const char *s1, const char *s2, const char *s3)
UINT64 Get_Hash_Value_For_Name (const char *name)
UINT32 Name_Hash_Idx (UINT64 hash_value, INT32 tbl_size)
STAB_OFFSET Stab_Full_Split_Offset (const ST *split_out_st)
void Stab_Free_Tmpvars (void)
void Stab_Unlock_All_Tmpvars (void)
UINT Stab_Lock_Tmpvar (TY_IDX ty, void(*declare_tmpvar)(TY_IDX, UINT))
void Stab_Unlock_Tmpvar (UINT idx)

Function Documentation

BOOL FLD_Is_Bitfield ( FLD_HANDLE  fld,
FLD_HANDLE  next_fld,
INT64  max_size 
) [inline]

Definition at line 413 of file stab_attr.h.

BOOL Func_Return_Character ( TY_IDX  func_ty) [inline]

Definition at line 561 of file stab_attr.h.

Referenced by WN_Call_First_Arg_Idx(), and whirl2xaif::xlate_CALL().

BOOL Func_Return_To_Param ( TY_IDX  func_ty) [inline]

Definition at line 575 of file stab_attr.h.

Referenced by WN_Call_First_Arg_Idx().

TY_IDX Func_Return_Type ( TY_IDX  func_ty) [inline]
UINT64 Get_Hash_Value_For_Name ( const char *  name)

Definition at line 647 of file stab_attr.cpp.

bool IsActivePU ( ST *  pu_st)

Definition at line 85 of file stab_attr.cpp.

Referenced by xaif2whirl::TranslateCFG(), and whirl2xaif::Whirl2Xaif::translatePU().

UINT32 Name_Hash_Idx ( UINT64  hash_value,
INT32  tbl_size 
) [inline]

Definition at line 621 of file stab_attr.h.

const char* Ptr_as_String ( const void *  ptr)

Definition at line 592 of file stab_attr.cpp.

References Get_Name_Buf_Slot(), and MAX_NUMSTRING_SIZE.

Here is the call graph for this function:

BOOL Stab_Array_Has_Dynamic_Bounds ( TY_IDX  ty)

Definition at line 292 of file stab_attr.cpp.

TY_IDX Stab_Array_Of ( TY_IDX  etype,
mINT64  num_elts 
)
BOOL Stab_Assign_Compatible_Pointer_Quals ( TY_IDX  t1,
TY_IDX  t2 
) [inline]

Definition at line 520 of file stab_attr.h.

Referenced by Stab_Compare_Types().

BOOL Stab_Assignment_Compatible_Types ( TY_IDX  t1,
TY_IDX  t2,
BOOL  check_quals,
BOOL  check_scalars,
BOOL  ptrs_as_scalars 
)

Definition at line 120 of file stab_attr.cpp.

References Stab_Compare_Types().

Referenced by Stab_Is_Element_Type_Of_Array().

Here is the call graph for this function:

BOOL Stab_External_Def_Linkage ( const ST *  st) [inline]

Definition at line 506 of file stab_attr.h.

References Stab_External_Linkage().

Here is the call graph for this function:

BOOL Stab_External_Linkage ( const ST *  st) [inline]

Definition at line 494 of file stab_attr.h.

References Stab_No_Linkage().

Referenced by Stab_External_Def_Linkage().

Here is the call graph for this function:

void Stab_Free_Tmpvars ( void  )

Definition at line 708 of file stab_attr.cpp.

References FREE, Max_Tmpvar_Idx, and Next_Tmpvar_Idx.

Referenced by whirl2xaif::Whirl2Xaif::translateWNPU().

STAB_OFFSET Stab_Full_Split_Offset ( const ST *  split_out_st)

Definition at line 669 of file stab_attr.cpp.

TY_IDX Stab_Get_Mload_Ty ( TY_IDX  base,
STAB_OFFSET  offset,
STAB_OFFSET  size 
)

Definition at line 354 of file stab_attr.cpp.

References Stab_Get_Mload_Ty(), TY_Is_Structured(), and TY_Is_Union().

Referenced by Stab_Get_Mload_Ty(), WN_GetExprType(), and WN_Tree_Type().

Here is the call graph for this function:

BOOL Stab_Identical_Quals ( TY_IDX  t1,
TY_IDX  t2 
) [inline]

Definition at line 512 of file stab_attr.h.

Referenced by Stab_Compare_Types().

BOOL Stab_Identical_Types ( TY_IDX  t1,
TY_IDX  t2,
BOOL  check_quals,
BOOL  check_scalars,
BOOL  ptrs_as_scalars 
)
BOOL Stab_Is_Assumed_Sized_Array ( TY_IDX  ty)

Definition at line 309 of file stab_attr.cpp.

References TY_Is_Array().

Here is the call graph for this function:

BOOL Stab_Is_Based_At_Common_Block ( const ST *  st) [inline]
BOOL Stab_Is_Based_At_Common_Or_Equivalence ( const ST *  st) [inline]

Definition at line 461 of file stab_attr.h.

References Stab_Is_Common_Block(), Stab_Is_Equivalence_Block(), and Stab_Is_Valid_Base().

Referenced by whirl2xaif::ST2F_deref_translate(), and whirl2xaif::xlate_STUse_VAR().

Here is the call graph for this function:

BOOL Stab_Is_Element_Type_Of_Array ( TY_IDX  atype,
TY_IDX  etype 
)

Definition at line 277 of file stab_attr.cpp.

References Stab_Assignment_Compatible_Types(), Stab_Is_Element_Type_Of_Array(), and TY_Is_Array().

Referenced by Stab_Is_Element_Type_Of_Array().

Here is the call graph for this function:

BOOL Stab_Is_Equivalence_Block ( const ST *  st) [inline]

Definition at line 444 of file stab_attr.h.

References TY_Is_Structured().

Referenced by xaif2whirl::ConvertToActiveType(), Stab_Is_Based_At_Common_Or_Equivalence(), whirl2xaif::xlate_MemRef(), and whirl2xaif::xlate_STDecl_VAR().

Here is the call graph for this function:

BOOL Stab_Is_Equivalenced_Struct ( TY_IDX  ty)

Definition at line 339 of file stab_attr.cpp.

BOOL Stab_Is_In_Module ( const ST *  st) [inline]

Definition at line 469 of file stab_attr.h.

References Stab_Is_Valid_Base().

Here is the call graph for this function:

BOOL Stab_Is_Module ( const ST *  st) [inline]

Definition at line 476 of file stab_attr.h.

BOOL STAB_IS_POINTER_REF_PARAM ( const ST *  st) [inline]

Definition at line 550 of file stab_attr.h.

References TY_Is_Pointer().

Here is the call graph for this function:

UINT Stab_Lock_Tmpvar ( TY_IDX  ty,
void(*)(TY_IDX, UINT)  declare_tmpvar 
)
BOOL Stab_No_Linkage ( const ST *  st) [inline]

Definition at line 486 of file stab_attr.h.

Referenced by Stab_External_Linkage().

BOOL STAB_PARAM_HAS_IMPLICIT_LENGTH ( const ST *  st) [inline]

Definition at line 536 of file stab_attr.h.

References TY_Is_Character_Reference(), TY_Is_Character_String(), and TY_Is_Chararray_Reference().

Referenced by whirl2xaif::WN2F_interface_blk(), and whirl2xaif::xlate_EntryPoint().

Here is the call graph for this function:

void Stab_Reset_Referenced_Flag ( SYMTAB_IDX  symtab)

Definition at line 62 of file stab_attr.cpp.

References SexpTags::ST.

void Stab_Unlock_All_Tmpvars ( void  )
void Stab_Unlock_Tmpvar ( UINT  idx)

Definition at line 769 of file stab_attr.cpp.

References TmpVarInfo::locked, and Next_Tmpvar_Idx.

const char* StrCat ( const char *  name1,
const char *  name2 
)

Definition at line 616 of file stab_attr.cpp.

References Get_Name_Buf_Slot().

Referenced by StrCat(), whirl2xaif::TY2F_Equivalence_FldList(), whirl2xaif::TY2F_scalar(), and whirl2xaif::TY2F_Translate_Fld_Path().

Here is the call graph for this function:

const char* StrCat ( const char *  s1,
const char *  s2,
const char *  s3 
) [inline]

Definition at line 612 of file stab_attr.h.

References StrCat().

Here is the call graph for this function:

BOOL TY_Is_Array_Of_Chars ( TY_IDX  ty) [inline]

Definition at line 386 of file stab_attr.h.

References TY_Is_Array(), and TY_Is_Integral().

Referenced by Stab_Compare_Types().

Here is the call graph for this function:

BOOL TY_Is_Array_Of_UChars ( TY_IDX  ty) [inline]

Definition at line 397 of file stab_attr.h.

References TY_Is_Array().

Referenced by whirl2xaif::WN2F_String_Argument().

Here is the call graph for this function:

BOOL TY_Is_Array_Or_Function ( TY_IDX  ty) [inline]

Definition at line 340 of file stab_attr.h.

References TY_Is_Array(), and TY_Is_Function().

Here is the call graph for this function:

BOOL TY_Is_Chararray ( TY_IDX  ty) [inline]
BOOL TY_Is_Complex ( TY_IDX  ty) [inline]

Definition at line 325 of file stab_attr.h.

BOOL TY_Is_Function ( TY_IDX  ty) [inline]

Definition at line 334 of file stab_attr.h.

Referenced by Stab_Compare_Types(), and TY_Is_Array_Or_Function().

BOOL TY_Is_Integral ( TY_IDX  ty) [inline]

Definition at line 313 of file stab_attr.h.

Referenced by TY_Is_Array_Of_Chars(), and TY_Is_Character_String().

BOOL TY_Is_Pointer_Or_Scalar ( TY_IDX  ty) [inline]

Definition at line 346 of file stab_attr.h.

References TY_Is_Pointer(), and TY_Is_Scalar().

Referenced by Stab_Compare_Types(), and TY_Is_Preg_Type().

Here is the call graph for this function:

BOOL TY_Is_Preg_Type ( TY_IDX  ty) [inline]

Definition at line 405 of file stab_attr.h.

References TY_Is_Pointer_Or_Scalar().

Here is the call graph for this function:

BOOL TY_Is_Quad ( TY_IDX  ty) [inline]

Definition at line 319 of file stab_attr.h.

BOOL TY_Is_String ( TY_IDX  ty) [inline]

Definition at line 307 of file stab_attr.h.

Referenced by Stab_Compare_Types().

BOOL TY_Is_Struct ( TY_IDX  ty) [inline]

Definition at line 288 of file stab_attr.h.

BOOL TY_Is_Union ( TY_IDX  ty) [inline]

Definition at line 294 of file stab_attr.h.

Referenced by Stab_Get_Mload_Ty().

BOOL TY_IsNonScalar ( TY_IDX  ty) [inline]

Definition at line 262 of file stab_attr.h.

Referenced by fortTkSupport::ScalarizedRef::isRefScalar(), and IsScalarRef().

BOOL TY_IsRecord ( TY_IDX  ty) [inline]

Definition at line 275 of file stab_attr.h.

Referenced by whirl2xaif::xlate_SymRef().

bool WN2F_Can_Assign_Types ( TY_IDX  ty1,
TY_IDX  ty2 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines