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(
20     const Kernel &k,
21     ErrorHandler &err,
22     uint32_t enbabled_warnings);
23 
24 // asserts on bad IR
25 void SanityCheckIR(const Kernel &k);
26 void SanityCheckIR(const Instruction &i);
27 } // namespace
28 
29 #endif // _IR_CHECKER_HPP_
30