In the X86 back end, getMemoryOperandNo() returns the offset
authorPreston Gurd <preston.gurd@intel.com>
Wed, 10 Apr 2013 20:11:59 +0000 (20:11 +0000)
committerPreston Gurd <preston.gurd@intel.com>
Wed, 10 Apr 2013 20:11:59 +0000 (20:11 +0000)
commit15b64d0e28efc625bd740b19ad4138f48d5b98b0
tree8692d04fd8744bf234beb1c4ae5deae0c26abef7
parent37c04bcff28ae24aa84c44d73b1079bdab09c8c5
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
lib/Target/X86/MCTargetDesc/X86BaseInfo.h
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp