[PATCH] D45363: [OpenCL] Added -std/-cl-std=CL2.2/CLC++

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 11 05:09:00 PDT 2018


Anastasia added inline comments.


================
Comment at: lib/Frontend/InitPreprocessor.cpp:434
+        llvm_unreachable("Unsupported OpenCL C++ version");
+      Builder.defineMacro("__CL_CPP_VERSION_1_0__", "100");
+    } else {
----------------
There is no such macro in the spec it seems, but I am adding it because it's probably useful. Also endian and fast math macros (bfrom below) are not in the spec it seems. Not sure it was on purpose.


https://reviews.llvm.org/D45363





More information about the cfe-commits mailing list