[PATCH] D124776: [SPIR-V] Allow setting SPIR-V version via target triple

Anastasia Stulova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 08:56:48 PDT 2022


Anastasia created this revision.
Herald added subscribers: dexonsmith, ThomasRaoux, ebevhan, hiraditya.
Herald added a project: All.
Anastasia requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


https://reviews.llvm.org/D124776

Files:
  llvm/docs/SPIRVUsage.rst
  llvm/docs/UserGuides.rst
  llvm/include/llvm/ADT/Triple.h
  llvm/lib/Support/Triple.cpp
  llvm/unittests/ADT/TripleTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124776.426426.patch
Type: text/x-patch
Size: 9291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220502/17775bf3/attachment.bin>


More information about the llvm-commits mailing list