[opaque pointer type] Start migrating GEP creation to explicitly specify the pointee...
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 14 Mar 2015 01:53:18 +0000 (01:53 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 14 Mar 2015 01:53:18 +0000 (01:53 +0000)
commitfb5115d02abcc310804d9bfb4657f9f76c42f7a8
treedad6154603578e6f00135af0bbf9f8a0dddc020c
parent4a2d95826e68af05bcd629252f2b6b61ecb8cc02
[opaque pointer type] Start migrating GEP creation to explicitly specify the pointee type

I'm just going to migrate these in a pretty ad-hoc & incremental way -
providing the backwards compatible API for now, then locally removing
it, fixing a few callers, adding it back in and commiting those callers.
Rinse, repeat.

The assertions should ensure that if I get this wrong we'll find out
about it and not just have one giant patch to revert, recommit, revert,
recommit, etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232240 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/IR/Constants.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/InstCombine/InstCombinePHI.cpp
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
lib/Transforms/Utils/CodeExtractor.cpp