This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer][NFC] Add RangedConstraintManager to ConstraintAssignor
ClosedPublic

Authored by martong on Oct 12 2021, 6:27 AM.

Details

Summary

In this patch we store a reference to RangedConstraintManager in the
ConstraintAssignor. This way it is possible to call back and reuse some
functions of it. This patch is exclusively needed for its child patches,
it is not intended to be a standalone patch.

Diff Detail

Event Timeline

martong created this revision.Oct 12 2021, 6:27 AM
martong requested review of this revision.Oct 12 2021, 6:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2021, 6:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
steakhal accepted this revision.Oct 12 2021, 6:41 AM

It looks good.
Do you think we could remove the RangedConstraintManager abstraction?
It shouldn't be hard to get rid of it.

Regardless, it's good to go, but let's wait for the child revision.

This revision is now accepted and ready to land.Oct 12 2021, 6:41 AM

It looks good.
Do you think we could remove the RangedConstraintManager abstraction?

Definitely. What's more, we could split out cohesive implementation details like RangeSet, EquivalenceClass from RangeConstraintManager.cpp into their own implementation files.

It looks good.
Do you think we could remove the RangedConstraintManager abstraction?

Definitely. What's more, we could split out cohesive implementation details like RangeSet, EquivalenceClass from RangeConstraintManager.cpp into their own implementation files.

Sound thought! +1

This revision was landed with ongoing or failed builds.Oct 22 2021, 1:46 AM
This revision was automatically updated to reflect the committed changes.