Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit a3c12a7

Browse files
authored
Merge pull request #45 from bitshifter/issue-30961
Add accessors for MCSubtargetInfo CPU and Feature tables
2 parents 7ca76af + 31d7a40 commit a3c12a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: include/llvm/MC/MCSubtargetInfo.h

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ class MCSubtargetInfo {
163163
auto Found = std::lower_bound(ProcDesc.begin(), ProcDesc.end(), CPU);
164164
return Found != ProcDesc.end() && StringRef(Found->Key) == CPU;
165165
}
166+
167+
ArrayRef<SubtargetFeatureKV> getCPUTable() const {
168+
return ProcDesc;
169+
}
170+
171+
ArrayRef<SubtargetFeatureKV> getFeatureTable() const {
172+
return ProcFeatures;
173+
}
166174
};
167175

168176
} // End llvm namespace

0 commit comments

Comments
 (0)