Commit 834eb77
committed
[mlir:python] Compute get_op_result_or_value in PyOpView's constructor.
This logic is in the critical path for constructing an operation from
Python. It is faster to compute this in C++ than it is in Python, and it is a
minor change to do this.
This change also alters the API contract of
_ods_common.get_op_results_or_values to avoid calling
get_op_result_or_value on each element of a sequence, since the C++ code
will now do this.
Most of the diff here is simply reordering the code in IRCore.cpp.1 parent e30b703 commit 834eb77
File tree
5 files changed
+251
-221
lines changed- mlir
- lib/Bindings/Python
- python/mlir/dialects
- test/mlir-tblgen
- tools/mlir-tblgen
5 files changed
+251
-221
lines changed
0 commit comments