As per RFC: https://discourse.llvm.org/t/setting-version-environment-and-extensions-for-spir-v-target/62018 this patch adds ability to set version of SPIR-V using sub-arch field in the target triple.
Currently available versions are from v1.0 to v1.4, however other versions can be added in the future as needed.
described