summaryrefslogtreecommitdiff
path: root/include/chill_error.hh
blob: 20a8362df25d0d1d093fd861e8e16335adb1b600 (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
29
30
31
#ifndef CHILL_ERROR_HH
#define CHILL_ERROR_HH

/*!
 * \file
 * \brief CHiLL runtime exceptions
 */

namespace chill {
  namespace error {
    //! for loop transformation problem
    struct loop : public std::runtime_error {
      loop(const std::string &msg) : std::runtime_error(msg) {}
    };

    //! for generic compiler intermediate code handling problem
    struct ir : public std::runtime_error {
      ir(const std::string &msg) : std::runtime_error(msg) {}
    };

    //! for specific for expression to preburger math translation problem
    struct ir_exp : public ir {
      ir_exp(const std::string &msg) : ir(msg) {}
    };

    struct omega : public std::runtime_error {
      omega(const std::string &msg) : std::runtime_error(msg) {}
    };
  }
}
#endif