[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)
commit741c8f81e469930b7c72a59c82adae12c933b1e2
treef6160caeab7ccf4a7b1605e11a7a141d342f8f46
parent082c5c707a1a3a42c1d1b4c1a1dbd9139463cd3e
[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.

llvm-svn: 232240
llvm/include/llvm/IR/Instructions.h
llvm/lib/IR/Constants.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
llvm/lib/Transforms/Utils/CodeExtractor.cpp