[PATCH] D139730: [OpenMP][DeviceRTL][AMDGPU] Support code object version 5

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 9 11:32:40 PST 2022


yaxunl added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:7085
   if (Triple.isAMDGPU()) {
-    handleAMDGPUCodeObjectVersionOptions(D, Args, CmdArgs);
+    handleAMDGPUCodeObjectVersionOptions(D, C.getArgs(), CmdArgs,
+                                         /*IsCC1As=*/true);
----------------
Any reason you need the original args? This will bypass the driver translation, which should not in normal cases.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:7086
+    handleAMDGPUCodeObjectVersionOptions(D, C.getArgs(), CmdArgs,
+                                         /*IsCC1As=*/true);
 
----------------
clang -cc1 needs this to be default value false to emit code object version module flag


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139730



More information about the cfe-commits mailing list