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)
commit174fbec3dfdf5e20ad5b75dcfcc709011ddb1a12
treea5d6963c6ba6acf83c92d01b3b4332efa5f24c83
parentd988b75c4424ed14521b59f0ffb09527be00958b
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167229 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h