Add a new intrinsic, similar to llvm.amdgcn.set.inactive, but used only
in functions with the amdgpu_cs_chain or amdgpu_cs_chain_preserve
calling conventions. It allows setting the inactive lanes to those of
a value received as a VGPR argument.
Details
Details
- Reviewers
- None
- Group Reviewers
Restricted Project - Commits
- rG9d4094ae80f6: [AMDGPU] Add llvm.amdgcn.set.inactive.chain.arg intrinsic (#71530)
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
2138 | why can't you just use set_inactive for this? |
llvm/include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
2138 | You can, we just didn't want to overload the meaning of that intrinsic. IIUC set.inactive only expects constants for the value of the inactive lanes (admittedly this is just word of mouth, a quick grep through existing tests, and the fact that the docs leave out the second source in "the instruction and the first source will be computed in WQM"). |
why can't you just use set_inactive for this?