[PATCH] D112410: [SPIR-V] Add a toolchain for SPIR-V in clang
Sven van Haastregt via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 13 02:02:35 PST 2021
svenvh added inline comments.
================
Comment at: clang/test/Driver/spirv-toolchain.cl:10
+// SPV64-SAME: "-o" [[BC:".*bc"]]
+// SPV64: {{".*llvm-spirv.*"}} [[BC]] "-o" {{".*o"}}
+
----------------
Anastasia wrote:
> svenvh wrote:
> > Any reason to not just check for `llvm-spirv{{.*}}`, for consistency with the clang check above?
> Good question, apparently some tools get some target prefixes like if you look at `Driver::generatePrefixedToolNames`:
> https://clang.llvm.org/doxygen/Driver_8cpp_source.html#l05169
>
> But perhaps it doesn't happen for `llvm-spirv` and we can safely omit the prefix?
Having a target prefix for llvm-spirv seems a bit redundant indeed. `Driver::generatePrefixedToolNames` seems to add both a prefixed and non-prefixed tool name.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112410/new/
https://reviews.llvm.org/D112410
More information about the cfe-commits
mailing list