This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Stop using .NAME in .td files
ClosedPublic

Authored by nhaehnle on Feb 21 2018, 2:39 AM.

Details

Summary

.NAME is a bit of an odd duck, in that we should really treat it like
a template argument, but we currently don't, and so when and where
NAME is initialized and how is pretty inconsistent. Best to just avoid
using it as a field of already instantiated records, and use cast to
string instead.

Change-Id: I5a0c202401cede3d5c3827ab9c7858ea48b29108

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Feb 21 2018, 2:39 AM
tra accepted this revision.Feb 21 2018, 10:40 AM
tra added a subscriber: tra.
tra added inline comments.
lib/Target/AMDGPU/DSInstructions.td
733 ↗(On Diff #135212)

Please reformat to avoid long lines.

750 ↗(On Diff #135212)

Same here.

This revision is now accepted and ready to land.Feb 21 2018, 10:40 AM
This revision was automatically updated to reflect the committed changes.