[cfe-dev] -cl-denorms-are-zero no longer accepted in cc1 mode

David Airlie via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 10 16:36:05 PST 2020


I've been working on the mesa clover (OpenCL) frontend code.

it calls
clang::CompilerInvocation::CreateFromArgs
to create a clang compiler, but it passes the arguments it receives
from the OpenCL clBuildProgram API (-cl-denorms-are-zero) being one.
It currently doesn't strip any of those args out.

Now I can prepare the args and strip that one out if necessary, though
I'm not quite sure what I need to pass instead (since I want to
generate llvm bytecode to pass to the llvm->spirv translator).

But I wanted to give a heads up to other OpenCL implementers that
might have the same pattern (passing the options straight to clang),
but also check if this is what we expect.

Thanks,
Dave.



More information about the cfe-dev mailing list