[clang] [clang][dataflow] Add support for serialization and deserialization. (PR #152487)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 05:48:09 PDT 2025


================
@@ -140,6 +140,15 @@ class DataflowAnalysisContext {
   /// Adds `Constraint` to the flow condition identified by `Token`.
   void addFlowConditionConstraint(Atom Token, const Formula &Constraint);
 
+  /// Adds `Deps` to the dependencies of the flow condition identified by
+  /// `Token`. Intended for use in deserializing contexts. The formula alone
+  /// doesn't have enough information to indicate its deps.
+  void addFlowConditionDeps(Atom Token, const llvm::DenseSet<Atom> &Deps) {
----------------
ymand wrote:

Fair enough. FWIW, the client will be available in crubit, so OSS. Just, not in llvm repo itself. We hope to eventually get there though.

https://github.com/llvm/llvm-project/pull/152487


More information about the cfe-commits mailing list