OSDN Git Service

[WebAssembly] TableGen backend for stackifying instructions
authorThomas Lively <tlively@google.com>
Mon, 27 Aug 2018 22:02:09 +0000 (22:02 +0000)
committerThomas Lively <tlively@google.com>
Mon, 27 Aug 2018 22:02:09 +0000 (22:02 +0000)
commitcef9a05f4d2ae7fd8de9ccb8cb079ff5a127895d
tree57e1355c1267f40c74cd34fcfdbe119a0bd91b20
parentf550b4adcb765a64c16e224e9e7ebda8b1140f21
[WebAssembly] TableGen backend for stackifying instructions

Summary:
The new stackification backend generates the giant switch statement
used to translate instructions to their stackified forms. I did this
because it was more interesting than adding all the different vector
versions of the various SIMD instructions to the switch statment
manually.

Reviewers: aardappel, aheejin, dschuff

Subscribers: mgorny, sbc100, jgravelle-google, sunfish, jfb, llvm-commits

Differential Revision: https://reviews.llvm.org/D51318

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340781 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/CMakeLists.txt
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
utils/TableGen/CMakeLists.txt
utils/TableGen/TableGen.cpp
utils/TableGen/TableGenBackends.h
utils/TableGen/WebAssemblyStackifierEmitter.cpp [new file with mode: 0644]