Skip to content
Snippets Groups Projects
Commit 50651b66 authored by an7s's avatar an7s
Browse files

forgot to add file

Former-commit-id: 1a387d0aed8ad57ac046355680905ab6cd2c8431
parent 02f4bb77
No related branches found
No related tags found
No related merge requests found
......@@ -289,6 +289,7 @@ libMEDSannotation/src/Makefile -text
libMEDSannotation/src/VirtualOffset.cpp -text
libtransform/Makefile -text
libtransform/include/integertransform.hpp -text
libtransform/include/leapattern.h -text
libtransform/include/transform.hpp -text
libtransform/src/Makefile -text
libtransform/src/integertransform.cpp -text
......
#ifndef _LEA_PATTERN_H_
#define _LEA_PATTERN_H_
#include <regex.h>
#include "MEDS_InstructionCheckAnnotation.hpp"
#include "MEDS_Register.hpp"
using namespace MEDS_Annotation;
namespace libTransform {
class LEAPattern {
public:
LEAPattern(const MEDS_InstructionCheckAnnotation& p_annotation);
bool isValid() const;
bool isRegisterPlusRegister() const;
bool isRegisterPlusConstant() const;
bool isRegisterTimesConstant() const;
bool isRegisterTimesRegister() const; // not used
Register::RegisterName getRegister1() const;
Register::RegisterName getRegister2() const;
int getConstant() const;
private:
bool m_isValid;
bool m_isRegPlusReg;
bool m_isRegPlusConstant;
bool m_isRegTimesReg;
bool m_isRegTimesConstant;
Register::RegisterName m_reg1;
Register::RegisterName m_reg2;
int m_constant;
regex_t m_regex_reg_plus_reg;
regex_t m_regex_reg_times_reg;
regex_t m_regex_reg_plus_constant;
regex_t m_regex_reg_plus_negconstant;
regex_t m_regex_reg_times_constant;
};
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment