diff options
author | Lei Zhang <antiagainst@google.com> | 2022-11-25 21:31:12 +0000 |
---|---|---|
committer | Lei Zhang <antiagainst@google.com> | 2022-11-25 21:38:00 +0000 |
commit | e672f5126fcfca650534ee5fd81425df36c76eb6 (patch) | |
tree | 11aa0f6263c2011bc94c0d054fcc2302c02036b6 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 410c1f6269779a01ad24909974eafb0f2e8d8cac (diff) | |
download | llvm-e672f5126fcfca650534ee5fd81425df36c76eb6.zip llvm-e672f5126fcfca650534ee5fd81425df36c76eb6.tar.gz llvm-e672f5126fcfca650534ee5fd81425df36c76eb6.tar.bz2 |
[mlir][spirv] Add a field for client API in target environment
SPIR-V can be directly consumed by APIs like Vulkan and OpenCL,
where we can use the capability list to diffferentiate. It can
also be used as a compilation target to transcompile to shading
languages like WGSL to target WebGPU. We have no way to tell
that with just the capability list, so we cannot perform certain
transformations only applicable to those targets thus far. So
this commit add a field in the target environment to indicate
the client API for such purposes.
Reviewed By: kuhar
Differential Revision: https://reviews.llvm.org/D138732
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions