tstellarAMD added a comment. This is the patch to make of use of this in the AMDPGU backend, and it also has tests: http://reviews.llvm.org/D12424 The AMDGPU patch is huge, but I can merge the two together if you want. http://reviews.llvm.org/D12423