1. Jul 12, 2014
    • Ulrich Weigand's avatar
      [PowerPC] Fix invalid displacement created by LocalStackAlloc · ea147a9d
      Ulrich Weigand authored
      This commit fixes a bug in PPCRegisterInfo::isFrameOffsetLegal that
      could result in the LocalStackAlloc pass creating an MI instruction
      out-of-range displacement:
              %vreg17<def> = LD 33184, %vreg31; mem:LD8[%g](align=32)
              %G8RC:%vreg17 G8RC_and_G8RC_NOX0:%vreg31
      (In final assembler output the top bits are stripped off, resulting
      in a negative offset loading from below the stack pointer.)
      
      Common code expects the isFrameOffsetLegal routine to verify whether
      adding a given offset to the offset already present in the instruction
      results in a valid displacement.  However, on PowerPC the routine
      did not take the already present instruction offset into account.
      
      This commit fixes isFrameOffsetLegal to add the instruction offset,
      and updates a local caller (needsFrameBaseReg) to no longer add the
      instruction offset itself before calling isFrameOffsetLegal.
      
      Reviewed by Hal Finkel.
      
      llvm-svn: 212832
      ea147a9d
    • Marek Olsak's avatar
      R600/SI: Use i32 vectors for resources and samplers · eac5062c
      Marek Olsak authored
      This affects new intrinsics only.
      
      What surprises me is that v32i8 still works.
      
      llvm-svn: 212831
      eac5062c
    • Marek Olsak's avatar
      R600/SI: add sample and image intrinsics exposing all instruction fields · d8ecaeec
      Marek Olsak authored
      We need the intrinsics with offsets, so why not just add them all.
      The R128 parameter will also be useful for reducing SGPR usage.
      GL_ARB_image_load_store also adds some image GLSL modifiers like "coherent",
      so Mesa will probably translate those to slc, glc, etc.
      
      When LLVM 3.5 is released, I'll switch Mesa to these new intrinsics.
      
      llvm-svn: 212830
      d8ecaeec
    • Marek Olsak's avatar
      R600/SI: fix shadow mapping for 1D and 2D array textures · ba77c3e4
      Marek Olsak authored
      
      
      It was conflicting with def TEX_SHADOW_ARRAY, which also handles them.
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      llvm-svn: 212829
      ba77c3e4
    • Timur Iskhodzhanov's avatar
      Add a test case for r212596 · 6de08c3d
      Timur Iskhodzhanov authored
      llvm-svn: 212828
      6de08c3d
    • Aaron Ballman's avatar
      The returns_nonnull attribute does not require a function prototype because it... · 6288d064
      Aaron Ballman authored
      The returns_nonnull attribute does not require a function prototype because it affects only the return value, not any arguments. In turn, asking for a function or method result type should not require a function prototype either, so getFunctionOrMethodResultType has been relaxed.
      
      llvm-svn: 212827
      6288d064
  2. Jul 11, 2014