diff options
author | Andrew Trick <atrick@apple.com> | 2013-09-25 18:14:12 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-09-25 18:14:12 +0000 |
commit | b6854d80e36520b9471e88bf8d241279d7cd6dce (patch) | |
tree | 47af490994fc55ea114613382c86d51a540bfe0d /llvm/utils/TableGen/SubtargetEmitter.cpp | |
parent | 1d073feee0b8679f083e952b6f832d6d35cf3cad (diff) | |
download | llvm-b6854d80e36520b9471e88bf8d241279d7cd6dce.zip llvm-b6854d80e36520b9471e88bf8d241279d7cd6dce.tar.gz llvm-b6854d80e36520b9471e88bf8d241279d7cd6dce.tar.bz2 |
Mark the x86 machine model as incomplete. PR17367.
Ideally, the machinel model is added at the time the instructions are
defined. But many instructions in X86InstrSSE.td still need a model.
Without this workaround the scheduler asserts because x86 already has
itinerary classes for these instructions, indicating they should be
modeled by the scheduler. Since we use the new machine model for other
instructions, it expects a new machine model for these too.
llvm-svn: 191391
Diffstat (limited to 'llvm/utils/TableGen/SubtargetEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/SubtargetEmitter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp index 81bb6f8..b9f9d06 100644 --- a/llvm/utils/TableGen/SubtargetEmitter.cpp +++ b/llvm/utils/TableGen/SubtargetEmitter.cpp @@ -1198,6 +1198,11 @@ void SubtargetEmitter::EmitProcessorModels(raw_ostream &OS) { EmitProcessorProp(OS, PI->ModelDef, "LoadLatency", ','); EmitProcessorProp(OS, PI->ModelDef, "HighLatency", ','); EmitProcessorProp(OS, PI->ModelDef, "MispredictPenalty", ','); + + OS << " " << (bool)(PI->ModelDef ? + PI->ModelDef->getValueAsBit("CompleteModel") : 0) + << ", // " << "CompleteModel\n"; + OS << " " << PI->Index << ", // Processor ID\n"; if (PI->hasInstrSchedModel()) OS << " " << PI->ModelName << "ProcResources" << ",\n" |