search for: jmpif

Displaying 4 results from an estimated 4 matches for "jmpif".

2006 Jul 14
4
[LLVMdev] LLVM bytecode simulator/emulator?
...l of abstraction. The documentation on the BasicBlock pass mentions not to keep state over different basic blocks, but I do want that. Also, I need a way to iterate over the _dynamic_ instruction stream. Is there a way to do that? Example static vs dynamic: static: L: add x, y sub y, z jmpif z>100 mul x, z dynamic: add x, y sub y, z jmpif z>100 add x, y sub y, z jmpif z>100 ... jmpif z>100 mul x, z If my problem still isn't clear, it's because I didn't explain it well. Feel free to ask further questions. I'll look into the documentation/examples tod...
2006 Jul 13
0
[LLVMdev] LLVM bytecode simulator/emulator?
On Thu, 13 Jul 2006, Kenneth Hoste wrote: > After browsing through the docs, at a first glance I think I should write a > plugin for the 'analyze' tool. I think > http://llvm.org/docs/WritingAnLLVMPass.html is where I should start from. > The only problem I see now is that there doesn't seem to be a way to get > information on a single instruction while being able to
2006 Jul 13
2
[LLVMdev] LLVM bytecode simulator/emulator?
Chris Lattner wrote: > On Thu, 13 Jul 2006, Kenneth Hoste wrote: >> Chris Lattner wrote: >>> Hacking on the interpreter is easy, but has several drawbacks. In >>> particular, the interpreter is very slow (even compared to other >>> interpreters) and it is missing functionality: you cannot call >>> arbitrary external functions, which causes many
2006 Jul 14
0
[LLVMdev] LLVM bytecode simulator/emulator?
...iven an entire Module (i.e. an entire LLVM bytecode file). Your pass can add a global counter variable and then iterate over every instruction in the Module, instrumenting it as needed. -- John T. > > Example static vs dynamic: > > static: > L: add x, y > sub y, z > jmpif z>100 > mul x, z > > dynamic: > add x, y > sub y, z > jmpif z>100 > add x, y > sub y, z > jmpif z>100 > ... > jmpif z>100 > mul x, z > > > If my problem still isn't clear, it's because I didn't explain it > well. Feel free...