aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenTypes.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-09-12 19:09:12 +0000
committerTed Kremenek <kremenek@apple.com>2007-09-12 19:09:12 +0000
commit73c80c2b8adec0b86de16f3a0c2c5c7861a3e6c2 (patch)
tree620c2042a223500c56ed4730da8de1dbb8a0e325 /CodeGen/CodeGenTypes.cpp
parente55cd00d23f0951c29b3b93e6034b2c4b3933a23 (diff)
Added extensions (subclasses) to the StmtVisitor class that
are useful for dataflow analysis: CFGStmtVisitor and DataflowStmtVisitor. CFGStmtVisitor is the same as StmtVisitor is that it has separate visitors for "root" statements in a CFGBlock (statements that have a designated slot int the list of statements in a CFGBlock). It also recognizes statements that have implicit control-flow, and calls special visitor methods for those. DataflowStmtVisitor extends CFGStmtVisitor to serve as a template for implementing transfer functions. It does a pre-/post-order traversal of substatements depending on whether we are doing a forward/backward analysis. It also has special handling for implicit-control-flow statements so that they are visited only once. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenTypes.cpp')
0 files changed, 0 insertions, 0 deletions