[LAA-memchecks 3/3] Introduce pointer partitions for memchecks
authorAdam Nemet <anemet@apple.com>
Tue, 10 Mar 2015 18:54:26 +0000 (18:54 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 10 Mar 2015 18:54:26 +0000 (18:54 +0000)
commit86dbc2b6d32269712b3c777c7f4bacd6c776d6b6
treee429f7b5b2c4a557783676abfcdb84b27275c36f
parentc320ed14d22f300f001662cd8c3d1538524f0e25
[LAA-memchecks 3/3] Introduce pointer partitions for memchecks

This is the final patch that actually introduces the new parameter of
partition mapping to RuntimePointerCheck::needsChecking.

Another API (LAI::getInstructionsForAccess) is also exposed that helps
to map pointers to instructions because ultimately we partition
instructions.

The WIP version of the Loop Distribution pass in D6930 has been adapted
to use all this.  See for example, how
InstrPartitionContainer::computePartitionSetForPointers sets up the
partitions using the above API and then calls to LAI::addRuntimeCheck
with the pointer partitions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231818 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
lib/Analysis/LoopAccessAnalysis.cpp