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() {
15801580 return new RegAllocFast ();
15811581}
15821582
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) {
15861585 return new RegAllocFast (Ftor, ClearVirtRegs);
15871586}
Original file line number Diff line number Diff line change @@ -181,15 +181,10 @@ FunctionPass* llvm::createGreedyRegisterAllocator() {
181181}
182182
183183namespace llvm {
184- FunctionPass* createGreedyRegisterAllocator (
185- std::function<bool (const TargetRegisterInfo &TRI,
186- const TargetRegisterClass &RC)> Ftor);
187-
184+ FunctionPass *createGreedyRegisterAllocator (RegClassFilterFunc Ftor);
188185}
189186
190- FunctionPass* llvm::createGreedyRegisterAllocator (
191- std::function<bool (const TargetRegisterInfo &TRI,
192- const TargetRegisterClass &RC)> Ftor) {
187+ FunctionPass *llvm::createGreedyRegisterAllocator (RegClassFilterFunc Ftor) {
193188 return new RAGreedy (Ftor);
194189}
195190
You can’t perform that action at this time.
0 commit comments