<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="RU" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<br>
 <br>
Intel, Arm and Khronos are proposing to start the integration of SPIR-V backend to LLVM.<br>
 <br>
The general RFC was discussed previously in March 2021 (<a href="https://lists.llvm.org/pipermail/llvm-dev/2021-March/148905.html">https://lists.llvm.org/pipermail/llvm-dev/2021-March/148905.html</a>). This backend has been developed in the Khronos repository
 by Intel and Arm (<a href="https://github.com/KhronosGroup/LLVM-SPIRV-Backend">https://github.com/KhronosGroup/LLVM-SPIRV-Backend</a>). The code has been refactored so it does not require extra changes from GlobalISel or other LLVM target-independent infrastructure.
 We have added a pretty extensive LIT test suite for the backend functionality.<br>
 <br>
SPIR-V triple was upstreamed into the LLVM trunk in the middle of November (<a href="https://reviews.llvm.org/D109144">https://reviews.llvm.org/D109144</a>). We have submitted for consideration the first patch (<a href="https://reviews.llvm.org/D115009">https://reviews.llvm.org/D115009</a>)
 - this is a stub for the SPIR-V backend. Please feel free to review it. All comments are welcome.<br>
<br>
---------------------------------------------------------------------------------------<br>
Some additional comments:<br>
 <br>
As it still has some missing functionality (e.g. exposing some of the SPIR-V execution model, image support, complete atomics support, missing translation of some of llvm intrinsics), it is now proposed to be upstreamed as an experimental backend. Current LIT
 pass rate is 60% and the plan is to have a full conformance before promoting to the production backend. We do keep the backend operation compatible with LLVM/SPIR-V Translator (<a href="https://github.com/KhronosGroup/SPIRV-LLVM-Translator">https://github.com/KhronosGroup/SPIRV-LLVM-Translator</a>)
 so the future integration of the backend would be as seamless as possible.<br>
<br>
SPIR-V specification could be found here: <a href="https://www.khronos.org/registry/SPIR-V/specs/unified1/SPIRV.html">
https://www.khronos.org/registry/SPIR-V/specs/unified1/SPIRV.html</a>.<br>
 <br>
Best regards,<br>
Ilya<o:p></o:p></span></p>
</div>
<p><br>--------------------------------------------------------------------<br>Joint Stock Company Intel A/O<br>Registered legal address: Krylatsky Hills Business Park, <br>17 Krylatskaya Str., Bldg 4, Moscow 121614, <br>Russian Federation</p><p>This e-mail and any attachments may contain confidential material for<br>the sole use of the intended recipient(s). Any review or distribution<br>by others is strictly prohibited. If you are not the intended<br>recipient, please contact the sender and delete all copies.</p>
</body>
</html>