|
OpenADFortTk (basic)
|
#include <stdio.h>

Go to the source code of this file.
| #define ASSERT_DBG_FATAL ASSERT_FATAL |
Definition at line 203 of file IFDiagnostics.h.
| #define ASSERT_DBG_WARN ASSERT_WARN |
Definition at line 202 of file IFDiagnostics.h.
| #define ASSERT_FATAL | ( | a_truth, | |
| diag_args | |||
| ) | DIAG_ASSERT_LOC(a_truth, Diag_Fatal, diag_args) |
Definition at line 200 of file IFDiagnostics.h.
Referenced by Get_Field_Type(), IsNonScalarRef(), WN_Call_Return_Type(), WN_Call_Type(), WN_GetBaseObjType(), WN_GetExprType(), WN_GetRefObjType(), WN_intrinsic_return_ty(), and WN_Tree_Type().
| #define ASSERT_WARN | ( | a_truth, | |
| diag_args | |||
| ) | DIAG_ASSERT_LOC(a_truth, Diag_Warning, diag_args) |
Definition at line 198 of file IFDiagnostics.h.
| #define DBG_LVL 0 |
Definition at line 92 of file IFDiagnostics.h.
| #define DBGMSG | ( | level, | |
| ... | |||
| ) |
if (level <= DBG_LVL) { \ fprintf(stderr, "Open64IRInterface:[debuglevel=%d]: ", level); \ fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); }
Definition at line 97 of file IFDiagnostics.h.
Referenced by CleanUpWhirl::findModuleSymbol().
| #define DBGMSG_PUB | ( | level, | |
| ... | |||
| ) |
if (level <= DBG_LVL_PUB) { \ fprintf(stderr, "Open64IRInterface:[debuglevel=%d]: ", level); \ fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); }
Definition at line 102 of file IFDiagnostics.h.
Referenced by Open64IRInterface::findBaseSymbol(), Open64IRInterface::haveDefinition(), and WN_GetRefObjType().
| #define DIAG_ASSERT_LOC | ( | a_truth, | |
| diag_handler, | |||
| diag_args | |||
| ) |
((a_truth) ? \
(void) 1 : \
(Diag_Set_Location(__FILE__, __LINE__), diag_handler diag_args))
Definition at line 220 of file IFDiagnostics.h.
| #define DIAG_ASSERT_NOLOC | ( | a_truth, | |
| diag_handler, | |||
| diag_args | |||
| ) | ((a_truth) ? (void) 1 : diag_handler diag_args) |
Definition at line 225 of file IFDiagnostics.h.
Definition at line 113 of file IFDiagnostics.h.
Referenced by CleanUpWhirl::findModulePU(), CleanUpWhirl::forPUInfo(), IntrinsicInfo::getIntrinsicInfo(), and IntrinsicInfo::lookupIntrinsicInfo().
| #define ERRMSG | ( | ... | ) |
{ fputs("error", stderr); \
if (DBG_LVL) { \
fprintf(stderr, "Open64IRInterface: [%s:%d]", __FILE__, __LINE__); } \
fputs(": ", stderr); fprintf(stderr, __VA_ARGS__); fputs("\n", stderr); }
Definition at line 107 of file IFDiagnostics.h.
Definition at line 116 of file IFDiagnostics.h.
| #define IFDBG_PUB | ( | level | ) | if (level <= DBG_LVL_PUB) |
Definition at line 118 of file IFDiagnostics.h.
| enum Diag_Code |
Definition at line 137 of file IFDiagnostics.h.
| void Diag_Exit | ( | void | ) |
Definition at line 145 of file IFDiagnostics.cpp.
References Diag_File.
Referenced by real_main(), and xaif2whirl::real_main().
| void Diag_Fatal | ( | DIAG_CODE | code, |
| ... | |||
| ) |
Definition at line 252 of file IFDiagnostics.cpp.
References Diag_File_Location, Diag_Line_Location, Diag_Msg, and Diag_Phase_Name.
| int Diag_Get_Warn_Count | ( | void | ) |
Definition at line 206 of file IFDiagnostics.cpp.
References Diag_Warn_Count.
| void Diag_Init | ( | void | ) |
Definition at line 47 of file IFDiagnostics.cpp.
References DIAG_A_STRING, DIAG_CANNOT_CLOSE_FILE, DIAG_CANNOT_OPEN_FILE, DIAG_FIRST, DIAG_LAST, Diag_Msg, DIAG_UNIMPLEMENTED, DIAG_UNKNOWN_CMD_LINE_OPTION, DIAG_W2F_BUFFER_ERROR, DIAG_W2F_CANNOT_DEREF, DIAG_W2F_CANNOT_HANDLE_OPC, DIAG_W2F_CANNOT_LDA_PREG, DIAG_W2F_DECLARE_RETURN_PARAM, DIAG_W2F_EXPECTED_IDNAME, DIAG_W2F_EXPECTED_PTR, DIAG_W2F_EXPECTED_PTR_TO_CHARACTER, DIAG_W2F_INCOMPATIBLE_TYS, DIAG_W2F_MISPLACED_PRAGMA, DIAG_W2F_NONEXISTENT_FLD_PATH, DIAG_W2F_UNEXPECTED_BTYPE, DIAG_W2F_UNEXPECTED_CALLSITE, DIAG_W2F_UNEXPECTED_CONTEXT, DIAG_W2F_UNEXPECTED_CVT, DIAG_W2F_UNEXPECTED_DOLOOP_BOUNDOP, DIAG_W2F_UNEXPECTED_IMPLIED_DOLOOP, DIAG_W2F_UNEXPECTED_INITV, DIAG_W2F_UNEXPECTED_IOC, DIAG_W2F_UNEXPECTED_IOF, DIAG_W2F_UNEXPECTED_IOL, DIAG_W2F_UNEXPECTED_IOS, DIAG_W2F_UNEXPECTED_IOU, DIAG_W2F_UNEXPECTED_NUM_KIDS, DIAG_W2F_UNEXPECTED_OPC, DIAG_W2F_UNEXPECTED_PRAGMA, DIAG_W2F_UNEXPECTED_RETURNSITE, DIAG_W2F_UNEXPECTED_STORECLASS, DIAG_W2F_UNEXPECTED_SUBSTRING_REF, DIAG_W2F_UNEXPECTED_SYM_CONST, DIAG_W2F_UNEXPECTED_SYMBOL, DIAG_W2F_UNEXPECTED_SYMCLASS, DIAG_W2F_UNEXPECTED_TYPE_KIND, DIAG_W2F_UNEXPECTED_TYPE_SIZE, DIAG_W2F_UNEXPEXTED_NULL_PTR, DIAG_W2F_UNEXPEXTED_OFFSET, DIAG_W2F_UNEXPEXTED_RETURNREG_USE, and Diag_Warn_Count.
Referenced by real_main(), and xaif2whirl::real_main().
| void Diag_Set_File | ( | const char * | filename | ) |
Definition at line 164 of file IFDiagnostics.cpp.
References Diag_File.
| void Diag_Set_Location | ( | const char * | file_name, |
| int | line_number | ||
| ) |
Definition at line 215 of file IFDiagnostics.cpp.
References Diag_File_Location, and Diag_Line_Location.
| void Diag_Set_Max_Diags | ( | int | max_allowed_diags | ) |
Definition at line 199 of file IFDiagnostics.cpp.
References Diag_Max_Diags.
Referenced by real_main(), and xaif2whirl::real_main().
| void Diag_Set_Phase | ( | const char * | phase_name | ) |
Definition at line 156 of file IFDiagnostics.cpp.
References Diag_Phase_Name.
Referenced by FreeIR(), xaif2whirl::XAIF_SAXHandler::initialize(), PrepareIR(), ReadIR(), real_main(), xaif2whirl::real_main(), whirltester::TestIR(), whirltester::TestIR_OA(), whirltester::TestIR_whirl2f(), whirl2xaif::Whirl2Xaif::translateIR(), whirl2xaif::Whirl2Xaif::translateWNPU(), and WriteIR().
| void Diag_Warning | ( | DIAG_CODE | code, |
| ... | |||
| ) |
Definition at line 223 of file IFDiagnostics.cpp.
References Diag_File_Location, Diag_Line_Location, Diag_Max_Diags, Diag_Msg, Diag_Phase_Name, and Diag_Warn_Count.
| int DBG_LVL_PUB |
Definition at line 34 of file IFDiagnostics.cpp.