From 9315645834ea81cf9550364a4950f289e9706a26 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 5 Jul 2024 10:43:51 -0500 Subject: [mlir][python] auto attribute casting (#97786) --- mlir/test/python/lib/PythonTestCAPI.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mlir/test/python/lib/PythonTestCAPI.cpp') diff --git a/mlir/test/python/lib/PythonTestCAPI.cpp b/mlir/test/python/lib/PythonTestCAPI.cpp index 71778a97d83a..cb7d7677714f 100644 --- a/mlir/test/python/lib/PythonTestCAPI.cpp +++ b/mlir/test/python/lib/PythonTestCAPI.cpp @@ -23,6 +23,10 @@ MlirAttribute mlirPythonTestTestAttributeGet(MlirContext context) { return wrap(python_test::TestAttrAttr::get(unwrap(context))); } +MlirTypeID mlirPythonTestTestAttributeGetTypeID(void) { + return wrap(python_test::TestAttrAttr::getTypeID()); +} + bool mlirTypeIsAPythonTestTestType(MlirType type) { return llvm::isa(unwrap(type)); } -- cgit v1.2.3