This is an archive of the discontinued LLVM Phabricator instance.

Give backends an opportunity to finish layout post-relaxation
ClosedPublic

Authored by colinl on Apr 22 2016, 12:16 PM.

Details

Summary

Overriding this function gives targets access to the layout post-relaxation and before writing fragments to output.

Hexagon is using this to more intelligently pad nops by using a larger encoding for the previous instruction if possible.

We aren't able to do this with the existing writeNopData since the previous instructions have already been encoded to the output stream.

I imagine other targets would be able to do similar optimizations and possibly more.

Diff Detail

Repository
rL LLVM

Event Timeline

colinl updated this revision to Diff 54699.Apr 22 2016, 12:16 PM
colinl retitled this revision from to Give backends an opportunity to finish layout post-relaxation.
colinl updated this object.
colinl set the repository for this revision to rL LLVM.
colinl added a subscriber: llvm-commits.
khemant accepted this revision.Apr 26 2016, 9:34 AM
khemant edited edge metadata.
This revision is now accepted and ready to land.Apr 26 2016, 9:34 AM
This revision was automatically updated to reflect the committed changes.