Dan Gohman
ab20565a82
[WebAssembly] Remove old experimental disassemler code.
...
Remove support for disassembling an old experimental wasm binary format, which
is no longer in use anywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294809 91177308-0d34-0410-b5e6-96231b3b80d8
2017-02-11 00:02:23 +00:00
Dan Gohman
e56a9ab847
[WebAssembly] Add instruction definitions for drop and get/set_global.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293922 91177308-0d34-0410-b5e6-96231b3b80d8
2017-02-02 19:29:44 +00:00
Dan Gohman
1871c0f455
[WebAssembly] Add an option to make get_local/set_local explicit.
...
This patch adds a pass, controlled by an option and off by default for
now, for making implicit get_local/set_local explicit. This simplifies
emitting wasm with MC.
Differential Revision: https://reviews.llvm.org/D25836
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285009 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-24 19:49:43 +00:00
Mehdi Amini
ae5f5d3d3c
Move the global variables representing each Target behind accessor function
...
This avoids "static initialization order fiasco"
Differential Revision: https://reviews.llvm.org/D25412
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283702 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-09 23:00:34 +00:00
Dan Gohman
e0c2ec2a7e
[WebAssembly] Rename OPERAND_FP32IMM to OPERAND_F32IMM.
...
WebAssembly documentation consistently says "f32" rather than "fp32" to
describe 32-bit floating-point.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283146 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-03 21:31:31 +00:00
Dan Gohman
ab40f7f14f
[WebAssembly] Implement support for custom NaN bit patterns.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260968 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-16 15:14:23 +00:00
Benjamin Kramer
c46572c9c0
Update wasm target for r258819.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258827 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-26 18:21:38 +00:00
Dan Gohman
407037aa3d
[WebAssembly] Implement unaligned loads and stores.
...
Differential Revision: http://reviews.llvm.org/D16534
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258779 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-26 03:39:31 +00:00
Dan Gohman
b28bc14f59
[WebAssembly] Implement a prototype instruction encoder and disassembler.
...
This is using an extremely simple temporary made-up binary format, not the
official binary format (which isn't defined yet).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257440 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-12 03:32:29 +00:00