[code generation] added constraints checking

This commit is contained in:
Philippe Tillet
2019-01-08 15:57:45 -05:00
parent 58757b8f10
commit 7a14693f51
2 changed files with 67 additions and 73 deletions

View File

@@ -28,7 +28,7 @@ private:
public:
unsigned *get_param(ir::value *value);
bool check_constraints(std::map<ir::value*, std::string>& errors);
bool check_constraints(ir::module &fn, std::map<ir::value *, std::vector<std::string>> &errors);
void run(ir::module &mod);
private: