[cfe-dev] [RFC][OpenCL] Allow -cl-std and other standard -cl- options in driver

Anastasia Stulova via cfe-dev cfe-dev at lists.llvm.org
Fri May 27 08:44:25 PDT 2016


You should be able to pass -std=CL1.1|CL1.2|CL2.0 to the Clang driver. We have broken it lately though, but the fix is on the way: http://reviews.llvm.org/D20630

Some other options are supported too, but not called the same way i.e. -ffast-math (analogue to -cl-fast-relaxed-math).

Which options would you be interested in particular? I think we should try to avoid duplication with existing ones that are already in Clang.

The -cl options are generally a part of the OpenCL runtime API spec, but they might be useful to have for standalone compilation indeed.

Cheers,
Anastasia

From: Shi, Aaron (en ye) [mailto:Aaronenye.Shi at amd.com]
Sent: 26 May 2016 19:55
To: cfe-dev at lists.llvm.org
Cc: Anastasia Stulova; xiuli.pan at intel.com; alexey.bader at intel.com; richard at metafoo.co.uk; Haustov, Nikolay; Liu, Yaxun (Sam)
Subject: [RFC][OpenCL] Allow -cl-std and other standard -cl- options in driver

cfe-dev,

Currently, -cl-std= and -cl- options are only accepted by clang compiler with -cc1, which is not convenient for OpenCL users.

Is it possible to allow these options into clang driver (without -cc1)?

Thanks,

Aaron (En Ye) Shi
PEY, SW Engineering | Stream OpenCL
O +(1) 289-695-0685    M +(1) 647-709-3020

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160527/03223b4d/attachment.html>


More information about the cfe-dev mailing list