This is an archive of the discontinued LLVM Phabricator instance.

Add types to HwMode
AbandonedPublic

Authored by abeserminji on Feb 13 2018, 7:54 AM.

Details

Summary

This patch adds 'Type' field to HwMode class so that HwMode can be used for parameterization of different information independently.

Edit: It also changes the way how HwMode is determined and moves getHwMode(...) function to MCSubtargetInfo so it can be accessed from MC and Disassembler.

Motivation for this change is implementation of 'RegisterClassByHwMode' which should not be mutually exclusive with other implementations of *ByHwMode. This is first in a series of three patches.

Diff Detail

Repository
rL LLVM

Event Timeline

abeserminji created this revision.Feb 13 2018, 7:54 AM
abeserminji edited the summary of this revision. (Show Details)Feb 14 2018, 4:48 AM
abeserminji abandoned this revision.Jul 19 2018, 6:28 AM

No need for this, now when D43283 is closed.