File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1580,8 +1580,7 @@ FunctionPass *llvm::createFastRegisterAllocator() {
1580
1580
return new RegAllocFast ();
1581
1581
}
1582
1582
1583
- FunctionPass *llvm::createFastRegisterAllocator (
1584
- std::function<bool (const TargetRegisterInfo &TRI,
1585
- const TargetRegisterClass &RC)> Ftor, bool ClearVirtRegs) {
1583
+ FunctionPass *llvm::createFastRegisterAllocator (RegClassFilterFunc Ftor,
1584
+ bool ClearVirtRegs) {
1586
1585
return new RegAllocFast (Ftor, ClearVirtRegs);
1587
1586
}
Original file line number Diff line number Diff line change @@ -181,15 +181,10 @@ FunctionPass* llvm::createGreedyRegisterAllocator() {
181
181
}
182
182
183
183
namespace llvm {
184
- FunctionPass* createGreedyRegisterAllocator (
185
- std::function<bool (const TargetRegisterInfo &TRI,
186
- const TargetRegisterClass &RC)> Ftor);
187
-
184
+ FunctionPass *createGreedyRegisterAllocator (RegClassFilterFunc Ftor);
188
185
}
189
186
190
- FunctionPass* llvm::createGreedyRegisterAllocator (
191
- std::function<bool (const TargetRegisterInfo &TRI,
192
- const TargetRegisterClass &RC)> Ftor) {
187
+ FunctionPass *llvm::createGreedyRegisterAllocator (RegClassFilterFunc Ftor) {
193
188
return new RAGreedy (Ftor);
194
189
}
195
190
You can’t perform that action at this time.
0 commit comments