-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlive_unit.cc
More file actions
39 lines (33 loc) · 893 Bytes
/
Copy pathlive_unit.cc
File metadata and controls
39 lines (33 loc) · 893 Bytes
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
32
33
34
35
36
37
38
/* live_unit.cc
*
* contains definitions of live unit functions. each live range
* consists of a series of live units where each live unit represents
* the live range occupying a basic block.
*/
/*-----------------------MODULE INCLUDES-----------------------*/
#include <cmath>
#include "live_unit.h"
#include "shared_globals.h"
#include "params.h"
#include "cfg_tools.h"
/*------------------MODULE LOCAL DEFINITIONS-------------------*/
namespace {
}
/*--------------------BEGIN IMPLEMENTATION---------------------*/
/*
*======================
* LiveUnit_Alloc()
*======================
*
***/
LiveUnit* LiveUnit_Alloc(Arena a)
{
LiveUnit* unit = (LiveUnit*)Arena_GetMemClear(a, sizeof(LiveUnit));
unit->need_load = FALSE;
unit->need_store = FALSE;
unit->block = 0;
return unit;
}
/*------------------INTERNAL MODULE FUNCTIONS--------------------*/
namespace {
}