Name Date Size #Lines LOC

..12-Nov-2023-

AsmParser/H12-Nov-2023-614496

Disassembler/H12-Nov-2023-393333

MCTargetDesc/H12-Nov-2023-983654

TargetInfo/H12-Nov-2023-5426

CMakeLists.txtH A D08-May-20221.2 KiB4941

MSP430.hH A D12-Nov-20231.4 KiB5127

MSP430.tdH A D08-May-20223.4 KiB9269

MSP430AsmPrinter.cppH A D12-Nov-20236.8 KiB194142

MSP430BranchSelector.cppH A D08-May-20228.6 KiB258147

MSP430CallingConv.tdH A D08-May-20221.5 KiB3730

MSP430FrameLowering.cppH A D12-Nov-202310.2 KiB293194

MSP430FrameLowering.hH A D08-May-20222.1 KiB5632

MSP430ISelDAGToDAG.cppH A D12-Nov-202314.5 KiB463345

MSP430ISelLowering.cppH A D12-Nov-202361.1 KiB1,6241,196

MSP430ISelLowering.hH A D08-May-20227.9 KiB191110

MSP430InstrFormats.tdH A D08-May-202212.3 KiB441369

MSP430InstrInfo.cppH A D12-Nov-202310 KiB309227

MSP430InstrInfo.hH A D12-Nov-20233.1 KiB8149

MSP430InstrInfo.tdH A D08-May-202243.9 KiB1,042923

MSP430MCInstLower.cppH A D12-Nov-20235 KiB158120

MSP430MCInstLower.hH A D08-May-20221.4 KiB4627

MSP430MachineFunctionInfo.cppH A D12-Nov-2023741 219

MSP430MachineFunctionInfo.hH A D12-Nov-20232.4 KiB6729

MSP430RegisterInfo.cppH A D12-Nov-20235.2 KiB162115

MSP430RegisterInfo.hH A D12-Nov-20231.5 KiB4621

MSP430RegisterInfo.tdH A D08-May-20223.2 KiB8878

MSP430Subtarget.cppH A D12-Nov-20232.1 KiB6238

MSP430Subtarget.hH A D08-May-20222.6 KiB8051

MSP430TargetMachine.cppH A D12-Nov-20233.5 KiB9566

MSP430TargetMachine.hH A D12-Nov-20231.7 KiB5530

README.txtH A D08-May-20221.6 KiB4227

README.txt

1//===---------------------------------------------------------------------===//
2// MSP430 backend.
3//===---------------------------------------------------------------------===//
4
5DISCLAIMER: This 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
42