[PATCH] D88377: Diagnose invalid target ID for AMDGPU toolchain for assembler

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 09:23:25 PDT 2020


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


================
Comment at: clang/lib/Driver/ToolChains/HIP.cpp:243
 
-  // Allow using target ID in --offload-arch.
-  StringRef GpuArch = translateTargetID(DriverArgs, CC1Args);
+  StringRef GpuArch = getGPUArch(DriverArgs);
   assert(!GpuArch.empty() && "Must have an explicit GPU arch.");
----------------
ashi1 wrote:
> Why move the checking logic to the end if getGPUArch doesn't do any checking?
It is moved to a different function which is called for both source file compilation and assembler.


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

https://reviews.llvm.org/D88377



More information about the cfe-commits mailing list