summaryrefslogtreecommitdiff
path: root/include/chill_error.hh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-19 21:14:58 +0000
committerTuowen Zhao <ztuowen@gmail.com>2016-09-19 21:14:58 +0000
commit210f77d2c32f14d2e99577fd3c9842bb19d47e50 (patch)
tree5edb327c919b8309e301c3440fb6668a0075c8ef /include/chill_error.hh
parenta66ce5cd670c4d3c0dc449720f5bc45dd4c281b8 (diff)
downloadchill-210f77d2c32f14d2e99577fd3c9842bb19d47e50.tar.gz
chill-210f77d2c32f14d2e99577fd3c9842bb19d47e50.tar.bz2
chill-210f77d2c32f14d2e99577fd3c9842bb19d47e50.zip
Moved most modules into lib
Diffstat (limited to 'include/chill_error.hh')
-rw-r--r--include/chill_error.hh24
1 files changed, 24 insertions, 0 deletions
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