This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Partially fix default device for HSA
ClosedPublic

Authored by arsenm on Mar 15 2019, 2:55 PM.

Details

Summary

There are a few different issues, mostly stemming from using
generation based checks for anything instead of subtarget
features. Stop adding flat-address-space as a feature for HSA, as it
should only be a device property. This was incorrectly allowing flat
instructions to select for SI.

Increase the default generation for HSA to avoid the encoding error
when emitting objects. This has some other side effects from various
checks which probably should be separate subtarget features (in the
cost model and for dealing with the DS offset folding issue).

Partial fix for bug 41070. It should probably be an error to try using
amdhsa without flat support.

Diff Detail

Event Timeline

arsenm created this revision.Mar 15 2019, 2:55 PM
This revision is now accepted and ready to land.Mar 15 2019, 3:13 PM
arsenm closed this revision.Mar 17 2019, 2:32 PM

r356347