1. Apr 07, 2013
    • Chandler Carruth's avatar
      Fix PR15674 (and PR15603): a SROA think-o. · 0e8a52d1
      Chandler Carruth authored
      The fix for PR14972 in r177055 introduced a real think-o in the *store*
      side, likely because I was much more focused on the load side. While we
      can arbitrarily widen (or narrow) a loaded value, we can't arbitrarily
      widen a value to be stored, as that changes the width of memory access!
      Lock down the code path in the store rewriting which would do this to
      only handle the intended circumstance.
      
      All of the existing tests continue to pass, and I've added a test from
      the PR.
      
      llvm-svn: 178974
      0e8a52d1
    • Hal Finkel's avatar
      PPC pre-increment load instructions do not have side effects · d71cc3a7
      Hal Finkel authored
      A few were missed in r178972.
      
      llvm-svn: 178973
      d71cc3a7
    • Hal Finkel's avatar
      PPC pre-increment load instructions do not have side effects · 6efd45e9
      Hal Finkel authored
      llvm-svn: 178972
      6efd45e9
    • Hal Finkel's avatar
      PPC MCRF instruction does not have side effects · 933e8f03
      Hal Finkel authored
      llvm-svn: 178971
      933e8f03
    • Hal Finkel's avatar
      PPC FMR instruction does not have side effects · 94072b98
      Hal Finkel authored
      llvm-svn: 178970
      94072b98
    • Eric Christopher's avatar
      DW_FORM_sec_offset should be a relocation on platforms that use · 55863bef
      Eric Christopher authored
      a relocation across sections. Do this for DW_AT_stmt list in the
      skeleton CU and check the relocations in the debug_info section.
      
      Add a FIXME for multiple CUs.
      
      llvm-svn: 178969
      55863bef
    • Reid Kleckner's avatar
      [cmake] Avoid rel+asserts warnings when passing -UNDEBUG · c1c01d53
      Reid Kleckner authored
      MSVC 2012 gives warning D9025, "overriding /D NDEBUG with -UNDEBUG".
      Removing the original definition of NDEBUG silences this.
      
      llvm-svn: 178967
      c1c01d53
    • Jakob Stoklund Olesen's avatar
      Implement LowerReturn_64 for SPARC v9. · edaf66b0
      Jakob Stoklund Olesen authored
      Integer return values are sign or zero extended by the callee, and
      structs up to 32 bytes in size can be returned in registers.
      
      The CC_Sparc64 CallingConv definition is shared between
      LowerFormalArguments_64 and LowerReturn_64. Function arguments and
      return values are passed in the same registers.
      
      The inreg flag is also used for return values. This is required to handle
      C functions returning structs containing floats and ints:
      
        struct ifp {
          int i;
          float f;
        };
      
        struct ifp f(void);
      
      LLVM IR:
      
        define inreg { i32, float } @f() {
           ...
           ret { i32, float } %retval
        }
      
      The ABI requires that %retval.i is returned in the high bits of %i0
      while %retval.f goes in %f1.
      
      Without the inreg return value attribute, %retval.i would go in %i0 and
      %retval.f would go in %f3 which is a more efficient way of returning
      %multiple values, but it is not ABI compliant for returning C structs.
      
      llvm-svn: 178966
      edaf66b0
    • Jakob Stoklund Olesen's avatar
      SPARC v9 stack pointer bias. · 03d9f7fd
      Jakob Stoklund Olesen authored
      64-bit SPARC v9 processes use biased stack and frame pointers, so the
      current function's stack frame is located at %sp+BIAS .. %fp+BIAS where
      BIAS = 2047.
      
      This makes more local variables directly accessible via [%fp+simm13]
      addressing.
      
      llvm-svn: 178965
      03d9f7fd
    • Jason Molenda's avatar
      Cache the VM page size that we get from task_vm_info so we don't · 63742f13
      Jason Molenda authored
      re-fetch the value.
      
      llvm-svn: 178962
      63742f13
    • Hal Finkel's avatar
      Implement PPCInstrInfo::FoldImmediate · d61d4f80
      Hal Finkel authored
      There are certain PPC instructions into which we can fold a zero immediate
      operand. We can detect such cases by looking at the register class required
      by the using operand (so long as it is not otherwise constrained).
      
      llvm-svn: 178961
      d61d4f80
    • Hal Finkel's avatar
      PPC ISEL is a select and never has side effects · 8fc33e5d
      Hal Finkel authored
      llvm-svn: 178960
      8fc33e5d
    • Hal Finkel's avatar
      Add a comment to TargetInstrInfo about FoldImmediate · 537ec717
      Hal Finkel authored
      This comment documents the current behavior of the ARM implementation of this
      callback, and also the soon-to-be-committed PPC version.
      
      llvm-svn: 178959
      537ec717
    • Jakob Stoklund Olesen's avatar
      Complete formal arguments for the SPARC v9 64-bit ABI. · 1c9a95ab
      Jakob Stoklund Olesen authored
      All arguments are formally assigned to stack positions and then promoted
      to floating point and integer registers. Since there are more floating
      point registers than integer registers, this can cause situations where
      floating point arguments are assigned to registers after integer
      arguments that where assigned to the stack.
      
      Use the inreg flag to indicate 32-bit fragments of structs containing
      both float and int members.
      
      The three-way shadowing between stack, integer, and floating point
      registers requires custom argument lowering. The good news is that
      return values are passed in the exact same way, and we can share the
      code.
      
      Still missing:
      
       - Update LowerReturn to handle structs returned in registers.
       - LowerCall.
       - Variadic functions.
      
      llvm-svn: 178958
      1c9a95ab
  2. Apr 06, 2013