summaryrefslogtreecommitdiff
path: root/include/chill_error.hh
blob: 7321e75a7dd69b1997eb029a54922aef423d3f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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) {}
};

struct omega_error : public std::runtime_error {
  omega_error(const std::string &msg) : std::runtime_error(msg) {}
};

#endif