aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/M88k/M88k.td
blob: 80c7dd8a806222822beef1b84368af80cdb6c6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//===-- M88k.td - Describe the M88000 Target Machine -------*- tablegen -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//

//===----------------------------------------------------------------------===//
// Target-independent interfaces which we are implementing
//===----------------------------------------------------------------------===//

include "llvm/Target/Target.td"

//===----------------------------------------------------------------------===//
// M88k subtarget features.
//===----------------------------------------------------------------------===//

def FeatureGraphics : SubtargetFeature<"graphics", "HasGraphics", "true",
                                       "has graphics instructions", []>;

def Proc88000       : SubtargetFeature<"mc88000", "M88kProc", "MC88000",
                                       "Generic 88000 processor", []>;
def Proc88100       : SubtargetFeature<"mc88100", "M88kProc", "MC88100",
                                       "Motorola 88100 processor", []>;
def Proc88110       : SubtargetFeature<"mc88110", "M88kProc", "MC88110",
                                       "Motorola 88110 processor",
                                       [FeatureGraphics]>;

//===----------------------------------------------------------------------===//
// Register File, Calling Conv, Instruction Descriptions
//===----------------------------------------------------------------------===//

include "M88kRegisterInfo.td"
include "GISel/M88kRegisterBanks.td"
include "M88kCallingConv.td"
include "M88kInstrFormats.td"
include "M88kInstrInfo.td"
include "M88kCombine.td"
include "M88kSchedule.td"

//===----------------------------------------------------------------------===//
// M88k processors supported.
//===----------------------------------------------------------------------===//

def : ProcessorModel<"mc88000", M88100SchedModel, [Proc88000]>;
def : ProcessorModel<"mc88100", M88100SchedModel, [Proc88100]>;
def : ProcessorModel<"mc88110", M88110SchedModel, [Proc88110]>;

//===----------------------------------------------------------------------===//
// Declare the target which we are implementing
//===----------------------------------------------------------------------===//

def M88kInstrInfo : InstrInfo;
def M88kAsmParser : AsmParser;
def M88kAsmParserVariant : AsmParserVariant {
  let RegisterPrefix = "%";
  let TokenizingCharacters = "[]<>*!";
}

def M88kAsmWriter : AsmWriter {
  string AsmWriterClassName  = "InstPrinter";
  int PassSubtarget = 1;
  int Variant = 0;
}

def M88k : Target {
  let InstructionSet = M88kInstrInfo;
  let AssemblyParsers  = [M88kAsmParser];
  let AssemblyParserVariants = [M88kAsmParserVariant];
  let AssemblyWriters = [M88kAsmWriter];
  let AllowRegisterRenaming = 1;
}