<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylU0uPmzAQ_jVwsUDEhOxy4JB2W6mHVlW37X3A4-CtwcgzJpt_X0Mem5V6q2QxjBn7ewzTOnVq9koJEEc4CTOKzsJ4EOxE50b2zooZPRk3CqfF8_cvP7LfojUj-JNo0cRKHAwzqjwpnpJif37-7A0J6l2wSrwE4lgqIO6YYbLrm3b-CF4t50FoCytgsiusnYeMJuPnmAjnxQhsZhQtdH9wVAs_7lHowMHjBbJnnigp94n8HNdKP1_uyZ0_xA3lOorhF0UZX2EMYPOeB5vIcsHJ5ozCNDnP9_w_vcLKNBAust9YiaPh_ubIxaEF-3z4XoDIzjEb4DW7nEjKp01eCkbivO1i-T3oN8cY1QGL3h0FvkLH9hQ3opVXwMXVCTujDaqrv9FaZagLRKgS-VGQG6LFltGfvSMBHm8Us1UT4QQeItwMNuDqqjdR8D9rlvakqilVXdaQQuDe-WY_AjGQgWcO1s2QBm-b9504RKtCm3duiMniyyVkk3cv2HFMDVHApTtVWdW7tG8eOqkr_diWha5B1w_lVkoNageV0mWlMbXQoqUmqT4kUq69jnGRHYObcOzskldP6f-zMY0sZFzFdlNvy80m39U7CaVE_Vh1sthtk22BAxh7-9tS36xXtuFA8aM1xPT2EYjMYURcyUeGbNjiefZaYw2fbhN3GbNr17V3w3ks05Vis_L7C3bCPf0>53596</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Add ability control SPIR-V version from clang
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
opencl
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AnastasiaStulova
</td>
</tr>
</table>
<pre>
Add a way in clang to control version of SPIR-V binary being emitted.
This should just be as simple as forwarding a flag to `llvm-spirv` or native backend in the future.
https://clang.llvm.org/docs/UsersManual.html#spir-v-support
Example use of llvm-spirv with version control:
`llvm-spirv --spirv-max-version=1.3 test.bc`
Note that how exactly this version is specified should be discussed, some alternatives are:
- use separate value in triple
- use separate flag
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUkuPmzAQ_jVwGYF4hGw4cEi7rdRDq6rb9j7gIXhrMPKMyebf15BsditVshjGnvH38LRWXZqjUoBwxgvoCTqD0wnEQmcncdbAQo61ncD28PT9y4_kN7R6QneBlnSopFGLkEqj7DHKjtfvz0Ez8GC9UfDsWUIpYNjR42y2v966Mzq19iP0BjfAaJ8Zs4wJz9otIQHrYELRC0GL3R-a1MpPBoLei3d0gxxEZo7KY1R8Dmujn673pNadwoayHYfwi4OMrzh5NOkgo4mKcsVJloT9PFsn7_l_esGNqWdaZb-xgrOW4e7IzaEV-9r8XgAk15iM-JLcOqLyMU9LEGJJ2y6Uvwf9ZoWCOhQY7BnoBTsxl7ARrHwFXF2dqdO9JvXqb7BWae48M6mo-Ahsx2CxEXJX7xjQ0Z1ismlimtFhgFvQeNpcdToI_m_N-jyxakpVlzXGosXQdWJabbRc7nNyG45Xrr2z43WYYu9M8-8rnYKNvk07O4Zk9ewWktnZZ-okpJrZ0_pyVVnV-3hoHnaH-iGvd3Soa1Xmh64-7Mtc9UV2qKpdlccGWzLcRNWHqCg25BBXS0KwM02dWfPqMdZNkRVhZbtwXZnn6b7eF1gW1B-qrsj2u2iX0Yja3Ocods1Gr_UnDodGs_DbITLr00S0QYf70ctgXXOckAVZ45N4YxeMN0nNpucvkyomuQ">