Classes | |
| struct | enum2str_tbl_entry_t |
| struct | flag2str_tbl_entry_t |
| struct | flag_key_t |
Functions | |
| template<typename ENUM_TBL_ENTRY_T > | |
| void | CheckEnumTable (const char *tablenm, const ENUM_TBL_ENTRY_T *table, INT tablesz) |
| template<typename FLG_TBL_ENTRY_T > | |
| void | CheckFlagTable (const char *tablenm, const FLG_TBL_ENTRY_T *table, INT tablesz) |
| template<typename ENUM_TBL_ENTRY_T , const ENUM_TBL_ENTRY_T * table, INT tablesz> | |
| const char * | MapEnumToStr (const char *tablenm, INT val) |
| template<typename ENUM_TBL_ENTRY_T , const ENUM_TBL_ENTRY_T * table, INT tablesz> | |
| INT | MapStrToEnum (const char *tablenm, const char *str) |
| template<typename FLAG_TBL_ENTRY_T , const FLAG_TBL_ENTRY_T * table, INT tablesz> | |
| const char * | MapFlagsToStr (const char *tablenm, UINT64 flags) |
| template<typename FLAG_TBL_ENTRY_T , const FLAG_TBL_ENTRY_T * table, INT tablesz> | |
| UINT64 | MapStrToFlags (const char *tablenm, const char *str) |
| void ir_a2b::CheckEnumTable | ( | const char * | tablenm, | |
| const ENUM_TBL_ENTRY_T * | table, | |||
| INT | tablesz | |||
| ) | [inline] |
Definition at line 173 of file ir_a2b_util.h.
References Fail_FmtAssertion(), INT, and val.
Referenced by MapEnumToStr(), and MapStrToEnum().

| void ir_a2b::CheckFlagTable | ( | const char * | tablenm, | |
| const FLG_TBL_ENTRY_T * | table, | |||
| INT | tablesz | |||
| ) | [inline] |
Definition at line 193 of file ir_a2b_util.h.
References Fail_FmtAssertion(), INT, and val.
Referenced by MapFlagsToStr(), and MapStrToFlags().

| const char* ir_a2b::MapEnumToStr | ( | const char * | tablenm, | |
| INT | val | |||
| ) | [inline] |
Definition at line 220 of file ir_a2b_util.h.
References CheckEnumTable(), and Fail_FmtAssertion().
Referenced by Class_Name(), Export_Name(), get_intrinsic_name(), get_ioitem_name(), get_iostatement_name(), InitvKind_Name(), Kind_Name(), LABEL_Kind_Name(), Mtype_Name(), OPERATOR_name(), Sclass_Name(), and ST_ATTR_Kind_Name().

| const char* ir_a2b::MapFlagsToStr | ( | const char * | tablenm, | |
| UINT64 | flags | |||
| ) | [inline] |
Definition at line 314 of file ir_a2b_util.h.
References buf, CheckFlagTable(), ir_a2b::flag2str_tbl_entry_t::flagcmp(), FmtAssert, Malloc_Mem_Pool, NULL, TYPE_MEM_POOL_ALLOC_N, and TYPE_MEM_POOL_REALLOC_N.
Referenced by ARB_FLAGS_To_Str(), BLK_FLAGS_To_Str(), FILE_INFO_FLAGS_To_Str(), FLD_FLAGS_To_Str(), LABEL_FLAGS_To_Str(), PU_FLAGS_To_Str(), PU_SRC_LANG_FLAGS_To_Str(), ST_EXT_FLAGS_To_Str(), ST_FLAGS_To_Str(), TCONFlags_To_Str(), TY_FLAGS_To_Str(), and TY_PU_FLAGS_To_Str().

| INT ir_a2b::MapStrToEnum | ( | const char * | tablenm, | |
| const char * | str | |||
| ) | [inline] |
Definition at line 248 of file ir_a2b_util.h.
References CheckEnumTable(), ir_a2b::enum2str_tbl_entry_t::cmp(), CXX_NEW_ARRAY, FmtAssert, INT, Malloc_Mem_Pool, NULL, and s.
Referenced by get_intrinsic_from_name(), get_ioitem_from_name(), get_iostatement_from_name(), Name_To_Class(), Name_To_Export(), Name_To_InitvKind(), Name_To_Kind(), Name_To_LABEL_Kind(), Name_To_Mtype(), Name_To_OPERATOR(), Name_To_Sclass(), and Name_To_ST_ATTR_Kind().

| UINT64 ir_a2b::MapStrToFlags | ( | const char * | tablenm, | |
| const char * | str | |||
| ) | [inline] |
Definition at line 377 of file ir_a2b_util.h.
References CheckFlagTable(), CXX_NEW_ARRAY, FmtAssert, free(), Malloc_Mem_Pool, NULL, ir_a2b::flag2str_tbl_entry_t::strcmp(), and ux_strdup().
Referenced by Str_To_ARB_FLAGS(), Str_To_BLK_FLAGS(), Str_To_FILE_INFO_FLAGS(), Str_To_FLD_FLAGS(), Str_To_LABEL_FLAGS(), Str_To_PU_FLAGS(), Str_To_PU_SRC_LANG_FLAGS(), Str_To_ST_EXT_FLAGS(), Str_To_ST_FLAGS(), Str_To_TCONFlags(), Str_To_TY_FLAGS(), and Str_To_TY_PU_FLAGS().

1.6.1