Skip to content
  1. Nov 04, 2013
  2. Oct 30, 2013
    • Hans Wennborg's avatar
      Add #include of raw_ostream.h to MipsSEISelLowering.cpp · 3e9b1c10
      Hans Wennborg authored
      Fixing this Windows build error:
      
      ..\lib\Target\Mips\MipsSEISelLowering.cpp(997) : error C2027: use of undefined type 'llvm::raw_ostream'
      
      llvm-svn: 193696
      3e9b1c10
    • Daniel Sanders's avatar
      d5f554f0
    • Daniel Sanders's avatar
      [mips][msa] Added support for matching bmnz, bmnzi, bmz, and bmzi from normal... · ab94b537
      Daniel Sanders authored
      [mips][msa] Added support for matching bmnz, bmnzi, bmz, and bmzi from normal IR (i.e. not intrinsics)
      
      Also corrected the definition of the intrinsics for these instructions (the
      result register is also the first operand), and added intrinsics for bsel and
      bseli to clang (they already existed in the backend).
      
      These four operations are mostly equivalent to bsel, and bseli (the difference
      is which operand is tied to the result). As a result some of the tests changed
      as described below.
      
      bitwise.ll:
      - bsel.v test adapted so that the mask is unknown at compile-time. This stops
        it emitting bmnzi.b instead of the intended bsel.v.
      - The bseli.b test now tests the right thing. Namely the case when one of the
        values is an uimm8, rather than when the condition is a uimm8 (which is
        covered by bmnzi.b)
      
      compare.ll:
      - bsel.v tests now (correctly) emits bmnz.v instead of bsel.v because this
        is the same operation (see MSA.txt).
      
      i8.ll
      - CHECK-DAG-ized test.
      - bmzi.b test now (correctly) emits equivalent bmnzi.b with swapped operands
        because this is the same operation (see MSA.txt).
      - bseli.b still emits bseli.b though because the immediate makes it
        distinguishable from bmnzi.b.
      
      vec.ll:
      - CHECK-DAG-ized test.
      - bmz.v tests now (correctly) emits bmnz.v with swapped operands (see
        MSA.txt).
      - bsel.v tests now (correctly) emits bmnz.v with swapped operands (see
        MSA.txt).
      
      llvm-svn: 193693
      ab94b537
    • Daniel Sanders's avatar
      [mips][msa] Added support for matching bins[lr]i.[bhwd] from normal IR (i.e. not intrinsics) · d74b130c
      Daniel Sanders authored
      This required correcting the definition of the bins[lr]i intrinsics because
      the result is also the first operand.
      
      It also required removing the (arbitrary) check for 32-bit immediates in
      MipsSEDAGToDAGISel::selectVSplat().
      
      Currently using binsli.d with 2 bits set in the mask doesn't select binsli.d
      because the constant is legalized into a ConstantPool. Similar things can
      happen with binsri.d with more than 10 bits set in the mask. The resulting
      code when this happens is correct but not optimal.
      
      llvm-svn: 193687
      d74b130c
    • Daniel Sanders's avatar
      [mips][msa] Combine binsri-like DAG of AND and OR into equivalent VSELECT · 53fe6c4d
      Daniel Sanders authored
      (or (and $a, $mask), (and $b, $inverse_mask)) => (vselect $mask, $a, $b).
      where $mask is a constant splat. This allows bitwise operations to make use
      of bsel.
      
      It's also a stepping stone towards matching bins[lr], and bins[lr]i from
      normal IR.
      
      Two sets of similar tests have been added in this commit. The bsel_* functions
      test the case where binsri cannot be used. The binsr_*_i functions will
      start to use the binsri instruction in the next commit.
      
      llvm-svn: 193682
      53fe6c4d
    • Daniel Sanders's avatar
      [mips] MipsSETargetLowering now reports DAGCombiner changes when using -debug-only=mips-isel · 62aeab83
      Daniel Sanders authored
      No test since -debug output is intended for developers and not end-users.
      
      llvm-svn: 193681
      62aeab83
    • Daniel Sanders's avatar
      [mips][msa] Added support for matching splat.[bhw] from normal IR (i.e. not intrinsics) · e7ef0c81
      Daniel Sanders authored
      splat.d is implemented but this subtest is currently disabled. This is because
      it is difficult to match the appropriate IR on MIPS32. There is a patch under
      review that should help with this so I hope to enable the subtest soon.
      
      llvm-svn: 193680
      e7ef0c81
    • Akira Hatanaka's avatar
      [mips] Compute stack alignment on the fly. · 3048b024
      Akira Hatanaka authored
      llvm-svn: 193673
      3048b024
  3. Oct 29, 2013
  4. Oct 28, 2013
  5. Oct 27, 2013
    • Reed Kotler's avatar
      Make first substantial checkin of my port of ARM constant islands code to Mips. · 91ae9829
      Reed Kotler authored
      Before I just ported the shell of the pass. I've tried to keep everything
      nearly identical to the ARM version. I think it will be very easy to eventually
      merge these two and create a new more general pass that other targets can
      use. I have some improvements I would like to make to allow pools to 
      be shared across functions and some other things. When I'm all done we
      can think about making a more general pass. More to be ported but the
      basic mechanism works now almost as good as gcc mips16.
      
      llvm-svn: 193509
      91ae9829
  6. Oct 23, 2013
  7. Oct 22, 2013
  8. Oct 21, 2013
  9. Oct 17, 2013
  10. Oct 16, 2013
  11. Oct 15, 2013
  12. Oct 14, 2013
Loading