summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2018-08-23 00:36:43 +0000
committerThomas Lively <tlively@google.com>2018-08-23 00:36:43 +0000
commit914f0f20a42039cda4eeb6607065556c0c08577f (patch)
treec90b1ea65751735ecfc450e11925ee71b3df2a93 /llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
parentab0011ebc015ac5ccd5146720df9d0faf5ad1d42 (diff)
downloadbcm5719-llvm-914f0f20a42039cda4eeb6607065556c0c08577f.tar.gz
bcm5719-llvm-914f0f20a42039cda4eeb6607065556c0c08577f.zip
[WebAssembly][NFC] Move specific instruction formats to specific files
Summary: WebAssemblyInstrFormats.td retains only multiclasses that are used in multiple other tablegen files. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, jfb, llvm-commits Differential Revision: https://reviews.llvm.org/D51143 llvm-svn: 340503
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
index 6ea6d31587f..9eff2cfde0a 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
@@ -16,6 +16,14 @@
// Atomic loads
//===----------------------------------------------------------------------===//
+multiclass ATOMIC_I<dag oops_r, dag iops_r, dag oops_s, dag iops_s,
+ list<dag> pattern_r, string asmstr_r = "",
+ string asmstr_s = "", bits<32> inst = -1> {
+ defm "" : I<oops_r, iops_r, oops_s, iops_s, pattern_r, asmstr_r, asmstr_s,
+ inst>,
+ Requires<[HasAtomics]>;
+}
+
let Defs = [ARGUMENTS] in {
defm ATOMIC_LOAD_I32 : WebAssemblyLoad<I32, "i32.atomic.load", 0xfe10>;
defm ATOMIC_LOAD_I64 : WebAssemblyLoad<I64, "i64.atomic.load", 0xfe11>;
OpenPOWER on IntegriCloud