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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 15:45:18 PDT 2018


It requires.loc directive with fileref, line number and column number. 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 июля 2018 г., в 18:24, Eric Christopher <echristo at gmail.com<mailto:echristo at gmail.com>> написал(а):



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/20180730/8f7d1f2a/attachment.html>


More information about the llvm-commits mailing list