[PATCH] D144505: [Clang] Add options in LTO mode when cross compiling for AMDGPU

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 22 08:05:31 PST 2023


JonChesterfield added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/AMDGPU.cpp:545
+    addLTOOptions(getToolChain(), Args, CmdArgs, Output, Inputs[0],
+                  C.getDriver().getLTOMode() == LTOK_Thin);
   CmdArgs.push_back("-shared");
----------------
What's the test against OK_Thin for? ThinLTO is a thing but I don't know if it exists (/works) on amdgpu, is this that?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144505



More information about the cfe-commits mailing list