This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add wave barrier builtin
ClosedPublic

Authored by rampitec on Nov 13 2016, 1:33 AM.

Details

Summary

The wave barrier represents the discardable barrier. Its main purpose is to carry convergent attribute, thus preventing illegal CFG optimizations.
All lanes in a wave come to convergence point simultaneously with SIMT, thus no special instruction is needed in the ISA.
The barrier is discarded during lowering to machine instructions.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec updated this revision to Diff 77738.Nov 13 2016, 1:33 AM
rampitec retitled this revision from to [AMDGPU] Add wave barrier builtin.
rampitec updated this object.
rampitec added a reviewer: vpykhtin.
rampitec set the repository for this revision to rL LLVM.
rampitec added a subscriber: llvm-commits.
rampitec updated this revision to Diff 77753.Nov 13 2016, 11:27 AM
rampitec added a reviewer: arsenm.

Renamed builtin to remove s_ as there is no corresponding instruction.

arsenm accepted this revision.Nov 15 2016, 10:14 AM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 15 2016, 10:14 AM
This revision was automatically updated to reflect the committed changes.