This is an archive of the discontinued LLVM Phabricator instance.

[dataflow] document flow condition
ClosedPublic

Authored by sammccall on Jul 11 2023, 7:24 AM.

Details

Summary

There's some documentation of this concept at
https://clang.llvm.org/docs/DataFlowAnalysisIntro.html
but it would be nice to have it closer to the code.

I also was laboring under an obvious but wrong mental model that
the flow condition token represented "execution reached this point",
I'd like to explicitly call that out as wrong.

Diff Detail

Event Timeline

sammccall created this revision.Jul 11 2023, 7:24 AM
Herald added a project: Restricted Project. · View Herald Transcript
sammccall requested review of this revision.Jul 11 2023, 7:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2023, 7:24 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xazax.hun accepted this revision.Jul 11 2023, 7:41 AM
xazax.hun added inline comments.
clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h
528–541

The FC abbreviation is used later, so we should define it.

This revision is now accepted and ready to land.Jul 11 2023, 7:41 AM

Nice! Definitely should have been defined earlier...

ymandel accepted this revision.Jul 11 2023, 8:00 AM
sammccall marked an inline comment as done.Jul 11 2023, 10:20 PM
This revision was landed with ongoing or failed builds.Jul 11 2023, 10:21 PM
This revision was automatically updated to reflect the committed changes.