HomePhabricator

[lld][WebAssembly] Support for growable tables

Authored by jgravelle-google on Aug 27 2019, 3:58 PM.

Description

[lld][WebAssembly] Support for growable tables

Adds --growable-table flag to handle building wasm modules with tables
that can grow.

Wasm tables that we use to store function pointers. In order to add functions
to that table at runtime, we need to either preallocate space, or grow the table.
In order to specify a table with no maximum size, we need some flag to handle
that case, separately from a potential --max-table-size= flag.

Note that the number of elements in the table isn't knowable until link-time,
so it's unclear if we will want a --max-table-size= flag in the future.

llvm-svn: 370127

Details

Committed
jgravelle-googleAug 27 2019, 3:58 PM
Parents
rG29db51dad4e8: Revert "[lldb] Move redundant persistent variable counter to…
Branches
Unknown
Tags
Unknown