<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [llvm-mca] implement a better framework for error handling."
   href="https://bugs.llvm.org/show_bug.cgi?id=38101">38101</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[llvm-mca] implement a better framework for error handling.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andrea.dibiagio@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>clement.courbet@gmail.com, greg.bedwell@sony.com, lebedev.ri@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, matthew.davis@sony.com, spatel+llvm@rotateright.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>37696
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We need to set up a proper framework for handling warnings and errors.

There are a few places in InstrBuilder where we call llvm::report_fatal_error.
This will become a problem when we decide to finalize <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [llvm-mca] llvm-mca as a library"
   href="show_bug.cgi?id=37696">bug 37696</a> and we move
towards llvm-mca as a library.
We don't want to have calls to report_fatal_error from inside of the library
code. Instead, errors and warnings should be correctly diagnosed outside of
InstrBuilder.

This is a blocker for <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [llvm-mca] llvm-mca as a library"
   href="show_bug.cgi?id=37696">bug 37696</a>.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [llvm-mca] llvm-mca as a library"
   href="https://bugs.llvm.org/show_bug.cgi?id=37696">Bug 37696</a>] [llvm-mca] llvm-mca as a library
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>