Code object version flag for AMDGPU was not being honored by the
driver. It was required to be passed as derived arg so that correct
bitcode library can be linked.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
7116 | why do you need to change Args to C.getArgs() ? |
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
7116 | You are right. Don't need it. Removed. |
Comment Actions
Is this patch really necessary? -mcode-object-version= option does not go through any translation in derived args. If it is in derived args, it should also be in the original args. HIPAMD toolchain just uses the original driver args. Why OpenMP toolchain needs to use the derived args?
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
8090–8091 | should use Args instead of C.getArgs() |
why do you need to change Args to C.getArgs() ?