<div dir="ltr">So I did some investigating, and from what I can tell, for some of my intrinsics,  during the getBuiltinId function, when a null linkage declaration is seen for the first declaration's context, causing the intrinsic to not be viewed as a builtin.For some reason, the declaration context of the builtin is viewed as the file it was first used in. Does anyone know why this might occur?<div><br></div><div>Thanks,</div><div>-Dilan<br><div><br></div><div> <br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 28, 2016 at 11:48 AM Dilan Manatunga <<a href="mailto:manatunga@gmail.com">manatunga@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I experimented with adding a new language standard extension based off (C++ with support for native half type), but I am having an issue with the intrinsic function calls having their names mangled. This leads to the calls not being selected and translated during the lowering process in llvm. Is there a way to fix this issue?</div><div dir="ltr"><div><br></div><div>-Dilan</div></div></blockquote></div></div></div></div>