This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Restructure shfl instrinsics and add variants that return a predicate.
ClosedPublic

Authored by tra on Oct 11 2019, 2:34 PM.

Details

Summary

Restructure shfl instrinsics and add variants that return a predicate.
Amend constraints for non-sync variants that are no longer available on sm_70+ with PTX6.4+.

Diff Detail

Event Timeline

tra created this revision.Oct 11 2019, 2:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2019, 2:34 PM
timshen accepted this revision.Oct 11 2019, 4:46 PM
timshen added inline comments.
llvm/include/llvm/IR/IntrinsicsNVVM.td
280

nit: format if(sync, "sync_","") to if(sync, "sync_", "")

293

Seems cleaner to just have = !if(return_pred, [OpType, llvm_i1_ty], [OpType]).

295

ditto.

This revision is now accepted and ready to land.Oct 11 2019, 4:46 PM
tra updated this revision to Diff 224868.Oct 14 2019, 9:12 AM
tra marked 3 inline comments as done.
tra edited the summary of this revision. (Show Details)

Addressed Tim's comments.

This revision was automatically updated to reflect the committed changes.