This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly][lld] R_WASM_TABLE_NUMBER_LEB is variable-width
AbandonedPublic

Authored by wingo on Jan 20 2021, 8:32 AM.

Details

Reviewers
dschuff
sbc100
Summary

WebAssembly 1.0 only supports a table-number immediate operand of 0x00.
As we add support for multiple tables with a corresponding relocation,
continue to allow generation of one-byte table number references, so
that the "normal" case of just one table with the number 0 can be
written as 0x00. This allows the compiler to output relocations for
call_indirect while targetting WebAssembly 1.0, simplifying the
configuration space.

Diff Detail

Event Timeline

wingo created this revision.Jan 20 2021, 8:32 AM
wingo requested review of this revision.Jan 20 2021, 8:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2021, 8:32 AM

A bit of an RFC, this one -- perhaps it is a way out of the impasse of https://reviews.llvm.org/D95005.

wingo added a comment.Jan 20 2021, 8:42 AM

I should add that I am not married to this idea and other solutions may be better

wingo abandoned this revision.Feb 9 2021, 7:34 AM

As discussed in https://reviews.llvm.org/D90948, this is not the way to go :)