Skip to content

Commit 31d7a40

Browse files
committed
Add accessors for MCSubtargetInfo CPU and Feature tables
1 parent 7ca76af commit 31d7a40

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)