<div dir="ltr">Hello,<br><div><br></div><div>This patch depends on the patch D10280 (AsmParser: Add a function to parse a standalone type and value).</div><div><br></div><div>This patch implements initial serialization of the machine constant pool and the constant pool</div><div>index machine operand. T<span style="line-height:normal">he constant pool is serialized by using a YAML sequence of YAML</span></div><div><span style="line-height:normal">mappings that represent the constant values, e.g:</span></div><div><span style="line-height:normal"><br></span></div><div>
<pre style="margin-top:0px;margin-bottom:0px">  constants:</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-<span style="color:rgb(192,192,192)"> </span>id:<span style="color:rgb(192,192,192)">          </span>0</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span>value:<span style="color:rgb(192,192,192)">       </span>'double<span style="color:rgb(192,192,192)"> </span>3.250000e+00'</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span>alignment:<span style="color:rgb(192,192,192)">   </span>8</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-<span style="color:rgb(192,192,192)"> </span>id:<span style="color:rgb(192,192,192)">          </span>1</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span>value:<span style="color:rgb(192,192,192)">       </span>'float<span style="color:rgb(192,192,192)"> </span>6.250000e+00'</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">      </span>alignment:<span style="color:rgb(192,192,192)">   </span>4</pre></div><div><span style="line-height:normal"><br></span></div><div>Target-specific constant pool values aren't serialized by this patch.<span style="line-height:normal"><br></span></div><div><br></div><div>The constant pool index machine operands use the following syntax:</div><div><br></div><div>  %const.<id></div><div><br></div><div>Thanks,</div><div>Alex</div></div>