/3rd_party/llvm/lib/Target/MSP430/README.txt

https://code.google.com/p/softart/ · Plain Text · 40 lines · 27 code · 13 blank · 0 comment · 0 complexity · 2e4f2f6851949e4d7339e5ef636d39d8 MD5 · raw file

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