blob: ac3aa56005041736db62975f602bcc4d6a04d051 (
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/MachinePassManager.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
|