OpenADFortTk (including Open64 and OpenAnalysis references)
|
#include "opcode.h"
Go to the source code of this file.
Macros | |
#define | opcode_C "opcode.c" |
Functions | |
const char * | OPERATOR_name (OPERATOR opr) |
OPERATOR | Name_To_OPERATOR (const char *nm) |
void | Init_Operator_To_Opcode_Table (void) |
OPCODE | OPCODE_commutative_op (OPCODE opc) |
Variables | |
BOOL | Operator_To_Opcode_Table_Inited = FALSE |
#define opcode_C "opcode.c" |
Implementation of external functions from opcode.h.
Definition at line 42 of file opcode.cxx.
void Init_Operator_To_Opcode_Table | ( | void | ) |
Definition at line 73 of file opcode.cxx.
References Operator_To_Opcode_Table_Inited, and TRUE.
Referenced by main(), real_main(), and xaif2whirl::real_main().
OPERATOR Name_To_OPERATOR | ( | const char * | nm) |
Definition at line 59 of file opcode.cxx.
References ir_a2b::MapStrToEnum(), OPERATOR_info, and OPERATOR_LAST.
Referenced by sexp2whirl::GetWhirlOpr().
Definition at line 89 of file opcode.cxx.
References OPCODE_desc(), OPCODE_make_op(), OPCODE_operator(), OPCODE_rtype(), OPR_ADD, OPR_BAND, OPR_BIOR, OPR_BNOR, OPR_BXOR, OPR_EQ, OPR_GE, OPR_GT, OPR_LAND, OPR_LE, OPR_LIOR, OPR_LT, OPR_MAX, OPR_MIN, OPR_MPY, and OPR_NE.
Referenced by cancel_in_relop(), simp_relop(), and SIMPNODE_SimplifyExp2_h().
const char* OPERATOR_name | ( | OPERATOR | opr) |
Convert between operator name and string
Definition at line 52 of file opcode.cxx.
References ir_a2b::MapEnumToStr(), OPERATOR_info, and OPERATOR_LAST.
Referenced by fortTkSupport::IntrinsicXlationTable::WHIRLInfo::dump(), fortTkSupport::IntrinsicXlationTable::findXAIFInfo(), Open64IRInterface::getCFGStmtType(), fortTkSupport::ScalarizedRef::isRefScalarizable(), operator<<(), whirl2sexp::TranslateWN(), sexp2whirl::TranslateWN(), whirl2xaif::LOC_INFO::WN2F_Find_And_Mark_Nested_Address(), WN_has_side_effects(), WN_set_st_addr_saved(), xaif2whirl::xlate_BBCond_OLD(), whirl2xaif::xlate_BBStmt(), whirl2xaif::xlate_BinaryOp(), whirl2sexp::xlate_BinaryOp(), whirl2xaif::xlate_PassiveStmt(), whirl2sexp::xlate_STRCTFLD(), whirl2sexp::xlate_TernaryOp(), whirl2xaif::xlate_UnaryOp(), whirl2sexp::xlate_UnaryOp(), sexp2whirl::xlate_unknown(), whirl2sexp::xlate_unknown(), and whirl2xaif::xlate_unknown().
To make this lookup routine routine simple but efficient, we use a closed hashing scheme.
Definition at line 72 of file opcode.cxx.
Referenced by Init_Operator_To_Opcode_Table().