ΒΆllvm::RegAllocScore calculateRegAllocScore(
const llvm::MachineFunction& MF,
llvm::function_ref<double(
const MachineBasicBlock&)> GetBBFreq,
llvm::function_ref<bool(const MachineInstr&)>
IsTriviallyRematerializable)
llvm::RegAllocScore calculateRegAllocScore(
const llvm::MachineFunction& MF,
llvm::function_ref<double(
const MachineBasicBlock&)> GetBBFreq,
llvm::function_ref<bool(const MachineInstr&)>
IsTriviallyRematerializable)
Description
Implementation of the above, which is also more easily unittestable.
Declared at: llvm/lib/CodeGen/RegAllocScore.h:67
Parameters
- const llvm::MachineFunction& MF
- llvm::function_ref<double( const MachineBasicBlock&)> GetBBFreq
- llvm::function_ref<bool(const MachineInstr&)> IsTriviallyRematerializable