This is an archive of the discontinued LLVM Phabricator instance.

[ADT] Allow zero-width zext
AbandonedPublic

Authored by seldridge on Nov 30 2021, 11:35 AM.

Details

Reviewers
None
Summary

Remove assertion that disallows zero-extending a zero-width APInt. This
check is too restrictive and makes it difficult to use APInt to model
zero-width things, e.g., zero-width wires in the CIRCT project.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>

Diff Detail

Event Timeline

seldridge created this revision.Nov 30 2021, 11:35 AM
seldridge requested review of this revision.Nov 30 2021, 11:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2021, 11:35 AM
seldridge abandoned this revision.Nov 30 2021, 11:42 AM

Opened a second revision when I meant to drop a commit from https://reviews.llvm.org/D114768. Whoops. 🤦