[PATCH] D68200: [AMDGPU] Extend buffer intrinsics with swizzling

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 07:03:24 PDT 2019


arsenm added a comment.

I thought this was a property of the resource descriptor? Why do you need to add it to the intrinsic?



================
Comment at: include/llvm/IR/IntrinsicsAMDGPU.td:903
    llvm_i32_ty],      // cachepolicy(imm; bit 0 = glc, bit 1 = slc, bit 2 = dlc on gfx10+)
+                      // swizzled buffer(imm; bit 3 = swz)
   [IntrReadMem, ImmArg<3>], "", [SDNPMemOperand]>,
----------------
Need to use immarg for all of these


================
Comment at: lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:522
 
+  /* Do not merge VMEM buffer instructions with "swizzled" bit set. */
+  int swizzled = AMDGPU::getNamedOperandIdx(CI.I->getOpcode(), AMDGPU::OpName::swz);
----------------
Single line comment


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68200/new/

https://reviews.llvm.org/D68200





More information about the llvm-commits mailing list