Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Futhark.Analysis.CallGraph
Description
This module exports functionality for generating a call graph of an Futhark program.
Documentation
The call graph is a mapping from a function name, i.e., the caller, to a record of the names of functions called *directly* (not transitively!) by the function.
We keep track separately of the functions called by constants.
Instances
Show CallGraph Source # | |
Eq CallGraph Source # | |
Ord CallGraph Source # | |
Pretty CallGraph Source # | |
Defined in Futhark.Analysis.CallGraph |
buildCallGraph :: Prog SOACS -> CallGraph Source #
buildCallGraph prog
build the program's call graph.