This is an archive of the discontinued LLVM Phabricator instance.

Add opaque Handle infrastructure
Needs ReviewPublic

Authored by nhaehnle on Dec 9 2020, 2:44 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This infrastructure is a foundation for writing some algorithms
generically without resorting to templates, by treating "references"
(usually pointers) to objects such as basic blocks as opaque handles.

Subsequent changes will add more mechanisms to facilitate working with
such handles, and introduce type-erased base classes in some places
(e.g. dominator trees) in terms of handles.

Change-Id: I79e69589e972e97335189f9558ebe44c7b00771b

Diff Detail

Event Timeline

nhaehnle created this revision.Dec 9 2020, 2:44 AM
nhaehnle requested review of this revision.Dec 9 2020, 2:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2020, 2:44 AM
nhaehnle updated this revision to Diff 310530.Dec 9 2020, 7:24 AM

Remove HandleWrapperFor which got de facto superseded by SsaContext
(subsequent patch). Update comment slightly to match.