There are scenarios where users define functions with names as 'atomic_fetch_and_sub_uint32'. Such functions are being wrongly identified as OpenCL builtins.
This change adds the following to OCLIsBuiltin(...) function
if (!F->isDeclaration()) return false;
There are scenarios where users define functions with names as 'atomic_fetch_and_sub_uint32'. Such functions are being wrongly identified as OpenCL builtins. This change adds the following to OCLIsBuiltin(...) function if (!F->isDeclaration()) return false;
This resolves several existing test failures.
Thanks