[PATCH] D99191: [WebAssembly][MC] Record limit constraints for table sizes

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 08:22:20 PDT 2021


wingo created this revision.
wingo added reviewers: sbc100, pmatos.
Herald added subscribers: ecnelises, sunfish, hiraditya, jgravelle-google, dschuff.
wingo requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

This commit adds a full WasmTableType to MCSymbolWasm, differing from
the current situation (just an ElemType) in that it additionally records
a WasmLimits.

We add support for specifying the limits in .S files also, via the
following syntax variations:

  .tabletype SYM, ELEMTYPE
  .tabletype SYM, ELEMTYPE, MINSIZE
  .tabletype SYM, ELEMTYPE, MINSIZE, MAXSIZE

Depends on D99186 <https://reviews.llvm.org/D99186>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99191

Files:
  llvm/include/llvm/MC/MCSymbolWasm.h
  llvm/lib/MC/WasmObjectWriter.cpp
  llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
  llvm/test/MC/WebAssembly/tables.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99191.332683.patch
Type: text/x-patch
Size: 8035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210323/1c504bac/attachment.bin>


More information about the llvm-commits mailing list