[llvm] [TableGen] Replace some uses of make_range with methods that already return a range. NFC (PR #123453)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 23:39:05 PST 2025


================
@@ -979,8 +979,9 @@ unsigned CodeGenSchedModels::addSchedClass(const Record *ItinClassDef,
     return SC.isKeyEqual(ItinClassDef, OperWrites, OperReads);
   };
 
-  auto I = find_if(make_range(schedClassBegin(), schedClassEnd()), IsKeyEqual);
----------------
topperc wrote:

I considered using schedClases() here but I would still need schedClassEnd() on the next line. The rest of this function already uses the SchedClasses member directly so I decided to just skip the accessor methods.

https://github.com/llvm/llvm-project/pull/123453


More information about the llvm-commits mailing list