From: Matthias Braun Date: Tue, 1 Mar 2016 21:36:12 +0000 (+0000) Subject: TableGen: Display helpfull message for incomplete models. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a939bd07d14aaf5ce3cfaded4f1ca9e454103ca0;p=platform%2Fupstream%2Fllvm.git TableGen: Display helpfull message for incomplete models. llvm-svn: 262399 --- diff --git a/llvm/utils/TableGen/CodeGenSchedule.cpp b/llvm/utils/TableGen/CodeGenSchedule.cpp index e6e62d0..5bd13d4 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.