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 "TestInterfaces.h" 18 #include "mlir/Dialect/Traits.h" 19 #include "mlir/IR/BuiltinOps.h" 20 #include "mlir/IR/BuiltinTypes.h" 21 #include "mlir/IR/Dialect.h" 22 #include "mlir/IR/OpDefinition.h" 23 #include "mlir/IR/OpImplementation.h" 24 #include "mlir/IR/RegionKindInterface.h" 25 #include "mlir/IR/SymbolTable.h" 26 #include "mlir/Interfaces/CallInterfaces.h" 27 #include "mlir/Interfaces/ControlFlowInterfaces.h" 28 #include "mlir/Interfaces/CopyOpInterface.h" 29 #include "mlir/Interfaces/DerivedAttributeOpInterface.h" 30 #include "mlir/Interfaces/InferTypeOpInterface.h" 31 #include "mlir/Interfaces/SideEffectInterfaces.h" 32 33 #include "TestOpEnums.h.inc" 34 #include "TestOpInterfaces.h.inc" 35 #include "TestOpStructs.h.inc" 36 #include "TestOpsDialect.h.inc" 37 38 #define GET_OP_CLASSES 39 #include "TestOps.h.inc" 40 41 namespace mlir { 42 namespace test { 43 void registerTestDialect(DialectRegistry ®istry); 44 } // namespace test 45 } // namespace mlir 46 47 #endif // MLIR_TESTDIALECT_H 48