<font size=2 face="sans-serif">Hello all,</font>
<br>
<br><font size=2 face="sans-serif">I've managed to trace an awkward bug
down to the MSVC linker incorrectly merging llvm::OperandInfo constants
between various backend targets I was linking in to my compiler executable.
The bug manifested itself by replacing the operand data structures for
target A with the data structures for target B.</font>
<br><font size=2 face="sans-serif">I have managed to work around this issue
by moving the operand definitions from the llvm namespace to a sub-target
namespace (i.e. llvm::OperandInfo5 -> llvm::X86::OperandInfo5)</font>
<br>
<br><font size=2 face="sans-serif">My work around changes the InstrInfoEmitter::run()
function in TableGen/InstrInfoEmitter.cpp . A patch (from llvm 3.0 - it
doesn't appear much has changed) can be found here: </font><a href=http://pastebin.com/pHmu1V63><font size=3 color=blue><u>http://pastebin.com/pHmu1V63</u></font></a><font size=3>
</font>
<br><font size=2 face="sans-serif">The whole modified function can be found
here: </font><a href=http://pastebin.com/GN4Hh7BC><font size=3 color=blue><u>http://pastebin.com/GN4Hh7BC</u></font></a><font size=3>
</font>
<br>
<br><font size=2 face="sans-serif">This is a simple scoping change, there
should be no change in application behaviour.</font>
<br>
<br><font size=2 face="sans-serif">This is the first time I've made any
patches to llvm - please let me know if you'd like any more information.</font>
<br>
<br><font size=2 face="sans-serif">Kind regards,</font>
<br><font size=2 face="sans-serif"><br>
James Clayton<br>
Sony Computer Entertainment Europe Limited<br>
</font><font size=2 color=blue face="sans-serif"><u><br>
</u></font><a href></a><font size=2 face="Arial"><br>
**********************************************************************<br>
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify postmaster@scee.net<br>
This footnote also confirms that this email message has been checked for
all known viruses.<br>
Sony Computer Entertainment Europe Limited<br>
Registered Office: 10 Great Marlborough Street, London W1F 7LP, United
Kingdom<br>
Registered in England: 3277793<br>
**********************************************************************<br>
</font><font size=5 color=#008000 face="Webdings"><br>
P</font><font size=2 color=#008000 face="Arial"><b><i> Please consider
the environment before printing this e-mail</i></b></font>