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

    <tr>
        <th>Summary</th>
        <td>
             implement to use core  enum type to find core definnition
        </td>
    </tr>

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

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

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

<pre>
    
The code use enum type as a index to find core definition. It will make mistake when added new ArchSpec::Core type, user need to consider postion of  new ArchSpec::Core type. Can i fix it , find core definition by compare core type in `g_core_definitions`
 
https://github.com/llvm/llvm-project/blob/b2bf995c02a04fd7f453d6931b79ce5a51871489/lldb/source/Utility/ArchSpec.cpp#L484
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk-LnTAUxT9N3Fwq8apRFy5eZxAK3bVdDzG5PtPGRJLYN-_bl_gYptBS6OqA1_zun3NkjObqiEbWfmTtcyGPtPow3sw9FLPX95HxZ8YvX1cC5TXBEQnIHRuk-04gI0gwTtMrJA-LcRqUDwSaFuNMMt6V8CnBzVgLm_xBsJmYst5WciC1Jg2ObnAJav2yk2L1hdWXp4zIfIZPuWEAR6RzB-VdNJoC7D5mOvgF_gUo4Uk6MLCYVzAJMu9vQ8J8B-W3XQZ6lM7ljAMm-PUlf3l5_zkywR9HgYesKe0xN8aJ4XQ1aT3mUvmN4WTtzzf5sAf_nVRiOM3Wz1lwXoahVRwlbxbdLU1bazHU1dwNilrZVn1XNf1wAnR-Ef0RFDGcviVjTboznN4WL9W-M6w_N31T6LHWQz3IgsZKdG3Vtj2KYh177JWsZKVrjUPfYdcr1Fj1ou8H0ZAszIgca17VFR943Yiyqtp-VohCikV0rWINp00aW-aNSh-uhYnxoFHwhovCyplsPJOEmF05iwwxByuM5xXm4xpZw62JKb5TkkmWRjDbbmkjl7LXOWmnGb_l7c-QPTwpjmDH__bhHC8ynM7xfwUAAP__r379DA">