This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add assembly syntax for mutable globals
ClosedPublic

Authored by sbc100 on Sep 11 2020, 7:37 AM.

Details

Summary

This adds and optional ", immutable" to the end of a .globaltype
declaration. I would have prefered to match the .wat syntax
where immutable is the default and mut is the signifier for
mutable globals. Sadly changing the default would break backwards
compat with existing assembly in the wild so I think its best
to stick with this approach.

Diff Detail

Event Timeline

sbc100 created this revision.Sep 11 2020, 7:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 11 2020, 7:37 AM
sbc100 requested review of this revision.Sep 11 2020, 7:37 AM
aardappel accepted this revision.Sep 11 2020, 10:31 AM
This revision is now accepted and ready to land.Sep 11 2020, 10:31 AM
This revision was automatically updated to reflect the committed changes.