This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] 64-bit memory limits
ClosedPublic

Authored by aardappel on Jul 2 2020, 5:35 PM.

Details

Reviewers
dschuff
sbc100
Summary

Making sure we're supporting writing out 64-bit limits structures in object files + related code cleanup.

Diff Detail

Event Timeline

aardappel created this revision.Jul 2 2020, 5:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2020, 5:35 PM

Not much happening here, other than updating the memory limits writing. Probably needs an LLD specific test, @sbc100 ?

sbc100 accepted this revision.Jul 3 2020, 12:25 PM

Nice!

This revision is now accepted and ready to land.Jul 3 2020, 12:25 PM

Do we have wasm-ld tests for this stuff yet? If so, I would expect to see a test update in lld/test/wasm too.

@sbc100 any suggestion for which test would be best to add a 64-bit version of? Most important thing is to ensure LLD is outputting 64-bit memory limits

sbc100 added a comment.Jul 3 2020, 9:04 PM

Maybe add a wasm64 section to lld/test/wasm/data-layout.ll? Shame i didn't convert that to .s format already ..

aardappel updated this revision to Diff 275773.Jul 6 2020, 11:16 AM

Added part of LLD data-layout.ll test

sbc100 accepted this revision.Jul 6 2020, 11:30 AM
sbc100 added inline comments.
lld/test/wasm/data-layout.ll
6–9

I would give each object a unique name e.g. hello64.o ?

Than you can avoid rebuilding it below.

aardappel updated this revision to Diff 275799.Jul 6 2020, 12:37 PM

Test uses 32/64-bit specific .o files

dschuff accepted this revision.Jul 6 2020, 6:10 PM
aardappel closed this revision.Jul 13 2020, 1:00 PM

Already landed.