• Home
Name Date Size #Lines LOC

..--

InstPrinter/03-May-2024-181109

MCTargetDesc/03-May-2024-20098

TargetInfo/03-May-2024-4518

CMakeLists.txtD03-May-2024742 2723

MSP430.hD03-May-20241.2 KiB4824

MSP430.tdD03-May-20242.4 KiB6750

MSP430AsmPrinter.cppD03-May-20246 KiB180131

MSP430BranchSelector.cppD03-May-20246 KiB181101

MSP430CallingConv.tdD03-May-20241.5 KiB3832

MSP430FrameLowering.cppD03-May-20247.6 KiB224145

MSP430FrameLowering.hD03-May-20241.7 KiB5429

MSP430ISelDAGToDAG.cppD03-May-202415.4 KiB493373

MSP430ISelLowering.cppD03-May-202444.4 KiB1,198873

MSP430ISelLowering.hD03-May-20247.5 KiB183105

MSP430InstrFormats.tdD03-May-20247.1 KiB212164

MSP430InstrInfo.cppD03-May-202410.7 KiB337254

MSP430InstrInfo.hD03-May-20243.2 KiB9355

MSP430InstrInfo.tdD03-May-202450 KiB1,2121,080

MSP430MCInstLower.cppD03-May-20244.7 KiB151112

MSP430MCInstLower.hD03-May-20241.4 KiB5131

MSP430MachineFunctionInfo.hD03-May-20241.5 KiB4718

MSP430RegisterInfo.cppD03-May-20248.1 KiB241168

MSP430RegisterInfo.hD03-May-20242 KiB6733

MSP430RegisterInfo.tdD03-May-20242.9 KiB8675

MSP430SelectionDAGInfo.cppD03-May-2024757 248

MSP430SelectionDAGInfo.hD03-May-2024840 3212

MSP430Subtarget.cppD03-May-20241 KiB3314

MSP430Subtarget.hD03-May-20241.3 KiB4317

MSP430TargetMachine.cppD03-May-20241.8 KiB5229

MSP430TargetMachine.hD03-May-20242.2 KiB7042

MakefileD03-May-2024702 249

README.txtD03-May-20241.6 KiB4127

README.txt

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