opnsense-src/lib/Target/MSP430
2016-07-23 20:41:05 +00:00
..
InstPrinter Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MCTargetDesc Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
TargetInfo Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
CMakeLists.txt Vendor import of llvm trunk r242221: 2015-08-07 23:01:33 +00:00
LLVMBuild.txt Vendor import of llvm trunk r154661: 2012-04-14 13:54:10 +00:00
MSP430.h Vendor import of llvm trunk r241361: 2015-07-05 14:21:36 +00:00
MSP430.td Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
MSP430AsmPrinter.cpp Vendor import of llvm trunk r239412: 2015-06-09 19:06:30 +00:00
MSP430BranchSelector.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430CallingConv.td Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): 2015-01-18 16:17:27 +00:00
MSP430FrameLowering.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430FrameLowering.h Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430InstrFormats.td Vendor import of llvm trunk r154661: 2012-04-14 13:54:10 +00:00
MSP430InstrInfo.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430InstrInfo.h Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430InstrInfo.td Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): 2015-01-18 16:17:27 +00:00
MSP430ISelDAGToDAG.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430ISelLowering.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430ISelLowering.h Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430MachineFunctionInfo.cpp Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
MSP430MachineFunctionInfo.h Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
MSP430MCInstLower.cpp Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
MSP430MCInstLower.h Vendor import of llvm trunk r241361: 2015-07-05 14:21:36 +00:00
MSP430RegisterInfo.cpp Vendor import of llvm trunk r242221: 2015-08-07 23:01:33 +00:00
MSP430RegisterInfo.h Vendor import of llvm trunk r238337: 2015-05-27 18:44:32 +00:00
MSP430RegisterInfo.td Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): 2015-01-18 16:17:27 +00:00
MSP430Subtarget.cpp Vendor import of llvm trunk r242221: 2015-08-07 23:01:33 +00:00
MSP430Subtarget.h Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430TargetMachine.cpp Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
MSP430TargetMachine.h Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
README.txt Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00

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

DISCLAIMER: This 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.