| 1 |
/*========================== begin_copyright_notice ============================ |
| 2 |
|
| 3 |
Copyright (C) 2017-2021 Intel Corporation |
| 4 |
|
| 5 |
SPDX-License-Identifier: MIT |
| 6 |
|
| 7 |
============================= end_copyright_notice ===========================*/ |
| 8 |
|
| 9 |
#ifndef _IR_CHECKER_HPP_ |
| 10 |
#define _IR_CHECKER_HPP_ |
| 11 |
|
| 12 |
#include "../../ErrorHandler.hpp" |
| 13 |
#include "../Instruction.hpp" |
| 14 |
#include "../Kernel.hpp" |
| 15 |
#include <cstdint> |
| 16 |
|
| 17 |
namespace iga { |
| 18 |
// logs errors to error log |
| 19 |
void CheckSemantics(const Kernel &k, ErrorHandler &err, |
| 20 |
uint32_t enbabled_warnings); |
| 21 |
|
| 22 |
// asserts on bad IR |
| 23 |
void SanityCheckIR(const Kernel &k); |
| 24 |
void SanityCheckIR(const Instruction &i); |
| 25 |
} // namespace iga |
| 26 |
|
| 27 |
#endif // _IR_CHECKER_HPP_ |