1 //===- TestDialect.h - MLIR Dialect for testing -----------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file defines a fake 'test' dialect that can be used for testing things 10 // that do not have a respective counterpart in the main source directories. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef MLIR_TESTDIALECT_H 15 #define MLIR_TESTDIALECT_H 16 17 #include "mlir/Dialect/Traits.h" 18 #include "mlir/IR/Dialect.h" 19 #include "mlir/IR/OpDefinition.h" 20 #include "mlir/IR/OpImplementation.h" 21 #include "mlir/IR/StandardTypes.h" 22 #include "mlir/IR/SymbolTable.h" 23 #include "mlir/Interfaces/CallInterfaces.h" 24 #include "mlir/Interfaces/ControlFlowInterfaces.h" 25 #include "mlir/Interfaces/InferTypeOpInterface.h" 26 #include "mlir/Interfaces/SideEffects.h" 27 28 #include "TestOpEnums.h.inc" 29 30 namespace mlir { 31 32 #include "TestOpsDialect.h.inc" 33 34 #define GET_OP_CLASSES 35 #include "TestOps.h.inc" 36 37 } // end namespace mlir 38 39 #endif // MLIR_TESTDIALECT_H 40