From 75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sat, 17 Sep 2016 03:22:53 +0000 Subject: cmake build --- chill/include/chill_error.hh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 chill/include/chill_error.hh (limited to 'chill/include/chill_error.hh') diff --git a/chill/include/chill_error.hh b/chill/include/chill_error.hh new file mode 100644 index 0000000..dc7432f --- /dev/null +++ b/chill/include/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 -- cgit v1.2.3-70-g09d2