This returns a pointer to the dispatch packet, which can be used to load
information about the kernel dispach.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
131 ↗ | (On Diff #40855) | Typo: disaptch |
132 ↗ | (On Diff #40855) | Is there a way to mark noalias on the return value? |
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp | ||
106–109 ↗ | (On Diff #40855) | Later this should probably be cleaned up to only check the dispatch.ptr one for HSA, and the read.global.size.x should not set this |
include/llvm/IR/IntrinsicsAMDGPU.td | ||
---|---|---|
132 ↗ | (On Diff #40855) | I added noalias to the declaration and call in the test case and it still selects correctly. I'll look into this more when adding the clang patch for the builtin. |
Comment Actions
LGTM. The intrinsic should probably have a comment that it is only for when targeting HSA