[Mlir-commits] [mlir] [mlir][python] value casting (PR #69644)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed Oct 25 01:43:11 PDT 2023


================
@@ -1004,8 +1013,8 @@ static void emitValueBuilder(const Operator &op,
                       llvm::join(valueBuilderParams, ", "),
                       llvm::join(opBuilderArgs, ", "),
                       (op.getNumResults() > 1
-                           ? "_Sequence[_ods_ir.OpResult]"
-                           : (op.getNumResults() > 0 ? "_ods_ir.OpResult"
+                           ? "_Sequence[_SubClassValueT]"
----------------
ftynse wrote:

I'm not sure how this works for the type checker given that `_SubClassValueT` is `Type[U]` where `U` is a `TypeVar` that doesn't seem bound?

https://github.com/llvm/llvm-project/pull/69644


More information about the Mlir-commits mailing list