TableGen: Display helpfull message for incomplete models.
authorMatthias Braun <matze@braunis.de>
Tue, 1 Mar 2016 21:36:12 +0000 (21:36 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 1 Mar 2016 21:36:12 +0000 (21:36 +0000)
llvm-svn: 262399

llvm/utils/TableGen/CodeGenSchedule.cpp

index e6e62d0..5bd13d4 100644 (file)
@@ -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.