[PATCH] D97058: [OpenCL] Refactor diagnostic for OpenCL extension/feature

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 3 06:38:22 PST 2021


azabaznov added inline comments.


================
Comment at: clang/lib/Basic/OpenCLOptions.cpp:22-26
+  auto &OptInfo = OptMap.find(Ext)->getValue();
+  if (OptInfo.isCoreIn(LO) || OptInfo.isOptionalCoreIn(LO))
+    return isSupported(Ext, LO);
+
+  return isEnabled(Ext);
----------------
Note that I can't use `isWithPragma` from https://reviews.llvm.org/D97052 as some extensions are promoted to core or optional core in different versions


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97058/new/

https://reviews.llvm.org/D97058



More information about the cfe-commits mailing list