This is an archive of the discontinued LLVM Phabricator instance.

[X86] Added missing mayLoad/mayStore attributes to some X86 instructions
ClosedPublic

Authored by aymanmus on Apr 5 2017, 10:05 AM.

Details

Summary

Throughout the effort of automatically generating the X86 memory folding tables these missing information were encountered.
This is a preparation work for a future patch including the automation of these tables.

Diff Detail

Repository
rL LLVM

Event Timeline

aymanmus created this revision.Apr 5 2017, 10:05 AM
craig.topper added inline comments.Apr 5 2017, 11:15 AM
lib/Target/X86/X86InstrVMX.td
51 ↗(On Diff #94252)

Do you mind changing the name of these to VMREAD64mr and VMREAD32mr as a NFC pre-patch. That would be more consistent with our other instruction names.

craig.topper edited edge metadata.Apr 5 2017, 11:21 AM

Are you planning to put ARPL, LAR, VERR, VERW, SLDT, LLDT and many others here in the automated tables?

@craig.topper - Yes, all X86 instructions that have both register and memory forms and can be legally folded will be included in the generated tables.

lib/Target/X86/X86InstrVMX.td
51 ↗(On Diff #94252)
This revision is now accepted and ready to land.Apr 7 2017, 9:40 PM
This revision was automatically updated to reflect the committed changes.