llvm-analysis-0.3.0: A Haskell library for analyzing LLVM bitcode

Safe HaskellNone

LLVM.Analysis.UsesOf

Synopsis

Documentation

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.