This is an archive of the discontinued LLVM Phabricator instance.

[SPIRV] support builtin functions
ClosedPublic

Authored by iliya-diyachkov on Aug 17 2022, 4:59 AM.

Details

Summary

This patch adds support for OpenCL and SPIRV built-in functions. New passed LIT tests will be added later.

Diff Detail

Event Timeline

iliya-diyachkov requested review of this revision.Aug 17 2022, 4:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2022, 4:59 AM

Small correction of lowerBuiltin() interface. 5 LIT tests were also added to demonstrate the improvement.

Fix whitespace errors in SPIRVBuiltins.td.

mpaszkowski accepted this revision.Aug 24 2022, 11:41 AM

LGTM! Thank you @iliya-diyachkov for preparing the patch!

This revision is now accepted and ready to land.Aug 24 2022, 11:41 AM
This revision was automatically updated to reflect the committed changes.