8000 Update to LLVM 9 by nikic · Pull Request #19 · rust-lang/llvm-project · GitHub
[go: up one dir, main page]

Skip to content

Update to LLVM 9 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 11, 2019
Next Next commit
Add accessors for MCSubtargetInfo CPU and Feature tables
This is needed for `-C target-cpu=help` and `-C target-feature=help` in rustc
  • Loading branch information
bitshifter authored and nikic committed Jul 8, 2019
commit 58895340ddbc8947988174384a5f99c7792dcce5
8 changes: 8 additions & 0 deletions llvm/include/llvm/MC/MCSubtargetInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ class MCSubtargetInfo {
auto Found = std::lower_bound(ProcDesc.begin(), ProcDesc.end(), CPU);
return Found != ProcDesc.end() && StringRef(Found->Key) == CPU;
}

ArrayRef<SubtargetSubTypeKV> getCPUTable() const {
return ProcDesc;
}

ArrayRef<SubtargetFeatureKV> getFeatureTable() const {
return ProcFeatures;
}
};

} // end namespace llvm
Expand Down
0