Safe Haskell | None |
---|
- data UseSummary
- computeUsesOf :: Module -> UseSummary
- usedBy :: UseSummary -> Value -> [Instruction]
Documentation
data UseSummary Source
computeUsesOf :: Module -> UseSummarySource
Compute the uses of every value in the Module
This information can be used to answer the query:
usedBy useSummary foo
which will return all of the Instructions that reference
the provided value foo
.
Note that this is a simple index. It does not look through bitcasts at all.
usedBy :: UseSummary -> Value -> [Instruction]Source
usedBy summ val
Find the instructions using val
in the function that summ
was
computed for.