This is an archive of the discontinued LLVM Phabricator instance.

Redirect DataLayout from TargetMachine to Module in GlobalMerge
ClosedPublic

Authored by mehdi_amini on Jul 6 2015, 11:06 PM.

Details

Summary

This change is part of a series of commits dedicated to have a single
DataLayout during compilation by using always the one owned by the
module.

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to Redirect DataLayout from TargetMachine to Module in GlobalMerge.
mehdi_amini updated this object.
mehdi_amini added a reviewer: echristo.
mehdi_amini added a subscriber: llvm-commits.
mehdi_amini set the repository for this revision to rL LLVM.Jul 7 2015, 10:23 AM
mehdi_amini added subscribers: yaron.keren, rafael.
echristo accepted this revision.Jul 7 2015, 10:30 AM
echristo edited edge metadata.

Given that it's a module pass and you've got a doInitialization you could just cache it, but this is fine too.

Thanks!

-eric

This revision is now accepted and ready to land.Jul 7 2015, 10:30 AM