[PATCH] D45784: [DEBUG_INFO, NVPTX] Fix relocation info.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 06:23:41 PDT 2018


It requires .loc directive with fileref, line number and column number.
Seems to me, line number and column number can be zeroed.

The function starting label is used to evaluate function relocation info
and without this .loc directive the relocation info is incorrect. I
can't say why it requires this directive for the initial label. All
other labels inherit their location from the first following
instruction, but not the very first one.

-------------
Best regards,
Alexey Bataev

30.07.2018 18:24, Eric Christopher пишет:
>
>
> On Mon, Jul 30, 2018 at 3:21 PM Alexey Bataev via Phabricator
> <reviews at reviews.llvm.org <mailto:reviews at reviews.llvm.org>> wrote:
>
>     ABataev added a comment.
>
>     nvcc always emits debug location before the very first label that
>     represents function start. So, we can consider this as the
>     requirement for NVPTX.
>
>
> Any debug location? Just a file location? Something else?
>
> If you take a look at a normal ELF file it actually has implications
> on how the line table both works and is encoded. It becomes a more
> global location.
>
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180731/12b54d72/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180731/12b54d72/attachment.sig>


More information about the llvm-commits mailing list