<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 --- - Autodetection of Host CPUs on AArch64"
   href="https://llvm.org/bugs/show_bug.cgi?id=30516">30516</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Autodetection of Host CPUs on AArch64
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Support Libraries
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hegdesmailbox@gmail.com
          </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>Created <span class=""><a href="attachment.cgi?id=17344" name="attach_17344" title="Modified Host.cpp with reference code for some more CPUs supporting AArch64 state.">attachment 17344</a> <a href="attachment.cgi?id=17344&action=edit" title="Modified Host.cpp with reference code for some more CPUs supporting AArch64 state.">[details]</a></span>
Modified Host.cpp with reference code for some more CPUs supporting AArch64
state.

In the file lib/Support/Host.cpp, getHostCPUName() implements a small set of
CPUs (under ARM Architecture) for autodetection with -mcpu=native option. And
for the AArch74 state, there is no autodetection at all.

It was discussed that the existing design duplicates the code and makes it look
cluttered. We need an API kind of interface instead of repeated "for" loops.

A modified Host.cpp is attached here for quick reference of the CPU codes.
Though the modification is functionally correct, it was discussed that the
design is not scalable especially given the fact that AArch64 base may grow
substantially with multiple vendors.</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>