This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Use NoopLattice in optional model
ClosedPublic

Authored by samestep on Jun 22 2022, 9:55 AM.

Details

Summary

Followup to D128352. This patch pulls the NoopLattice class out from the NoopAnalysis.h test file into its own NoopLattice.h source file, and uses it to replace usage of SourceLocationsLattice in UncheckedOptionalAccessModel.

Diff Detail

Event Timeline

samestep created this revision.Jun 22 2022, 9:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 9:55 AM
samestep requested review of this revision.Jun 22 2022, 9:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 9:55 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
samestep edited the summary of this revision. (Show Details)Jun 22 2022, 10:00 AM
samestep added reviewers: ymandel, sgatev, gribozavr2.
sgatev accepted this revision.Jun 22 2022, 10:18 AM
This revision is now accepted and ready to land.Jun 22 2022, 10:18 AM
xazax.hun accepted this revision.Jun 22 2022, 2:56 PM

Should this PR delete SourceLocationsLattice? Are there other users left or do we anticipate new users in the future?

@xazax.hun After this patch, SourceLocationsLattice is still used by clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp. I'm currently working on a patch to change the way we write unit tests in that file, after which I'll make a followup patch to delete SourceLocationsLattice.

samestep updated this revision to Diff 439374.Jun 23 2022, 6:27 AM
  • Merge branch 'optional-check-diagnose' into optional-model-noop-lattice
samestep updated this revision to Diff 439414.Jun 23 2022, 8:28 AM
  • Merge branch 'optional-check-diagnose' into optional-model-noop-lattice
gribozavr2 accepted this revision.Jun 23 2022, 9:14 AM
ymandel accepted this revision.Jun 27 2022, 8:54 AM
samestep updated this revision to Diff 441118.Jun 29 2022, 12:16 PM
  • Merge branch 'optional-check-diagnose' into optional-model-noop-lattice
This revision was landed with ongoing or failed builds.Jun 29 2022, 12:21 PM
This revision was automatically updated to reflect the committed changes.
ymandel reopened this revision.Jun 29 2022, 1:07 PM
This revision is now accepted and ready to land.Jun 29 2022, 1:07 PM
samestep updated this revision to Diff 441142.Jun 29 2022, 1:09 PM

Update UncheckedOptionalAccessCheck.cpp

Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 1:09 PM
This revision was landed with ongoing or failed builds.Jun 29 2022, 1:10 PM
This revision was automatically updated to reflect the committed changes.