Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
Go to the source code of this file.
#define CONTEXT_ARRAY_BASETYPE 0x000000020 /* Context suggests array type */ |
Definition at line 145 of file whirl2c_common.h.
#define CONTEXT_array_basetype | ( | c | ) | ((c).flags & CONTEXT_ARRAY_BASETYPE) |
Definition at line 182 of file whirl2c_common.h.
Referenced by WN2C_array().
#define CONTEXT_given_base_ty | ( | c | ) | (c).given_ty |
Definition at line 125 of file whirl2c_common.h.
Referenced by WN2C_array().
#define CONTEXT_given_lvalue_ty | ( | c | ) | (c).given_ty |
Definition at line 130 of file whirl2c_common.h.
Referenced by WN2C_address_add(), and WN2C_parm().
#define CONTEXT_INCOMPLETE_TY2C 0x000000008 /* Emit incomplete C type */ |
Definition at line 143 of file whirl2c_common.h.
#define CONTEXT_incomplete_ty2c | ( | c | ) | ((c).flags & CONTEXT_INCOMPLETE_TY2C) |
Definition at line 170 of file whirl2c_common.h.
Referenced by TY2C_array().
#define CONTEXT_LVALUE_TYPE 0x000000040 /* Context suggests lvalue type */ |
Definition at line 146 of file whirl2c_common.h.
#define CONTEXT_lvalue_type | ( | c | ) | ((c).flags & CONTEXT_LVALUE_TYPE) |
Definition at line 188 of file whirl2c_common.h.
Referenced by WN2C_address_add().
#define CONTEXT_NEEDS_LVALUE 0x000000001 /* Context could use an lvalue */ |
Definition at line 140 of file whirl2c_common.h.
#define CONTEXT_needs_lvalue | ( | c | ) | ((c).flags & CONTEXT_NEEDS_LVALUE) |
Definition at line 152 of file whirl2c_common.h.
Referenced by WN2C_array(), and WN2C_lda().
#define CONTEXT_NEW_FUNC_SCOPE 0x000000002 /* New function scope */ |
Definition at line 141 of file whirl2c_common.h.
#define CONTEXT_new_func_scope | ( | c | ) | ((c).flags & CONTEXT_NEW_FUNC_SCOPE) |
Definition at line 158 of file whirl2c_common.h.
Referenced by WN2C_block().
#define CONTEXT_omp | ( | c | ) | ((c).flags & CONTEXT_OMP_PRAGMA) |
Definition at line 194 of file whirl2c_common.h.
Referenced by Append_Clause_Newline(), Append_Implicit_Locals(), Append_Pragma_Clauses(), and WN2C_process_pragma().
#define CONTEXT_OMP_PRAGMA 0x000000080 /* Processing an Open MP pragma */ |
Definition at line 147 of file whirl2c_common.h.
#define CONTEXT_reset | ( | c | ) |
(void)(CONTEXT_reset_flags(c), \ CONTEXT_reset_srcpos(c), \ CONTEXT_reset_given_base_ty(c))
Definition at line 119 of file whirl2c_common.h.
Referenced by Append_Nest_Clauses(), INITV2C_symoff(), ST2C_Declare_Tempvar(), TY2C_Prepend_Alignment_Type(), TY2C_translate_unqualified(), W2C_Fini(), W2C_Init(), and Write_Typedef().
#define CONTEXT_reset_array_basetype | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_ARRAY_BASETYPE) |
Definition at line 185 of file whirl2c_common.h.
Referenced by WN2C_array().
#define CONTEXT_reset_flags | ( | c | ) | ((c).flags = 0U) |
Definition at line 150 of file whirl2c_common.h.
#define CONTEXT_reset_given_base_ty | ( | c | ) | ((c).given_ty = TY_IDX_ZERO) |
Definition at line 127 of file whirl2c_common.h.
#define CONTEXT_reset_given_lvalue_ty | ( | c | ) | ((c).given_ty = TY_IDX_ZERO) |
Definition at line 132 of file whirl2c_common.h.
Referenced by WN2C_parm().
#define CONTEXT_reset_incomplete_ty2c | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_INCOMPLETE_TY2C) |
Definition at line 173 of file whirl2c_common.h.
Referenced by TY2C_array(), TY2C_complete_struct(), TY2C_Output_Struct_Type(), TY2C_struct(), and TY2C_Translate_Structure().
#define CONTEXT_reset_lvalue_type | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_LVALUE_TYPE) |
Definition at line 191 of file whirl2c_common.h.
Referenced by WN2C_address_add().
#define CONTEXT_reset_needs_lvalue | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_NEEDS_LVALUE) |
Definition at line 155 of file whirl2c_common.h.
Referenced by WN2C_address_add(), WN2C_array(), WN2C_bnor(), WN2C_complex(), WN2C_const(), WN2C_cvt(), WN2C_cvtl(), WN2C_funcall_op(), WN2C_Function_Return_Value(), WN2C_imagpart(), WN2C_intconst(), WN2C_intrinsic_op(), WN2C_madd(), WN2C_msub(), WN2C_nmadd(), WN2C_nmsub(), WN2C_realpart(), and WN2C_tas().
#define CONTEXT_reset_new_func_scope | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_NEW_FUNC_SCOPE) |
Definition at line 161 of file whirl2c_common.h.
Referenced by WN2C_block().
#define CONTEXT_reset_omp | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_OMP_PRAGMA) |
Definition at line 197 of file whirl2c_common.h.
#define CONTEXT_reset_srcpos | ( | c | ) | (void)((c).srcpos = 0LLU) |
Definition at line 137 of file whirl2c_common.h.
#define CONTEXT_reset_top_level_expr | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_TOP_LEVEL_EXPR) |
Definition at line 179 of file whirl2c_common.h.
Referenced by WN2C_address_add(), WN2C_array(), WN2C_bnor(), WN2C_call(), WN2C_comma(), WN2C_infix_op(), WN2C_lvalue_wn(), WN2C_madd(), WN2C_msub(), WN2C_nmadd(), WN2C_nmsub(), WN2C_parm(), and WN2C_rcomma().
#define CONTEXT_reset_unqualified_ty2c | ( | c | ) | ((c).flags = (c).flags & ~CONTEXT_UNQUALIFIED_TY2C) |
Definition at line 167 of file whirl2c_common.h.
Referenced by TY2C_complete_struct(), TY2C_function(), and TY2C_pointer().
#define CONTEXT_set_array_basetype | ( | c | ) | ((c).flags = (c).flags | CONTEXT_ARRAY_BASETYPE) |
Definition at line 183 of file whirl2c_common.h.
Referenced by WN2C_lvalue_wn().
#define CONTEXT_set_given_base_ty | ( | c, | |
ty | |||
) | ((c).given_ty = (ty)) |
Definition at line 126 of file whirl2c_common.h.
Referenced by WN2C_lvalue_wn().
#define CONTEXT_set_given_lvalue_ty | ( | c, | |
ty | |||
) | ((c).given_ty = (ty)) |
Definition at line 131 of file whirl2c_common.h.
Referenced by WN2C_call(), and WN2C_lvalue_wn().
#define CONTEXT_set_incomplete_ty2c | ( | c | ) | ((c).flags = (c).flags | CONTEXT_INCOMPLETE_TY2C) |
Definition at line 171 of file whirl2c_common.h.
Referenced by ST2C_basic_decl(), ST2C_func_header(), TY2C_array(), TY2C_function(), TY2C_pointer(), TY2C_translate_unqualified(), and WN2C_func_entry().
#define CONTEXT_set_lvalue_type | ( | c | ) | ((c).flags = (c).flags | CONTEXT_LVALUE_TYPE) |
Definition at line 189 of file whirl2c_common.h.
Referenced by WN2C_address_add(), and WN2C_lvalue_wn().
#define CONTEXT_set_needs_lvalue | ( | c | ) | ((c).flags = (c).flags | CONTEXT_NEEDS_LVALUE) |
Definition at line 153 of file whirl2c_common.h.
Referenced by WN2C_array(), and WN2C_lvalue_wn().
#define CONTEXT_set_new_func_scope | ( | c | ) | ((c).flags = (c).flags | CONTEXT_NEW_FUNC_SCOPE) |
Definition at line 159 of file whirl2c_common.h.
Referenced by WN2C_func_entry().
#define CONTEXT_set_omp | ( | c | ) | ((c).flags = (c).flags | CONTEXT_OMP_PRAGMA) |
Definition at line 195 of file whirl2c_common.h.
Referenced by WN2C_process_pragma().
#define CONTEXT_set_srcpos | ( | c, | |
pos | |||
) | ((c).srcpos = pos) |
Definition at line 136 of file whirl2c_common.h.
Referenced by WN2C_do_loop(), WN2C_do_while(), WN2C_func_entry(), WN2C_if(), WN2C_Translate_Comma_Sequence(), WN2C_translate_purple_main(), WN2C_Translate_Stmt_Sequence(), and WN2C_while_do().
#define CONTEXT_set_top_level_expr | ( | c | ) | ((c).flags = (c).flags | CONTEXT_TOP_LEVEL_EXPR) |
Definition at line 177 of file whirl2c_common.h.
Referenced by WN2C_array(), WN2C_block(), WN2C_call(), WN2C_funcall_op(), WN2C_Function_Return_Value(), WN2C_intrinsic_op(), WN2C_Normalize_Idx_To_Onedim(), WN2C_paren(), and WN2C_Translate_Arithmetic_Operand().
#define CONTEXT_set_unqualified_ty2c | ( | c | ) | ((c).flags = (c).flags | CONTEXT_UNQUALIFIED_TY2C) |
Definition at line 165 of file whirl2c_common.h.
Referenced by ST2C_decl_var(), ST2C_Declare_Tempvar(), and TY2C_translate_unqualified().
#define CONTEXT_srcpos | ( | c | ) | (c).srcpos |
Definition at line 135 of file whirl2c_common.h.
Referenced by Append_Clause_Newline(), Append_Cplus_Initialization(), Emit_To_PUinfo_Pragmas(), WN2C_Append_Assignment(), WN2C_Callsite_Directives(), WN2C_do_loop(), WN2C_do_while(), WN2C_exc_scope_begin(), WN2C_exc_scope_end(), WN2C_func_entry(), WN2C_Function_Call_Lhs(), WN2C_if(), WN2C_pragma_list_end(), WN2C_Prefetch_Map(), WN2C_process_pragma(), WN2C_region(), WN2C_Store_Return_Reg(), WN2C_translate_purple_main(), WN2C_Translate_Stmt_Sequence(), and WN2C_while_do().
#define CONTEXT_TOP_LEVEL_EXPR 0x000000010 /* Top-level of an expression */ |
Definition at line 144 of file whirl2c_common.h.
#define CONTEXT_top_level_expr | ( | c | ) | ((c).flags & CONTEXT_TOP_LEVEL_EXPR) |
Definition at line 176 of file whirl2c_common.h.
Referenced by WN2C_address_add(), and WN2C_infix_op().
#define CONTEXT_UNQUALIFIED_TY2C 0x000000004 /* Emit unqualified C type */ |
Definition at line 142 of file whirl2c_common.h.
#define CONTEXT_unqualified_ty2c | ( | c | ) | ((c).flags & CONTEXT_UNQUALIFIED_TY2C) |
Definition at line 164 of file whirl2c_common.h.
Referenced by TY2C_prepend_qualifiers().
#define INIT_CONTEXT {0, 0LLU, TY_IDX_ZERO} |
Definition at line 118 of file whirl2c_common.h.
Referenced by Append_A_Clause_Symbol(), Append_Distribution(), ST2C_Get_Common_Ty2c_List(), W2C_def_TY(), W2C_Translate_Istore_Lhs(), W2C_Translate_Purple_Main(), W2C_Translate_Stid_Lhs(), W2C_Translate_Wn(), W2C_Translate_Wn_Str(), and WN2C_Value_Reference().
#define WHIRL2C_number_as_c_name | ( | number | ) | Number_as_String(number, "_%lld") |
Definition at line 206 of file whirl2c_common.h.
Referenced by WN2C_append_label_name().
#define WHIRL2C_ptr_as_c_name | ( | ptr | ) | Concat2_Strings("_", Ptr_as_String(ptr)) |
Definition at line 207 of file whirl2c_common.h.
const char* WHIRL2C_make_valid_c_name | ( | const char * | name | ) |
Definition at line 68 of file whirl2c_common.cxx.
References Get_Name_Buf_Slot(), name, NULL, and strcpy.
Referenced by Unparse_Target_C::Make_Valid_Name(), ST2C_Define_A_Common_Block(), and ST2C_Get_Common_Block_Name().
void WHIRL2C_parenthesize | ( | TOKEN_BUFFER | tokens | ) |
Definition at line 58 of file whirl2c_common.cxx.
References Append_Token_Special(), and Prepend_Token_Special().
Referenced by INITV2C_symoff(), INITV2C_val(), TY2C_array(), TY2C_pointer(), WN2C_append_addr_plus_const(), WN2C_append_addr_plus_expr(), WN2C_Append_Assignment(), WN2C_array(), WN2C_based_lvalue(), WN2C_call(), WN2C_cvt(), WN2C_cvtl(), WN2C_generate_cast(), and WN2C_Translate_Arithmetic_Operand().
Definition at line 71 of file driver_util.cxx.
Referenced by Process_Command_Line().