[PATCH] D32035: [OpenMP] Error when trying to offload to an unsupported architecture

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 14 06:43:48 PDT 2017


ABataev added inline comments.


================
Comment at: lib/Frontend/CompilerInvocation.cpp:2242-2253
+      if (!(TT.getArch() == llvm::Triple::ppc ||
+            TT.getArch() == llvm::Triple::ppc64 ||
+            TT.getArch() == llvm::Triple::ppc64le ||
+            TT.getArch() == llvm::Triple::nvptx ||
+            TT.getArch() == llvm::Triple::nvptx64 ||
+            TT.getArch() == llvm::Triple::x86 ||
+            TT.getArch() == llvm::Triple::x86_64))
----------------
I think you can join these 2 if statements into one.


Repository:
  rL LLVM

https://reviews.llvm.org/D32035





More information about the cfe-commits mailing list