Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include "opcode.h"
Go to the source code of this file.
Defines | |
#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().
OPERATOR Name_To_OPERATOR | ( | const char * | nm | ) |
Definition at line 59 of file opcode.cxx.
References ir_a2b::MapStrToEnum(), OPERATOR_info, and OPERATOR_LAST.
OPCODE OPCODE_commutative_op | ( | OPCODE | opc | ) |
Definition at line 89 of file opcode.cxx.
References OPCODE_desc(), 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 WN2F_Translate_DoLoop_Bound(), WN_has_side_effects(), and WN_set_st_addr_saved().
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().