rename MemOperand as RegExp
This commit is contained in:
parent
0fe89e3df9
commit
67157ee42d
4 changed files with 14 additions and 7 deletions
|
@ -49,6 +49,13 @@ Linux:
|
||||||
|
|
||||||
These files are copied into /usr/local/include/xbyak
|
These files are copied into /usr/local/include/xbyak
|
||||||
|
|
||||||
|
Break backward compatibility
|
||||||
|
-------------
|
||||||
|
At the next version, (old) Reg32e class will split (new) Reg32e class and (new) RegExp.
|
||||||
|
(new) Reg32e class is Reg32 or Reg64.
|
||||||
|
(new) RegExp class is to deal with 'Reg32e + Reg32e * scale + disp'.
|
||||||
|
Please rename Reg32e as RegExp if you use (old) Reg32e as RegExp.
|
||||||
|
|
||||||
New Feature
|
New Feature
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ private:
|
||||||
size_t constTblPos_;
|
size_t constTblPos_;
|
||||||
int regIdx_;
|
int regIdx_;
|
||||||
Map varMap_; // map var name to index
|
Map varMap_; // map var name to index
|
||||||
const Xbyak::MemOperand& valTbl_;
|
const Xbyak::RegExp& valTbl_;
|
||||||
#ifdef XBYAK32
|
#ifdef XBYAK32
|
||||||
const Xbyak::Reg32& tbl_;
|
const Xbyak::Reg32& tbl_;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -105,7 +105,7 @@ private:
|
||||||
size_t constTblPos_;
|
size_t constTblPos_;
|
||||||
int regIdx_;
|
int regIdx_;
|
||||||
#ifdef XBYAK32
|
#ifdef XBYAK32
|
||||||
const Xbyak::MemOperand& varTbl_;
|
const Xbyak::RegExp& varTbl_;
|
||||||
#endif
|
#endif
|
||||||
#ifdef XBYAK32
|
#ifdef XBYAK32
|
||||||
const Xbyak::Reg32& tbl_;
|
const Xbyak::Reg32& tbl_;
|
||||||
|
|
|
@ -16,15 +16,15 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The old Reg32e is split to Reg32, Reg64 and MemOperand
|
The old Reg32e is split to Reg32, Reg64 and RegExp
|
||||||
Use MemOperand to specify 'rax + rcx * 4 + 123' instead of Reg32e,
|
Use RegExp to specify 'rax + rcx * 4 + 123' instead of Reg32e,
|
||||||
or define XBYAK_USE_OLD_REG32E for compatibility
|
or define XBYAK_USE_OLD_REG32E for compatibility
|
||||||
|
|
||||||
XBYAK_USE_OLD_REG32E will be removed in the future version
|
XBYAK_USE_OLD_REG32E will be removed in the future version
|
||||||
|
|
||||||
old Reg32e = new Reg32e + MemOperand
|
old Reg32e = new Reg32e + RegExp
|
||||||
new Reg32e = Reg32 or Reg64
|
new Reg32e = Reg32 or Reg64
|
||||||
MemOperand = Memory Operand such as 'rax + rcx * 4 + 123'
|
RegExp = Memory Operand such as 'rax + rcx * 4 + 123'
|
||||||
*/
|
*/
|
||||||
#define XBYAK_USE_OLD_REG32E
|
#define XBYAK_USE_OLD_REG32E
|
||||||
|
|
||||||
|
@ -472,7 +472,7 @@ struct RegRip {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef Reg32e MemOperand;
|
typedef Reg32e RegExp;
|
||||||
#else
|
#else
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue