-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dependence.h
27 lines (21 loc) · 910 Bytes
/
Dependence.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
// Luke Mitchell, 2015
#ifndef __DEPENDENCE_H
#define __DEPENDENCE_H
#include <vector>
#include "Register.h"
#include "MemoryLocation.h"
#include "DecodeUnit.h"
class Dependence {
private:
static std::vector<uint32_t> IM(instruction_t instr, uint32_t pc/*, std::vector<Register>* r*/);
static std::vector<uint8_t> IR(instruction_t instr);
static std::vector<uint32_t> OM(instruction_t instr/*, std::vector<Register>* r*/);
static std::vector<uint8_t> OR(instruction_t instr);
static bool __depends(uint32_t s1, uint32_t s2, uint32_t pc/*, std::vector<Register>* r*/);
public:
static bool depends(uint32_t s1, uint32_t s2, uint32_t pc/*, std::vector<Register>* r*/);
static bool depends(uint32_t s1, uint32_t s2, Register* pc/*, std::vector<Register>* r*/);
static bool depends(Register s1, Register s2, Register* pc/*, std::vector<Register>* r*/);
};
#endif