<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - LLVMRunFunction does not work properly with MCJIT"
   href="https://llvm.org/bugs/show_bug.cgi?id=28934">28934</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVMRunFunction does not work properly with MCJIT
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MCJIT
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>llvm@henning-thielemann.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since I switched to MCJIT, LLVMRunFunction crashes on my generated functions.
In the e-mail thread "crash JIT with AVX intrinsics":
   <a href="http://lists.llvm.org/pipermail/llvm-dev/2016-August/103598.html">http://lists.llvm.org/pipermail/llvm-dev/2016-August/103598.html</a>
it was explained to me that LLVMRunFunction works only on "main" like
prototypes.
However, with the old JIT up to LLVM-3.5 it worked on all function prototypes I
tried.

Please,
1. make LLVMRunFunction, again, or
2. if you cannot fix it or it is not economical to fix it, deprecate it or
remove it, and document how to replace LLVMRunFunction, maybe by
LLVMGetPointerToGlobal, and please give me some explanation why LLVMRunFunction
was degraded.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>