summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-10-09 22:23:39 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-10-09 22:23:39 +0000
commitd9a6de3c3808961f525940fd9ff4c4617e4e52e1 (patch)
treef6c15964eaeeee3bf444662b2052dcbd2b527047 /llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
parent3d2efdfdea2f70ab2eb1e81dc9c254240e4f2d7b (diff)
downloadbcm5719-llvm-d9a6de3c3808961f525940fd9ff4c4617e4e52e1.tar.gz
bcm5719-llvm-d9a6de3c3808961f525940fd9ff4c4617e4e52e1.zip
[WebAssembly] Improve readability of SIMD instructions (NFC)
Summary: - Categorize instructions into the categories as in the SIMD spec - Move SIMD-related definition to WebAssemblyInstrSIMD.td - Put definition and use of patterns together - Add newlines here and there Reviewers: tlively Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D53045 llvm-svn: 344086
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
index c3ad3f78b61..683fb3d981f 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
@@ -58,12 +58,3 @@ multiclass NRI<dag oops, dag iops, list<dag> pattern, string asmstr = "",
bits<32> inst = -1> {
defm "": I<oops, iops, oops, iops, pattern, asmstr, asmstr, inst>;
}
-
-// Instructions requiring HasSIMD128 and the simd128 prefix byte
-multiclass SIMD_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> simdop = -1> {
- defm "" : I<oops_r, iops_r, oops_s, iops_s, pattern_r, asmstr_r, asmstr_s,
- !or(0xfd00, !and(0xff, simdop))>,
- Requires<[HasSIMD128]>;
-}
OpenPOWER on IntegriCloud