xref: /aosp_15_r20/external/llvm/lib/Target/MSP430/MSP430.td (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker//===-- MSP430.td - Describe the MSP430 Target Machine -----*- tablegen -*-===//
2*9880d681SAndroid Build Coastguard Worker//
3*9880d681SAndroid Build Coastguard Worker//                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker//
5*9880d681SAndroid Build Coastguard Worker// This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker// License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker//
8*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker// This is the top level entry point for the MSP430 target.
10*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
13*9880d681SAndroid Build Coastguard Worker// Target-independent interfaces
14*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Workerinclude "llvm/Target/Target.td"
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
19*9880d681SAndroid Build Coastguard Worker// Subtarget Features.
20*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
21*9880d681SAndroid Build Coastguard Workerdef FeatureX
22*9880d681SAndroid Build Coastguard Worker : SubtargetFeature<"ext", "ExtendedInsts", "true",
23*9880d681SAndroid Build Coastguard Worker                    "Enable MSP430-X extensions">;
24*9880d681SAndroid Build Coastguard Worker
25*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
26*9880d681SAndroid Build Coastguard Worker// MSP430 supported processors.
27*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
28*9880d681SAndroid Build Coastguard Workerclass Proc<string Name, list<SubtargetFeature> Features>
29*9880d681SAndroid Build Coastguard Worker : Processor<Name, NoItineraries, Features>;
30*9880d681SAndroid Build Coastguard Worker
31*9880d681SAndroid Build Coastguard Workerdef : Proc<"generic",         []>;
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
34*9880d681SAndroid Build Coastguard Worker// Register File Description
35*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Workerinclude "MSP430RegisterInfo.td"
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
40*9880d681SAndroid Build Coastguard Worker// Calling Convention Description
41*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
42*9880d681SAndroid Build Coastguard Worker
43*9880d681SAndroid Build Coastguard Workerinclude "MSP430CallingConv.td"
44*9880d681SAndroid Build Coastguard Worker
45*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
46*9880d681SAndroid Build Coastguard Worker// Instruction Descriptions
47*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
48*9880d681SAndroid Build Coastguard Worker
49*9880d681SAndroid Build Coastguard Workerinclude "MSP430InstrInfo.td"
50*9880d681SAndroid Build Coastguard Worker
51*9880d681SAndroid Build Coastguard Workerdef MSP430InstrInfo : InstrInfo;
52*9880d681SAndroid Build Coastguard Worker
53*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
54*9880d681SAndroid Build Coastguard Worker// Target Declaration
55*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===//
56*9880d681SAndroid Build Coastguard Worker
57*9880d681SAndroid Build Coastguard Workerdef MSP430 : Target {
58*9880d681SAndroid Build Coastguard Worker  let InstructionSet = MSP430InstrInfo;
59*9880d681SAndroid Build Coastguard Worker}
60*9880d681SAndroid Build Coastguard Worker
61