We recently added support for -mtune. This patch adds /tune: so we can specify the tune CPU from clang-cl. MSVC doesn't support this but icc does.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Would it be enough for users to specify /clang:-mtune instead? How does icc spell its option?
Comment Actions
I didn't know you could spell it as /clang:-mtune. ICC has /tune: according to this documentation https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/code-generation-options/mtune-tune.html
Comment Actions
Okay, adding it to clang-cl seems fine to me. But I think it could be a simple alias?
clang/include/clang/Driver/Options.td | ||
---|---|---|
4707 | Any reason this can't just be an alias? |
Any reason this can't just be an alias?