<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/65291>65291</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[IR] value name & AsmPrinter
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
KihongHeo
</td>
</tr>
</table>
<pre>
Hi,
I use `Value::getName` and `Value::print` to obtain the string representation of IR variables such as `%x`.
I have two questions:
- It seems that a value sometimes does not have a name. Could anyone explain when the name is available?
- When the name is NULL, I use `print` to obtain the string representation of an instruction and manipulate it on my own. But it seems `print` is extremely slow for large IR. Does anyone know some idea for optimizing this process?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9v2zgQxT8NdRlEoKk_jg86ODGMGBsEiwC7PY-tkcSWIlXOyI776QvKSVvk1osEcB5nfvP4kNn2nqhR1YOqdhnOMoTY_GOH4PsnCtkxtNfmySrzqPRO6e3te4CZCVSt_0c3kyq2qtj2JC84kqo1oG8_FadovaSSBAhHQetBBgKWaH0PkaZITF5QbPAQOji8whmjxaMjBp5PAyCnlspUb6rW-QfGgGcCuQT4PhOny5zmLcU7OAgw0cggAwognBMPcBhJ7EgMbSAGH-TWBcHjSDk8htm1gP4aPAG9TS7BXga6EScNWAY8o3UJTxX7j3lfPote_nt-VuYRftn1tzagB-tZ4nxaTpKvI3o7zQ6FwAoED-MVwsXnAA-zpKPbyn8Oswz0JpFGcldgFy7QhQgOY09weM1hl3x4X_ibD5fFIrAt4SIMk9jR_kiEMliGKYYTMatin7VN0W6KDWbUrOpNcX9fm3WVDU1ZlutyVXa4qg2W9YoKbbpV1RUa9eaEXWYbo02hN7rSRbWuqrzCe8JKb45VtzbFqlWlphGty507j3mIfWaZZ2rqymxWmcMjOf4IbWyS6O4496xK7SwL_74mVtwS78OrqnbvGVgeSJkatjz-m2yimM3RNYPItCTI7JXZ91aG-ZifwqjMPjV8_91NMXylkyizX6BYmf3C9TMAAP__jiwVkQ">