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

Gautam Chakrabarti via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 12:06:45 PST 2017


gchakrabarti added a comment.

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.


https://reviews.llvm.org/D40033





More information about the llvm-commits mailing list