[llvm] r187525 - Revert "TableGen: Enumerate Schedule Model too."
Tom Stellard
thomas.stellard at amd.com
Wed Jul 31 13:43:08 PDT 2013
Author: tstellar
Date: Wed Jul 31 15:43:08 2013
New Revision: 187525
URL: http://llvm.org/viewvc/llvm-project?rev=187525&view=rev
Log:
Revert "TableGen: Enumerate Schedule Model too."
This reverts commit 2ca1e4a39c7e0d7a00e66ff5437c6d7ace2404a0.
Modified:
llvm/trunk/docs/WritingAnLLVMBackend.rst
llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
Modified: llvm/trunk/docs/WritingAnLLVMBackend.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/WritingAnLLVMBackend.rst?rev=187525&r1=187524&r2=187525&view=diff
==============================================================================
--- llvm/trunk/docs/WritingAnLLVMBackend.rst (original)
+++ llvm/trunk/docs/WritingAnLLVMBackend.rst Wed Jul 31 15:43:08 2013
@@ -952,11 +952,6 @@ XXXInstrInfo.h:
int16_t getNamedOperandIdx(uint16_t Opcode, uint16_t NamedIndex);
} // End namespace XXX
-Instruction itineraries can be queried using MCDesc::getSchedClass(). The
-value can be named by an enum generated by TableGen in XXXGenInstrInfo.inc.
-The name of the schedule classes are the same as provided in XXXSchedule.td plus
-a default NoIntinerary class.
-
Instruction Relation Mapping
----------------------------
Modified: llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp?rev=187525&r1=187524&r2=187525&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp Wed Jul 31 15:43:08 2013
@@ -545,13 +545,6 @@ void InstrInfoEmitter::emitEnums(raw_ost
<< "\t= " << i << ",\n";
}
OS << " INSTRUCTION_LIST_END = " << NumberedInstructions.size() << "\n";
- OS << " };\n";
- OS << " enum {\n";
- for (unsigned i = 0, e = SchedModels.numInstrSchedClasses(); i != e; ++i) {
- OS << " " << SchedModels.getSchedClass(i).Name
- << "\t= " << i << ",\n";
- }
- OS << " SCHED_LIST_END = " << SchedModels.numInstrSchedClasses() << "\n";
OS << " };\n}\n";
OS << "} // End llvm namespace \n";
More information about the llvm-commits
mailing list