summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJakub Kuderski <kubak@google.com>2023-04-25 22:25:11 -0400
committerJakub Kuderski <kubak@google.com>2023-04-25 22:33:11 -0400
commitda0730b908a43e490430717beda8486598667ab8 (patch)
tree7b9ab26929c98d886c851fed154d431a8b86bde8 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent5b869f3e2af485b2b97368e36dbff1c4e28c0d7e (diff)
[mlir][arith] Add initial integer bitwidth narrowing pass
This pass reduces the logical complexity of arith ops by choosing narrowest supported operand bitwidth. On some targets like mobile GPUs, narrower bitwidths also bring better runtime performance. The first batch of rewrites handles a simple case of `arith.sitofp` and `arith.uitofp` with zero/sign-extended inputs. In future revisions, I plan to extend it with the following: - Propagating sign/zero-extensions through bit-pattern-preserving ops, e.g., vector transpose, broadcast, insertions/extractions. - Handling `linalg.index` using the `ValueBounds` interface. - Handling more arith ops. Reviewed By: springerm, antiagainst Differential Revision: https://reviews.llvm.org/D149118
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions