diff options
author | Matthias Braun <matze@braunis.de> | 2016-03-01 21:36:12 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-03-01 21:36:12 +0000 |
commit | a939bd07d14aaf5ce3cfaded4f1ca9e454103ca0 (patch) | |
tree | 1f0d55de641bcd5321cd208d57ba38579d18f4d7 /llvm/utils/TableGen/CodeGenSchedule.cpp | |
parent | f2f5626b8475b89041e86909a3f4a62a566ecbcd (diff) | |
download | bcm5719-llvm-a939bd07d14aaf5ce3cfaded4f1ca9e454103ca0.tar.gz bcm5719-llvm-a939bd07d14aaf5ce3cfaded4f1ca9e454103ca0.zip |
TableGen: Display helpfull message for incomplete models.
llvm-svn: 262399
Diffstat (limited to 'llvm/utils/TableGen/CodeGenSchedule.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenSchedule.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenSchedule.cpp b/llvm/utils/TableGen/CodeGenSchedule.cpp index e6e62d0e4ff..5bd13d43bc2 100644 --- a/llvm/utils/TableGen/CodeGenSchedule.cpp +++ b/llvm/utils/TableGen/CodeGenSchedule.cpp @@ -1564,8 +1564,14 @@ void CodeGenSchedModels::checkCompleteness() { } HadCompleteModel = true; } - if (!Complete) + if (!Complete) { + errs() << "\n\nIncomplete schedule models found.\n" + << "- Consider setting 'CompleteModel = 0' while developing new models.\n" + << "- Pseudo instructions can be marked with 'hasNoSchedulingInfo = 1'.\n" + << "- Instructions should usually have Sched<[...]> as a superclass, " + "you may temporarily use an empty list.\n\n"; PrintFatalError("Incomplete schedule model"); + } } // Collect itinerary class resources for each processor. |