[PATCH] D127664: [AMDGPU] gfx11 ldsdir intrinsics and ISel

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 11:42:35 PDT 2022


rampitec added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/LDSDIRInstructions.td:96
+  (f32 (int_amdgcn_lds_direct_load M0)),
+  (LDS_DIRECT_LOAD 0)
+>;
----------------
Joe_Nash wrote:
> rampitec wrote:
> > How does that work? It seems to ignore M0 argument.
> Because LDS_DIRECT_LOAD has an implicit use of M0. In llvm.amdgcn.lds.direct.load.ll it seems to work as it should given that.
Right, it uses M0, but where is a link from the call argument and actual store of that value into M0?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127664



More information about the llvm-commits mailing list