<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 30 July 2015 at 14:52, Daniel Sanders <<a href="mailto:Daniel.Sanders@imgtec.com" target="_blank">Daniel.Sanders@imgtec.com</a>> wrote:<br>
> We will need a string serialization of the TargetTuple so that we can store it in the IR and read it back.<br>
<br>
Why does it have to be in the IR? If every tool that deals with IR has<br>
the same options and they mean the same thing I don't see why we'd<br>
need that.<br>
<br></blockquote><div><br></div><div>I agree with the need for serializing information and options into the module.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> Whether this is in one piece (e.g. 'target tuple = "...") or multiple pieces (e.g. 'target arch = "..."', 'target endian = "..."') doesn't matter too much at first but I can see the benefits of the latter being the end point. If we do choose that multiple pieces then I'd like to pass through the former first to keep the early steps of the migration to a TargetTuple as simple and mechanical as possible.<br>
<br>
Assuming we really need it, wouldn't it work if we put in metadata?<br>
That way, it would bloat the IR of targets that really needed it and<br>
not the ones that don't, at the same time as being non-critical to<br>
parsing and validating the IR, so you could safely drop some<br>
information without breaking the file.<br>
<br></blockquote><div><br></div><div>Metadata won't work. Metadata is defined to not affect code correctness and this obviously does.</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This would allow more flexibility across targets, if they need<br>
different types of storage, and would allow targets that do need the<br>
info to complement the missing info with their own defaults. So we<br>
could reuse old IR with new IR and still make it work.<br>
<br>
cheers,<br>
--renato<br>
</blockquote></div></div>