Opaque Pointer Types: GEP API migrations to specify the gep type explicitly
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 24 Mar 2015 22:38:16 +0000 (22:38 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 24 Mar 2015 22:38:16 +0000 (22:38 +0000)
commitdad4e9cde6e93fa76a39081b747f7b2f9f4984ea
tree082356b7c53fe1d1c122f9350db1f6ee05c45231
parent6bde9f699422c041cfa613dd9034e8ea5d827414
Opaque Pointer Types: GEP API migrations to specify the gep type explicitly

The changes to InstCombine do seem a bit silly - it doesn't make
anything obviously better to have the caller access the pointers element
type (the thing I'm trying to remove) than the GEP itself, but it's a
helpful migration step. This will allow me to more obviously lock down
GEP (& Load, etc) API usage, then fix all the code that accesses pointer
element types except the places that need to be removed (most of the
InstCombines) anyway - at which point I'll need to just remove all that
code because it won't be meaningful anymore (there will be no pointer
types, so no bitcasts to combine)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233126 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
lib/CodeGen/SjLjEHPrepare.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Scalar/Scalarizer.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp