-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.. _`sec:InstructionCache.h`: | ||
|
||
InstructionCache.h | ||
################## | ||
|
||
.. cpp:struct:: ReadWriteInfo | ||
|
||
.. cpp:member:: bitArray read | ||
.. cpp:member:: bitArray written | ||
.. cpp:member:: int insnSize | ||
|
||
.. cpp:class:: InstructionCache | ||
|
||
.. cpp:function:; InstructionCache() | ||
Creates an empty cache. | ||
|
||
.. cpp:function:: bool getLivenessInfo(Address addr, ParseAPI::Function* func, ReadWriteInfo& rw) | ||
Returns the liveness information. | ||
|
||
.. danger:: ``rw`` is invalidated after calling :cpp:func:`clean`. | ||
|
||
.. cpp:function:: void insertInstructionInfo(Address addr, ReadWriteInfo rw, ParseAPI::Function* func) | ||
Store the liveness information in ``rw`` in the cache for the instruction in function ``func`` at address ``addr``. | ||
|
||
.. Warning:: Implicitly calls :cpp:func:`clean`. | ||
|
||
.. cpp:function:: void clean() | ||
Clears the cache. | ||
|
||
.. cpp:function:: ParseAPI::Function* getCurFunc() | ||
|
||
Returns the current function. |