Name Date Size #Lines LOC

..--

AsmParser/H--1,6751,282

Disassembler/H--362288

MCTargetDesc/H--2,0581,526

TargetInfo/H--6840

CMakeLists.txtH A D05-Sep-20231.3 KiB5446

DelaySlotFiller.cppH A D17-Dec-202415 KiB514347

LeonFeatures.tdH A D19-Aug-20242.8 KiB6453

LeonPasses.cppH A D19-Aug-202412.8 KiB16184

LeonPasses.hH A D19-Aug-20243.3 KiB8352

README.txtH A D26-Feb-20161.5 KiB5947

Sparc.hH A D19-Aug-20246.1 KiB191161

Sparc.tdH A D02-Aug-20249.1 KiB217183

SparcASITags.tdH A D09-Jun-20241.9 KiB5346

SparcAsmPrinter.cppH A D20-Aug-202416.3 KiB512415

SparcCallingConv.tdH A D18-Oct-20225.9 KiB148133

SparcFrameLowering.cppH A D18-Nov-202412.4 KiB390260

SparcFrameLowering.hH A D18-Oct-20242.5 KiB6933

SparcISelDAGToDAG.cppH A D22-Nov-202414.2 KiB408279

SparcISelLowering.cppH A D23-Jan-2025138.6 KiB3,7002,747

SparcISelLowering.hH A D20-Jan-202510.2 KiB232162

SparcInstr64Bit.tdH A D22-Nov-202421.3 KiB515427

SparcInstrAliases.tdH A D29-Aug-202426.8 KiB658518

SparcInstrFormats.tdH A D05-Sep-202310.7 KiB380312

SparcInstrInfo.cppH A D22-Jan-202523.2 KiB661528

SparcInstrInfo.hH A D22-Jan-20254.6 KiB11861

SparcInstrInfo.tdH A D17-Dec-202478.2 KiB1,9501,678

SparcInstrVIS.tdH A D19-Jan-201911.1 KiB263219

SparcMCInstLower.cppH A D27-Nov-20213.3 KiB10774

SparcMachineFunctionInfo.cppH A D16-Apr-2022737 219

SparcMachineFunctionInfo.hH A D18-Jun-20202.1 KiB6133

SparcPrefetchTags.tdH A D09-Jun-20241.3 KiB4236

SparcRegisterInfo.cppH A D03-Nov-20247.7 KiB252164

SparcRegisterInfo.hH A D03-Nov-20241.7 KiB5124

SparcRegisterInfo.tdH A D11-Feb-202415.1 KiB401367

SparcSchedule.tdH A D23-Apr-20206.4 KiB124117

SparcSubtarget.cppH A D18-Nov-20242.9 KiB8744

SparcSubtarget.hH A D11-Feb-20243.5 KiB10664

SparcTargetMachine.cppH A D14-Nov-20248.5 KiB227157

SparcTargetMachine.hH A D14-Nov-20243.1 KiB8956

SparcTargetObjectFile.cppH A D23-May-20201.9 KiB4829

SparcTargetObjectFile.hH A D07-Feb-20221.1 KiB3518

README.txt

1To-do
2-----
3
4* Keep the address of the constant pool in a register instead of forming its
5  address all of the time.
6* We can fold small constant offsets into the %hi/%lo references to constant
7  pool addresses as well.
8* When in V9 mode, register allocate %icc[0-3].
9* Add support for isel'ing UMUL_LOHI instead of marking it as Expand.
10* Emit the 'Branch on Integer Register with Prediction' instructions.  It's
11  not clear how to write a pattern for this though:
12
13float %t1(int %a, int* %p) {
14        %C = seteq int %a, 0
15        br bool %C, label %T, label %F
16T:
17        store int 123, int* %p
18        br label %F
19F:
20        ret float undef
21}
22
23codegens to this:
24
25t1:
26        save -96, %o6, %o6
271)      subcc %i0, 0, %l0
281)      bne .LBBt1_2    ! F
29        nop
30.LBBt1_1:       ! T
31        or %g0, 123, %l0
32        st %l0, [%i1]
33.LBBt1_2:       ! F
34        restore %g0, %g0, %g0
35        retl
36        nop
37
381) should be replaced with a brz in V9 mode.
39
40* Same as above, but emit conditional move on register zero (p192) in V9
41  mode.  Testcase:
42
43int %t1(int %a, int %b) {
44        %C = seteq int %a, 0
45        %D = select bool %C, int %a, int %b
46        ret int %D
47}
48
49* Emit MULX/[SU]DIVX instructions in V9 mode instead of fiddling
50  with the Y register, if they are faster.
51
52* Codegen bswap(load)/store(bswap) -> load/store ASI
53
54* Implement frame pointer elimination, e.g. eliminate save/restore for
55  leaf fns.
56* Fill delay slots
57
58* Use %g0 directly to materialize 0. No instruction is required.
59