1. May 22, 2021
  2. May 21, 2021
    • Navdeep Kumar's avatar
      [MLIR][GPU][NVVM] Add conversion of warp synchronous matrix-multiply accumulate GPU ops · eaaf7a6a
      Navdeep Kumar authored
      Add conversion of warp synchronous matrix-multiply
      accumulate GPU ops
      Add conversion of warp synchronous matrix-multiply accumulate GPU ops to
      NVVM ops. The following conversions are added :-
        1.) subgroup_mma_load_matrix -> wmma.m16n16k16.load.[a,b,c]..row.stride
        2.) subgroup_mma_store_matrix -> wmma.m16n16k16.store.d.[f16,f32].row.stride
        3.) subgroup_mma_compute -> wmma.m16n16k16.mma.row.row.[f16,f32].[f16,f32]
      
      Reviewed By: bondhugula, ftynse
      
      Differential Revision: https://reviews.llvm.org/D95331
      eaaf7a6a
    • Florian Hahn's avatar
      [X86] Lower calls with clang.arc.attachedcall bundle · c2d44bd2
      Florian Hahn authored
      This patch adds support for lowering function calls with the
      `clang.arc.attachedcall` bundle. The goal is to expand such calls to the
      following sequence of instructions:
      
          callq   @fn
          movq  %rax, %rdi
          callq   _objc_retainAutoreleasedReturnValue / _objc_unsafeClaimAutoreleasedReturnValue
      
      This sequence of instructions triggers Objective-C runtime optimizations,
      hence we want to ensure no instructions get moved in between them.
      This patch achieves that by adding a new CALL_RVMARKER ISD node,
      which gets turned into the CALL64_RVMARKER pseudo, which eventually gets
      expanded into the sequence mentioned above.
      
      The ObjC runtime function to call is determined by the
      argument in the bundle, which is passed through as a
      target constant to the pseudo.
      
      @ahatanak is working on using this attribute in the front- & middle-end.
      
      Together with the front- & middle-end changes, this should address
      PR31925 for X86.
      
      This is the X86 version of 46bc40e5,
      which added similar support for AArch64.
      
      Reviewed By: ab
      
      Differential Revision: https://reviews.llvm.org/D94597
      c2d44bd2
    • Jon Chesterfield's avatar
      [libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation · d54712ab
      Jon Chesterfield authored
      [libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation
      
      There are a lot of different ways we might implement the devicertl local alloc
      and free functions. Via host, local buffers (stack or arena), specialising per
      kernel etc. It is not yet clear what the right design is. This change makes the
      alloc and free functions weak, so one can override them from local tests while
      comparing options.
      
      Not strictly necessary, as a comparable patch can be applied locally each time,
      but would be convenient for out of tree dev. Plan would be to drop the weak
      attribute at the same time as introducing a working allocator to trunk.
      
      Reviewed By: tianshilei1992
      
      Differential Revision: https://reviews.llvm.org/D102499
      d54712ab
    • Jim Lin's avatar
      [X86] Don't fold (fneg (fma (fneg X), Y, (fneg Z))) to (fma X, Y, Z) · 44568059
      Jim Lin authored
      Check if it has no signed zeros flag (nsz) in getNegatedExpression for x86.
      This patch fixed miscompilation: https://alive2.llvm.org/ce/z/XxwBAJ
      
      Reviewed By: RKSimon, spatel
      
      Differential Revision: https://reviews.llvm.org/D90901
      44568059
    • Jim Lin's avatar
      [X86] Pre-commit test for D90901 · 35e5c331
      Jim Lin authored
      Differential Revision: https://reviews.llvm.org/D102621
      35e5c331
    • maekawatoshiki's avatar
      [LoopUnrollAndJam] Change LoopUnrollAndJamPass to LoopNest pass · cea7a3fe
      maekawatoshiki authored
      This patch changes LoopUnrollAndJamPass from FunctionPass to LoopNest pass.
      The next patch will utilize LoopNest to effectively handle loop nests.
      
      Reviewed By: Whitney
      
      Differential Revision: https://reviews.llvm.org/D99149
      cea7a3fe
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Add subtarget to a test · 7521fcd2
      Matt Arsenault authored
      SelectionDAG forces us to have a weird ABI for 16-bit values without
      legal 16-bit operations, but currently GlobalISel bypasses this and
      sometimes ends up using the gfx8+ ABI in some contexts. Make sure
      we're testing the normal ABI to avoid a test change in a future patch.
      7521fcd2