Sooyeon Lee via llvm-dev
2019-Oct-31 03:13 UTC
[llvm-dev] Different passes for different functions
Hi all. (Assume that a program has one module.) Is there any way to apply different passes for different functions? If not, please advise me how to implement it while considering module passes. Best regards, Sooyeon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191031/96f22bdd/attachment.html>
David Blaikie via llvm-dev
2019-Oct-31 06:07 UTC
[llvm-dev] Different passes for different functions
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) On Wed, Oct 30, 2019 at 8:13 PM Sooyeon Lee via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi all. > > (Assume that a program has one module.) > Is there any way to apply different passes for different functions? > If not, please advise me how to implement it while considering module > passes. > > Best regards, > Sooyeon > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191030/007e606a/attachment.html>