Sanjiv Gupta | 09bb420 | 2008-05-13 09:02:57 +0000 | [diff] [blame^] | 1 | //===- 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 | |
| 16 | include "../Target.td" |
| 17 | |
| 18 | //===----------------------------------------------------------------------===// |
| 19 | // Descriptions |
| 20 | //===----------------------------------------------------------------------===// |
| 21 | |
| 22 | include "PIC16RegisterInfo.td" |
| 23 | include "PIC16CallingConv.td" |
| 24 | include "PIC16InstrInfo.td" |
| 25 | |
| 26 | def PIC16InstrInfo : InstrInfo { |
| 27 | let TSFlagsFields = []; |
| 28 | let TSFlagsShifts = []; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | |
| 33 | // Not currently supported, but work as SubtargetFeature placeholder. |
| 34 | def FeaturePIC16Old : SubtargetFeature<"pic16old", "IsPIC16Old", "true", |
| 35 | "PIC16 Old ISA Support">; |
| 36 | |
| 37 | //===----------------------------------------------------------------------===// |
| 38 | // PIC16 processors supported. |
| 39 | //===----------------------------------------------------------------------===// |
| 40 | |
| 41 | def : Processor<"generic", NoItineraries, []>; |
| 42 | |
| 43 | def PIC16 : Target { |
| 44 | let InstructionSet = PIC16InstrInfo; |
| 45 | } |
| 46 | |