commit | 15b64d0e28efc625bd740b19ad4138f48d5b98b0 | [log] [tgz] |
---|---|---|
author | Preston Gurd <preston.gurd@intel.com> | Wed Apr 10 20:11:59 2013 +0000 |
committer | Preston Gurd <preston.gurd@intel.com> | Wed Apr 10 20:11:59 2013 +0000 |
tree | 8692d04fd8744bf234beb1c4ae5deae0c26abef7 | |
parent | 37c04bcff28ae24aa84c44d73b1079bdab09c8c5 [diff] |
In the X86 back end, getMemoryOperandNo() returns the offset into the operand array of the start of the memory reference descriptor. Additional code in EncodeInstruction provides an additional adjustment. This patch places that additional code in a separate function, called getOperandBias, so that any caller of getMemoryOperandNo can also call getOperandBias. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179211 91177308-0d34-0410-b5e6-96231b3b80d8