
Go to the source code of this file.
Classes | |
| struct | WN2F_Context |
Defines | |
| #define | EMPTY_WN2F_STATUS (WN2F_STATUS)0 |
| #define | INIT_WN2F_CONTEXT {0, NULL} |
| #define | reset_WN2F_CONTEXT(c) ((c).flags = 0U, (c).wn = NULL) |
| #define | WN2F_CONTEXT_NEW_PU 0x000000001 |
| #define | WN2F_CONTEXT_new_pu(c) ((c).flags & WN2F_CONTEXT_NEW_PU) |
| #define | set_WN2F_CONTEXT_new_pu(c) ((c).flags = (c).flags | WN2F_CONTEXT_NEW_PU) |
| #define | reset_WN2F_CONTEXT_new_pu(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_NEW_PU) |
| #define | WN2F_CONTEXT_INSERT_INDUCTION 0x000000002 |
| #define | WN2F_CONTEXT_insert_induction(c) ((c).flags & WN2F_CONTEXT_INSERT_INDUCTION) |
| #define | WN2F_CONTEXT_induction_stmt(c) (c).wn |
| #define | set_WN2F_CONTEXT_induction_step(c, stmt) |
| #define | reset_WN2F_CONTEXT_induction_step(c) |
| #define | WN2F_CONTEXT_DEREF_ADDR 0x000000004 |
| #define | WN2F_CONTEXT_deref_addr(c) ((c).flags & WN2F_CONTEXT_DEREF_ADDR) |
| #define | set_WN2F_CONTEXT_deref_addr(c) ((c).flags = (c).flags | WN2F_CONTEXT_DEREF_ADDR) |
| #define | reset_WN2F_CONTEXT_deref_addr(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_DEREF_ADDR) |
| #define | WN2F_CONTEXT_NO_NEWLINE 0x000000008 |
| #define | WN2F_CONTEXT_no_newline(c) ((c).flags & WN2F_CONTEXT_NO_NEWLINE) |
| #define | set_WN2F_CONTEXT_no_newline(c) ((c).flags = (c).flags | WN2F_CONTEXT_NO_NEWLINE) |
| #define | reset_WN2F_CONTEXT_no_newline(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_NO_NEWLINE) |
| #define | WN2F_CONTEXT_HAS_LOGICAL_ARG 0x00000010 |
| #define | WN2F_CONTEXT_has_logical_arg(c) ((c).flags & WN2F_CONTEXT_HAS_LOGICAL_ARG) |
| #define | set_WN2F_CONTEXT_has_logical_arg(c) ((c).flags = (c).flags | WN2F_CONTEXT_HAS_LOGICAL_ARG) |
| #define | reset_WN2F_CONTEXT_has_logical_arg(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_HAS_LOGICAL_ARG) |
| #define | WN2F_CONTEXT_IS_LOGICAL_ARG 0x02000000 |
| #define | WN2F_CONTEXT_is_logical_arg(c) ((c).flags & WN2F_CONTEXT_IS_LOGICAL_ARG) |
| #define | set_WN2F_CONTEXT_is_logical_arg(c) ((c).flags = (c).flags | WN2F_CONTEXT_IS_LOGICAL_ARG) |
| #define | reset_WN2F_CONTEXT_is_logical_arg(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_IS_LOGICAL_ARG) |
| #define | WN2F_CONTEXT_IS_LOGICAL_OPERATION 0x00020000 |
| #define | WN2F_CONTEXT_is_logical_operation(c) ((c).flags & WN2F_CONTEXT_IS_LOGICAL_OPERATION) |
| #define | set_WN2F_CONTEXT_is_logical_operation(c) ((c).flags = (c).flags | WN2F_CONTEXT_IS_LOGICAL_OPERATION) |
| #define | reset_WN2F_CONTEXT_is_logical_operation(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_IS_LOGICAL_OPERATION) |
| #define | WN2F_CONTEXT_NO_PARENTHESIS 0x00000020 |
| #define | WN2F_CONTEXT_no_parenthesis(c) ((c).flags & WN2F_CONTEXT_NO_PARENTHESIS) |
| #define | set_WN2F_CONTEXT_no_parenthesis(c) ((c).flags = (c).flags | WN2F_CONTEXT_NO_PARENTHESIS) |
| #define | reset_WN2F_CONTEXT_no_parenthesis(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_NO_PARENTHESIS) |
| #define | WN2F_CONTEXT_KEYWORD_IOCTRL 0x00000040 |
| #define | WN2F_CONTEXT_keyword_ioctrl(c) ((c).flags & WN2F_CONTEXT_KEYWORD_IOCTRL) |
| #define | set_WN2F_CONTEXT_keyword_ioctrl(c) ((c).flags = (c).flags | WN2F_CONTEXT_KEYWORD_IOCTRL) |
| #define | reset_WN2F_CONTEXT_keyword_ioctrl(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_KEYWORD_IOCTRL) |
| #define | WN2F_CONTEXT_IO_STMT 0x00000080 |
| #define | WN2F_CONTEXT_io_stmt(c) ((c).flags & WN2F_CONTEXT_IO_STMT) |
| #define | set_WN2F_CONTEXT_io_stmt(c) ((c).flags = (c).flags | WN2F_CONTEXT_IO_STMT) |
| #define | reset_WN2F_CONTEXT_io_stmt(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_IO_STMT) |
| #define | WN2F_CONTEXT_DEREF_IO_ITEM 0x00000100 |
| #define | WN2F_CONTEXT_deref_io_item(c) ((c).flags & WN2F_CONTEXT_DEREF_IO_ITEM) |
| #define | set_WN2F_CONTEXT_deref_io_item(c) ((c).flags = (c).flags | WN2F_CONTEXT_DEREF_IO_ITEM) |
| #define | reset_WN2F_CONTEXT_deref_io_item(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_DEREF_IO_ITEM) |
| #define | WN2F_CONTEXT_ORIGFMT_IOCTRL 0x00000200 |
| #define | WN2F_CONTEXT_origfmt_ioctrl(c) ((c).flags & WN2F_CONTEXT_ORIGFMT_IOCTRL) |
| #define | set_WN2F_CONTEXT_origfmt_ioctrl(c) ((c).flags = (c).flags | WN2F_CONTEXT_ORIGFMT_IOCTRL) |
| #define | reset_WN2F_CONTEXT_origfmt_ioctrl(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_ORIGFMT_IOCTRL) |
| #define | WN2F_CONTEXT_EMIT_STID 0x00000400 |
| #define | WN2F_CONTEXT_emit_stid(c) ((c).flags & WN2F_CONTEXT_EMIT_STID) |
| #define | set_WN2F_CONTEXT_emit_stid(c) ((c).flags = (c).flags | WN2F_CONTEXT_EMIT_STID) |
| #define | reset_WN2F_CONTEXT_emit_stid(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_EMIT_STID) |
| #define | WN2F_CONTEXT_TMP_VAR 0x00100400 |
| #define | WN2F_CONTEXT_tmp_var(c) ((c).flags & WN2F_TMP_VAR) |
| #define | set_WN2F_CONTEXT_tmp_var(c) ((c).flags = (c).flags | WN2F_CONTEXT_TMP_VAR) |
| #define | reset_WN2F_CONTEXT_tmp_var(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_TMP_VAR) |
| #define | WN2F_CONTEXT_EXPLICIT_REGION 0x00000800 |
| #define | WN2F_CONTEXT_explicit_region(c) ((c).flags & WN2F_CONTEXT_EXPLICIT_REGION) |
| #define | set_WN2F_CONTEXT_explicit_region(c) ((c).flags = (c).flags | WN2F_CONTEXT_EXPLICIT_REGION) |
| #define | reset_WN2F_CONTEXT_explicit_region(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_EXPLICIT_REGION) |
| #define | WN2F_CONTEXT_FMT_IO 0x00001000 |
| #define | WN2F_CONTEXT_fmt_io(c) ((c).flags & WN2F_CONTEXT_FMT_IO) |
| #define | set_WN2F_CONTEXT_fmt_io(c) ((c).flags = (c).flags | WN2F_CONTEXT_FMT_IO) |
| #define | reset_WN2F_CONTEXT_fmt_io(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_FMT_IO) |
| #define | WN2F_CONTEXT_CRAY_IO 0x00002000 |
| #define | WN2F_CONTEXT_cray_io(c) ((c).flags & WN2F_CONTEXT_CRAY_IO) |
| #define | set_WN2F_CONTEXT_cray_io(c) ((c).flags = (c).flags | WN2F_CONTEXT_CRAY_IO) |
| #define | reset_WN2F_CONTEXT_cray_io(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_CRAY_IO) |
| #define | WN2F_CONTEXT_HAS_NO_ARR_ELMT 0x00004000 |
| #define | WN2F_CONTEXT_has_no_arr_elmt(c) ((c).flags & WN2F_CONTEXT_HAS_NO_ARR_ELMT) |
| #define | set_WN2F_CONTEXT_has_no_arr_elmt(c) ((c).flags = (c).flags | WN2F_CONTEXT_HAS_NO_ARR_ELMT) |
| #define | reset_WN2F_CONTEXT_has_no_arr_elmt(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_HAS_NO_ARR_ELMT) |
| #define | WN2F_CONTEXT_ISSUE_IOC_UNIT_ASTERISK 0x00008000 |
| #define | WN2F_CONTEXT_issue_ioc_asterisk(c) ((c).flags & WN2F_CONTEXT_ISSUE_IOC_UNIT_ASTERISK) |
| #define | set_WN2F_CONTEXT_issue_ioc_asterisk(c) ((c).flags = (c).flags | WN2F_CONTEXT_ISSUE_IOC_UNIT_ASTERISK) |
| #define | reset_WN2F_CONTEXT_issue_ioc_asterisk(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_ISSUE_IOC_UNIT_ASTERISK) |
| #define | WN2F_CONTEXT_SUBEXP_NO_PARENTHESIS 0x00040000 |
| #define | WN2F_CONTEXT_subexp_no_parenthesis(c) ((c).flags & WN2F_CONTEXT_SUBEXP_NO_PARENTHESIS) |
| #define | set_WN2F_CONTEXT_subexp_no_parenthesis(c) ((c).flags = (c).flags | WN2F_CONTEXT_SUBEXP_NO_PARENTHESIS) |
| #define | reset_WN2F_CONTEXT_subexp_no_parenthesis(c) ((c).flags = (c).flags & ~WN2F_CONTEXT_SUBEXP_NO_PARENTHESIS) |
| #define | WN2F_expr_has_boolean_arg(opc) |
| #define | WN2F_Can_Assign_Types(t1, t2) |
Typedefs | |
| typedef mUINT32 | WN2F_STATUS |
| typedef struct WN2F_Context | WN2F_CONTEXT |
Functions | |
| void | WN2F_Stmt_Newline (TOKEN_BUFFER tokens, const char *label, SRCPOS srcpos, WN2F_CONTEXT context) |
| void | WN2F_Address_Of (TOKEN_BUFFER tokens) |
| WN2F_STATUS | WN2F_Offset_Memref (TOKEN_BUFFER tokens, WN *addr, TY_IDX addr_ty, TY_IDX object_ty, STAB_OFFSET addr_offset, WN2F_CONTEXT context) |
| WN2F_STATUS | WN2F_Offset_Symref (TOKEN_BUFFER tokens, ST *addr, TY_IDX addr_ty, TY_IDX object_ty, STAB_OFFSET addr_offset, WN2F_CONTEXT context) |
| WN_OFFSET | WN2F_Sum_Offsets (WN *addr) |
| void | WN2F_Emit_End_Stmt (TOKEN_BUFFER tokens, BOOL start) |
| void | WN2F_initialize (void) |
| void | WN2F_finalize (void) |
| WN2F_STATUS | WN2F_translate (TOKEN_BUFFER tokens, WN *wn, WN2F_CONTEXT context) |
| WN2F_STATUS | WN2F_translate_purple_main (TOKEN_BUFFER tokens, WN *pu, const char *region_name, WN2F_CONTEXT context) |
| void | WN2F_dump_context (WN2F_CONTEXT c) |
Variables | |
| char * | sgi_comment_str |
| #define EMPTY_WN2F_STATUS (WN2F_STATUS)0 |
Definition at line 117 of file wn2f.h.
Referenced by Append_Nest_Clauses(), W2F_Fini(), and W2F_Init().
Definition at line 152 of file wn2f.h.
Referenced by WN2F_array(), WN2F_arrsection(), WN2F_io_item(), WN2F_io_list(), WN2F_ios_definefile(), WN2F_lda(), WN2F_Offset_Memref(), and WN2F_String_Argument().
Definition at line 271 of file wn2f.h.
Referenced by WN2F_do_loop().
| #define reset_WN2F_CONTEXT_has_logical_arg | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_HAS_LOGICAL_ARG) |
Definition at line 175 of file wn2f.h.
Referenced by WN2F_condbr(), WN2F_do_loop(), WN2F_do_while(), WN2F_if(), WN2F_Infix_Op(), WN2F_Intr_Funcall(), WN2F_io_control(), WN2F_istore(), WN2F_parm(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_translate(), and WN2F_while_do().
| #define reset_WN2F_CONTEXT_has_no_arr_elmt | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_HAS_NO_ARR_ELMT) |
Definition at line 330 of file wn2f.h.
Referenced by WN2F_call(), WN2F_iload(), WN2F_istore(), WN2F_lda(), WN2F_ldid(), WN2F_Offset_Symref(), WN2F_pstore(), and WN2F_String_Argument().
| #define reset_WN2F_CONTEXT_induction_step | ( | c | ) |
| #define reset_WN2F_CONTEXT_is_logical_arg | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_IS_LOGICAL_ARG) |
Definition at line 188 of file wn2f.h.
Referenced by WN2F_translate().
| #define reset_WN2F_CONTEXT_is_logical_operation | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_IS_LOGICAL_OPERATION) |
Definition at line 200 of file wn2f.h.
Referenced by WN2F_binaryop(), WN2F_Funcall_Op(), and WN2F_Infix_Op().
| #define reset_WN2F_CONTEXT_issue_ioc_asterisk | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_ISSUE_IOC_UNIT_ASTERISK) |
Definition at line 345 of file wn2f.h.
Referenced by WN2F_ios_cr(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_rewrite(), and WN2F_ios_write().
| #define reset_WN2F_CONTEXT_keyword_ioctrl | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_KEYWORD_IOCTRL) |
Definition at line 229 of file wn2f.h.
Referenced by WN2F_ios_definefile().
Definition at line 125 of file wn2f.h.
Referenced by WN2F_block().
Definition at line 163 of file wn2f.h.
Referenced by WN2F_do_loop(), and WN2F_io_control().
| #define reset_WN2F_CONTEXT_no_parenthesis | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_NO_PARENTHESIS) |
Definition at line 214 of file wn2f.h.
Referenced by WN2F_Binary_Substr_Op(), WN2F_call(), WN2F_condbr(), WN2F_const(), WN2F_Denormalize_Array_Idx(), WN2F_do_loop(), WN2F_Expr_Plus_Literal(), WN2F_if(), WN2F_Infix_Op(), WN2F_intconst(), WN2F_Intr_Infix(), WN2F_Normalize_Idx_To_Onedim(), WN2F_OLD_Den_Arr_Idx(), WN2F_Substring(), and WN2F_while_do().
| #define reset_WN2F_CONTEXT_origfmt_ioctrl | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_ORIGFMT_IOCTRL) |
Definition at line 260 of file wn2f.h.
Referenced by WN2F_Append_IO_CtrlList(), and WN2F_ios_inqlength().
| #define reset_WN2F_CONTEXT_subexp_no_parenthesis | ( | c | ) | ((c).flags = (c).flags & ~WN2F_CONTEXT_SUBEXP_NO_PARENTHESIS) |
Definition at line 353 of file wn2f.h.
Referenced by WN2F_Infix_Op(), and WN2F_paren().
Definition at line 150 of file wn2f.h.
Referenced by WN2F_Append_Value_Reference(), WN2F_io_control(), WN2F_io_format(), WN2F_io_item(), WN2F_io_list(), WN2F_io_unit(), WN2F_ios_decode(), WN2F_ios_definefile(), WN2F_ios_encode(), WN2F_Offset_Memref(), WN2F_prefetch(), WN2F_Prepend_Value_Reference(), and WN2F_String_Argument().
Definition at line 247 of file wn2f.h.
Referenced by WN2F_ios_read().
Definition at line 269 of file wn2f.h.
Referenced by WN2F_do_loop().
Definition at line 307 of file wn2f.h.
Referenced by WN2F_ios_cr().
| #define set_WN2F_CONTEXT_has_logical_arg | ( | c | ) | ((c).flags = (c).flags | WN2F_CONTEXT_HAS_LOGICAL_ARG) |
Definition at line 173 of file wn2f.h.
Referenced by WN2F_condbr(), WN2F_do_loop(), WN2F_do_while(), WN2F_eval(), WN2F_if(), WN2F_Infix_Op(), WN2F_Intr_Funcall(), WN2F_io_control(), WN2F_io_list(), WN2F_istore(), WN2F_parm(), WN2F_pstid(), WN2F_pstore(), WN2F_stid(), WN2F_translate(), and WN2F_while_do().
| #define set_WN2F_CONTEXT_has_no_arr_elmt | ( | c | ) | ((c).flags = (c).flags | WN2F_CONTEXT_HAS_NO_ARR_ELMT) |
Definition at line 328 of file wn2f.h.
Referenced by WN2F_call(), WN2F_iload(), WN2F_istore(), WN2F_lda(), WN2F_ldid(), and WN2F_pstore().
| #define set_WN2F_CONTEXT_induction_step | ( | c, | ||
| stmt | ||||
| ) |
Definition at line 186 of file wn2f.h.
Referenced by WN2F_translate().
| #define set_WN2F_CONTEXT_issue_ioc_asterisk | ( | c | ) | ((c).flags = (c).flags | WN2F_CONTEXT_ISSUE_IOC_UNIT_ASTERISK) |
Definition at line 343 of file wn2f.h.
Referenced by WN2F_ios_cr(), WN2F_ios_print(), WN2F_ios_read(), WN2F_ios_rewrite(), and WN2F_ios_write().
Definition at line 227 of file wn2f.h.
Referenced by WN2F_Append_IO_CtrlList().
Definition at line 123 of file wn2f.h.
Referenced by WN2F_func_entry().
Definition at line 161 of file wn2f.h.
Referenced by WN2F_do_loop(), and WN2F_io().
Definition at line 212 of file wn2f.h.
Referenced by WN2F_Array_Slots(), WN2F_Arrsection_Slots(), WN2F_ashr(), WN2F_bnor(), WN2F_call(), WN2F_complex(), WN2F_condbr(), WN2F_do_loop(), WN2F_eq(), WN2F_eval(), WN2F_Funcall_Op(), WN2F_if(), WN2F_Intr_Funcall(), WN2F_lda(), WN2F_lshr(), WN2F_Normalize_Idx_To_Onedim(), WN2F_rsqrt(), WN2F_stid(), WN2F_Substring(), and WN2F_while_do().
| #define set_WN2F_CONTEXT_subexp_no_parenthesis | ( | c | ) | ((c).flags = (c).flags | WN2F_CONTEXT_SUBEXP_NO_PARENTHESIS) |
Definition at line 351 of file wn2f.h.
Referenced by WN2F_Infix_Op(), and WN2F_paren().
| #define WN2F_Can_Assign_Types | ( | t1, | ||
| t2 | ||||
| ) |
((TY_Is_Array(t1) && TY_is_character(t1) && \ TY_Is_Array(t2) && TY_is_character(t2)) || \ Stab_Identical_Types(t1, t2, \ FALSE, /*check_quals*/ \ FALSE, /*check_scalars*/ \ TRUE))
Definition at line 368 of file wn2f.h.
Referenced by WN2F_Function_Call_Lhs(), WN2F_Offset_Memref(), WN2F_Offset_Symref(), and WN2F_return().
Definition at line 317 of file wn2f.h.
Referenced by WN2F_dump_context(), WN2F_io_format(), WN2F_io_list(), and WN2F_io_unit().
Definition at line 149 of file wn2f.h.
Referenced by WN2F_array(), WN2F_arrsection(), WN2F_dump_context(), WN2F_lda(), WN2F_ldid(), WN2F_Offset_Memref(), and WN2F_Offset_Symref().
Definition at line 245 of file wn2f.h.
Referenced by WN2F_dump_context(), and WN2F_io_item().
Definition at line 267 of file wn2f.h.
Referenced by WN2F_dump_context(), WN2F_pstid(), and WN2F_stid().
Definition at line 293 of file wn2f.h.
Referenced by WN2F_dump_context().
Definition at line 305 of file wn2f.h.
Referenced by WN2F_dump_context(), and WN2F_io_format().
Definition at line 171 of file wn2f.h.
Referenced by WN2F_dump_context(), and WN2F_translate().
Definition at line 326 of file wn2f.h.
Referenced by WN2F_arrsection(), WN2F_Offset_Symref(), and WN2F_String_Argument().
Definition at line 135 of file wn2f.h.
Referenced by WN2F_block().
Definition at line 133 of file wn2f.h.
Referenced by WN2F_block(), and WN2F_dump_context().
Definition at line 235 of file wn2f.h.
Referenced by WN2F_call(), WN2F_dump_context(), WN2F_implied_do(), and WN2F_intrinsic_call().
Definition at line 184 of file wn2f.h.
Referenced by WN2F_const(), WN2F_intconst(), and WN2F_parm().
Definition at line 341 of file wn2f.h.
Referenced by WN2F_io_unit().
Definition at line 225 of file wn2f.h.
Referenced by WN2F_dump_context(), and WN2F_emit_ctrl().
Definition at line 122 of file wn2f.h.
Referenced by WN2F_block(), and WN2F_dump_context().
Definition at line 160 of file wn2f.h.
Referenced by WN2F_do_loop(), WN2F_dump_context(), WN2F_implied_do(), and WN2F_Stmt_Newline().
Definition at line 210 of file wn2f.h.
Referenced by WN2F_Binary_Substr_Op(), WN2F_binaryop(), WN2F_const(), WN2F_Denormalize_Array_Idx(), WN2F_dump_context(), WN2F_Expr_Plus_Literal(), WN2F_Infix_Op(), WN2F_intconst(), WN2F_Intr_Infix(), WN2F_OLD_Den_Arr_Idx(), WN2F_stid(), and WN2F_translate().
Definition at line 256 of file wn2f.h.
Referenced by WN2F_dump_context(), and WN2F_io_format().
Definition at line 349 of file wn2f.h.
Referenced by WN2F_Infix_Op().
| #define WN2F_expr_has_boolean_arg | ( | opc | ) |
((opc) == OPC_BLNOT || (opc) == OPC_BLAND || (opc) == OPC_BLIOR || \ (opc) == OPC_I4LNOT || (opc) == OPC_I4LAND || (opc) == OPC_I4LIOR)
Definition at line 362 of file wn2f.h.
Referenced by WN2F_translate().
| typedef struct WN2F_Context WN2F_CONTEXT |
| typedef mUINT32 WN2F_STATUS |
| void WN2F_Address_Of | ( | TOKEN_BUFFER | tokens | ) |
Definition at line 505 of file wn2f.cxx.
References Append_Token_Special(), Prepend_Token_Special(), and Prepend_Token_String().
Referenced by INITVKIND_symoff().

| void WN2F_dump_context | ( | WN2F_CONTEXT | c | ) |
Definition at line 1209 of file wn2f.cxx.
References WN2F_CONTEXT_cray_io, WN2F_CONTEXT_deref_addr, WN2F_CONTEXT_deref_io_item, WN2F_CONTEXT_emit_stid, WN2F_CONTEXT_explicit_region, WN2F_CONTEXT_fmt_io, WN2F_CONTEXT_has_logical_arg, WN2F_CONTEXT_insert_induction, WN2F_CONTEXT_io_stmt, WN2F_CONTEXT_keyword_ioctrl, WN2F_CONTEXT_new_pu, WN2F_CONTEXT_no_newline, WN2F_CONTEXT_no_parenthesis, and WN2F_CONTEXT_origfmt_ioctrl.
| void WN2F_Emit_End_Stmt | ( | TOKEN_BUFFER | tokens, | |
| BOOL | start | |||
| ) |
Definition at line 1419 of file wn2f.cxx.
References Append_F77_Indented_Newline(), Append_Token_Special(), Append_Token_String(), Is_Empty_Token_Buffer(), NULL, PU_Dangling_Contains, PU_Host_Func_Id, PU_Need_End_Contains, W2F_Prompf_Emission, and WN2F_End_Prompf_Transformed_Func().
Referenced by W2F_Outfile_Fini(), and W2F_Outfile_Translate_Pu().

| void WN2F_finalize | ( | void | ) |
Definition at line 1194 of file wn2f.cxx.
References Stab_Free_Tmpvars(), WN2F_Expr_finalize(), WN2F_Io_finalize(), WN2F_Load_Store_finalize(), and WN2F_Stmt_finalize().
Referenced by W2F_Fini().

| void WN2F_initialize | ( | void | ) |
Definition at line 1171 of file wn2f.cxx.
References WN2F_Expr_initialize(), WN2F_Handler, WN2F_Io_initialize(), WN2F_Load_Store_initialize(), WN2F_Stmt_initialize(), and WN2F_unsupported().
Referenced by W2F_Init().

| WN2F_STATUS WN2F_Offset_Memref | ( | TOKEN_BUFFER | tokens, | |
| WN * | addr, | |||
| TY_IDX | addr_ty, | |||
| TY_IDX | object_ty, | |||
| STAB_OFFSET | addr_offset, | |||
| WN2F_CONTEXT | context | |||
| ) |
Definition at line 730 of file wn2f.cxx.
References LOC_INFO::_nested_addr, Append_Token_Special(), Append_Token_String(), Fld_Path_Info::arr_wn, ASSERT_DBG_WARN, ASSERT_WARN, DIAG_W2F_INCOMPATIBLE_TYS, DIAG_W2F_NONEXISTENT_FLD_PATH, DIAG_W2F_UNEXPEXTED_OFFSET, FALSE, Fld_Path_Info::fld, FLD_name(), FLD_type(), fld_type_z, Fld_Path_Info::next, NULL, Number_as_String(), OPR_ARRAYEXP, OPR_LDA, OPR_LDID, reset_WN2F_CONTEXT_deref_addr, set_WN2F_CONTEXT_deref_addr, ST_type(), Stab_Is_Common_Block(), Stab_Is_Equivalence_Block(), TY2F_Fld_Separator(), TY2F_Free_Fld_Path(), TY2F_Get_Fld_Path(), TY2F_Translate_Fld_Path(), TY_AR_etype(), TY_Is_Array(), TY_Is_Character_String(), TY_is_f90_deferred_shape(), TY_kind(), TY_pointed(), TY_size(), WN2F_Can_Assign_Types, WN2F_CONTEXT_deref_addr, LOC_INFO::WN2F_Find_And_Mark_Nested_Address(), WN2F_Is_Address_Preg(), WN2F_Offset_Symref(), WN2F_Sum_Offsets(), WN2F_translate(), WN_kid0(), WN_lda_offset(), WN_opc_operator, WN_operator(), and WN_st().
Referenced by W2F_Translate_Istore_Lhs(), WN2F_call(), WN2F_Function_Call_Lhs(), WN2F_iload(), WN2F_intrinsic_call(), WN2F_istore(), WN2F_mload(), WN2F_mstore(), WN2F_pstore(), WN2F_String_Argument(), and WN2F_Translate_Arithmetic_Operand().

| WN2F_STATUS WN2F_Offset_Symref | ( | TOKEN_BUFFER | tokens, | |
| ST * | addr, | |||
| TY_IDX | addr_ty, | |||
| TY_IDX | object_ty, | |||
| STAB_OFFSET | addr_offset, | |||
| WN2F_CONTEXT | context | |||
| ) |
Definition at line 513 of file wn2f.cxx.
References Append_Token_Special(), Append_Token_String(), ASSERT_DBG_WARN, ASSERT_WARN, Clear_BE_ST_w2fc_referenced(), DIAG_W2F_INCOMPATIBLE_TYS, DIAG_W2F_NONEXISTENT_FLD_PATH, DIAG_W2F_UNEXPEXTED_OFFSET, FALSE, KIND_FUNCTION, KIND_STRUCT, NULL, PUinfo_current_func, PUINFO_RETURN_PARAM, PUINFO_RETURN_TO_PARAM, reset_WN2F_CONTEXT_has_no_arr_elmt, SCLASS_FORMAL, Set_BE_ST_w2fc_referenced(), ST_base(), ST_full(), ST_is_return_var(), ST_is_split_common(), ST_ofst(), ST_sclass(), ST_type(), Stab_Full_Split_Offset(), Stab_Is_Based_At_Common_Or_Equivalence(), Stab_Is_Equivalence_Block(), Stab_Pointer_To(), TRUE, TY2F_Fld_Separator(), TY2F_Free_Fld_Path(), TY2F_Get_Fld_Path(), TY2F_Translate_ArrayElt(), TY2F_Translate_Fld_Path(), TY_AR_etype(), TY_Is_Array(), TY_Is_Character_String(), TY_is_f90_pointer(), TY_Is_Pointer(), TY_kind(), TY_pointed(), WN2F_Can_Assign_Types, WN2F_CONTEXT_deref_addr, and WN2F_CONTEXT_has_no_arr_elmt.
Referenced by Append_A_Clause_Symbol(), Append_Nest_Clauses(), INIT2F_ptr_or_scalar(), INIT2F_Translate_Array_Ref(), INIT2F_Translate_Char_Ref(), INITVKIND_symoff(), ST2F_use_var(), W2F_Translate_Stid_Lhs(), WN2F_Function_Call_Lhs(), WN2F_implied_do(), WN2F_lda(), WN2F_ldid(), WN2F_Offset_Memref(), WN2F_pstid(), WN2F_return(), and WN2F_stid().

| void WN2F_Stmt_Newline | ( | TOKEN_BUFFER | tokens, | |
| const char * | label, | |||
| SRCPOS | srcpos, | |||
| WN2F_CONTEXT | context | |||
| ) |
Definition at line 278 of file wn2f.cxx.
References Append_F77_Indented_Newline(), Append_Srcpos_Directive(), Append_Srcpos_Map(), NULL, W2F_Emit_Linedirs, W2F_File, W2F_LOC_FILE, and WN2F_CONTEXT_no_newline.
Referenced by WN2F_agoto(), WN2F_call(), WN2F_compgoto(), WN2F_condbr(), WN2F_dealloca(), WN2F_do_loop(), WN2F_do_while(), WN2F_func_entry(), WN2F_Function_Call_Lhs(), WN2F_goto(), WN2F_if(), WN2F_intrinsic_call(), WN2F_io(), WN2F_io_control(), WN2F_istore(), WN2F_istorex(), WN2F_label(), WN2F_mstore(), WN2F_pstid(), WN2F_pstore(), WN2F_return(), WN2F_return_val(), WN2F_stid(), WN2F_translate_purple_main(), WN2F_unsupported(), WN2F_where(), and WN2F_while_do().

Definition at line 476 of file wn2f.cxx.
References OPR_ADD, OPR_ARRAY, OPR_ARRAYEXP, OPR_ARRSECTION, OPR_INTCONST, WN2F_Sum_Offsets(), WN_const_val(), WN_kid0(), WN_kid1(), and WN_operator().
Referenced by WN2F_Offset_Memref(), WN2F_String_Argument(), and WN2F_Sum_Offsets().

| WN2F_STATUS WN2F_translate | ( | TOKEN_BUFFER | tokens, | |
| WN * | wn, | |||
| WN2F_CONTEXT | context | |||
| ) |
Definition at line 1232 of file wn2f.cxx.
References OPCODE_is_boolean(), reset_WN2F_CONTEXT_has_logical_arg, reset_WN2F_CONTEXT_is_logical_arg, ret, set_WN2F_CONTEXT_has_logical_arg, set_WN2F_CONTEXT_is_logical_arg, WN2F_CONTEXT_has_logical_arg, WN2F_CONTEXT_no_parenthesis, WN2F_expr_has_boolean_arg, WN2F_Handler, WN_opc_operator, and WN_opcode().
Referenced by Append_Distribution(), W2F_Outfile_Translate_Pu(), W2F_Translate_Wn(), W2F_Translate_Wn_Str(), WN2F_agoto(), WN2F_alloca(), WN2F_Append_Value_Reference(), WN2F_ar_construct(), WN2F_array(), WN2F_arrayexp(), WN2F_arrsection(), WN2F_Arrsection_Slots(), WN2F_block(), WN2F_call(), WN2F_comma(), WN2F_compgoto(), WN2F_complex(), WN2F_condbr(), WN2F_cvt(), WN2F_cvtl(), WN2F_dealloca(), WN2F_Denormalize_Array_Idx(), WN2F_do_loop(), WN2F_do_while(), WN2F_eq(), WN2F_eval(), WN2F_Expr_Plus_Literal(), WN2F_func_entry(), WN2F_if(), WN2F_iload(), WN2F_imagpart(), WN2F_implied_do(), WN2F_intrinsic_op(), WN2F_io_control(), WN2F_io_format(), WN2F_io_list(), WN2F_io_unit(), WN2F_ios_decode(), WN2F_ios_definefile(), WN2F_ios_encode(), WN2F_ios_inqlength(), WN2F_istore(), WN2F_mstore(), WN2F_ne(), WN2F_noio_implied_do(), WN2F_Normalize_Idx_To_Onedim(), WN2F_nullify_stmt(), WN2F_Offset_Memref(), WN2F_OLD_Den_Arr_Idx(), WN2F_paren(), WN2F_parm(), WN2F_prefetch(), WN2F_Prepend_Value_Reference(), WN2F_pstid(), WN2F_pstore(), WN2F_realpart(), WN2F_return(), WN2F_return_val(), WN2F_select(), WN2F_src_triplet(), WN2F_stid(), WN2F_strctfld(), WN2F_String_Argument(), WN2F_Substring(), WN2F_switch(), WN2F_tas(), WN2F_tempvar_rhs(), WN2F_Translate_Arithmetic_Operand(), WN2F_Translate_DoLoop_Bound(), WN2F_triplet(), WN2F_where(), and WN2F_while_do().

| WN2F_STATUS WN2F_translate_purple_main | ( | TOKEN_BUFFER | tokens, | |
| WN * | pu, | |||
| const char * | region_name, | |||
| WN2F_CONTEXT | context | |||
| ) |
Definition at line 1277 of file wn2f.cxx.
References Append_And_Reclaim_Token_List(), Append_F77_Indented_Newline(), Append_Token_Special(), Append_Token_String(), ASSERT_DBG_FATAL, DIAG_W2F_UNEXPECTED_OPC, Unparse_Target::Func_Return_Type(), KIND_VOID, New_Token_Buffer(), NULL, OPC_FUNC_ENTRY, ST2F_decl_translate(), ST2F_FIRST_PARAM_IDX, ST_type(), Stab_Mtype_To_Ty(), STAB_PARAM_HAS_IMPLICIT_LENGTH(), TY2F_translate(), TY_Is_Pointer(), TY_kind(), TY_mtype(), Use_Purple_Array_Bnds_Placeholder, W2CF_Symtab_Nameof_St(), W2X_Unparse_Target, WHIRL2F_Append_Comment(), WN2F_Append_Purple_Funcinfo(), WN2F_Stmt_Newline(), WN_entry_name, WN_formal, WN_Get_Linenum(), WN_num_formals, WN_opcode(), and WN_st().
Referenced by W2F_Translate_Purple_Main().

| char* sgi_comment_str |
Definition at line 87 of file wn2f.cxx.
Referenced by WN2F_Begin_Prompf_Transformed_Func(), WN2F_End_Prompf_Construct(), WN2F_End_Prompf_Transformed_Func(), WN2F_Prompf_Construct_End(), WN2F_Prompf_Construct_Start(), and WN2F_Start_Prompf_Construct().
1.7.1