mini-llvm 0.1.0
Loading...
Searching...
No Matches
LinearScanAllocator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5#include <unordered_set>
6
12
13namespace mini_llvm {
14
16public:
19 const std::unordered_set<mir::VirtualRegister *> &virtRegs,
20 const std::unordered_set<mir::PhysicalRegister *> &physRegs,
21 RegisterAction load,
22 RegisterAction store
23 ) override;
24};
25
26} // namespace mini_llvm
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
Definition LinearScanAllocator.h:15
bool allocate(mir::Function &F, const std::unordered_set< mir::VirtualRegister * > &virtRegs, const std::unordered_set< mir::PhysicalRegister * > &physRegs, RegisterAction load, RegisterAction store) override
FunctionRef< void(mir::Register *reg, mir::StackSlot *slot, const mir::BasicBlockBuilder &builder) > RegisterAction
Definition RegisterAllocator.h:20
Definition Function.h:21
Definition GraphColoringAllocator.h:13