@@ -55,11 +55,11 @@ class MacroFusionPredicatorEmitter {
55
55
RecordKeeper &Records;
56
56
CodeGenTarget Target;
57
57
58
- void emitMacroFusionDecl (std::vector <Record *> Fusions, PredicateExpander &PE,
58
+ void emitMacroFusionDecl (ArrayRef <Record *> Fusions, PredicateExpander &PE,
59
59
raw_ostream &OS);
60
- void emitMacroFusionImpl (std::vector <Record *> Fusions, PredicateExpander &PE,
60
+ void emitMacroFusionImpl (ArrayRef <Record *> Fusions, PredicateExpander &PE,
61
61
raw_ostream &OS);
62
- void emitPredicates (std::vector <Record *> & FirstPredicate, bool IsCommutable,
62
+ void emitPredicates (ArrayRef <Record *> FirstPredicate, bool IsCommutable,
63
63
PredicateExpander &PE, raw_ostream &OS);
64
64
void emitFirstPredicate (Record *SecondPredicate, bool IsCommutable,
65
65
PredicateExpander &PE, raw_ostream &OS);
@@ -76,7 +76,7 @@ class MacroFusionPredicatorEmitter {
76
76
} // End anonymous namespace.
77
77
78
78
void MacroFusionPredicatorEmitter::emitMacroFusionDecl (
79
- std::vector <Record *> Fusions, PredicateExpander &PE, raw_ostream &OS) {
79
+ ArrayRef <Record *> Fusions, PredicateExpander &PE, raw_ostream &OS) {
80
80
OS << " #ifdef GET_" << Target.getName () << " _MACRO_FUSION_PRED_DECL\n " ;
81
81
OS << " #undef GET_" << Target.getName () << " _MACRO_FUSION_PRED_DECL\n\n " ;
82
82
OS << " namespace llvm {\n " ;
@@ -93,7 +93,7 @@ void MacroFusionPredicatorEmitter::emitMacroFusionDecl(
93
93
}
94
94
95
95
void MacroFusionPredicatorEmitter::emitMacroFusionImpl (
96
- std::vector <Record *> Fusions, PredicateExpander &PE, raw_ostream &OS) {
96
+ ArrayRef <Record *> Fusions, PredicateExpander &PE, raw_ostream &OS) {
97
97
OS << " #ifdef GET_" << Target.getName () << " _MACRO_FUSION_PRED_IMPL\n " ;
98
98
OS << " #undef GET_" << Target.getName () << " _MACRO_FUSION_PRED_IMPL\n\n " ;
99
99
OS << " namespace llvm {\n " ;
@@ -121,9 +121,10 @@ void MacroFusionPredicatorEmitter::emitMacroFusionImpl(
121
121
OS << " \n #endif\n " ;
122
122
}
123
123
124
- void MacroFusionPredicatorEmitter::emitPredicates (
125
- std::vector<Record *> &Predicates, bool IsCommutable, PredicateExpander &PE,
126
- raw_ostream &OS) {
124
+ void MacroFusionPredicatorEmitter::emitPredicates (ArrayRef<Record *> Predicates,
125
+ bool IsCommutable,
126
+ PredicateExpander &PE,
127
+ raw_ostream &OS) {
127
128
for (Record *Predicate : Predicates) {
128
129
Record *Target = Predicate->getValueAsDef (" Target" );
129
130
if (Target->getName () == " first_fusion_target" )
0 commit comments