This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] [TableGen] Use new features of TableGen to simplify and clarify
ClosedPublic

Authored by Paul-C-Anagnostopoulos on Nov 5 2020, 9:52 AM.

Details

Summary

This patch updates one of the NVPTX TableGen files to use the new features of TableGen.

Diff Detail

Event Timeline

Paul-C-Anagnostopoulos requested review of this revision.Nov 5 2020, 9:52 AM

Oh, let me get rid of the old //// lines and update this patch.

Cleaned out the spurious lines with ////.

tra added a comment.Nov 5 2020, 10:11 AM

LGTM.
I'd add NFC to the subject of this patch.

llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
60

I'd probably keep this as 0/1. IMO it's more suitable for a bitmask of threads.

tra accepted this revision.Nov 5 2020, 10:11 AM
This revision is now accepted and ready to land.Nov 5 2020, 10:11 AM
llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
60

Yes, I'm trying to make that distinction carefully.

I see you accepted this revision. Shall I clean up the other .td files as part of this revision, or do them separately?

tra added a comment.Nov 5 2020, 10:32 AM

You can add more cleanup changes here and ping me when they are ready for review.

Cleaned up the other TableGen files.

Not much to do: very clean files already.

Paul-C-Anagnostopoulos requested review of this revision.Nov 5 2020, 12:30 PM
tra accepted this revision.Nov 5 2020, 1:45 PM

LGTM.

This revision is now accepted and ready to land.Nov 5 2020, 1:45 PM