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

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 20:11:25 PDT 2022


critson added inline comments.


================
Comment at: llvm/include/llvm/IR/IntrinsicsAMDGPU.td:1465
+  Intrinsic<[llvm_float_ty],
+            [llvm_i32_ty],
+            [IntrReadMem, IntrSpeculatable, IntrWillReturn]>;
----------------
arsenm wrote:
> Also would expect this to be an addrspace 3 pointer
This is setting M0, the same as parameter loads.
Construction of M0 values is handled by the front-end because it is not a pure address pointer but rather a combination of address offset and flags describing the data type.
I guess we could rework this to form M0 in the backend based on an address 3 pointer and a return type.


================
Comment at: llvm/test/CodeGen/AMDGPU/llvm.amdgcn.lds.param.load.ll:3
+
+; GFX11-LABEL: {{^}}lds_param_load:
+; GFX11-DAG: lds_param_load v{{[0-9]+}}, attr0.x
----------------
There should probably be a move to m0 here?


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