[WebAssembly] Implement table instruction intrinsics
authorPaulo Matos <pmatos@igalia.com>
Mon, 6 Dec 2021 08:51:39 +0000 (09:51 +0100)
committerPaulo Matos <pmatos@igalia.com>
Tue, 7 Dec 2021 12:25:59 +0000 (13:25 +0100)
commit2fd634a5e307fc21ea7d05ab7c7fe9689f14fe25
tree7a78dcbaf8da5bbce482756b9f1302cb030bb70d
parented43aab98d52112f29e2a0204b85582096300bfe
[WebAssembly] Implement table instruction intrinsics

This change implements intrinsics for table.grow, table.fill,
table.size, and table.copy.

Differential Revision: https://reviews.llvm.org/D113420
13 files changed:
llvm/include/llvm/IR/IntrinsicsWebAssembly.td
llvm/lib/CodeGen/ValueTypes.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrTable.td
llvm/test/CodeGen/WebAssembly/funcref-call.ll
llvm/test/CodeGen/WebAssembly/funcref-globalget.ll
llvm/test/CodeGen/WebAssembly/funcref-globalset.ll
llvm/test/CodeGen/WebAssembly/funcref-table_call.ll
llvm/test/CodeGen/WebAssembly/funcref-tableget.ll
llvm/test/CodeGen/WebAssembly/funcref-tableset.ll
llvm/test/CodeGen/WebAssembly/table-copy.ll [new file with mode: 0644]
llvm/test/CodeGen/WebAssembly/table-fill.ll [new file with mode: 0644]
llvm/test/CodeGen/WebAssembly/table-grow.ll [new file with mode: 0644]
llvm/test/CodeGen/WebAssembly/table-size.ll [new file with mode: 0644]