Displaying 3 results from an estimated 3 matches for "iterate_convert".
2007 Dec 05
3
[LLVMdev] Inserting Instructions After Instructions
Dear All,
Given a pointer to an instruction, what is the easiest way to insert one
or more new instructions after that instructions? We used to find the
next instruction using Instruction::getNext(), but this method seems to
have been made private now.
-- John T.
2007 Dec 05
0
[LLVMdev] Inserting Instructions After Instructions
...used to find the
> next instruction using Instruction::getNext(), but this method seems to
> have been made private now.
LLVM Builder is the easiest way to create/insert instructions.
Or you turn the instruction pointer to an iterator and advance:
http://llvm.org/docs/ProgrammersManual.html#iterate_convert
-Tanya
>
> -- John T.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
2010 Mar 26
2
[LLVMdev] Why is BasicBlock's copy constructor private?
On Mar 25, 2010, at 5:23 PM, me22 wrote:
> Given that LLVM is already managing the memory and presumably will do
> so for the life of your graph processing, could you just use a
> boost::directed_graph<llvm::BasicBlock*> instead?
Yeah, that was one of the first things I tried:
for (Function::iterator i = function.begin(), e = function.end(); i !=
e; ++i) {
BasicBlock