(original) (raw)

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@google.com\]
Sent: Monday, November 06, 2017 16:52
To: Ben Simhon, Oren
Cc: llvm-dev@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@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@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



--

Teresa Johnson |

Software Engineer |

tejohnson@google.com |

408-460-2413