[PM/AA] Simplify the AliasAnalysis interface by removing a wrapper
authorChandler Carruth <chandlerc@gmail.com>
Thu, 6 Aug 2015 02:05:46 +0000 (02:05 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 6 Aug 2015 02:05:46 +0000 (02:05 +0000)
commitda5300489f0dc6f6b37a219682a316c834d01a0c
treeebaa6c276c4de2f1cc799804e3b06e9960cd2b5f
parent596885b016d9e6f8c39a4d45fc9b35f8b854f2f4
[PM/AA] Simplify the AliasAnalysis interface by removing a wrapper
around a DataLayout interface in favor of directly querying DataLayout.

This wrapper specifically helped handle the case where this no
DataLayout, but LLVM now requires it simplifynig all of this. I've
updated callers to directly query DataLayout. This in turn exposed
a bunch of places where we should have DataLayout readily available but
don't which I've fixed. This then in turn exposed that we were passing
DataLayout around in a bunch of arguments rather than making it readily
available so I've also fixed that.

No functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244189 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/AliasAnalysis.h
lib/Analysis/AliasAnalysis.cpp
lib/Analysis/AliasAnalysisEvaluator.cpp
lib/Analysis/AliasSetTracker.cpp
lib/Analysis/DependenceAnalysis.cpp
lib/Analysis/Lint.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/Transforms/Scalar/LICM.cpp