[llvm-dev] Target Specific LTO Machine Pass

Ben Simhon, Oren via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 6 09:00:37 PST 2017


It looks like you are correct. Some Target Machine options were not forwarded to the linker correctly.
It caused the pass not to run.

Thank you for the help,
Oren

From: Teresa Johnson [mailto:tejohnson at google.com]
Sent: Monday, November 06, 2017 16:52
To: Ben Simhon, Oren <oren.ben.simhon at intel.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Target Specific LTO Machine Pass

When do you want it to run? Machine specific passes are invoked during codegen. It looks like anything you add via addPreEmitPass should get invoked during LTO codegen (via TargetMachine::addPassesToEmitFile which eventually calls that through some other layers). Are you sure it isn't being invoked during LTO codegen?
Teresa

On Mon, Nov 6, 2017 at 6:03 AM, Ben Simhon, Oren via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
Hi,

I want to add Target Specific MachineFunctionPass so that it will run during Link Time Optimization.
The pass is currently running in non-LTO compilation (added in addPreEmitPass).
What do I need to do in order to run my pass also during LTO?

Thanks,
Oren


---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



--
Teresa Johnson |

 Software Engineer |

 tejohnson at google.com<mailto:tejohnson at google.com> |

 408-460-2413


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171106/7a4b64cd/attachment.html>


More information about the llvm-dev mailing list