This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add builtin s_sendmsg_rtn
ClosedPublic

Authored by yaxunl on Aug 18 2022, 8:30 AM.

Diff Detail

Event Timeline

yaxunl created this revision.Aug 18 2022, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 8:30 AM
yaxunl requested review of this revision.Aug 18 2022, 8:30 AM

Following existing naming, it might make sense to rename "rtn_b32" --> "rtn" and "rtn_b64" --> "rtnl".

Following existing naming, it might make sense to rename "rtn_b32" --> "rtn" and "rtn_b64" --> "rtnl".

will modify. thanks.

yaxunl updated this revision to Diff 453681.Aug 18 2022, 9:12 AM

revised by Brian's comments

yaxunl retitled this revision from [AMDGPU] Add builtin s_sendmsg_rtn_b{32|64} to [AMDGPU] Add builtin s_sendmsg_rtn.Aug 18 2022, 9:13 AM

revised by Brian's comments

Thank you. Looks good to me.

yaxunl added a reviewer: tra.Aug 22 2022, 6:23 AM
tra added inline comments.Aug 22 2022, 11:41 AM
clang/test/CodeGenOpenCL/builtins-amdgcn-gfx11.cl
24

Is there a particular reason for this test?

Argument and return value type checks should've been handled by Sema based on builtin definition.

Integer and float conversions should've been done automatically, too.

We already have tests for all of that.

yaxunl added inline comments.Aug 22 2022, 12:08 PM
clang/test/CodeGenOpenCL/builtins-amdgcn-gfx11.cl
24

Will remove.

yaxunl updated this revision to Diff 454607.Aug 22 2022, 2:14 PM

remove unnecessary tests

tra accepted this revision.Aug 22 2022, 2:46 PM
This revision is now accepted and ready to land.Aug 22 2022, 2:46 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2022, 3:29 PM