<div>I'm trying to fix the handling of multiple alternate constraints in Clang (see <a href="http://gcc.gnu.org/onlinedocs/gcc/Multi_002dAlternative.html#Multi_002dAlternative">http://gcc.gnu.org/onlinedocs/gcc/Multi_002dAlternative.html#Multi_002dAlternative</a>).</div>
<div> </div>
<div>How should the constraints be represented in the .ll file?</div>
<div> </div>
<div>Clang currently will assert because the code generator sees a constraints string with the wrong number of comma-separated items.</div>
<div> </div>
<div>Basically, after some editing, it just concatenates them together. The commas used in the string for a multiple alternative constraint gets confused with the commas separating the constraints.</div>
<div> </div>
<div>Briefly looking at the LLVM asm parser, I can't really see anything that tells me multiple alternative constraints are supported.</div>
<div> </div>
<div>But if they are, please tell me the string format, and perhaps update the docs to show this.</div>
<div> </div>
<div>If they are not yet supported in LLVM, what should I do?</div>
<div> </div>
<div>-John<br clear="all"><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br></div>