From 210f77d2c32f14d2e99577fd3c9842bb19d47e50 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Mon, 19 Sep 2016 21:14:58 +0000 Subject: Moved most modules into lib --- include/chill_error.hh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 include/chill_error.hh (limited to 'include/chill_error.hh') diff --git a/include/chill_error.hh b/include/chill_error.hh new file mode 100644 index 0000000..88e49fc --- /dev/null +++ b/include/chill_error.hh @@ -0,0 +1,24 @@ +#ifndef CHILL_ERROR_HH +#define CHILL_ERROR_HH + +/*! + * \file + * \brief CHiLL runtime exceptions + */ + +//! for loop transformation problem +struct loop_error: public std::runtime_error { + loop_error(const std::string &msg): std::runtime_error(msg){} +}; + +//! for generic compiler intermediate code handling problem +struct ir_error: public std::runtime_error { + ir_error(const std::string &msg): std::runtime_error(msg){} +}; + +//! for specific for expression to preburger math translation problem +struct ir_exp_error: public ir_error { + ir_exp_error(const std::string &msg): ir_error(msg){} +}; + +#endif -- cgit v1.2.3-70-g09d2