[PATCH] D153909: [AMDGPU] Always pass `-mcpu` to the `lld` linker
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 27 16:38:06 PDT 2023
JonChesterfield added a comment.
I thought lld did the right thing if you pass it raw IR, without specifying an arch, but on reflection it might just be silently miscompiling things. The test doesn't seem to involve a specific type of input file, does clang foo.ll -o a.out pass a mcpu flag along?
It's a bit weird that the architecture doesn't seem to be embedded in the IR file (e.g. you have to pass it to llc) but that's out of scope here
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153909/new/
https://reviews.llvm.org/D153909
More information about the cfe-commits
mailing list