[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 20:03:42 PST 2020


This may just be an artifact of how clover doesn't use the clang
driver at all, which might mean everyone else is fine and clover just
does it wrong.

But maybe someone else has done it wrong as well, so might appreciate
this headsup.

Dave.

On Wed, Nov 11, 2020 at 10:36 AM David Airlie <airlied at redhat.com> wrote:
>
> 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