<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div><span></span></div>
<div>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. </div>
<div><br>
<div id="AppleMailSignature">Best regards,
<div>Alexey Bataev</div>
</div>
<div><br>
30 июля 2018 г., в 18:24, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>> написал(а):<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Jul 30, 2018 at 3:21 PM Alexey Bataev via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ABataev added a comment.<br>
<br>
nvcc always emits debug location before the very first label that represents function start. So, we can consider this as the requirement for NVPTX.<br>
</blockquote>
<div><br>
</div>
<div>Any debug location? Just a file location? Something else?</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div> </div>
</div>
</div>
</div>
</blockquote>
</div>
</body>
</html>