ddc-core-llvm-0.4.1.3: Disciplined Disciple Compiler LLVM code generator.

Safe HaskellSafe-Inferred

DDC.Llvm.Analysis.Parents

Synopsis

Documentation

data Parents Source

The parents of a node are the other nodes that might branch to this one.

Constructors

Parents (Set Label) 

annotParentsOfGraph :: Graph a -> Graph (a, Parents)Source

Annotate a graph with the parents of each node.

lineageOfVar :: Graph Parents -> Var -> Label -> Maybe [Label]Source

Get a list of parents tracing back to the node that defines the given variable, or Nothing if the definition site can not be found.