This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Don't store available subtarget features in AArch64SysReg::SysRegMapper.
ClosedPublic

Authored by vsukharev on Mar 27 2015, 3:41 AM.

Details

Summary

Based on discussion at http://reviews.llvm.org/D8496.
Unfortunately, that webdiscussion does not contain all messages from email chat. It seems a bug for me.
Long story short: subtarget features must not be a part of the target machine. So, it needs not to be stored in instance, but provided each time fromString/toString are called

It's a follow-up to http://reviews.llvm.org/rL207742

Diff Detail

Repository
rL LLVM

Event Timeline

vsukharev updated this revision to Diff 22780.Mar 27 2015, 3:41 AM
vsukharev retitled this revision from to Don't store available subtarget features in AArch64SysReg::SysRegMapper..
vsukharev updated this object.
vsukharev edited the test plan for this revision. (Show Details)
vsukharev added reviewers: jmolloy, echristo.
vsukharev set the repository for this revision to rL LLVM.
vsukharev added a subscriber: Unknown Object (MLST).
vsukharev retitled this revision from Don't store available subtarget features in AArch64SysReg::SysRegMapper. to [AArch64] Don't store available subtarget features in AArch64SysReg::SysRegMapper..Mar 27 2015, 3:48 AM
jmolloy accepted this revision.Mar 27 2015, 4:21 AM
jmolloy edited edge metadata.

Hi Vlad,

Thanks for doing this change. This looks fine to me, and appears to change the API to be more explicitly subtarget-focussed.

Cheers,

James

This revision is now accepted and ready to land.Mar 27 2015, 4:21 AM
This revision was automatically updated to reflect the committed changes.