[PATCH] D81861: [HIP] Do not use llvm-link/opt/llc for -fgpu-rdc

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 15 12:37:36 PDT 2020


yaxunl marked an inline comment as done.
yaxunl added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:207-209
+  Arg *A = Args.getLastArg(options::OPT_march_EQ);
+  if (!A)
+    A = Args.getLastArg(options::OPT_mcpu_EQ);
----------------
arsenm wrote:
> Why is this necessary?
HIP uses -march to pass the processor. I can switch to use -mcpu in HIP toolchain.


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

https://reviews.llvm.org/D81861





More information about the cfe-commits mailing list