1 /* Copyright (c) 2015 Regents of the University of California
3 * Author: Brian Demsky <bdemsky@uci.edu>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
12 #include "classlist.h"
19 MCChange(EPRecord *record, uint64_t _val, unsigned int _index);
21 EPRecord *getRecord() {return record;}
22 int getIndex() {return index;}
23 uint64_t getValue() {return val;}
24 bool isRMW() {return record->getType()==RMW;}
25 bool isFunction() {return record->getType()==FUNCTION;}
26 bool isEquals() {return record->getType()==EQUALS;}
27 bool isLoad() {return record->getType()==LOAD;}
28 bool isStore() {return record->getType()==STORE;}
36 friend bool MCChangeEquals(MCChange *mcc1, MCChange *mcc2);
37 friend unsigned int MCChangeHash(MCChange *mcc);
40 bool MCChangeEquals(MCChange *mcc1, MCChange *mcc2);
41 unsigned int MCChangeHash(MCChange *mcc);