mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
[WebAssembly] Add missing _S opcodes of atomic stores to InstPrinter
Summary: This was missing in D48839 (rL336145). Reviewers: aardappel Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D48992 llvm-svn: 336390
This commit is contained in:
parent
4a34a5527b
commit
28a2f09d54
@ -125,7 +125,9 @@ inline unsigned GetDefaultP2Align(unsigned Opcode) {
|
||||
case WebAssembly::STORE8_I64:
|
||||
case WebAssembly::STORE8_I64_S:
|
||||
case WebAssembly::ATOMIC_STORE8_I32:
|
||||
case WebAssembly::ATOMIC_STORE8_I32_S:
|
||||
case WebAssembly::ATOMIC_STORE8_I64:
|
||||
case WebAssembly::ATOMIC_STORE8_I64_S:
|
||||
return 0;
|
||||
case WebAssembly::LOAD16_S_I32:
|
||||
case WebAssembly::LOAD16_S_I32_S:
|
||||
@ -144,7 +146,9 @@ inline unsigned GetDefaultP2Align(unsigned Opcode) {
|
||||
case WebAssembly::STORE16_I64:
|
||||
case WebAssembly::STORE16_I64_S:
|
||||
case WebAssembly::ATOMIC_STORE16_I32:
|
||||
case WebAssembly::ATOMIC_STORE16_I32_S:
|
||||
case WebAssembly::ATOMIC_STORE16_I64:
|
||||
case WebAssembly::ATOMIC_STORE16_I64_S:
|
||||
return 1;
|
||||
case WebAssembly::LOAD_I32:
|
||||
case WebAssembly::LOAD_I32_S:
|
||||
@ -165,7 +169,9 @@ inline unsigned GetDefaultP2Align(unsigned Opcode) {
|
||||
case WebAssembly::ATOMIC_LOAD32_U_I64:
|
||||
case WebAssembly::ATOMIC_LOAD32_U_I64_S:
|
||||
case WebAssembly::ATOMIC_STORE_I32:
|
||||
case WebAssembly::ATOMIC_STORE_I32_S:
|
||||
case WebAssembly::ATOMIC_STORE32_I64:
|
||||
case WebAssembly::ATOMIC_STORE32_I64_S:
|
||||
return 2;
|
||||
case WebAssembly::LOAD_I64:
|
||||
case WebAssembly::LOAD_I64_S:
|
||||
@ -178,6 +184,7 @@ inline unsigned GetDefaultP2Align(unsigned Opcode) {
|
||||
case WebAssembly::ATOMIC_LOAD_I64:
|
||||
case WebAssembly::ATOMIC_LOAD_I64_S:
|
||||
case WebAssembly::ATOMIC_STORE_I64:
|
||||
case WebAssembly::ATOMIC_STORE_I64_S:
|
||||
return 3;
|
||||
default:
|
||||
llvm_unreachable("Only loads and stores have p2align values");
|
||||
|
Loading…
Reference in New Issue
Block a user