blob: b2b9b1cd171ee7697fb2d30cc8e7d7e4340c4085 [file] [log] [blame]
Sanjiv Gupta09bb4202008-05-13 09:02:57 +00001//===- PIC16.td - Describe the PIC16 Target Machine -----------*- tblgen -*-==//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9// This is the top level entry point for the PIC16 target.
10//===----------------------------------------------------------------------===//
11
12//===----------------------------------------------------------------------===//
13// Target-independent interfaces
14//===----------------------------------------------------------------------===//
15
Evan Cheng301aaf52008-11-24 07:34:46 +000016include "llvm/Target/Target.td"
Sanjiv Gupta09bb4202008-05-13 09:02:57 +000017
Sanjiv Gupta09bb4202008-05-13 09:02:57 +000018include "PIC16RegisterInfo.td"
Sanjiv Gupta09bb4202008-05-13 09:02:57 +000019include "PIC16InstrInfo.td"
20
Sanjiv Gupta085ae4f2008-11-19 11:00:54 +000021//===----------------------------------------------------------------------===//
22// Subtarget Features.
23//===----------------------------------------------------------------------===//
24def FeatureCooper : SubtargetFeature<"cooper", "IsCooper", "true",
25 "PIC16 Cooper ISA Support">;
Sanjiv Gupta09bb4202008-05-13 09:02:57 +000026
27//===----------------------------------------------------------------------===//
Sanjiv Gupta085ae4f2008-11-19 11:00:54 +000028// PIC16 supported processors.
Sanjiv Gupta09bb4202008-05-13 09:02:57 +000029//===----------------------------------------------------------------------===//
30
31def : Processor<"generic", NoItineraries, []>;
Sanjiv Gupta085ae4f2008-11-19 11:00:54 +000032def : Processor<"cooper", NoItineraries, [FeatureCooper]>;
33
34
35def PIC16InstrInfo : InstrInfo {}
Sanjiv Gupta09bb4202008-05-13 09:02:57 +000036
37def PIC16 : Target {
38 let InstructionSet = PIC16InstrInfo;
39}
40