mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-13 21:40:26 +00:00
Update some AliasAnalysis pass docs for getAdjustedAnalysisPointer.
Patch by George Burgess. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fed4bab148
commit
ff93350aa6
@ -246,6 +246,20 @@ analysis run method (``run`` for a ``Pass``, ``runOnFunction`` for a
|
|||||||
return false;
|
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
|
Interfaces which may be specified
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user