This is an archive of the discontinued LLVM Phabricator instance.

[ptr-traits] Add a LowPointerIntPair alias
Needs ReviewPublic

Authored by njames93 on Oct 22 2020, 4:56 AM.

Details

Reviewers
chandlerc
Summary

This adds an LowPointerIntPair alias that makes a PointerIntPair store the int in the lowest bit positions.
This partially limits chaining, but simplifies accessing the int by removing the need for shifts.

Diff Detail

Event Timeline

njames93 created this revision.Oct 22 2020, 4:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2020, 4:56 AM
njames93 requested review of this revision.Oct 22 2020, 4:56 AM
njames93 updated this revision to Diff 299962.Oct 22 2020, 7:08 AM

Fix compilation error in assert enabled build