This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Assembler: rename amd_kernel_code_t asm names according to spec
ClosedPublic

Authored by SamWot on Sep 7 2016, 7:29 AM.

Details

Summary

Also removed duplicate code from AMDGPUTargetAsmStreamer.
This change only change how amd_kernel_code_t is parsed and printed. No variable names are changed.

Diff Detail

Repository
rL LLVM

Event Timeline

SamWot updated this revision to Diff 70535.Sep 7 2016, 7:29 AM
SamWot retitled this revision from to [AMDGPU] Assembler: rename amd_kernel_code_t asm names according to spec.
SamWot updated this object.
SamWot added reviewers: vpykhtin, tstellarAMD.
SamWot added a subscriber: Restricted Project.Sep 7 2016, 7:30 AM

Will this break compatibility with older asm files?

SamWot added a comment.Sep 7 2016, 7:34 AM

Yes, old names should be changed.

Yes, old names should be changed.

How much work would it be to support parsing the old names in addition to the new ones?

SamWot added a comment.Sep 7 2016, 8:08 AM

Yes, old names should be changed.

How much work would it be to support parsing the old names in addition to the new ones?

It requires moderate work. Some changes would be required in how we parse amd_kernel_code_t but I belive basic principle can stay unchanged.

vpykhtin edited edge metadata.Sep 7 2016, 9:24 AM

Yes, old names should be changed.

How much work would it be to support parsing the old names in addition to the new ones?

Can we just make a perl renaming script and drop old name support?

SamWot updated this revision to Diff 70685.Sep 8 2016, 5:55 AM
SamWot edited edge metadata.

Added support for old amd_kernel_code_t names

tstellarAMD accepted this revision.Sep 8 2016, 6:00 AM
tstellarAMD edited edge metadata.

I think it might be good to keep one test using the old names. Also, if it's possible, in the future it would be nice to add warnings when people use the old names, so that we can start to deprecate them.

This revision is now accepted and ready to land.Sep 8 2016, 6:00 AM
vpykhtin accepted this revision.Sep 8 2016, 6:42 AM
vpykhtin edited edge metadata.
This revision was automatically updated to reflect the committed changes.