This is an archive of the discontinued LLVM Phabricator instance.

Make __builtin_amdgcn_dispatch_ptr dereferenceable and align at 4
ClosedPublic

Authored by yaxunl on Feb 23 2020, 8:21 PM.

Diff Detail

Event Timeline

yaxunl created this revision.Feb 23 2020, 8:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2020, 8:21 PM
arsenm accepted this revision.Feb 24 2020, 1:55 PM

LGTM

This revision is now accepted and ready to land.Feb 24 2020, 1:55 PM
arsenm added inline comments.Feb 24 2020, 1:55 PM
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
144

I don't think you actually need to delete this. It should be fine to leave it

yaxunl marked an inline comment as done.Feb 24 2020, 6:25 PM
yaxunl added inline comments.
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
144

I tried. If I leave this, clang will use the standard handling of target builtin functions for builtin_amdgcn_dispatch_ptr and will not reach EmitAMDGPUBuiltinExpr to handle builtin_amdgcn_dispatch_ptr.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2020, 11:06 AM