diff options
| author | Heejin Ahn <aheejin@gmail.com> | 2024-02-27 14:00:43 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 14:00:43 -0800 |
| commit | d4cdb516eee49ecaf36380af4d8f923cc475e1d7 (patch) | |
| tree | 0a9fccc64fa16aa4756112d6e91c921dc35b2ed9 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 70a7b1e8df7222557cadec4e6d007850ce64f8ed (diff) | |
[WebAssembly] Add RefTypeMem2Local pass (#81965)
This adds `WebAssemblyRefTypeMem2Local` pass, which changes the address
spaces of reference type `alloca`s to `addrspace(1)`. This in turn
changes the address spaces of all `load` and `store` instructions that
use the `alloca`s.
`addrspace(1)` is `WASM_ADDRESS_SPACE_VAR`, and loads and stores to this
address space become `local.get`s and `local.set`s, thanks to the Wasm
local IR support added in
https://github.com/llvm/llvm-project/commit/82f92e35c6464e23859c29422956caaceb623967.
In a follow-up PR, I am planning to replace the usage of mem2reg pass
with this to solve the reference type `alloca` problems described in
#81575.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
