This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Extend base addressing modes supported by MGATHER/MSCATTER
ClosedPublic

Authored by c-rhodes on Aug 2 2019, 1:21 AM.

Details

Summary

Before this patch MGATHER/MSCATTER is capable of representing all
common addressing modes, but only when illegal types are used.
This patch adds an IndexType property so more representations
are available when using legal types only.

Original modes:
vector of bases
base + vector of signed scaled offsets

New modes:
base + vector of signed unscaled offsets
base + vector of unsigned scaled offsets
base + vector of unsigned unscaled offsets

The current behaviour of addressing modes for gather/scatter remains
unchanged.

Patch by Paul Walker.

Diff Detail

Repository
rL LLVM

Event Timeline

c-rhodes created this revision.Aug 2 2019, 1:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2019, 1:22 AM
This revision is now accepted and ready to land.Aug 5 2019, 11:58 AM
This revision was automatically updated to reflect the committed changes.