This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Add function attributes handling for builtin functions

Authored by svenvh on Jul 8 2019, 3:37 AM.



Add handling for the "pure", "const" and "convergent" function
attributes for OpenCL builtin functions.

Patch by Pierre Gondois and Sven van Haastregt.

Diff Detail

Event Timeline

Pierre created this revision.Jul 8 2019, 3:37 AM
svenvh commandeered this revision.Sep 27 2019, 10:28 AM
svenvh updated this revision to Diff 222197.
svenvh edited reviewers, added: Pierre; removed: svenvh.
svenvh edited the summary of this revision. (Show Details)
  • Rebase onto recent master.
  • Fix formatting.
  • Use predefined attribute sets like "Attr.Const" instead of bit lists.
Anastasia accepted this revision.Sep 27 2019, 11:35 AM

LGTM! Thanks!

This revision is now accepted and ready to land.Sep 27 2019, 11:35 AM
This revision was automatically updated to reflect the committed changes.