This is an archive of the discontinued LLVM Phabricator instance.

[APInt] Support zero-width extract in extractBitsAsZExtValue()
ClosedPublic

Authored by nikic on May 31 2023, 1:17 AM.

Details

Summary

D111241 added support for extractBits() with zero width. Extend this to extractBitsAsZExtValue() as well for consistency (in which case it will always return zero).

Diff Detail

Event Timeline

nikic created this revision.May 31 2023, 1:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2023, 1:17 AM
nikic requested review of this revision.May 31 2023, 1:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2023, 1:17 AM
lattner accepted this revision.May 31 2023, 8:04 AM

cool

This revision is now accepted and ready to land.May 31 2023, 8:04 AM