[Mlir-commits] [mlir] [mlir:python] Compute get_op_result_or_value in PyOpView's constructor. (PR #123953)

Jacques Pienaar llvmlistbot at llvm.org
Thu Jan 23 13:10:54 PST 2025


================
@@ -1478,12 +1478,11 @@ static void maybeInsertOperation(PyOperationRef &op,
 
 nb::object PyOperation::create(std::string_view name,
                                std::optional<std::vector<PyType *>> results,
-                               std::optional<std::vector<PyValue *>> operands,
+                               const llvm::SmallVector<MlirValue, 4> &operands,
----------------
jpienaar wrote:

Could we use ArrayRef here instead?

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


More information about the Mlir-commits mailing list