[PATCH] D121796: [clang][dataflow] Add an API for dataflow "models" -- reusable analysis components.
Stanislav Gatev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 16 06:43:49 PDT 2022
sgatev accepted this revision.
sgatev added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h:148-149
+/// b) Models should focus on _modeling_ a particular aspect of program
+/// semantics -- for example, a type and its related functions, and should be
+/// composable with other models over the same lattice.
+///
----------------
Do we want to compose models that have different lattice types? Do we want to have models with no lattices that only use `Environment`? If we don't know this yet, I suggest replacing this with a FIXME to explore model composability at a later point when we have answers to these questions.
================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h:153
+/// the analysis.
+template <typename Lattice>
+class DataflowModel : public Environment::ValueModel {
----------------
`LatticeT` for consistency with the code above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121796/new/
https://reviews.llvm.org/D121796
More information about the cfe-commits
mailing list