Skip to content
  1. Jan 26, 2010
    • Chris Lattner's avatar
      Rearrange handling of jump tables. Highlights: · b6db2c6b
      Chris Lattner authored
      1. MachineJumpTableInfo is now created lazily for a function the first time
         it actually makes a jump table instead of for every function.
      2. The encoding of jump table entries is now described by the
         MachineJumpTableInfo::JTEntryKind enum.  This enum is determined by the
         TLI::getJumpTableEncoding() hook, instead of by lots of code scattered
         throughout the compiler that "knows" that jump table entries are always
         32-bits in pic mode (for example).
      3. The size and alignment of jump table entries is now calculated based on
         their kind, instead of at machinefunction creation time.
      
      Future work includes using the EntryKind in more places in the compiler,
      eliminating other logic that "knows" the layout of jump tables in various
      situations.
      
      llvm-svn: 94470
      b6db2c6b
    • Chris Lattner's avatar
      prep work to support a future where getJumpTableInfo will return · a14ac3fd
      Chris Lattner authored
      a null pointer for functions with no jump tables.  No functionality
      change.
      
      llvm-svn: 94469
      a14ac3fd
    • Chris Lattner's avatar
      add a method to get the alignment of an integer type even · 3072add7
      Chris Lattner authored
      when we don't have one laying around.  Useful if you don't
      have an llvmcontext handy.
      
      llvm-svn: 94468
      3072add7
  2. Jan 25, 2010
  3. Jan 24, 2010
Loading