[all-commits] [llvm/llvm-project] 51a4f3: [mlir:python] Avoid calls to get_op_result_or_resu...
Peter Hawkins via All-commits
all-commits at lists.llvm.org
Thu Oct 31 16:54:41 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51a4f319f022b99f231e52fab97de28b6f1db591
https://github.com/llvm/llvm-project/commit/51a4f319f022b99f231e52fab97de28b6f1db591
Author: Peter Hawkins <phawkins at google.com>
Date: 2024-11-01 (Fri, 01 Nov 2024)
Changed paths:
M mlir/test/mlir-tblgen/op-python-bindings.td
M mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
Log Message:
-----------
[mlir:python] Avoid calls to get_op_result_or_results in generated value wrappers (#114491)
If we know the output arity at tablegen time, we can often just call
.result or .results directly.
This saves almost 1s in a JAX-based LLM benchmark building a mixture of
upstream dialects and StableHLO.
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