Add a getAddressSpace method to the GEP instruction to mirror that of
authorChandler Carruth <chandlerc@gmail.com>
Thu, 1 Nov 2012 11:25:55 +0000 (11:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 1 Nov 2012 11:25:55 +0000 (11:25 +0000)
commitba98ef892f61307b5253a87c1003f780e50b5f91
tree25b5de1f30543f88c1add84b3bcecc7a620ae134
parent49d7e23b140b58d55adeaf41ec5955922c285c8c
Add a getAddressSpace method to the GEP instruction to mirror that of
the inttoptr instruction. The conceptual model here is that
'getAddressSpace' refers to the address space of this instruction's
type. It just happens that for GEPs, that is always the same as the
pointer operand's address space. We want both names so that access
patterns can be consistent between different instruction types.

llvm-svn: 167229
llvm/include/llvm/Instructions.h