[PATCH] D90608: [WebAssembly] Implement ref.null

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 06:51:02 PST 2020


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

This patch adds a new "heap type" operand kind to the WebAssembly MC
layer, used by ref.null.  Currently the possible values are "extern" and
"func"; when typed function references come, though, this operand may be
a type index.

Note that the "heap type" production is still known as "refedtype" in
the draft proposal; changing its name in the spec is
ongoing (https://github.com/WebAssembly/reference-types/issues/123).

The register form of ref.null is still unimplemented, so the DAG pattern
is empty.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90608

Files:
  llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.h
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
  llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
  llvm/lib/Target/WebAssembly/WebAssemblyInstrRef.td
  llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  llvm/test/MC/WebAssembly/reference-types.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90608.302271.patch
Type: text/x-patch
Size: 10132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201102/cb5e33b8/attachment.bin>


More information about the llvm-commits mailing list