summaryrefslogtreecommitdiff
path: root/mlir/test/python/lib/PythonTestCAPI.cpp
diff options
context:
space:
mode:
authorMaksim Levental <maksim.levental@gmail.com>2024-07-05 10:43:51 -0500
committerGitHub <noreply@github.com>2024-07-05 10:43:51 -0500
commit9315645834ea81cf9550364a4950f289e9706a26 (patch)
tree9e2b957f38e28514e8afc6dd7ba383e7930501d3 /mlir/test/python/lib/PythonTestCAPI.cpp
parent3bb25636414ee5b5eaf99c0bdcc191052c9d7ffb (diff)
[mlir][python] auto attribute casting (#97786)
Diffstat (limited to 'mlir/test/python/lib/PythonTestCAPI.cpp')
-rw-r--r--mlir/test/python/lib/PythonTestCAPI.cpp4
1 files changed, 4 insertions, 0 deletions
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<python_test::TestTypeType>(unwrap(type));
}