<div dir="ltr">There is limited support for different optimisations due to different functions - subtarget features specifically can vary from function to function and optimizations are intended to respect them. So the pass pipeline remains the same, but passes should skip their work if the subtarget features, attributes, etc, on a function indicate not to do a certain optimization. (this is how the  "optnone" is supported for instance - but also subtarget features like SSE versions, etc)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 30, 2019 at 8:13 PM Sooyeon Lee 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all.</div><div><br></div><div>(Assume that a program has one module.)</div><div>Is there any way to apply different passes for different functions?<br><div>If not, please advise me how to implement it while considering module passes.</div></div><div><br></div><div>Best regards,</div><div>Sooyeon</div><div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>