diff options
| author | Heejin Ahn <aheejin@gmail.com> | 2018-03-02 06:51:35 +0000 |
|---|---|---|
| committer | Heejin Ahn <aheejin@gmail.com> | 2018-03-02 06:51:35 +0000 |
| commit | d684cb57f4da887b948b017e23c0e365c9845c1b (patch) | |
| tree | a30d5d21737ae8fd174eefa55a59c1c48dd23fd3 /llvm/lib/Target/WebAssembly | |
| parent | b8aeec46b7fb0a88c74208a577dc0b441ed03cfe (diff) | |
| download | bcm5719-llvm-d684cb57f4da887b948b017e23c0e365c9845c1b.tar.gz bcm5719-llvm-d684cb57f4da887b948b017e23c0e365c9845c1b.zip | |
[WebAssembly] More uses of uint8_t for single byte values
Summary: It looks like this was missing from D43921.
Reviewers: sbc100
Subscribers: jfb, dschuff, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D43991
llvm-svn: 326541
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h index 7dca89ab822..e27a74008ac 100644 --- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h +++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h @@ -158,19 +158,19 @@ static const unsigned LoadP2AlignOperandNo = 1; static const unsigned StoreP2AlignOperandNo = 0; /// This is used to indicate block signatures. -enum class ExprType { - Void = -0x40, - I32 = -0x01, - I64 = -0x02, - F32 = -0x03, - F64 = -0x04, - I8x16 = -0x05, - I16x8 = -0x06, - I32x4 = -0x07, - F32x4 = -0x08, - B8x16 = -0x09, - B16x8 = -0x0a, - B32x4 = -0x0b +enum class ExprType : unsigned { + Void = 0x40, + I32 = 0x7F, + I64 = 0x7E, + F32 = 0x7D, + F64 = 0x7C, + I8x16 = 0x7B, + I16x8 = 0x7A, + I32x4 = 0x79, + F32x4 = 0x78, + B8x16 = 0x77, + B16x8 = 0x76, + B32x4 = 0x75 }; /// Instruction opcodes emitted via means other than CodeGen. |

