[mlir][python] auto attribute casting (#97786)

This commit is contained in:
Maksim Levental authored and GitHub committed 2024-07-05 10:43:51 -05:00
1 parent 3bb2563641
commit 9315645834
7 files changed
+51 -10

No files matched your search

+4
View File
@@ -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));
}