Skip to content
  1. Jan 07, 2008
  2. Jan 06, 2008
  3. Jan 05, 2008
  4. Jan 04, 2008
  5. Jan 03, 2008
  6. Jan 02, 2008
  7. Jan 01, 2008
  8. Dec 31, 2007
  9. Dec 30, 2007
    • Chris Lattner's avatar
      More cleanups for MachineOperand: · 6005589f
      Chris Lattner authored
        - Eliminate the static "print" method for operands, moving it
          into MachineOperand::print.
        - Change various set* methods for register flags to take a bool
          for the value to set it to.  Remove unset* methods.
        - Group methods more logically by operand flavor in MachineOperand.h
      
      llvm-svn: 45461
      6005589f
    • Chris Lattner's avatar
      Use MachineOperand::getImm instead of MachineOperand::getImmedValue. Likewise... · 5c463781
      Chris Lattner authored
      Use MachineOperand::getImm instead of MachineOperand::getImmedValue.  Likewise setImmedValue -> setImm
      
      llvm-svn: 45453
      5c463781
    • Bill Wendling's avatar
      If we have a load of a global address that's not modified during the · 7749a901
      Bill Wendling authored
      function, then go ahead and hoist it out of the loop. This is the result:
      
      $ cat a.c
      volatile int G;
      
      int A(int N) {
        for (; N > 0; --N)
          G++;
      }
      $ llc -o - -relocation-model=pic
      _A:
      ...
      LBB1_2: # bb
              movl    L_G$non_lazy_ptr-"L1$pb"(%eax), %esi
              incl    (%esi)
              incl    %edx
              cmpl    %ecx, %edx
              jne     LBB1_2  # bb
      ...
      $ llc -o - -relocation-model=pic -machine-licm
      _A:
      ...
              movl    L_G$non_lazy_ptr-"L1$pb"(%eax), %eax
      LBB1_2: # bb
              incl    (%eax)
              incl    %edx
              cmpl    %ecx, %edx
              jne     LBB1_2  # bb
      ...
      
      I'm limiting this to the MOV32rm x86 instruction for now.
      
      llvm-svn: 45444
      7749a901
    • Chris Lattner's avatar
      use simplified operand addition methods. · b3fd2d7b
      Chris Lattner authored
      llvm-svn: 45437
      b3fd2d7b
Loading