This is an archive of the discontinued LLVM Phabricator instance.

[globalisel][legalizerinfo] Add support for legalization based on the MachineMemOperand
ClosedPublic

Authored by dsanders on Apr 9 2018, 3:46 PM.

Details

Summary

Currently only the memory size is supported but others can be added as
needed.

narrowScalar for G_LOAD and G_STORE now correctly update the
MachineMemOperand and will refuse to legalize atomics since those need more
careful expansions to maintain atomicity.

Diff Detail

Repository
rL LLVM

Event Timeline

dsanders created this revision.Apr 9 2018, 3:46 PM
dsanders updated this revision to Diff 142082.Apr 11 2018, 3:28 PM

Rebase to trunk

aemerson accepted this revision.Apr 18 2018, 5:14 PM
aemerson added a subscriber: aemerson.

LGTM.

This revision is now accepted and ready to land.Apr 18 2018, 5:14 PM

Thanks. I'll commit this when I'm back in the office on Thursday

This revision was automatically updated to reflect the committed changes.