blob: 0df97993949fe41e50261a8f7ba1d49e2ee88bc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef RCC_CODEGEN_REGALLOCCOMMON_H
#define RCC_CODEGEN_REGALLOCCOMMON_H
#include "rcc/CodeGen/MachinePass.h"
#include <memory>
namespace rcc {
class TargetRegisterAllocationInfo;
struct RegisterAllocationOptions final {
bool EnableRematerialization = true;
bool EnableCopyCoalescing = true;
};
[[nodiscard]] std::unique_ptr<MachineFunctionPass>
createBasicAllocatorPass(const TargetRegisterAllocationInfo &Info,
RegisterAllocationOptions Options = {});
} // namespace rcc
#endif // RCC_CODEGEN_REGALLOCCOMMON_H
|