[LLVMdev] Re: questions about LLVM

Reid Spencer reid at x10sys.com
Wed Nov 17 14:28:40 PST 2004


On Wed, 2004-11-17 at 14:14, Dinakar Dhurjati wrote:
> >I have a few questions about LLVM:
> >(1) The LLVM tutorial says LLVM can be used in architecture research. If 
> >I want to run my program on an instruction set defined by myself, is LLVM 
> >a right tool to do that? 
> >
> I don't think so.

Actually, I think that's an entirely reasonable thing to do. We are
currently planning to have a virtual instruction set that the
interpreter uses. See http://llvm.x10sys.com/rspencer/index.html#lli for
more on that.  In any event, it would be possible (perhaps not easy) to
create a backend for your own instruction set. The target description
language is pretty easy to use. You might want to look here:
http://llvm.cs.uiuc.edu/docs/WritingAnLLVMBackend.html
for information on writing your own back end.

Reid.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041117/9ee18197/attachment.sig>


More information about the llvm-dev mailing list