diff options
| author | Matthias Springer <me@m-sp.org> | 2023-08-16 15:01:14 +0200 |
|---|---|---|
| committer | Matthias Springer <me@m-sp.org> | 2023-08-16 15:02:07 +0200 |
| commit | 878950b82cb7727361b5ae13ea0326e39c7677fe (patch) | |
| tree | bab041975be44a93c8cf2020adf5c5b87319ae0c /lldb/test/API/functionalities/interactive_scripted_process/TestInteractiveScriptedProcess.py | |
| parent | ea70e6f9a9f0b97b8693292cb3976a0e72234418 (diff) | |
[mlir][bufferization] Simplify `getBufferType`
`getBufferType` computes the bufferized type of an SSA value without bufferizing any IR. This is useful for predicting the bufferized type of iter_args of a loop.
To avoid endless recursion (e.g., in the case of "scf.for", the type of the iter_arg depends on the type of init_arg and the type of the yielded value; the type of the yielded value depends on the type of the iter_arg again), `fixedTypes` was used to fall back to "fixed" type. A simpler way is to maintain an "invocation stack". `getBufferType` implementations can then inspect the invocation stack to detect repetitive computations (typically when computing the bufferized type of a block argument).
Also improve error messages in case of inconsistent memory spaces inside of a loop.
Differential Revision: https://reviews.llvm.org/D158060
Diffstat (limited to 'lldb/test/API/functionalities/interactive_scripted_process/TestInteractiveScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
