[PATCH] D102065: [AMDGPU][OpenMP] Emit textual IR for -emit-llvm -S

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 7 04:56:45 PDT 2021


JonChesterfield added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:4397
                JA.getType() == types::TY_LTO_BC) {
-      CmdArgs.push_back("-emit-llvm-bc");
+      // Emit textual llvm IR for AMDGPU offloading for -emit-llvm -S
+      if (Triple.isAMDGCN() && IsOpenMPDevice) {
----------------
Does unconditionally using emit-llvm here achieve the same result?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102065



More information about the cfe-commits mailing list