This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Move isa version and EF_AMDGPU_MACH_* determination into TargetParser.
ClosedPublic

Authored by kzhuravl on Sep 10 2018, 3:01 PM.

Details

Summary

Also switch away from target features to CPU string when
determining isa version. This fixes an issue when we
output wrong isa version in the object code when features
of a particular CPU are altered (i.e. gfx902 w/o xnack
used to result in gfx900).

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Sep 10 2018, 3:01 PM
rampitec added inline comments.Sep 10 2018, 3:20 PM
lib/Support/TargetParser.cpp
995 ↗(On Diff #164754)

Indent of "Features" is off.

rampitec accepted this revision.Sep 10 2018, 3:20 PM

LGTM except for small formatting issue.

This revision is now accepted and ready to land.Sep 10 2018, 3:20 PM
This revision was automatically updated to reflect the committed changes.
kzhuravl marked an inline comment as done.