This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Add llvm.amdgcn.mbcnt.* intrinsics
ClosedPublic

Authored by tstellarAMD on Dec 11 2015, 7:39 PM.

Details

Summary

These are meant to be used instead of the llvm.SI.tid intrinsic which will
be deprecated at some point.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Add llvm.amdgcn.mbcnt.* intrinsics.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Dec 14 2015, 9:38 AM
include/llvm/IR/IntrinsicsAMDGPU.td
150–151 ↗(On Diff #42623)

I don't think the type should be included in the name. For instructions that have multiple types, it is redundant with the llvm name mangling. For ones that don't work on multiple types, it isn't necessary information. I would have this be int_amdgcn_mbcnt_lo/int_amdgcn_mbcnt_hi

test/CodeGen/AMDGPU/llvm.SI.tid.ll
16–33 ↗(On Diff #42623)

The test should be in its own mbcnt file

Keep old intrinsics.

arsenm accepted this revision.Dec 14 2015, 8:29 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 14 2015, 8:29 PM
This revision was automatically updated to reflect the committed changes.