This is an archive of the discontinued LLVM Phabricator instance.

[MachineInstrBuilder] Support for adding a ConstantPoolIndex MO with an additional offset.
ClosedPublic

Authored by RKSimon on Nov 20 2015, 3:36 AM.

Details

Summary

MachineInstrBuilder::addDisp can already add an immediate or global address MO with an adjusted offset, this patch adds support for constant pool indices as well.

All remaining MO types still assert - there are a number of other types that could support adjusted offsets but I have no test cases at this time.

Required to fix a regression in D13988 found by Mikael Holmén during stress testing (test case attached).

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon updated this revision to Diff 40759.Nov 20 2015, 3:36 AM
RKSimon retitled this revision from to [MachineInstrBuilder] Support for adding a ConstantPoolIndex MO with an additional offset..
RKSimon updated this object.
RKSimon set the repository for this revision to rL LLVM.
RKSimon added a subscriber: llvm-commits.
This revision was automatically updated to reflect the committed changes.