This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Add scalarSameSizeAs LegalizeRule
AbandonedPublic

Authored by rniczh on Jul 23 2020, 7:12 PM.

Details

Reviewers
None
Summary

Widen or narrow a type to a type with the same scalar size as
another. This can be used to force G_PTR_ADD/G_PTRMASK's scalar
operand to match the bitwidth of the pointer type. Use this to
disallow narrower types for G_PTRMASK.

Diff Detail

Event Timeline

rniczh created this revision.Jul 23 2020, 7:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2020, 7:12 PM
rniczh abandoned this revision.Jul 23 2020, 7:18 PM