1//===- PythonTestDialect.cpp - PythonTest dialect definition --------------===//
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#include "PythonTestDialect.h"
10#include "mlir/IR/DialectImplementation.h"
11#include "mlir/IR/OpImplementation.h"
12#include "llvm/ADT/TypeSwitch.h"
13
14#include "PythonTestDialect.cpp.inc"
15
16#define GET_ATTRDEF_CLASSES
17#include "PythonTestAttributes.cpp.inc"
18
19#define GET_TYPEDEF_CLASSES
20#include "PythonTestTypes.cpp.inc"
21
22#define GET_OP_CLASSES
23#include "PythonTestOps.cpp.inc"
24
25namespace python_test {
26void PythonTestDialect::initialize() {
27 addOperations<
28#define GET_OP_LIST
29#include "PythonTestOps.cpp.inc"
30 >();
31 addAttributes<
32#define GET_ATTRDEF_LIST
33#include "PythonTestAttributes.cpp.inc"
34 >();
35 addTypes<
36#define GET_TYPEDEF_LIST
37#include "PythonTestTypes.cpp.inc"
38 >();
39}
40
41} // namespace python_test
42

source code of mlir/test/python/lib/PythonTestDialect.cpp