llvm-6502/include/llvm/Target
Evan Cheng cc41586b9d Much improved pic jumptable codegen:
Then:
        call    "L1$pb"
"L1$pb":
        popl    %eax
		...
LBB1_1: # entry
        imull   $4, %ecx, %ecx
        leal    LJTI1_0-"L1$pb"(%eax), %edx
        addl    LJTI1_0-"L1$pb"(%ecx,%eax), %edx
        jmpl    *%edx

        .align  2
        .set L1_0_set_3,LBB1_3-LJTI1_0
        .set L1_0_set_2,LBB1_2-LJTI1_0
        .set L1_0_set_5,LBB1_5-LJTI1_0
        .set L1_0_set_4,LBB1_4-LJTI1_0
LJTI1_0:
        .long    L1_0_set_3
        .long    L1_0_set_2

Now:
        call    "L1$pb"
"L1$pb":
        popl    %eax
		...
LBB1_1: # entry
        addl    LJTI1_0-"L1$pb"(%eax,%ecx,4), %eax
        jmpl    *%eax

		.align  2
		.set L1_0_set_3,LBB1_3-"L1$pb"
		.set L1_0_set_2,LBB1_2-"L1$pb"
		.set L1_0_set_5,LBB1_5-"L1$pb"
		.set L1_0_set_4,LBB1_4-"L1$pb"
LJTI1_0:
        .long    L1_0_set_3
        .long    L1_0_set_2


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43924 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-09 01:32:10 +00:00
..
MRegisterInfo.h isSubRegOf() is a dup of isSubRegister. 2007-10-23 06:51:50 +00:00
SubtargetFeature.h Add explicit keywords. 2007-10-08 15:08:41 +00:00
TargetAsmInfo.h TargetAsmInfo::getAddressSize() was incorrect for x86-64 and 64-bit targets 2007-09-27 23:12:31 +00:00
TargetData.h Eliminate the remaining uses of getTypeSize. This 2007-11-05 00:04:43 +00:00
TargetELFWriterInfo.h Add explicit keywords and remove spurious trailing semicolons. 2007-08-27 14:50:10 +00:00
TargetFrameInfo.h Fix naming inconsistency: calleesave -> calleesaved. 2007-01-02 21:30:17 +00:00
TargetInstrInfo.h Added getNumDefs(). 2007-09-13 00:16:29 +00:00
TargetInstrItineraries.h <cassert> no longer required to make VC++ happy. 2005-11-04 02:59:16 +00:00
TargetJITInfo.h Completely rearchitect the interface between targets and the pass manager. 2006-09-04 04:14:57 +00:00
TargetLowering.h Much improved pic jumptable codegen: 2007-11-09 01:32:10 +00:00
TargetMachine.h Fix the comments for the 'fast' parameter in addPassesToEmitFile. 2007-07-30 15:04:59 +00:00
TargetMachineRegistry.h Missing 'public' keyword. 2007-10-18 11:31:21 +00:00
TargetMachOWriterInfo.h More Mach-O writer improvements. 2007-02-28 07:40:50 +00:00
TargetOptions.h Corrected many typing errors. And removed 'nest' parameter handling 2007-10-12 21:30:57 +00:00
TargetSubtarget.h Move the LowerMEMCPY and LowerMEMCPYCall to a common place. 2007-11-05 23:12:20 +00:00