mirror of
https://github.com/clang-retro/llvm.git
synced 2026-12-06 09:09:34 -08:00
[mlir][python] auto attribute casting (#97786)
This commit is contained in:
1 parent
3bb2563641
commit
9315645834
7 files changed
+51
-10
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user