2009/6/30 zhunan <span dir="ltr"><<a href="mailto:zhunansjtu@gmail.com">zhunansjtu@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Where may I find the binary encode of llvm's ISA?<br>
I would like to load the instructions from llvm bitcode file and<br>
translate it to another kind of ISA dinamically,but I searched all docs<br>
in <a href="http://llvm.org" target="_blank">llvm.org</a>,nothing has been found ,can anyone help me?</blockquote><div><br></div><div>You can find the code that reads and writes LLVM bitcode in llvm/lib/Bitcode/{Reader,Writer}/ .</div>
<div><br></div><div>However, why not just use LLVM's own libraries to parse the binary bitcode and then convert to your representation, rather than re-writing the binary parsing from scratch yourself? </div></div>