[all-commits] [llvm/llvm-project] 2c0e63: [MLIR] [Python] Relaxed `list` to `Sequence` in mo...
Sergei Lebedev via All-commits
all-commits at lists.llvm.org
Wed Mar 25 12:16:00 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2c0e63c9b699259a8382cb7642f8e988fdc41e8c
https://github.com/llvm/llvm-project/commit/2c0e63c9b699259a8382cb7642f8e988fdc41e8c
Author: Sergei Lebedev <185856+superbobry at users.noreply.github.com>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
M mlir/include/mlir/Bindings/Python/IRAttributes.h
M mlir/include/mlir/Bindings/Python/IRCore.h
M mlir/include/mlir/Bindings/Python/IRTypes.h
M mlir/lib/Bindings/Python/DialectTransform.cpp
M mlir/lib/Bindings/Python/IRAffine.cpp
M mlir/lib/Bindings/Python/IRAttributes.cpp
M mlir/lib/Bindings/Python/IRCore.cpp
M mlir/lib/Bindings/Python/IRInterfaces.cpp
M mlir/lib/Bindings/Python/IRTypes.cpp
Log Message:
-----------
[MLIR] [Python] Relaxed `list` to `Sequence` in most parameter types (#188543)
Using `Sequence` frees users from the need to cast to `list` in cases
where the underlying API does not really care about the type of the
container.
Note that accepting an `nb::sequence` is marginally slower than
accepting `nb::list` directly, because `__getitem__`, `__len__` etc need
to go through an extra layer of indirection. However, I expect the
performance difference to be negligible.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list