Skip to content

Commit

Permalink
Update some AliasAnalysis pass docs for getAdjustedAnalysisPointer.
Browse files Browse the repository at this point in the history
Patch by George Burgess.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209467 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
echristo committed May 22, 2014
1 parent fed4bab commit ff93350
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/AliasAnalysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,20 @@ analysis run method (``run`` for a ``Pass``, ``runOnFunction`` for a
return false;
}

Required methods to override
----------------------------

You must override the ``getAdjustedAnalysisPointer`` method on all subclasses
of ``AliasAnalysis``. An example implementation of this method would look like:

.. code-block:: c++

void *getAdjustedAnalysisPointer(const void* ID) override {
if (ID == &AliasAnalysis::ID)
return (AliasAnalysis*)this;
return this;
}

Interfaces which may be specified
---------------------------------

Expand Down

0 comments on commit ff93350

Please sign in to comment.