a2e2f9b8c6bad38235b9cec76730daf2ee5bf08a
This is cherrypick of Daniil Fukalov's PR https://github.com/ROCm-Developer-Tools/HIP/pull/2110
which has been committed to master branch.
Make declarations consistent with https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/amd-stg-open/ockl/src/workitem.cl
Without the attribute these functions don't have "readnone" LLVM IR attribute. Without it some optimizations fails, e.g. Loop Invariant Code Motion doesn't hoist these calls out of a loop.
Change-Id: Idb599570d142152cc4f6a3c8986384ad7f0c4729
[ROCm/clr commit: 359ea4fcaf]
説明
説明が提供されていません
言語
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
その他
1.1%