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

Joe Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 07:08:02 PDT 2022


Joe_Nash added inline comments.


================
Comment at: llvm/include/llvm/IR/IntrinsicsAMDGPU.td:1465
+  Intrinsic<[llvm_float_ty],
+            [llvm_i32_ty],
+            [IntrReadMem, IntrSpeculatable, IntrWillReturn]>;
----------------
nhaehnle wrote:
> critson wrote:
> > 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.
> I think it makes sense to have an intrinsic that closely corresponds to the instruction itself. Maybe add a comment explaining this fact about M0?
> 
> I agree with Matt that the return value should be mangled.
I have commented on the input argument, and changed the return type. I am not familiar with the type mangling here, does this look correct?


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