These functions use __builtin_amdgcn_atomic_inc32():
uint32_t atomicInc(uint32_t *address); uint32_t atomicInc(uint32_t *address, uint32_t max);
These functions use builtin_amdgcn_fence():
kmpc_impl_threadfence()
kmpc_impl_threadfence_block()
kmpc_impl_threadfence_system()
They will take place of current mechanism of directly calling IR functions.
clang-tidy: warning: 'device' attribute ignored [clang-diagnostic-ignored-attributes]
not useful
clang-tidy: warning: invalid case style for parameter 'address' [readability-identifier-naming]
not useful
clang-tidy: warning: invalid case style for parameter 'max' [readability-identifier-naming]
not useful