Add TODO list :)
[oota-llvm.git] / lib / Target / MSP430 / README.txt
1 //===---------------------------------------------------------------------===//
2 // MSP430 backend.
3 //===---------------------------------------------------------------------===//
4
5 DISCLAIMER: Thid backend should be considered as highly experimental. I never
6 seen nor worked with this MCU, all information was gathered from datasheet
7 only. The original intention of making this backend was to write documentation
8 of form "How to write backend for dummies" :) Thes notes hopefully will be
9 available pretty soon.
10
11 Some things are incomplete / not implemented yet (this list surely is not
12 complete as well):
13
14 0. Implement asmprinting for variables :)
15
16 1. Verify, how stuff is handling implicit zext with 8 bit operands (this might
17 be modelled currently in improper way - should we need to mark the superreg as
18 def for every 8 bit instruction?).
19
20 2. Libcalls: multiplication, division, remainder. Note, that calling convention
21 for libcalls is incomptible with calling convention of libcalls of msp430-gcc
22 (these cannot be used though due to license restriction).
23
24 3. Implement multiplication / division by constant (dag combiner hook?).
25
26 4. Implement non-constant shifts.
27
28 5. Implement varargs stuff.
29
30 6. Verify and fix (if needed) how's stuff playing with i32 / i64.
31
32 7. Implement floating point stuff (softfp?)
33
34 8. Implement instruction encoding for (possible) direct code emission in the
35 future.
36
37 9. Since almost all instructions set flags - implement brcond / select in better
38 way (currently they emit explicit comparison).
39
40 10. Handle imm in comparisons in better way (see comment in MSP430InstrInfo.td)
41
42 11. Implement hooks for better memory op folding, etc.