<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 - Implement addrspace machine memory operand printing / parsing in MIR"
href="https://bugs.llvm.org/show_bug.cgi?id=35970">35970</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Implement addrspace machine memory operand printing / parsing in MIR
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>francisvm@yahoo.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19686" name="attach_19686" title="Copy of the test.">attachment 19686</a> <a href="attachment.cgi?id=19686&action=edit" title="Copy of the test.">[details]</a></span>
Copy of the test.
-debug printing prints the address space of a MachinePointerInfo if it is != 0:
%15:vgpr_32 = BUFFER_LOAD_SSHORT_OFFEN %18, %sgpr96_sgpr97_sgpr98_sgpr99,
%sgpr3, 0, 0, 0, 0, implicit %exec; mem:LD2[<unknown>(addrspace=5)]
When printing MIR and parsing it again we lose the information of the address
space if there is no IR value attached to the MachinePointerInfo.
Example: test/CodeGen/AMDGPU/extload-align.ll
We print:
%15:vgpr_32 = BUFFER_LOAD_SSHORT_OFFEN %18, %sgpr96_sgpr97_sgpr98_sgpr99,
%sgpr3, 0, 0, 0, 0, implicit %exec :: (load 2)
Note the ":: (load 2)" which is missing the addrspace 5.
When we parse it back, the addrspace is assumed to be 0.</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>