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

    <tr>
        <th>Summary</th>
        <td>
            [flang][hlfir] PowerPC vector types needs support in HLFIR
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue,
            flang,
            flang:hlfir-switch
      </td>
    </tr>

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

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

<pre>
    PowerPC vector types needs some support in HLFIR lowering, compiling code from test/Lower/PowerPC with the -flang-experimental-hlfir option currently crashes in Lowering.

At least the following is needed to add support:

- The fir.vector type must likely be allowed in the `isFortranValueType` [predicate here](https://github.com/llvm/llvm-project/blob/be5b66670d869f5f9401feb71c70f2ca519ce9e0/flang/include/flang/Optimizer/Builder/HLFIRTools.h#L47C13-L47C31).
- Special handling should be added in assignment hlfir lowering code [here](https://github.com/llvm/llvm-project/blob/be5b66670d869f5f9401feb71c70f2ca519ce9e0/flang/lib/Lower/Bridge.cpp#L3352).

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEU02PozgQ_TXmUgoyBhM4cMiH0K4UaVu7rb0buwD3GIxs05nMrx-ZdNSZOYw0p7mkAqbe83uvSnivhxmxIfxI-DkRaxita95QzC_oNLqks-rWvNgrupcTvKMM1kG4LehhRlQevJ0Q_Los1gXQM_x1af_-F0xs0PNA2AmknRZt9DyAtAqhd3aCgD4Q1l7iZ4S1D_yrDiOEEWHXGzEPO_y6oNMTzkGY3Wh67cAuQdsZ5OoczsHcQDrhR_SR-_LBmhJ6JvRw_z0EMCh82HB7a4y9xrvouwBUECwIpR4aSH547t7Ba2zTLn3SDtPqAxj9Bc0NOgQRQVHFK0QSUlLtW-uCE_P_wqz4eluQlBQIPy4OlZYiIIzokPAzYdUYwuIjL2sJawcdxrVLpZ0Ia415f5Td4uwbymhbZ2wXC_KuLMs9VVVZ97yvC5r12O0zuac9k4JntcQaKWHtZidhrZ6lWRU-vflnCXrS37YYjqs2avu3pfhqrfHpSFh-KfanLN_FkmeE1enDnP8WlFoYGMWstoj9aFejNlOUultyn7EYItwjfAzHfR4IP_4RK4zunibw6LQaMJXLEuXmOWefMhPV5KrOa5Fgk5V1UWRlWVfJ2NA9LXoqur3oeVZIpfq-r2RRClEITosi0Q2jLKd1ltF9VmVVWgia91RVGaq6lKUiBcVJaJNGWal1Q6K9X7Epec2qxIgOjd92k7EZr7AdEsYIOxHGPpT88JQfNo93_qqDHOMhPyeu2Vzr1sGTghrtg_8kDDqYbf_vAPwcA4kYhJ_hV4v_084nqzPNb-e3KfKEtZvi7wEAAP__5zt7rw">