This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Move logic for creating implication and iff expressions into `DataflowAnalysisContext` from `DataflowEnvironment`.
ClosedPublic

Authored by wyt on Jun 24 2022, 5:50 AM.

Details

Summary

To keep functionality of creating boolean expressions in a consistent location.

Depends On D128357

Diff Detail

Event Timeline

wyt created this revision.Jun 24 2022, 5:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 5:50 AM
wyt requested review of this revision.Jun 24 2022, 5:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 5:50 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sgatev added inline comments.Jun 24 2022, 6:37 AM
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h
170

Let's call it getOrCreateImplication similar to the members above. Same for iff below.

170

Let's add tests for the new members, possibly moving existing tests from DataflowEnvironmentTest.cpp to DataflowAnalysisContextTest.cpp.

wyt updated this revision to Diff 439761.Jun 24 2022, 7:56 AM
wyt marked 2 inline comments as done.

Address comments - rename createIff/Implication to getOrCreateIff/Implication and add tests for these functions

sgatev accepted this revision.Jun 24 2022, 8:21 AM
This revision is now accepted and ready to land.Jun 24 2022, 8:21 AM
xazax.hun accepted this revision.Jun 24 2022, 9:10 AM
gribozavr2 accepted this revision.Jun 24 2022, 1:02 PM