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

    <tr>
        <th>Summary</th>
        <td>
            [dump] Enhance the dump info of SDNode
        </td>
    </tr>

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

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

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

<pre>
    I don't sure  if this should be  improved? but it will help to debug if we address this. For example:

We can use SelectionDAG::dump to dump the target Node **AArch64ISD::RET_GLUE**, while SDNode::dump only show the 'Unknown Node #442'.
```
(gdb) p DAG.dump()
SelectionDAG has 8 nodes:
  t0: ch,glue = EntryToken
 t2: i32,ch = CopyFromReg t0, Register:i32 %0
      t3: v2i16 = bitcast t2
    t4: v2i32 = any_extend t3
  t6: ch,glue = CopyToReg t0, Register:v2i32 $d0, t4
  t7: ch = AArch64ISD::RET_GLUE t6, Register:v2i32 $d0, t6:1
$2 = void

(gdb) disp N->dump()
2: N->dump() = t7: ch = <<Unknown Node #442>> t6, Register:v2i32 $physreg44, t6:1
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8lM2OozgQx5_GXEodQdkQcuDA5qM10moO3T3a4whwBbzj2AibZPL2Kzukp3e6p6MIC6rq579dH41zqjdEFcv_YvkuaWY_2Kk6H-XxmLRWXqsvIK1huPbg5okA1BH8oBy4wc5aQhs-ncbJnkkyfoB29qA8XJTWMJAewVuQ1M59CLwQNFJO5FxkrOBgJ6CfzWnUxHjN0h1Ll-c_BF1jYHYEz6Sp88qaXf0YvHgt59MNHNeBwDdTTx6-WknAsGZY1_XUDYX48ry7hTztX74__v1tf7My3MJlUJrgeReC3mCt0ddwuEsEM1x_Mz-MvZg7nAuBDNerRWyRLv_bK5a9bBluYIRd_bgKRIYlw83N_vYoMDQOSjBWkns9PIBPGa-hGxhuez0TML6DvfHT9cX-ILN4eQxOiiPDbTdEn60dr4fJnp6oDwzcwhP1ynmaGK8VR2CYp_dNws_zwDijyooIaJXvGucD-9XLi8UnxPMdNOb6nX56MjKE3xUX7xUHNS_2Qy0LDYWMFi9eOesbJwL-lL-w2-e8oCa7p0PcdJ-tkm-r61eepHIjfH1gfP97ruIV_2aJsP_pZHzL-PajGuF7xj-TOw5XN1EvxDvV95pKZMXlhm-ahKqsKNNNLsp1mQxViUJkYsPzdtOVRVrKjBeCOsoEljnmx0RVmCJPRVpmWS54uRIizXnDGywowzQjJlI6NUqvtD6fVnbqE-XcTFWBaZYnumlJuzgTEA1dIBoZYhgRUxViHtq5d0ykWjnvflG88joOk3hneSjdoTEdxWaK_aXM0YI9Lo2XzJOuBu_H2AJ4YHjolR_mdtXZE8NDAC_LwzjZf6nzDA9RjmN4iHL_CwAA__8XEGB3">