mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 20:54:40 +08:00
* We can call .results without figuring out whether we have an Operation or an OpView, and that's likely the common case anyway. * If we have one or more results, we can return them directly, with no need for a call to get_op_result_or_value. We're guaranteed that .results returns a PyOpResultList, so we have either an OpResult or sequence of OpResults, just as the API expects. This saves a few 100ms during IR construction in an LLM JAX benchmark.