[llvm] r262399 - TableGen: Display helpfull message for incomplete models.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 13:36:12 PST 2016


Author: matze
Date: Tue Mar  1 15:36:12 2016
New Revision: 262399

URL: http://llvm.org/viewvc/llvm-project?rev=262399&view=rev
Log:
TableGen: Display helpfull message for incomplete models.

Modified:
    llvm/trunk/utils/TableGen/CodeGenSchedule.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenSchedule.cpp?rev=262399&r1=262398&r2=262399&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenSchedule.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenSchedule.cpp Tue Mar  1 15:36:12 2016
@@ -1564,8 +1564,14 @@ void CodeGenSchedModels::checkCompletene
     }
     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.




More information about the llvm-commits mailing list