Add new intrinsic and codegen support for the s_sendmsg_rtn_b32 and
s_sendmsg_rtn_b64 instructions.
Details
- Reviewers
Joe_Nash rampitec arsenm piotr - Group Reviewers
Restricted Project - Commits
- rG6c372daa84d4: [AMDGPU] New GFX11 intrinsic llvm.amdgcn.s.sendmsg.rtn
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
213 | Is that an objection? :) | |
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sendmsg.rtn.ll | ||
128 | Done, but validity is a slippery concept here. Do you think these should be diagnosed at some stage? I would be tempted to say the intrinsic should at least accept any unsigned 8-bit immediate, which is what the instruction encodes. (The next level of verification would be to insist that bit 7 is set, since that distinguishes messages that are expected to return something. And the next level after that would be to only accept the specific message numbers that are currently defined to do something useful.) |
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sendmsg.rtn.ll | ||
---|---|---|
128 | We don't have a consistent strategy. Some places use i16 to avoid this issue, others clamp the bits |
Missing a lot of the default attributes (which all of the other intrinsics are also currently missing)