Adding files for Microchip's PIC16 target.
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 13 May 2008 09:02:57 +0000 (09:02 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 13 May 2008 09:02:57 +0000 (09:02 +0000)
commit0e68771536a8a3f92b81b6d57011eadf010a4fd7
treecfd4a927ef4bb5bbfabb6694b6214b3bd890ceb2
parent77f0b7a50a08614b5ffd58f1864b68a9a30d0cb0
Adding files for Microchip's PIC16 target.

A brief description about PIC16:
===============================
PIC16 is an 8-bit microcontroller with only one 8-bit register which is the
accumulator. All arithmetic/load/store operations are 8-bit only.
The architecture has two address spaces: program and data. The program memory
is divided into 2K pages and the data memory is divided into banks of 128 byte, with only 80 usable bytes, resulting in an non-contiguous data memory.

It supports direct data memory access (by specifying the address as part of the instruction) and indirect data and program memory access (in an unorthodox fashion which utilize a 16 bit pointer register).

Two classes of registers exist: (8-bit class which is only one
accumulator) (16-bit class, which contains one or more 16 bit
pointer(s))

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51027 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
lib/Target/PIC16/Makefile [new file with mode: 0644]
lib/Target/PIC16/PIC16.h [new file with mode: 0644]
lib/Target/PIC16/PIC16.td [new file with mode: 0644]
lib/Target/PIC16/PIC16AsmPrinter.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16CallingConv.td [new file with mode: 0644]
lib/Target/PIC16/PIC16ConstantPoolValue.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16ConstantPoolValue.h [new file with mode: 0644]
lib/Target/PIC16/PIC16ISelDAGToDAG.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16ISelLowering.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16ISelLowering.h [new file with mode: 0644]
lib/Target/PIC16/PIC16InstrFormats.td [new file with mode: 0644]
lib/Target/PIC16/PIC16InstrInfo.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16InstrInfo.h [new file with mode: 0644]
lib/Target/PIC16/PIC16InstrInfo.td [new file with mode: 0644]
lib/Target/PIC16/PIC16RegisterInfo.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16RegisterInfo.h [new file with mode: 0644]
lib/Target/PIC16/PIC16RegisterInfo.td [new file with mode: 0644]
lib/Target/PIC16/PIC16Subtarget.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16Subtarget.h [new file with mode: 0644]
lib/Target/PIC16/PIC16TargetAsmInfo.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16TargetAsmInfo.h [new file with mode: 0644]
lib/Target/PIC16/PIC16TargetMachine.cpp [new file with mode: 0644]
lib/Target/PIC16/PIC16TargetMachine.h [new file with mode: 0644]