HomePhabricator

[ARM GlobalISel] Support pointer constants

Description

[ARM GlobalISel] Support pointer constants

Pointer constants are pretty rare, since we usually represent them as
integer constants and then cast to pointer. One notable exception is the
null pointer constant, which is represented directly as a G_CONSTANT 0
with pointer type. Mark it as legal and make sure it is selected like
any other integer constant.

Details

Committed
rovkaDec 22 2017, 3:09 AM
Parents
rL321353: Enable TestReadMemCString on non-darwin targets
Branches
Unknown
Tags
Unknown