forked from OSchip/llvm-project
Remove unused function that used to get itineraries from SubTargetFeatures. This is done from MCSubTargetInfo these days.
llvm-svn: 165092
This commit is contained in:
parent
1dc7e03047
commit
85e7a40232
llvm
|
@ -95,10 +95,6 @@ public:
|
||||||
const SubtargetFeatureKV *FeatureTable,
|
const SubtargetFeatureKV *FeatureTable,
|
||||||
size_t FeatureTableSize);
|
size_t FeatureTableSize);
|
||||||
|
|
||||||
/// Get scheduling itinerary of a CPU.
|
|
||||||
const void *getItinerary(const StringRef CPU,
|
|
||||||
const SubtargetInfoKV *Table, size_t TableSize);
|
|
||||||
|
|
||||||
/// Print feature string.
|
/// Print feature string.
|
||||||
void print(raw_ostream &OS) const;
|
void print(raw_ostream &OS) const;
|
||||||
|
|
||||||
|
|
|
@ -336,30 +336,6 @@ uint64_t SubtargetFeatures::getFeatureBits(const StringRef CPU,
|
||||||
return Bits;
|
return Bits;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get scheduling itinerary of a CPU.
|
|
||||||
const void *SubtargetFeatures::getItinerary(const StringRef CPU,
|
|
||||||
const SubtargetInfoKV *Table,
|
|
||||||
size_t TableSize) {
|
|
||||||
assert(Table && "missing table");
|
|
||||||
#ifndef NDEBUG
|
|
||||||
for (size_t i = 1; i < TableSize; i++) {
|
|
||||||
assert(strcmp(Table[i - 1].Key, Table[i].Key) < 0 && "Table is not sorted");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Find entry
|
|
||||||
const SubtargetInfoKV *Entry = Find(CPU, Table, TableSize);
|
|
||||||
|
|
||||||
if (Entry) {
|
|
||||||
return Entry->Value;
|
|
||||||
} else {
|
|
||||||
errs() << "'" << CPU
|
|
||||||
<< "' is not a recognized processor for this target"
|
|
||||||
<< " (ignoring processor)\n";
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// print - Print feature string.
|
/// print - Print feature string.
|
||||||
///
|
///
|
||||||
void SubtargetFeatures::print(raw_ostream &OS) const {
|
void SubtargetFeatures::print(raw_ostream &OS) const {
|
||||||
|
|
Loading…
Reference in New Issue