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

Go to the source code of this file.

Classes

struct  CallSite
struct  ReturnSite
struct  RETURN_PREG

Defines

#define CALLSITE_call(ci)   (ci)->call_wn
#define CALLSITE_return_ty(ci)   (ci)->return_ty
#define CALLSITE_store1(ci)   (ci)->store1
#define CALLSITE_store2(ci)   (ci)->store2
#define CALLSITE_return_var(ci)   (ci)->return_var
#define CALLSITE_var_offset(ci)   (ci)->var_offset
#define CALLSITE_in_regs(ci)   (ci)->in_regs
#define CALLSITE_next(ci)   (ci)->next
#define RETURNSITE_return(ci)   (ci)->return_wn
#define RETURNSITE_store1(ci)   (ci)->store1
#define RETURNSITE_store2(ci)   (ci)->store2
#define RETURNSITE_return_var(ci)   (ci)->return_var
#define RETURNSITE_var_offset(ci)   (ci)->var_offset
#define RETURNSITE_next(ci)   (ci)->next
#define RETURN_PREG_num_pregs(rp)   (rp)->num_pregs
#define RETURN_PREG_mtype(rp, i)   (rp)->mtype[(i)]
#define RETURN_PREG_offset(rp, i)   (rp)->offset[(i)]
#define PUINFO_FUNC_ST_IDX   WN_st_idx(PUinfo_current_func)
#define PUINFO_FUNC_ST   WN_st(PUinfo_current_func)
#define PUINFO_FUNC_TY   ST_pu_type(PUINFO_FUNC_ST)
#define PUINFO_FUNC_NAME   W2CF_Symtab_Nameof_St(PUINFO_FUNC_ST)
#define PUINFO_RETURN_TY   W2X_Unparse_Target->Func_Return_Type(PUINFO_FUNC_TY)
#define PUINFO_RETURN_PARAM   WN_st(WN_formal(PUinfo_current_func, 0))
#define PUINFO_RETURN_TO_PARAM   W2X_Unparse_Target->Func_Return_To_Param(PUINFO_FUNC_TY)
#define PUINFO_RETURN_CHARACTER   W2X_Unparse_Target->Func_Return_Character(PUINFO_FUNC_TY)

Typedefs

typedef struct CallSite CALLSITE
typedef struct ReturnSite RETURNSITE
typedef struct RETURN_PREG RETURN_PREG

Functions

void PUinfo_initialize (void)
void PUinfo_finalize (void)
void PUinfo_init_pu (const WN *wn, WN *body_part_of_interest)
void PUinfo_exit_pu (void)
CALLSITEPUinfo_Get_CallSites (void)
RETURNSITEPUinfo_Get_ReturnSites (void)
TY_IDX PUinfo_Preg_Type (TY_IDX preg_ty, INT16 preg_num)
BOOL PUinfo_Is_Preg_Declared (TY_IDX preg_ty, INT16 preg_num)
void PUinfo_Set_Preg_Declared (TY_IDX preg_ty, INT16 preg_num)
RETURN_PREG PUinfo_Get_ReturnPreg (TY_IDX return_ty)

Variables

const WNPUinfo_current_func
const RETURN_PREGPUinfo_return_preg
TOKEN_BUFFER PUinfo_local_decls
TOKEN_BUFFER PUinfo_pragmas
UINT PUinfo_local_decls_indent

Define Documentation

#define CALLSITE_call (   ci)    (ci)->call_wn
#define CALLSITE_in_regs (   ci)    (ci)->in_regs
#define CALLSITE_return_ty (   ci)    (ci)->return_ty

Definition at line 183 of file PUinfo.h.

Referenced by New_CallSite().

#define CALLSITE_return_var (   ci)    (ci)->return_var

Definition at line 186 of file PUinfo.h.

Referenced by New_CallSite(), WN2C_Function_Call_Lhs(), and WN2F_Function_Call_Lhs().

#define CALLSITE_store2 (   ci)    (ci)->store2

Definition at line 185 of file PUinfo.h.

Referenced by Accumulate_Expr_PUinfo(), New_CallSite(), WN2C_Skip_Stmt(), and WN2F_Skip_Stmt().

#define CALLSITE_var_offset (   ci)    (ci)->var_offset

Definition at line 187 of file PUinfo.h.

Referenced by New_CallSite(), WN2C_Function_Call_Lhs(), and WN2F_Function_Call_Lhs().

Definition at line 241 of file PUinfo.h.

Referenced by ST2F_use_var(), and WN2F_End_Routine_Strings().

Definition at line 238 of file PUinfo.h.

Referenced by WN2C_Append_Purple_Funcinfo().

Definition at line 240 of file PUinfo.h.

#define PUINFO_RETURN_CHARACTER   W2X_Unparse_Target->Func_Return_Character(PUINFO_FUNC_TY)

Definition at line 246 of file PUinfo.h.

#define RETURNSITE_next (   ci)    (ci)->next

Definition at line 210 of file PUinfo.h.

Referenced by New_ReturnSite(), PUinfo_exit_pu(), WN2C_return(), and WN2F_return().

#define RETURNSITE_return (   ci)    (ci)->return_wn

Definition at line 205 of file PUinfo.h.

Referenced by New_ReturnSite(), WN2C_return(), and WN2F_return().

#define RETURNSITE_return_var (   ci)    (ci)->return_var

Definition at line 208 of file PUinfo.h.

Referenced by New_ReturnSite(), WN2C_Function_Return_Value(), and WN2F_return().

#define RETURNSITE_store1 (   ci)    (ci)->store1
#define RETURNSITE_store2 (   ci)    (ci)->store2

Definition at line 207 of file PUinfo.h.

Referenced by New_ReturnSite(), WN2C_Skip_Stmt(), and WN2F_Skip_Stmt().

#define RETURNSITE_var_offset (   ci)    (ci)->var_offset

Definition at line 209 of file PUinfo.h.

Referenced by New_ReturnSite(), WN2C_Function_Return_Value(), and WN2F_return().


Typedef Documentation

typedef struct CallSite CALLSITE

Definition at line 170 of file PUinfo.h.

typedef struct RETURN_PREG RETURN_PREG
typedef struct ReturnSite RETURNSITE

Definition at line 195 of file PUinfo.h.


Function Documentation

void PUinfo_exit_pu ( void  )

Definition at line 1197 of file PUinfo.cxx.

References CallSite_Free, CALLSITE_next, Free_Preg_Info, NULL, PREG_INFO_HASH_TABLE_SIZE, PREG_INFO_next, Reclaim_Token_Buffer(), ReturnSite_Free, RETURNSITE_next, and W2CF_Symtab_Pop().

Referenced by W2C_Pop_PU(), and W2F_Pop_PU().

Here is the call graph for this function:

void PUinfo_finalize ( void  )

Definition at line 1118 of file PUinfo.cxx.

References CallSite_Free, CALLSITE_next, FREE, NULL, and ReturnSite_Free.

Referenced by W2C_Fini(), and W2F_Fini().

Definition at line 1328 of file PUinfo.cxx.

References CallSite_First.

Referenced by Accumulate_Expr_PUinfo(), WN2C_call(), WN2F_call(), and WN2F_intrinsic_call().

Definition at line 1335 of file PUinfo.cxx.

References ReturnSite_First.

Referenced by WN2C_func_entry(), and WN2F_Enter_PU_Block().

void PUinfo_initialize ( void  )

Definition at line 1107 of file PUinfo.cxx.

References Is_True, and NULL.

Referenced by W2C_Init(), and W2F_Init().

BOOL PUinfo_Is_Preg_Declared ( TY_IDX  preg_ty,
INT16  preg_num 
)

Definition at line 1295 of file PUinfo.cxx.

References Accumulate_Preg_Info(), Get_Preg_Info(), Mtype_to_Ukind(), NULL, PREG_INFO_decl, TRUE, and TY_mtype().

Referenced by ST2C_Use_Preg(), and ST2F_Use_Preg().

Here is the call graph for this function:

void PUinfo_Set_Preg_Declared ( TY_IDX  preg_ty,
INT16  preg_num 
)

Definition at line 1313 of file PUinfo.cxx.

References Accumulate_Preg_Info(), Get_Preg_Info(), Mtype_to_Ukind(), NULL, PREG_INFO_decl, TRUE, and TY_mtype().

Referenced by ST2C_Use_Preg(), and ST2F_Use_Preg().

Here is the call graph for this function:


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines