summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-05-22 19:38:25 +0000
committerEric Christopher <echristo@gmail.com>2014-05-22 19:38:25 +0000
commitd328db1318f082fae9102df791d41d0231ddbcf4 (patch)
tree6d7ee1bbf21f797eabd3d7b5894014260639262b /llvm/docs
parent847c660ad5aea36a45eec10247116531f539efcb (diff)
downloadbcm5719-llvm-d328db1318f082fae9102df791d41d0231ddbcf4.tar.gz
bcm5719-llvm-d328db1318f082fae9102df791d41d0231ddbcf4.zip
Update some AliasAnalysis pass docs for getAdjustedAnalysisPointer.
Patch by George Burgess. llvm-svn: 209467
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/AliasAnalysis.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/docs/AliasAnalysis.rst b/llvm/docs/AliasAnalysis.rst
index 3bfb0953aff..1cbaee703f3 100644
--- a/llvm/docs/AliasAnalysis.rst
+++ b/llvm/docs/AliasAnalysis.rst
@@ -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
---------------------------------
OpenPOWER on IntegriCloud