[LLVMdev] [LLVMDev] [Question] about TerminatorInst

Jeff Kunkel jdkunk3 at gmail.com
Thu Sep 2 09:46:35 PDT 2010


Under what circumstances will a TerminatorInst will have multiple
successors?

The three methods:

  virtual BasicBlock *getSuccessorV(unsigned idx) const = 0;
  virtual unsigned getNumSuccessorsV() const = 0;
  virtual void setSuccessorV(unsigned idx, BasicBlock *B) = 0;

are defined for the TerminatorInst class, but I cannot see why a terminator
is allowed to go to different targets.

Thanks,
Jeff Kunkel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100902/cb47cdd3/attachment.html>


More information about the llvm-dev mailing list