Skip to content
  1. Jul 27, 2009
  2. Jul 25, 2009
    • Evan Cheng's avatar
      Change Thumb2 jumptable codegen to one that uses two level jumps: · f3a1fce8
      Evan Cheng authored
      Before:
            adr r12, #LJTI3_0_0
            ldr pc, [r12, +r0, lsl #2]
      LJTI3_0_0:
            .long    LBB3_24
            .long    LBB3_30
            .long    LBB3_31
            .long    LBB3_32
      
      After:
            adr r12, #LJTI3_0_0
            add pc, r12, +r0, lsl #2
      LJTI3_0_0:
            b.w    LBB3_24
            b.w    LBB3_30
            b.w    LBB3_31
            b.w    LBB3_32
      
      This has several advantages.
      1. This will make it easier to optimize this to a TBB / TBH instruction +
         (smaller) table.
      2. This eliminate the need for ugly asm printer hack to force the address
         into thumb addresses (bit 0 is one).
      3. Same codegen for pic and non-pic.
      4. This eliminate the need to align the table so constantpool island pass
         won't have to over-estimate the size.
      
      Based on my calculation, the later is probably slightly faster as well since
      ldr pc with shifter address is very slow. That is, it should be a win as long
      as the HW implementation can do a reasonable job of branch predict the second
      branch.
      
      llvm-svn: 77024
      f3a1fce8
  3. Jul 24, 2009
  4. Jul 23, 2009
  5. Jul 16, 2009
  6. Jul 08, 2009
  7. Jul 03, 2009
  8. Jul 01, 2009
  9. Jun 30, 2009
  10. Jun 27, 2009
  11. Jun 26, 2009
  12. Jun 23, 2009
  13. Jun 16, 2009
  14. May 14, 2009
  15. May 13, 2009
    • Bill Wendling's avatar
      Change MachineInstrBuilder::addReg() to take a flag instead of a list of · f7b83c7a
      Bill Wendling authored
      booleans. This gives a better indication of what the "addReg()" is
      doing. Remembering what all of those booleans mean isn't easy, especially if you
      aren't spending all of your time in that code.
      
      I took Jakob's suggestion and made it illegal to pass in "true" for the
      flag. This should hopefully prevent any unintended misuse of this (by reverting
      to the old way of using addReg()).
      
      llvm-svn: 71722
      f7b83c7a
    • Jim Grosbach's avatar
      Add support for GCC compatible builtin setjmp and longjmp intrinsics. This is · aeca45dd
      Jim Grosbach authored
      a supporting preliminary patch for GCC-compatible SjLJ exception handling. Note that these intrinsics are not designed to be invoked directly by the user, but
      rather used by the front-end as target hooks for exception handling.
      
      llvm-svn: 71610
      aeca45dd
  16. Apr 07, 2009
    • Jim Grosbach's avatar
      PR2985 / <rdar://problem/6584986> · fde2110a
      Jim Grosbach authored
      When compiling in Thumb mode, only the low (R0-R7) registers are available
      for most instructions. Breaking the low registers into a new register class
      handles this. Uses of R12, SP, etc, are handled explicitly where needed
      with copies inserted to move results into low registers where the rest of
      the code generator can deal with them.
      
      llvm-svn: 68545
      fde2110a
  17. Apr 03, 2009
  18. Feb 18, 2009
  19. Feb 13, 2009
  20. Feb 12, 2009
  21. Feb 09, 2009
  22. Feb 06, 2009
  23. Feb 03, 2009
  24. Jan 20, 2009
  25. Dec 10, 2008
  26. Dec 03, 2008
  27. Nov 18, 2008
  28. Nov 03, 2008
  29. Oct 16, 2008
  30. Oct 03, 2008
Loading