1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/Target/WebAssembly/Utils
Paulo Matos 839dc2d28e [WebAssembly] Support for WebAssembly globals in LLVM IR
This patch adds support for WebAssembly globals in LLVM IR, representing
them as pointers to global values, in a non-default, non-integral
address space.  Instruction selection legalizes loads and stores to
these pointers to new WebAssemblyISD nodes GLOBAL_GET and GLOBAL_SET.
Once the lowering creates the new nodes, tablegen pattern matches those
and converts them to Wasm global.get/set of the appropriate type.

Based on work by Paulo Matos in https://reviews.llvm.org/D95425.

Reviewed By: pmatos

Differential Revision: https://reviews.llvm.org/D101608
2021-05-11 11:19:29 +02:00
..
CMakeLists.txt
WebAssemblyTypeUtilities.cpp
WebAssemblyTypeUtilities.h
WebAssemblyUtilities.cpp
WebAssemblyUtilities.h [WebAssembly] Support for WebAssembly globals in LLVM IR 2021-05-11 11:19:29 +02:00