Hi, Is changing the successors for each basic blocks means by default that the Terminator Instruction will be changed or this is another problem should be solved? If case 2 please tell me how to change it according to the new successors? Thanks -- * Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computers and Informatics Benha University* * e-mail: rasha.omar at ejust.edu.eg* P* Please consider the environment before printing this email.* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130812/5bd8d912/attachment.html>
Hi Rasha,> Is changing the successors for each basic blocks means by default that the > Terminator Instruction will be changed or this is another problem should be > solved?I think the only way you *can* change a basic block's successors is by changing its terminator instruction, so "by default" is the closest answer. Though you should make sure your basic block only has one terminator afterwards, otherwise the IR is invalid. I'm sure LLVM will complain at you if you forget that though. Cheers. Tim.
Thank you Tim i solved the problem On 12 August 2013 11:02, Tim Northover <t.p.northover at gmail.com> wrote:> Hi Rasha, > > > Is changing the successors for each basic blocks means by default that > the > > Terminator Instruction will be changed or this is another problem should > be > > solved? > > I think the only way you *can* change a basic block's successors is by > changing its terminator instruction, so "by default" is the closest > answer. Though you should make sure your basic block only has one > terminator afterwards, otherwise the IR is invalid. I'm sure LLVM will > complain at you if you forget that though. > > Cheers. > > Tim. >-- * Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computers and Informatics Benha University* * e-mail: rasha.omar at ejust.edu.eg* P* Please consider the environment before printing this email.* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130812/a1e822d0/attachment.html>