llvm-65816/lib/Target/MSP430
2014-07-04 22:48:00 -04:00
..
InstPrinter Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MCTargetDesc Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
TargetInfo Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
CMakeLists.txt Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
LLVMBuild.txt Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
Makefile Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430.td Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430AsmPrinter.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430BranchSelector.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430CallingConv.td Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430FrameLowering.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430FrameLowering.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430InstrFormats.td Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430InstrInfo.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430InstrInfo.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430InstrInfo.td Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430ISelDAGToDAG.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430ISelLowering.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430ISelLowering.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430MachineFunctionInfo.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430MachineFunctionInfo.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430MCInstLower.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430MCInstLower.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430RegisterInfo.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430RegisterInfo.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430RegisterInfo.td Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430SelectionDAGInfo.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430SelectionDAGInfo.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430Subtarget.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430Subtarget.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430TargetMachine.cpp Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
MSP430TargetMachine.h Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00
README.txt Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4 2014-07-04 22:48:00 -04:00

//===---------------------------------------------------------------------===//
// MSP430 backend.
//===---------------------------------------------------------------------===//

DISCLAIMER: Thid backend should be considered as highly experimental. I never
seen nor worked with this MCU, all information was gathered from datasheet
only. The original intention of making this backend was to write documentation
of form "How to write backend for dummies" :) Thes notes hopefully will be
available pretty soon.

Some things are incomplete / not implemented yet (this list surely is not
complete as well):

1. Verify, how stuff is handling implicit zext with 8 bit operands (this might
be modelled currently in improper way - should we need to mark the superreg as
def for every 8 bit instruction?).

2. Libcalls: multiplication, division, remainder. Note, that calling convention
for libcalls is incomptible with calling convention of libcalls of msp430-gcc
(these cannot be used though due to license restriction).

3. Implement multiplication / division by constant (dag combiner hook?).

4. Implement non-constant shifts.

5. Implement varargs stuff.

6. Verify and fix (if needed) how's stuff playing with i32 / i64.

7. Implement floating point stuff (softfp?)

8. Implement instruction encoding for (possible) direct code emission in the
future.

9. Since almost all instructions set flags - implement brcond / select in better
way (currently they emit explicit comparison).

10. Handle imm in comparisons in better way (see comment in MSP430InstrInfo.td)

11. Implement hooks for better memory op folding, etc.