This is an archive of the discontinued LLVM Phabricator instance.

Add accessors for MCSubtargetInfo CPU and Feature tables
Needs ReviewPublic

Authored by Keruspe on Nov 13 2019, 8:23 AM.

Details

Reviewers
craig.topper
Summary

This is needed for -C target-cpu=help and -C target-feature=help in rustc

This patch has been around for quite a while in rust's llvm fork:

Author: Cameron Hart <cameron.hart@gmail.com>
Date: Sun Jul 10 23:55:53 2016 +1000

Diff Detail

Event Timeline

Keruspe created this revision.Nov 13 2019, 8:23 AM
Keruspe updated this revision to Diff 229109.Nov 13 2019, 8:24 AM

Fixed repository in diff

bcain added a subscriber: bcain.Nov 13 2019, 9:50 AM

LGTM but you should probably get approval from a reviewer w/experience in MCSubtargetInfo.h.