@@ -4498,7 +4498,7 @@ void OpOperandAdaptorEmitter::emitDef(
44984498
44994499// / Emit the class declarations or definitions for the given op defs.
45004500static  void 
4501- emitOpClasses (const  RecordKeeper &recordKeeper ,
4501+ emitOpClasses (const  RecordKeeper &records ,
45024502              const  std::vector<const  Record *> &defs, raw_ostream &os,
45034503              const  StaticVerifierFunctionEmitter &staticVerifierEmitter,
45044504              bool  emitDecl) {
@@ -4535,7 +4535,7 @@ emitOpClasses(const RecordKeeper &recordKeeper,
45354535}
45364536
45374537// / Emit the declarations for the provided op classes.
4538- static  void  emitOpClassDecls (const  RecordKeeper &recordKeeper ,
4538+ static  void  emitOpClassDecls (const  RecordKeeper &records ,
45394539                             const  std::vector<const  Record *> &defs,
45404540                             raw_ostream &os) {
45414541  //  First emit forward declaration for each class, this allows them to refer
@@ -4550,37 +4550,37 @@ static void emitOpClassDecls(const RecordKeeper &recordKeeper,
45504550  IfDefScope scope (" GET_OP_CLASSES"  , os);
45514551  if  (defs.empty ())
45524552    return ;
4553-   StaticVerifierFunctionEmitter staticVerifierEmitter (os, recordKeeper );
4553+   StaticVerifierFunctionEmitter staticVerifierEmitter (os, records );
45544554  staticVerifierEmitter.collectOpConstraints (defs);
4555-   emitOpClasses (recordKeeper , defs, os, staticVerifierEmitter,
4555+   emitOpClasses (records , defs, os, staticVerifierEmitter,
45564556                /* emitDecl=*/ true );
45574557}
45584558
45594559// / Emit the definitions for the provided op classes.
4560- static  void  emitOpClassDefs (const  RecordKeeper &recordKeeper ,
4560+ static  void  emitOpClassDefs (const  RecordKeeper &records ,
45614561                            ArrayRef<const  Record *> defs, raw_ostream &os,
45624562                            StringRef constraintPrefix = " "  ) {
45634563  if  (defs.empty ())
45644564    return ;
45654565
45664566  //  Generate all of the locally instantiated methods first.
4567-   StaticVerifierFunctionEmitter staticVerifierEmitter (os, recordKeeper ,
4567+   StaticVerifierFunctionEmitter staticVerifierEmitter (os, records ,
45684568                                                      constraintPrefix);
45694569  os << formatv (opCommentHeader, " Local Utility Method"  , " Definitions"  );
45704570  staticVerifierEmitter.collectOpConstraints (defs);
45714571  staticVerifierEmitter.emitOpConstraints (defs);
45724572
45734573  //  Emit the classes.
4574-   emitOpClasses (recordKeeper , defs, os, staticVerifierEmitter,
4574+   emitOpClasses (records , defs, os, staticVerifierEmitter,
45754575                /* emitDecl=*/ false );
45764576}
45774577
45784578// / Emit op declarations for all op records.
4579- static  bool  emitOpDecls (const  RecordKeeper &recordKeeper , raw_ostream &os) {
4580-   emitSourceFileHeader (" Op Declarations"  , os, recordKeeper );
4579+ static  bool  emitOpDecls (const  RecordKeeper &records , raw_ostream &os) {
4580+   emitSourceFileHeader (" Op Declarations"  , os, records );
45814581
4582-   std::vector<const  Record *> defs = getRequestedOpDefinitions (recordKeeper );
4583-   emitOpClassDecls (recordKeeper , defs, os);
4582+   std::vector<const  Record *> defs = getRequestedOpDefinitions (records );
4583+   emitOpClassDecls (records , defs, os);
45844584
45854585  //  If we are generating sharded op definitions, emit the sharded op
45864586  //  registration hooks.
@@ -4606,7 +4606,7 @@ static bool emitOpDecls(const RecordKeeper &recordKeeper, raw_ostream &os) {
46064606
46074607// / Generate the dialect op registration hook and the op class definitions for a
46084608// / shard of ops.
4609- static  void  emitOpDefShard (const  RecordKeeper &recordKeeper ,
4609+ static  void  emitOpDefShard (const  RecordKeeper &records ,
46104610                           ArrayRef<const  Record *> defs,
46114611                           const  Dialect &dialect, unsigned  shardIndex,
46124612                           unsigned  shardCount, raw_ostream &os) {
@@ -4640,14 +4640,14 @@ static void emitOpDefShard(const RecordKeeper &recordKeeper,
46404640  os << " }\n "  ;
46414641
46424642  //  Generate the per-shard op definitions.
4643-   emitOpClassDefs (recordKeeper , defs, os, indexStr);
4643+   emitOpClassDefs (records , defs, os, indexStr);
46444644}
46454645
46464646// / Emit op definitions for all op records.
4647- static  bool  emitOpDefs (const  RecordKeeper &recordKeeper , raw_ostream &os) {
4648-   emitSourceFileHeader (" Op Definitions"  , os, recordKeeper );
4647+ static  bool  emitOpDefs (const  RecordKeeper &records , raw_ostream &os) {
4648+   emitSourceFileHeader (" Op Definitions"  , os, records );
46494649
4650-   std::vector<const  Record *> defs = getRequestedOpDefinitions (recordKeeper );
4650+   std::vector<const  Record *> defs = getRequestedOpDefinitions (records );
46514651  SmallVector<ArrayRef<const  Record *>, 4 > shardedDefs;
46524652  shardOpDefinitions (defs, shardedDefs);
46534653
@@ -4662,7 +4662,7 @@ static bool emitOpDefs(const RecordKeeper &recordKeeper, raw_ostream &os) {
46624662    }
46634663    {
46644664      IfDefScope scope (" GET_OP_CLASSES"  , os);
4665-       emitOpClassDefs (recordKeeper , defs, os);
4665+       emitOpClassDefs (records , defs, os);
46664666    }
46674667    return  false ;
46684668  }
@@ -4671,7 +4671,7 @@ static bool emitOpDefs(const RecordKeeper &recordKeeper, raw_ostream &os) {
46714671    return  false ;
46724672  Dialect dialect = Operator (defs.front ()).getDialect ();
46734673  for  (auto  [idx, value] : llvm::enumerate (shardedDefs)) {
4674-     emitOpDefShard (recordKeeper , value, dialect, idx, shardedDefs.size (), os);
4674+     emitOpDefShard (records , value, dialect, idx, shardedDefs.size (), os);
46754675  }
46764676  return  false ;
46774677}
0 commit comments