nhaustov added a comment. I'll also probably split this change into two parts and submit AMDGPUMachineFunction.* changes after corresponding Clang change. This will ensure frontends work. http://reviews.llvm.org/D19917