currently clang passes -mllvm options to the device lld linker plugin
when compiling HIP. This is against default clang behavior
which is only passing -mllvm options to linker plugin specified through -Wl
options. This patch lets clang only pass -Xoffload-linker -mllvm= options
to device lld linker plugin.
Details
Details
- Reviewers
tra jhuber6 - Commits
- rGaa964f157f9b: [HIP] Fix -mllvm option for device lld linker
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Driver/ToolChains/HIPAMD.cpp | ||
---|---|---|
164 | StringRef Prefix("-mllvm=") and then use the length instead of strlen |
clang/lib/Driver/ToolChains/HIPAMD.cpp | ||
---|---|---|
164 | You could probably also do ArgVal.split("-mllvm=").second and push back first or second depending on whether or not second is empty. |
clang/lib/Driver/ToolChains/HIPAMD.cpp | ||
---|---|---|
164 | will use ArgVal.split |
StringRef Prefix("-mllvm=") and then use the length instead of strlen