This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add builtin functions readlane ds_permute mov_dpp
ClosedPublic

Authored by yaxunl on Mar 2 2017, 2:09 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Mar 2 2017, 2:09 PM
yaxunl updated this revision to Diff 90399.Mar 2 2017, 2:35 PM

Make some arguments constant.

arsenm added inline comments.Mar 2 2017, 2:54 PM
lib/CodeGen/CGBuiltin.cpp
8391–8398 ↗(On Diff #90399)

Since these don't have mangling, you could add GCCBuiltin to the intrinsic definition and then you wouldn't need these to be handled here

yaxunl added inline comments.Mar 2 2017, 3:01 PM
lib/CodeGen/CGBuiltin.cpp
8391–8398 ↗(On Diff #90399)

If I remove these, there will be error:

cannot compile this builtin function yet

b-sumner edited edge metadata.Mar 2 2017, 3:10 PM

mov_dpp should be under the VI+ comment

arsenm added inline comments.Mar 2 2017, 3:24 PM
lib/CodeGen/CGBuiltin.cpp
8391–8398 ↗(On Diff #90399)

Yes, the GCCBuiltin isn't on the intrinsic declaration in llvm. If you fix that you shouldn't see that

arsenm edited edge metadata.Mar 2 2017, 3:34 PM

mov_dpp should be under the VI+ comment

Also should be made to use TARGET_BUILTIN and dependent on dpp feature

yaxunl updated this revision to Diff 90520.Mar 3 2017, 12:23 PM
yaxunl marked 3 inline comments as done.

remove redundant code.
make mov_dpp target builtin.

arsenm accepted this revision.Mar 8 2017, 11:59 AM

LGTM

This revision is now accepted and ready to land.Mar 8 2017, 11:59 AM
This revision was automatically updated to reflect the committed changes.