[opaque pointer type] More GEP API migrations in IRBuilder uses
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 3 Apr 2015 19:41:44 +0000 (19:41 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 3 Apr 2015 19:41:44 +0000 (19:41 +0000)
commitcf57d81b6ef8623e9503f3c5b2477a92b5e2a552
tree9c184f3d18ff61814ea7136ad16f9756629b41f8
parent675e22e7ade4baf28e0aa76ead64077e78e6063d
[opaque pointer type] More GEP API migrations in IRBuilder uses

The plan here is to push the API changes out from the common components
(like Constant::getGetElementPtr and IRBuilder::CreateGEP related
functions) and just update callers to either pass the type if it's
obvious, or pass null.

Do this with LoadInst as well and anything else that comes up, then to
start porting specific uses to not pass null anymore - this may require
some refactoring in each case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234042 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
lib/Analysis/ScalarEvolutionExpander.cpp
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
lib/Transforms/IPO/LowerBitSets.cpp
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
lib/Transforms/Scalar/IndVarSimplify.cpp
lib/Transforms/Scalar/ScalarReplAggregates.cpp
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp