This is an archive of the discontinued LLVM Phabricator instance.

InferAddressSpaces: Handle ptrmask intrinsic
ClosedPublic

Authored by arsenm on May 15 2020, 2:45 PM.

Details

Summary

This one is slightly odd since it counts as an address expression,
which previously could never fail. Allow the existing TTI hook to
return the value to use, and re-use it for handling how to handle
ptrmask.

Handles the no-op addrspacecasts for AMDGPU. We could probably do
something better based on analysis of the mask value based on the
address space, but leave that for now.

Diff Detail