<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/112348>112348</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [flang][OpenMP] Implement implicit privatisation for SIMD loop iteration variables
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang:openmp
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          tblah
      </td>
    </tr>
</table>

<pre>
    In [OpenMP 5.2](https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5-2.pdf), loop iteration variables for SIMD with a single associated loop should be linear with a linear-step equal to the increment of the loop. Otherwise loop iteration variables for SIMD loops should be lastprivate.

See section 5.1.1 lines 15 and 16.

Currently this is unimplemented. Loop iteration variables inside of SIMD default to shared.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMktFuozoQhp_G3IxA2OCQXHCRNooU6VSt1CcweAhz5Ngcj0nUtz8C2t2ttCvtDQgzM_7_fz7DTFeP2Ar9JPQpM3MaQ2xT58yYdcF-tBcPQj-9Tuhf3kAXSuiTUPsxpYlFdRTqLNT58XgUYUJ_m4oQr8vBlPfBJ_RJqPM8uWAsC3XepuTHt0v-PmFPA_UmUfC5zlUx2UGog1DP4EKYgBLG9SfcTSTTOWQYQoT3y8sJHpRGMMDkrw7BMIeeTEK7tfIYZmehQ3Dk0cSv8u0r54QT4H-zcZACpBGBfB_xhj5BGNaDZUwBr2nE-CDGv1C0VPCvNxtOU6S7SViI8iTK4_Z8RwTGfh2jC1nIVRWD1GC8Bbn7Vv08x4g-uQ9IIzEQw-zpNrlVLNoC_vmTMPJMFhc_qzyLg5ldWgzzaCLaIrNtZQ_VwWTYykbtD4eqbnbZ2O5sj0OPaE19UINSXTN0Vambsm8ao-t9Rq0qVS1LqaXUjdaFxKY3xuwaKctGlVLUJd4MucK5-20hIiPmGVspVVXvM2c6dLwSp9TgjL-K6rjhI9TCVxbbpTPv5iuLunTEiX_OSpTcyuvWqk8_8BT6BJevdGDJiXpKsK2BeIvo28Z-F102R9d-5_tKaZy7og83oc6LkM9XPsXwL_YL5KvDhfFPk_dW_R8AAP__QGUfGw">