summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2018-09-21 20:53:55 +0000
committerWouter van Oortmerssen <aardappel@gmail.com>2018-09-21 20:53:55 +0000
commite0403f13c461a515a77a297569bde3243a498cc9 (patch)
treed74889841c74bdc52a9ef08508fcbb23c793c44c /llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
parenta9d9836d98f7983adf3b4da4ce3f0a47645eba71 (diff)
downloadbcm5719-llvm-e0403f13c461a515a77a297569bde3243a498cc9.tar.gz
bcm5719-llvm-e0403f13c461a515a77a297569bde3243a498cc9.zip
[WebAssembly] Simplified selecting asmmatcher stack instructions.
Summary: By using the existing isCodeGenOnly bit in the tablegen defs, as suggested by tlively in https://reviews.llvm.org/D51662 Tested: llvm-lit -v `find test -name WebAssembly` Reviewers: tlively Subscribers: dschuff, sbc100, jgravelle-google, aheejin, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D52373 llvm-svn: 342772
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
index 79066c5adfb..c3ad3f78b61 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrFormats.td
@@ -48,6 +48,7 @@ class NI<dag oops, dag iops, list<dag> pattern, bit stack, string asmstr = "",
multiclass 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> {
+ let isCodeGenOnly = 1 in
def "" : NI<oops_r, iops_r, pattern_r, 0, asmstr_r, inst>;
def _S : NI<oops_s, iops_s, [], 1, asmstr_s, inst>;
}
OpenPOWER on IntegriCloud