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

    <tr>
        <th>Summary</th>
        <td>
            how can i compile OpenCL kernel fileļ¼ˆ*.cl) with clang  when there is more than one kernel function 
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          xusw-cs
      </td>
    </tr>
</table>

<pre>
    i can compile an opencl kernel file when there is only one kernel function,  but when there is more than one kernel funcition , clang only can recognize the first one 
the input.cl is like:
void __kernel func1()
{}
void __kernel func2()
{}
i use comand:
clang -c -target aarch64 -x cl -emit-llvm -S -cl-std=CL2.0 -Xclang -finclude-default-header input.cl
but the *.ll file i got just include the first function func1 information,  do i forget to add some args?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUsFu2zoQ_BrqsqBAUbJlH3RI7KdTgHfopbeAJlfSJhRpkFSc9OsLyq6bFgjQEwHuzuzO7KgYaXSIHds8ss2xUEuafOjel3jhOhYnbz46Aq0caD-fySIoB_6MTlt4xeDQwpB_LxM6SBMGBIrgnf0A7_DesjidyDsmDwCnJf3VPvuAkKbM_CeGMggySlvlxitvXiag9qOjHxmGMFCIacUycWTiIf-ROy-p1DbzW3pFVj9ci2-eDDw_f5pSMbljcn8ts_aRtcevWuVXrQRLxOyRcuY-6ro018CTCiMmUCroadsAfwdtgeNMiVv7NgP_BlxbHpNh9fHwJEsB_PsNPpDTdjHIDQ5qsYlPqAyGu8LrrOxq1s3kQ2lvRyEYfYKXJSa4cXyy69dNrhYAucGHWd2vZDwQDH5dO3lQxkD0M4IKY2R1X5iuNvt6rwrsqu1u01Sbdi-LqdNqULJRQg5iqERrts22bVvdKKOr7aA2BXVSyFpsaiFqUVeyFEYavRdVIxB1Y1rWCJwV2TI7U_owFhTjgt02IwqrTmjjGlcpHV5gLTIpc3pDlzH8tIyRNcJSTPE3S6JksZv8ZU0Q3QP9_xnd4elzmtl_PXs8sN0um6ktk3u4UJpuIfzX8K7mFkuw3ZTSOeZUyJ7JfqQ0LadS-5nJPm93e_g5-BfUicl-1RSZ7FfNPwMAAP__dNUxPw">