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

    <tr>
        <th>Summary</th>
        <td>
            libclc: no constant/generic variants of math functions like frexp
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The frexp function has 3 variants in the current libclc : https://github.com/llvm/llvm-project/blob/main/libclc/generic/include/clc/math/frexp.inc : global, local, private

The [SPIR specification](https://www.khronos.org/registry/SPIR/specs/spir_spec-2.0.pdf) page 17 says that are 5 different address space qualifiers :  
  * 0 – private
  * 1 – global
  * 2 – constant
  * 3 – local
  * 4 – generic

If some SPIR module was generated using the generic address space qualifier, what version should it use from libclc?
Should the constant & generic variant of the existing functions be added to libclc?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU01vnDAQ_TXmMgpiDft14LBtGim3qum9MvYATryY2mY3-fcdG5IlhxwqIWbMMzNvnp8bq97q3z1C6_B1hHYaZNB2gF54KOEinBZD8KAHCLRJTs7hEMDoRhoJrDxBH8LoKWH8gZ5Oh35qcmnPtDDm8h7uRmefUQZaNsY2FM5CDxFMleKfOKDTMdODNJNCymbkLEJPIRHMCUxtO6oiDOPfwVg5J6PTFxGQFfesOM3vOBjbfnv6-fgL_IhSt1qKOB_b3jN--Mz9er3mL72zg_W5dR19cdhpH9wbpbEEhVjEp6jdn7i443mRj6pl_Aij6BA2e_DizZNcIoBwCFtQum0x6SaUcug9cRES4e8kDDFC59NIMHOmyE9QAPvB2aFgx_LzYDO8WcGLFCuUr1BpBx_oDNd4ucJn-VZgtS69HMpK0scWvD0jJE3PVk0G4UpmSVuJpYLJ66FLdll-_2rseGjXKNOFJIim872djAIdqEZ0pD0vTmPlw9z9ad6RvLgMRqR3H50Ww4Jt0x58pfOLbN597aHBSIdoBnsrnqm6VMfyKLKgg8H6HTjBYG8Kfpj0di-oT7Tnqr7RL8tlyiZn6v--Htr7CaPFttWuOGR9ja3AnRJVU-5VsanK9igLVNWhOSghuTxkRjRofE0-Z5wPeIVUgnIyeaZrXnBelPxY7Df7apsfcbcrKrVtxKasZFuxqkC6iyaPPKLvM1cnSs3UeQINKehvoPBedwNiakf1xRR662r1rJB0yFLrOlH_ByUuZxw">