This is an archive of the discontinued LLVM Phabricator instance.

[JITLink] Use SubtargetFeatures to store features in LinkGraph
ClosedPublic

Authored by jobnoorman on Jun 26 2023, 2:58 AM.

Details

Summary

D149522 introduced target features to LinkGraph. However, to avoid a
public dependency on MC, the features were stored in a std::vector
instead of using SubtargetFeatures directly.

Since SubtargetFeatures was moved from MC to TargetParser (D150549), we
can now use it directly to store the features. This patch implements
that and removes the (private) dependency on MC.

Diff Detail

Event Timeline

jobnoorman created this revision.Jun 26 2023, 2:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 2:58 AM
Herald added subscribers: asb, luke, pmatos and 23 others. · View Herald Transcript
jobnoorman requested review of this revision.Jun 26 2023, 2:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 2:58 AM
lhames accepted this revision.Jun 26 2023, 12:59 PM

LGTM. Thanks very much @jobnoorman!

This revision is now accepted and ready to land.Jun 26 2023, 12:59 PM
This revision was landed with ongoing or failed builds.Jun 27 2023, 12:35 AM
This revision was automatically updated to reflect the committed changes.