@@ -78,11 +78,11 @@ struct InstRegexOp : public SetTheory::Operator {
7878 void apply (SetTheory &ST, const DagInit *Expr, SetTheory::RecSet &Elts,
7979 ArrayRef<SMLoc> Loc) override {
8080 ArrayRef<const CodeGenInstruction *> Generics =
81- Target.getGenericInstructionsByEnumValue ();
81+ Target.getGenericInstructions ();
8282 ArrayRef<const CodeGenInstruction *> Pseudos =
83- Target.getTargetPseudoInstructionsByEnumValue ();
83+ Target.getTargetPseudoInstructions ();
8484 ArrayRef<const CodeGenInstruction *> NonPseudos =
85- Target.getTargetNonPseudoInstructionsByEnumValue ();
85+ Target.getTargetNonPseudoInstructions ();
8686
8787 for (const Init *Arg : Expr->getArgs ()) {
8888 const StringInit *SI = dyn_cast<StringInit>(Arg);
@@ -587,7 +587,7 @@ void CodeGenSchedModels::collectSchedRW() {
587587
588588 // Find all SchedReadWrites referenced by instruction defs.
589589 ConstRecVec SWDefs, SRDefs;
590- for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue ()) {
590+ for (const CodeGenInstruction *Inst : Target.getInstructions ()) {
591591 const Record *SchedDef = Inst->TheDef ;
592592 if (SchedDef->isValueUnset (" SchedRW" ))
593593 continue ;
@@ -836,7 +836,7 @@ void CodeGenSchedModels::collectSchedClasses() {
836836
837837 // Create a SchedClass for each unique combination of itinerary class and
838838 // SchedRW list.
839- for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue ()) {
839+ for (const CodeGenInstruction *Inst : Target.getInstructions ()) {
840840 const Record *ItinDef = Inst->TheDef ->getValueAsDef (" Itinerary" );
841841 IdxVec Writes, Reads;
842842 if (!Inst->TheDef ->isValueUnset (" SchedRW" ))
@@ -861,7 +861,7 @@ void CodeGenSchedModels::collectSchedClasses() {
861861 LLVM_DEBUG (
862862 dbgs ()
863863 << " \n +++ ITINERARIES and/or MACHINE MODELS (collectSchedClasses) +++\n " );
864- for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue ()) {
864+ for (const CodeGenInstruction *Inst : Target.getInstructions ()) {
865865 StringRef InstName = Inst->TheDef ->getName ();
866866 unsigned SCIdx = getSchedClassIdx (*Inst);
867867 if (!SCIdx) {
@@ -1922,7 +1922,7 @@ void CodeGenSchedModels::checkCompleteness() {
19221922 const bool HasItineraries = ProcModel.hasItineraries ();
19231923 if (!ProcModel.ModelDef ->getValueAsBit (" CompleteModel" ))
19241924 continue ;
1925- for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue ()) {
1925+ for (const CodeGenInstruction *Inst : Target.getInstructions ()) {
19261926 if (Inst->hasNoSchedulingInfo )
19271927 continue ;
19281928 if (ProcModel.isUnsupported (*Inst))
0 commit comments