[LLVMdev] BranchInst comparison

Rasha Omar rasha.sala7 at gmail.com
Wed Aug 14 11:57:09 PDT 2013


or like this

 %cmp4 = icmp eq i32 %rem, 0
  br i1 %cmp4, label %if.then5, label %if.else7


On 14 August 2013 20:08, Rasha Omar <rasha.sala7 at gmail.com> wrote:

> Hi All,
>
> How could I use BranchInst to implement for example
>  br label %if.else7
>   br label %if.then5
>   br i1 %cmp4, label %if.then5, label %if.else7
>
> I can use BranchInst for only one instruction but how could I compare
> between two branches
>
> 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.*
>
>


-- 
*     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/20130814/fd6458af/attachment.html>


More information about the llvm-dev mailing list