-
Notifications
You must be signed in to change notification settings - Fork 12
/
legalize.h
31 lines (20 loc) · 930 Bytes
/
legalize.h
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
26
27
28
29
30
31
#pragma once
// (c) Robert Muth - see LICENSE for more info
#include "Base/ir.h"
#include "CodeGenX64/regs.h"
#include <iostream>
namespace cwerg::code_gen_x64 {
using namespace cwerg;
extern void PhaseLegalization(base::Fun fun,
base::Unit unit,
std::ostream* fout);
extern void PhaseGlobalRegAlloc(base::Fun fun,
base::Unit unit,
std::ostream* fout);
extern void PhaseFinalizeStackAndLocalRegAlloc(base::Fun fun,
base::Unit unit,
std::ostream* fout);
void LegalizeAll(base::Unit unit, bool verbose, std::ostream* fout);
void RegAllocGlobal(base::Unit unit, bool verbose, std::ostream* fout);
void RegAllocLocal(base::Unit unit, bool verbose, std::ostream* fout);
} // namespace cwerg::code_gen_x64