diff options
Diffstat (limited to 'mlir/test/python/lib/PythonTestDialect.cpp')
| -rw-r--r-- | mlir/test/python/lib/PythonTestDialect.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mlir/test/python/lib/PythonTestDialect.cpp b/mlir/test/python/lib/PythonTestDialect.cpp new file mode 100644 index 000000000000..b70c0336b2f6 --- /dev/null +++ b/mlir/test/python/lib/PythonTestDialect.cpp @@ -0,0 +1,25 @@ +//===- PythonTestDialect.cpp - PythonTest dialect definition --------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "PythonTestDialect.h" +#include "mlir/IR/DialectImplementation.h" +#include "mlir/IR/OpImplementation.h" + +#include "PythonTestDialect.cpp.inc" + +#define GET_OP_CLASSES +#include "PythonTestOps.cpp.inc" + +namespace python_test { +void PythonTestDialect::initialize() { + addOperations< +#define GET_OP_LIST +#include "PythonTestOps.cpp.inc" + >(); +} +} // namespace python_test |
