This is an archive of the discontinued LLVM Phabricator instance.

Intrinsics: Allow tablegen to mark parameters with dereferenceable
ClosedPublic

Authored by arsenm on Jan 28 2023, 5:44 PM.

Details

Reviewers
sstefan1
jdoerfert
yaxunl
nikic
alexander-shaposhnikov
Group Reviewers
Restricted Project
Summary

Also increases the alignment of llvm.amdgcn.implicitarg.ptr to 8 to
match clang.

Diff Detail

Event Timeline

arsenm created this revision.Jan 28 2023, 5:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 28 2023, 5:44 PM
arsenm requested review of this revision.Jan 28 2023, 5:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 28 2023, 5:44 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 493566.Jan 31 2023, 4:37 AM

Revert implicitarg.ptr changes since not-HSA has different alignment for no reason. Also with the size differences between amdhsa and different CO versions we're already wrong for emitting 256 unconditionally

foad added a subscriber: foad.Jan 31 2023, 4:52 AM

I think the tablegen functionality should be a separate patch from the amdgpu changes.

I think the tablegen functionality should be a separate patch from the amdgpu changes.

Maybe, but then it’s untested in the patch which adds it

foad added a comment.Jan 31 2023, 5:05 AM

I think the tablegen functionality should be a separate patch from the amdgpu changes.

Maybe, but then it’s untested in the patch which adds it

Not if you add a test. There are some already like test/TableGen/immarg.td and test/TableGen/intrin-side-effects.td.

arsenm updated this revision to Diff 529074.Jun 6 2023, 4:06 PM

Split out amdgpu parts

nikic accepted this revision.Jun 13 2023, 6:10 AM

LGTM

This revision is now accepted and ready to land.Jun 13 2023, 6:10 AM