<div dir="ltr">I imagine you can get the llvm::Function from the MachineFunction, and the attribute will be there (on the llvm::Function), but can't say I know much about it.</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 20, 2016 at 2:04 AM Martin J. O'Riordan via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-IE" link="#0563C1" vlink="#954F72" class="gmail_msg"><div class="m_-4659716570218590420WordSection1 gmail_msg"><p class="MsoNormal gmail_msg"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg">Is it possible to find whether a function has the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black" class="gmail_msg">noinstrument</span><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg">’ attribute during Target lowering?  I would like to check if this is present on a function quite late in the process when I am performing normal Target lowering and Target Frame lowering actions, but I can’t find the appropriate query in the ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black" class="gmail_msg">MachineFunction</span><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg">’ or ‘</span><span style="font-size:12.0pt;font-family:"Courier New";color:black" class="gmail_msg">MachineFunctionInfo</span><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg">’ interfaces.<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p><p class="MsoNormal gmail_msg"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p><p class="MsoNormal gmail_msg"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg">Thanks,<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p><p class="MsoNormal gmail_msg"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p><p class="MsoNormal gmail_msg"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg">            MartinO<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p><p class="MsoNormal gmail_msg"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif";color:black" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p></div></div>_______________________________________________<br class="gmail_msg">
LLVM Developers mailing list<br class="gmail_msg">
<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class="gmail_msg">
</blockquote></div>