Thanks Justin. Closed in r223077. I totally agree with you. What do you think is a good long-term solution? I'm thinking of overriding EmitFunctionHeader to emit the format ptxas can consume. http://reviews.llvm.org/D6455