1 //===-- XCoreInstrFormats.td - XCore Instruction Formats ---*- 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 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
11 // Instruction format superclass
12 //===----------------------------------------------------------------------===//
13 class InstXCore<int sz, dag outs, dag ins, string asmstr, list<dag> pattern>
17 let Namespace = "XCore";
18 dag OutOperandList = outs;
19 dag InOperandList = ins;
20 let AsmString = asmstr;
21 let Pattern = pattern;
25 // XCore pseudo instructions format
26 class PseudoInstXCore<dag outs, dag ins, string asmstr, list<dag> pattern>
27 : InstXCore<0, outs, ins, asmstr, pattern>;
29 //===----------------------------------------------------------------------===//
30 // Instruction formats
31 //===----------------------------------------------------------------------===//
33 class _F3R<dag outs, dag ins, string asmstr, list<dag> pattern>
34 : InstXCore<2, outs, ins, asmstr, pattern> {
38 class _FL3R<dag outs, dag ins, string asmstr, list<dag> pattern>
39 : InstXCore<4, outs, ins, asmstr, pattern> {
43 class _F2RUS<dag outs, dag ins, string asmstr, list<dag> pattern>
44 : InstXCore<2, outs, ins, asmstr, pattern> {
48 class _FL2RUS<dag outs, dag ins, string asmstr, list<dag> pattern>
49 : InstXCore<4, outs, ins, asmstr, pattern> {
53 class _FRU6<dag outs, dag ins, string asmstr, list<dag> pattern>
54 : InstXCore<2, outs, ins, asmstr, pattern> {
58 class _FLRU6<dag outs, dag ins, string asmstr, list<dag> pattern>
59 : InstXCore<4, outs, ins, asmstr, pattern> {
63 class _FU6<dag outs, dag ins, string asmstr, list<dag> pattern>
64 : InstXCore<2, outs, ins, asmstr, pattern> {
68 class _FLU6<dag outs, dag ins, string asmstr, list<dag> pattern>
69 : InstXCore<4, outs, ins, asmstr, pattern> {
73 class _FU10<dag outs, dag ins, string asmstr, list<dag> pattern>
74 : InstXCore<2, outs, ins, asmstr, pattern> {
78 class _FLU10<dag outs, dag ins, string asmstr, list<dag> pattern>
79 : InstXCore<4, outs, ins, asmstr, pattern> {
83 class _F2R<dag outs, dag ins, string asmstr, list<dag> pattern>
84 : InstXCore<2, outs, ins, asmstr, pattern> {
88 class _FRUS<dag outs, dag ins, string asmstr, list<dag> pattern>
89 : InstXCore<2, outs, ins, asmstr, pattern> {
93 class _FL2R<dag outs, dag ins, string asmstr, list<dag> pattern>
94 : InstXCore<4, outs, ins, asmstr, pattern> {
98 class _F1R<dag outs, dag ins, string asmstr, list<dag> pattern>
99 : InstXCore<2, outs, ins, asmstr, pattern> {
103 class _F0R<dag outs, dag ins, string asmstr, list<dag> pattern>
104 : InstXCore<2, outs, ins, asmstr, pattern> {
108 class _L4R<dag outs, dag ins, string asmstr, list<dag> pattern>
109 : InstXCore<4, outs, ins, asmstr, pattern> {
113 class _L5R<dag outs, dag ins, string asmstr, list<dag> pattern>
114 : InstXCore<4, outs, ins, asmstr, pattern> {
118 class _L6R<dag outs, dag ins, string asmstr, list<dag> pattern>
119 : InstXCore<4, outs, ins, asmstr, pattern> {