This is an archive of the discontinued LLVM Phabricator instance.

[SCCPSolver] Move helper functions inside SCCPSolver (NFC).
ClosedPublic

Authored by fhahn on Jan 23 2023, 7:57 AM.

Details

Summary

This patch moves a couple of helper functions from the global llvm::
namespace into the SCCPSolver class. This reduces the need for separate
SCCPSolver arguments and also limits the scope of those functions that
have quite generic names.

(The remaining isConstant and isOverdefined should ideally be removed)

Diff Detail

Event Timeline

fhahn created this revision.Jan 23 2023, 7:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 7:57 AM
fhahn requested review of this revision.Jan 23 2023, 7:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 7:57 AM
nikic accepted this revision.Jan 23 2023, 8:17 AM

LGTM

This revision is now accepted and ready to land.Jan 23 2023, 8:17 AM
This revision was landed with ongoing or failed builds.Jan 23 2023, 9:42 AM
This revision was automatically updated to reflect the committed changes.