(mlirType, otherTy, arg, FromType, ToType, PyType)
| 169 | |
| 170 | |
| 171 | def supportCommonCast(mlirType, otherTy, arg, FromType, ToType, PyType): |
| 172 | argEleTy = cc.StdvecType.getElementType(mlirType) |
| 173 | eleTy = cc.StdvecType.getElementType(otherTy) |
| 174 | if ToType.isinstance(eleTy) and FromType.isinstance(argEleTy): |
| 175 | return [PyType(i) for i in arg] |
| 176 | return None |
| 177 | |
| 178 | |
| 179 | def __generalCustomOperation(self, opName, *args): |
no test coverage detected