LLVM stack

Hello Everyone,

Would you please send me any links to documentation on LLVM stack? I am particularly interested in knowing how each instruction in an LLVM bit code file(.ll file) affects its stack. To be specific, is it possible to map an LLVM program as operations on a stack?

Thanks,
Amruth

Would you please send me any links to documentation on LLVM stack? I am particularly interested in knowing how each instruction in an LLVM bit code file(.ll file) affects its stack.

LLVM is not a stack-based virtual machine in the sense that the JVM is;
rather, LLVM is based on registers. In fact, LLVM is not even a virtual
machine in the sense that the JVM is. The "VM" part of "LLVM" used to stand
for "virtual machine", but it doesn't anymore.

Here's the language reference: http://llvm.org/docs/LangRef.html , but you
will not find information on an evaluation stack there because there is no
evaluation stack.

To be specific, is it possible to map an LLVM program as operations on a stack?

You could translate LLVM assembly language into a stack-based language, if
that's what you mean. I don't think there is any existing support for that,
though.