This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] do not generate .AMDGPU.config for amdpal os type
ClosedPublic

Authored by tpr on Sep 12 2017, 1:08 PM.

Details

Summary

Now we generate PAL metadata for the amdpal os type, there is no need to
generate the .AMDGPU.config section.

This requires the frontend change to set up and use the PAL metadata.

Diff Detail

Repository
rL LLVM

Event Timeline

tpr created this revision.Sep 12 2017, 1:08 PM
arsenm added inline comments.Sep 18 2017, 4:12 PM
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
254 ↗(On Diff #114888)

Probably should make this a positive check on is mesa (although that might be broken because I'm not sure mesa graphics ever fully switched to explicitly setting the triple)

tpr added inline comments.Sep 20 2017, 2:22 AM
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
254 ↗(On Diff #114888)

Yeah, I don't think that happens anywhere else for mesa, so I assume mesa doesn't set the os type in the triple. So can I leave this as it is?

arsenm accepted this revision.Sep 20 2017, 2:03 PM

LGTM

lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
254 ↗(On Diff #114888)

Sure. Add a FIXME to make this an explicit mesa check

This revision is now accepted and ready to land.Sep 20 2017, 2:03 PM
tpr marked 3 inline comments as done.Oct 3 2017, 1:11 PM

FIXME added in my local commit that I will push (once I've got a frontend change in that it depends on).

This revision was automatically updated to reflect the committed changes.