diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-28 22:49:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-28 22:49:02 +0000 |
commit | b0e103d46bf8799ac5523157a6ed4a78d1751a89 (patch) | |
tree | ef284005cbd3353ba5173ca006f93c5bf655e1bc /utils/TableGen/SubtargetEmitter.cpp | |
parent | 6bc0d742c284d65514b63f3fa4a2bb3ab1fe040e (diff) | |
download | external_llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.zip external_llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.gz external_llvm-b0e103d46bf8799ac5523157a6ed4a78d1751a89.tar.bz2 |
Rename Record::getValueAsListDef to getValueAsListOfDefs, to more accurately
reflect what it is.
Convert some more code over to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/SubtargetEmitter.cpp')
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index e6429ea..86b5201 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -137,7 +137,8 @@ void SubtargetEmitter::CPUKeyValues(std::ostream &OS) { Record *Processor = ProcessorList[i]; std::string Name = Processor->getValueAsString("Name"); - std::vector<Record*> FeatureList = Processor->getValueAsListDef("Features"); + std::vector<Record*> FeatureList = + Processor->getValueAsListOfDefs("Features"); // Emit as { "cpu", "description", f1 | f2 | ... fn }, OS << " { " @@ -206,7 +207,7 @@ void SubtargetEmitter::FormItineraryString(Record *ItinData, std::string &ItinString, unsigned &NStages) { // Get states list - std::vector<Record*> StageList = ItinData->getValueAsListDef("Stages"); + std::vector<Record*> StageList = ItinData->getValueAsListOfDefs("Stages"); // For each stage unsigned N = NStages = StageList.size(); @@ -219,7 +220,7 @@ void SubtargetEmitter::FormItineraryString(Record *ItinData, ItinString += " ,{ " + itostr(Cycles) + ", "; // Get unit list - std::vector<Record*> UnitList = Stage->getValueAsListDef("Units"); + std::vector<Record*> UnitList = Stage->getValueAsListOfDefs("Units"); // For each unit for (unsigned j = 0, M = UnitList.size(); j < M;) { @@ -272,7 +273,7 @@ void SubtargetEmitter::EmitStageData(std::ostream &OS, ItinList.resize(NItinClasses); // Get itinerary data list - std::vector<Record*> ItinDataList = Proc->getValueAsListDef("IID"); + std::vector<Record*> ItinDataList = Proc->getValueAsListOfDefs("IID"); // For each itinerary data for (unsigned j = 0, M = ItinDataList.size(); j < M; j++) { |