diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-11-19 11:00:54 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-11-19 11:00:54 +0000 |
commit | 085ae4ff5f4b703a03668ffd130e204791e9a876 (patch) | |
tree | 50927bf30fff92fd28b11b51e72002f26cad7a61 /lib/Target/PIC16/PIC16.td | |
parent | 5f334804a5042a5467cd52202f0294ed66c96095 (diff) | |
download | external_llvm-085ae4ff5f4b703a03668ffd130e204791e9a876.zip external_llvm-085ae4ff5f4b703a03668ffd130e204791e9a876.tar.gz external_llvm-085ae4ff5f4b703a03668ffd130e204791e9a876.tar.bz2 |
Added a more function PIC16 backend. However to get this working a patch in
ExpandIntegerOperand (LegalizeIntegerTypes.cpp) is needed which is yet to be reworked and submitted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16.td')
-rw-r--r-- | lib/Target/PIC16/PIC16.td | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/lib/Target/PIC16/PIC16.td b/lib/Target/PIC16/PIC16.td index 8355de1..d37075b 100644 --- a/lib/Target/PIC16/PIC16.td +++ b/lib/Target/PIC16/PIC16.td @@ -15,30 +15,24 @@ include "../Target.td" -//===----------------------------------------------------------------------===// -// Descriptions -//===----------------------------------------------------------------------===// - include "PIC16RegisterInfo.td" -include "PIC16CallingConv.td" include "PIC16InstrInfo.td" -def PIC16InstrInfo : InstrInfo { - let TSFlagsFields = []; - let TSFlagsShifts = []; -} - - - -// Not currently supported, but work as SubtargetFeature placeholder. -def FeaturePIC16Old : SubtargetFeature<"pic16old", "IsPIC16Old", "true", - "PIC16 Old ISA Support">; +//===----------------------------------------------------------------------===// +// Subtarget Features. +//===----------------------------------------------------------------------===// +def FeatureCooper : SubtargetFeature<"cooper", "IsCooper", "true", + "PIC16 Cooper ISA Support">; //===----------------------------------------------------------------------===// -// PIC16 processors supported. +// PIC16 supported processors. //===----------------------------------------------------------------------===// def : Processor<"generic", NoItineraries, []>; +def : Processor<"cooper", NoItineraries, [FeatureCooper]>; + + +def PIC16InstrInfo : InstrInfo {} def PIC16 : Target { let InstructionSet = PIC16InstrInfo; |