llvm.org GIT mirror llvm / 6eda329
[TableGen] Move a function from llvm namespace and make it a static function. NFC It's only called from one place and is defined just above that use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328074 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 2 years ago
2 changed file(s) with 2 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
430430 return false;
431431 }
432432
433 namespace llvm {
434
435 void splitSchedReadWrites(const RecVec &RWDefs,
436 RecVec &WriteDefs, RecVec &ReadDefs) {
433 static void splitSchedReadWrites(const RecVec &RWDefs,
434 RecVec &WriteDefs, RecVec &ReadDefs) {
437435 for (Record *RWDef : RWDefs) {
438436 if (RWDef->isSubClassOf("SchedWrite"))
439437 WriteDefs.push_back(RWDef);
443441 }
444442 }
445443 }
446
447 } // end namespace llvm
448444
449445 // Split the SchedReadWrites defs and call findRWs for each list.
450446 void CodeGenSchedModels::findRWs(const RecVec &RWDefs,
3131
3232 using IdxVec = std::vector;
3333 using IdxIter = std::vector::const_iterator;
34
35 void splitSchedReadWrites(const RecVec &RWDefs,
36 RecVec &WriteDefs, RecVec &ReadDefs);
3734
3835 /// We have two kinds of SchedReadWrites. Explicitly defined and inferred
3936 /// sequences. TheDef is nonnull for explicit SchedWrites, but Sequence may or