Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
Functions | |
void | ST2C_initialize (CONTEXT context) |
void | ST2C_finalize (void) |
void | ST2C_decl_translate (TOKEN_BUFFER tokens, const ST *st, CONTEXT context) |
void | ST2C_weakext_translate (TOKEN_BUFFER tokens, const ST *st, CONTEXT context) |
void | ST2C_use_translate (TOKEN_BUFFER tokens, const ST *st, CONTEXT context) |
void | ST2C_Use_Preg (TOKEN_BUFFER tokens, TY_IDX preg_ty, PREG_IDX preg_idx, CONTEXT context) |
void | ST2C_func_header (TOKEN_BUFFER tokens, const ST *st, ST **params, CONTEXT context) |
void | ST2C_Declare_Tempvar (TY_IDX ty, UINT idx) |
void | ST2C_New_Common_Block (const ST *st) |
void | ST2C_Define_Common_Blocks (TOKEN_BUFFER tokens, CONTEXT context) |
void ST2C_decl_translate | ( | TOKEN_BUFFER | tokens, |
const ST * | st, | ||
CONTEXT | context | ||
) |
Definition at line 756 of file st2c.cxx.
References ST2C_Decl_Handle, and ST_sym_class().
Referenced by ST2C_func_header(), ST2C_weakext_translate(), WN2C_Append_Symtab_Consts(), WN2C_Append_Symtab_Vars(), WN2C_Declare_Return_Parameter(), and WN2C_translate_purple_main().
void ST2C_Declare_Tempvar | ( | TY_IDX | ty, |
UINT | idx | ||
) |
Definition at line 926 of file st2c.cxx.
References Append_And_Reclaim_Token_List(), Append_Indented_Newline(), Append_Token_Special(), Append_Token_String(), CONTEXT_reset, CONTEXT_set_unqualified_ty2c, Current_Indentation(), New_Token_Buffer(), PUinfo_local_decls, PUinfo_local_decls_indent, Set_Current_Indentation(), TY2C_translate(), and W2CF_Symtab_Nameof_Tempvar().
Referenced by WN2C_Append_Assignment(), WN2C_complex(), WN2C_const(), WN2C_Function_Call_Lhs(), WN2C_lda(), WN2C_ldid(), WN2C_mstore(), and WN2C_rcomma().
void ST2C_Define_Common_Blocks | ( | TOKEN_BUFFER | tokens, |
CONTEXT | context | ||
) |
Definition at line 977 of file st2c.cxx.
References Append_Indented_Newline(), COMMON_BLOCK_HASH_TABLE_SIZE, COMMON_BLOCK_next, NULL, and ST2C_Define_A_Common_Block().
Referenced by W2C_Outfile_Fini().
void ST2C_finalize | ( | void | ) |
Definition at line 719 of file st2c.cxx.
References COMMON_BLOCK_HASH_TABLE_SIZE, COMMON_BLOCK_name, COMMON_BLOCK_next, FREE, NULL, ST2C_Ty2c_List_Blocks, and TY2C_LIST_BLOCK_next.
Referenced by W2C_Fini().
void ST2C_func_header | ( | TOKEN_BUFFER | tokens, |
const ST * | st, | ||
ST ** | params, | ||
CONTEXT | context | ||
) |
Definition at line 793 of file st2c.cxx.
References Append_And_Reclaim_Token_List(), Append_Indented_Newline(), Append_Token_Special(), Append_Token_String(), Compile_Upc, CONTEXT_set_incomplete_ty2c, Decrement_Indentation(), FALSE, Unparse_Target::Func_Return_Type(), Increment_Indentation(), Is_True, New_Token_Buffer(), NULL, Prepend_Token_String(), PU_is_inline_function(), PU_is_mainpu(), Pu_Table, PUINFO_RETURN_TO_PARAM, SCLASS_EXTERN, SCLASS_FSTATIC, SCLASS_TEXT, Set_ST_type(), ST2C_decl_translate(), ST_pu(), ST_pu_type(), ST_sclass(), ST_type(), TY2C_translate(), TY_has_prototype(), TY_IDX_ZERO, TY_Is_Function(), TY_is_varargs(), TY_parms(), TYLIST_next(), Tylist_Table, W2CF_Symtab_Nameof_St(), and W2X_Unparse_Target.
Referenced by WN2C_func_entry().
void ST2C_initialize | ( | CONTEXT | context | ) |
Definition at line 712 of file st2c.cxx.
Referenced by W2C_Init().
void ST2C_New_Common_Block | ( | const ST * | st | ) |
Definition at line 951 of file st2c.cxx.
References CURRENT_SYMTAB, Get_Hash_Value_For_Name(), Is_True, name, Set_TY_is_translated_to_c(), ST2C_Get_Common_Block(), ST2C_Get_Common_Ty2c_List(), ST_name(), ST_type(), and Stab_Is_Common_Block().
Referenced by WN2C_block().
void ST2C_Use_Preg | ( | TOKEN_BUFFER | tokens, |
TY_IDX | preg_ty, | ||
PREG_IDX | preg_idx, | ||
CONTEXT | context | ||
) |
Definition at line 902 of file st2c.cxx.
References Append_Token_String(), PUinfo_Is_Preg_Declared(), PUinfo_Preg_Type(), PUinfo_Set_Preg_Declared(), ST2C_Define_Preg(), and W2CF_Symtab_Nameof_Preg().
Referenced by Append_A_Clause_Symbol(), Append_Implicit_Locals(), Append_Nest_Clauses(), WN2C_Append_Preg(), WN2C_Function_Call_Lhs(), WN2C_Function_Return_Value(), WN2C_Load_Return_Reg(), and WN2C_Store_Return_Reg().
void ST2C_use_translate | ( | TOKEN_BUFFER | tokens, |
const ST * | st, | ||
CONTEXT | context | ||
) |
Definition at line 786 of file st2c.cxx.
References ST2C_Use_Handle, and ST_sym_class().
Referenced by INITV2C_symoff(), ST2C_weakext_translate(), WN2C_call(), WN2C_Callsite_Directives(), WN2C_func_entry(), WN2C_lvalue_st(), and WN2C_process_pragma().
void ST2C_weakext_translate | ( | TOKEN_BUFFER | tokens, |
const ST * | st, | ||
CONTEXT | context | ||
) |
Definition at line 763 of file st2c.cxx.
References Append_Indented_Newline(), Append_Token_Special(), Append_Token_String(), CLASS_BLOCK, Has_Base_Block(), Is_True, ST2C_decl_translate(), ST2C_use_translate(), ST_base(), ST_is_weak_symbol(), ST_strong(), and ST_sym_class().
Referenced by WN2C_Append_Symtab_Vars().