Page MenuHomePhabricator

[OpenCL] Set calling convention for -fdeclare-opencl-builtins
ClosedPublic

Authored by svenvh on Mar 5 2021, 5:54 AM.

Details

Summary

IR produced using TableGen builtin function declarations
(fdeclare-opencl-builtins.cl) did not have the target's calling
convention applied to builtin calls.

Fix this, and update the codegen test to check that IR produced using
opencl-c.h and -fdeclare-opencl-builtins is identical with respect
to the builtin calls.

Diff Detail

Event Timeline

svenvh created this revision.Mar 5 2021, 5:54 AM
svenvh requested review of this revision.Mar 5 2021, 5:54 AM
Anastasia accepted this revision.Mar 8 2021, 4:08 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Mar 8 2021, 4:08 AM