[PATCH] D119638: [OpenMP][NFC] Simplify identifying the device bitcode library

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 12 10:35:41 PST 2022


JonChesterfield accepted this revision.
JonChesterfield added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:2014
 
-  StringRef ArchPrefix = Triple.isAMDGCN() ? "amdgcn" : "nvptx";
-  std::string LibOmpTargetName = "libomptarget-" + BitcodeSuffix.str() + ".bc";
+  std::string ArchPrefix = Triple.isAMDGCN() ? "amdgpu" : "nvptx";
+  std::string LibOmpTargetName =
----------------
ArchPrefix could be a const char* or stringref as before, one fewer malloc


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119638



More information about the cfe-commits mailing list