[opaque pointer type] API migration for GEP constant factories
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 2 Apr 2015 18:55:32 +0000 (18:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 2 Apr 2015 18:55:32 +0000 (18:55 +0000)
commit4a2e73b06677a199591f004f8812811ec01e2e1f
treef6f2245fabc75040cc51b867a134d553cd36919a
parente3b172afc33004cb11299e21dbea1dbb4cc4dc27
[opaque pointer type] API migration for GEP constant factories

Require the pointee type to be passed explicitly and assert that it is
correct. For now it's possible to pass nullptr here (and I've done so in
a few places in this patch) but eventually that will be disallowed once
all clients have been updated or removed. It'll be a long road to get
all the way there... but if you have the cahnce to update your callers
to pass the type explicitly without depending on a pointer's element
type, that would be a good thing to do soon and a necessary thing to do
eventually.

llvm-svn: 233938
25 files changed:
llvm/include/llvm/Analysis/TargetFolder.h
llvm/include/llvm/IR/ConstantFolder.h
llvm/include/llvm/IR/Constants.h
llvm/include/llvm/IR/GlobalValue.h
llvm/include/llvm/IR/NoFolder.h
llvm/lib/Analysis/ConstantFolding.cpp
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/CodeGen/GlobalMerge.cpp
llvm/lib/CodeGen/ShadowStackGCLowering.cpp
llvm/lib/IR/ConstantFold.cpp
llvm/lib/IR/Constants.cpp
llvm/lib/IR/Core.cpp
llvm/lib/Target/NVPTX/NVPTXFavorNonGenericAddrSpaces.cpp
llvm/lib/Target/XCore/XCoreISelLowering.cpp
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/lib/Transforms/IPO/LowerBitSets.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/tools/bugpoint/Miscompilation.cpp
llvm/unittests/IR/ConstantsTest.cpp