blob: 64c059a4bf56535080400fe0e949fa6da6148a52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef PROGRAM_H_
#define PROGRAM_H_
#include <vector>
#include "register_address.h"
class float_value;
class instruction;
class program {
public:
program();
register_address add_immediate(float value);
void add_instruction(instruction * inst);
register_address alloc_private_reg();
std::vector<instruction *> m_instructions;
std::vector<float_value *> m_immediate_regs;
unsigned int num_private_regs;
};
#endif //PROGRAM_H_
|