summaryrefslogtreecommitdiff
path: root/mlir/test/python/lib/PythonTestDialect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/python/lib/PythonTestDialect.cpp')
-rw-r--r--mlir/test/python/lib/PythonTestDialect.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/mlir/test/python/lib/PythonTestDialect.cpp b/mlir/test/python/lib/PythonTestDialect.cpp
index b70c0336b2f6..a0ff31504c69 100644
--- a/mlir/test/python/lib/PythonTestDialect.cpp
+++ b/mlir/test/python/lib/PythonTestDialect.cpp
@@ -9,9 +9,16 @@
#include "PythonTestDialect.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/OpImplementation.h"
+#include "llvm/ADT/TypeSwitch.h"
#include "PythonTestDialect.cpp.inc"
+#define GET_ATTRDEF_CLASSES
+#include "PythonTestAttributes.cpp.inc"
+
+#define GET_TYPEDEF_CLASSES
+#include "PythonTestTypes.cpp.inc"
+
#define GET_OP_CLASSES
#include "PythonTestOps.cpp.inc"
@@ -21,5 +28,14 @@ void PythonTestDialect::initialize() {
#define GET_OP_LIST
#include "PythonTestOps.cpp.inc"
>();
+ addAttributes<
+#define GET_ATTRDEF_LIST
+#include "PythonTestAttributes.cpp.inc"
+ >();
+ addTypes<
+#define GET_TYPEDEF_LIST
+#include "PythonTestTypes.cpp.inc"
+ >();
}
+
} // namespace python_test