[PATCH] D40033: [NVPTX] Initial adaptation of MCAsmStreamer/MCTargetStreamer for debug info in Cuda.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 12:07:58 PST 2017


ABataev added a comment.

In https://reviews.llvm.org/D40033#945486, @gchakrabarti wrote:

> Note that PTX allows .file even before .text. The spec is accurate here:
>
> "The .file directive is allowed only in the outermost scope, i.e., at the same level as kernel and device function declarations."
>
> The reason .file may be needed after .text is that if while emitting the .text, you do not know the file directives yet.


Yes, you're right. That's the idea.


https://reviews.llvm.org/D40033





More information about the llvm-commits mailing list