summaryrefslogtreecommitdiff
path: root/chill_error.hh
diff options
context:
space:
mode:
authordhuth <derickhuth@gmail.com>2014-08-27 09:52:06 -0600
committerdhuth <derickhuth@gmail.com>2014-08-27 09:52:06 -0600
commitbff810cc371a38f493d688c54f71013f5a7d53bf (patch)
treefbe86954bb3c01deb21da9e41ebff5baa2889a45 /chill_error.hh
downloadchill-bff810cc371a38f493d688c54f71013f5a7d53bf.tar.gz
chill-bff810cc371a38f493d688c54f71013f5a7d53bf.tar.bz2
chill-bff810cc371a38f493d688c54f71013f5a7d53bf.zip
Initial commit
Diffstat (limited to 'chill_error.hh')
-rw-r--r--chill_error.hh19
1 files changed, 19 insertions, 0 deletions
diff --git a/chill_error.hh b/chill_error.hh
new file mode 100644
index 0000000..dc7432f
--- /dev/null
+++ b/chill_error.hh
@@ -0,0 +1,19 @@
+#ifndef CHILL_ERROR_HH
+#define CHILL_ERROR_HH
+
+// 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){}
+};
+
+// 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