diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-16 15:43:33 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-16 15:43:33 -0700 |
commit | 4d9d07c5fbe9968d6f0508431062b31fbaead691 (patch) | |
tree | 681113ffb737e9c49d1d8eca249507709cf99b67 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | d29c9477320b982b73dc64405ff8f7fc54bb04d6 (diff) | |
download | llvm-4d9d07c5fbe9968d6f0508431062b31fbaead691.zip llvm-4d9d07c5fbe9968d6f0508431062b31fbaead691.tar.gz llvm-4d9d07c5fbe9968d6f0508431062b31fbaead691.tar.bz2 |
[CodeGen] Use RegClassFilterFunc where appropriate (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 72ceaa7..3cec690 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -1580,8 +1580,7 @@ FunctionPass *llvm::createFastRegisterAllocator() { return new RegAllocFast(); } -FunctionPass *llvm::createFastRegisterAllocator( - std::function<bool(const TargetRegisterInfo &TRI, - const TargetRegisterClass &RC)> Ftor, bool ClearVirtRegs) { +FunctionPass *llvm::createFastRegisterAllocator(RegClassFilterFunc Ftor, + bool ClearVirtRegs) { return new RegAllocFast(Ftor, ClearVirtRegs); } |