1 // WebAssemblyInstrInfo.td-Describe the WebAssembly Instructions-*- tablegen -*-
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief WebAssembly Instruction definitions.
13 //===----------------------------------------------------------------------===//
15 //===----------------------------------------------------------------------===//
16 // WebAssembly Instruction Predicate Definitions.
17 //===----------------------------------------------------------------------===//
19 def HasAddr32 : Predicate<"!Subtarget->hasAddr64()">;
20 def HasAddr64 : Predicate<"Subtarget->hasAddr64()">;
21 def HasSIMD128 : Predicate<"Subtarget->hasSIMD128()">,
22 AssemblerPredicate<"FeatureSIMD128", "simd128">;
24 //===----------------------------------------------------------------------===//
25 // WebAssembly-specific DAG Node Types.
26 //===----------------------------------------------------------------------===//
28 //===----------------------------------------------------------------------===//
29 // WebAssembly-specific DAG Nodes.
30 //===----------------------------------------------------------------------===//
32 //===----------------------------------------------------------------------===//
33 // WebAssembly-specific Operands.
34 //===----------------------------------------------------------------------===//
37 * TODO(jfb): Add the following.
39 * get_local: read the current value of a local variable
40 * set_local: set the current value of a local variable
43 //===----------------------------------------------------------------------===//
44 // WebAssembly Instruction Format Definitions.
45 //===----------------------------------------------------------------------===//
47 include "WebAssemblyInstrFormats.td"
49 //===----------------------------------------------------------------------===//
50 // Additional sets of instructions.
51 //===----------------------------------------------------------------------===//
53 include "WebAssemblyInstrMemory.td"
54 include "WebAssemblyInstrCall.td"
55 include "WebAssemblyInstrInteger.td"
56 include "WebAssemblyInstrFloat.td"
57 include "WebAssemblyInstrConv.td"
58 include "WebAssemblyInstrAtomics.td"
59 include "WebAssemblyInstrSIMD.td"