This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Enable unroll hint for OpenCL 1.x.
ClosedPublic

Authored by echuraev on Dec 6 2016, 4:10 AM.

Details

Summary

Although the feature was introduced only in OpenCL C v2.0 spec., it's useful for OpenCL 1.x too and doesn't require HW support.

Diff Detail

Event Timeline

echuraev updated this revision to Diff 80405.Dec 6 2016, 4:10 AM
echuraev retitled this revision from to [OpenCL] Enable unroll hint for OpenCL 1.x..
echuraev updated this object.
echuraev added a reviewer: Anastasia.
echuraev added subscribers: bader, cfe-commits, yaxunl.
Anastasia added inline comments.Dec 6 2016, 9:12 AM
lib/Sema/SemaStmtAttr.cpp
232

The comment above refers to v2.0, could we update it reflecting the fact that we now allow the feature in all OpenCL versions.

echuraev updated this revision to Diff 80547.Dec 7 2016, 12:39 AM
echuraev marked an inline comment as done.
Anastasia accepted this revision.Dec 9 2016, 8:23 AM
Anastasia edited edge metadata.

LGTM! Thanks!

This revision is now accepted and ready to land.Dec 9 2016, 8:23 AM
echuraev closed this revision.Dec 12 2016, 8:41 PM
echuraev reopened this revision.Dec 12 2016, 8:46 PM
This revision is now accepted and ready to land.Dec 12 2016, 8:46 PM
echuraev closed this revision.Dec 13 2016, 6:12 AM
This revision was automatically updated to reflect the committed changes.