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)
commitddf96b50720203dfd0279549e76ea65644e69e2f
treebf5ce2e033993623f7598c0bd65ebb85af1b29a3
parent70f47596b79e890d8341f184d70a350f078fe4ec
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.

llvm-svn: 179211
llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp