Displaying 5 results from an estimated 5 matches for "br_inst".
2004 Aug 17
5
[LLVMdev] JIT API example (fibonacci)
...bb->getInstList().push_back(Add);
> >
> > // Create the return instruction and add it to the basic block
> > exit_bb->getInstList().push_back(new ReturnInst(Add));
> > }
> >
> > // Create a branch on the SetCond
> > BranchInst* br_inst =
> > new BranchInst( true_bb, exit_bb, CondInst );
> >
> > BB->getInstList().push_back( br_inst );
> > FibF->getBasicBlockList().push_back(true_bb);
> > FibF->getBasicBlockList().push_back(exit_bb);
> > }
> >
> > // Now...
2004 Aug 17
0
[LLVMdev] JIT API example (fibonacci)
...k...
> exit_bb->getInstList().push_back(Add);
>
> // Create the return instruction and add it to the basic block
> exit_bb->getInstList().push_back(new ReturnInst(Add));
> }
>
> // Create a branch on the SetCond
> BranchInst* br_inst =
> new BranchInst( true_bb, exit_bb, CondInst );
>
> BB->getInstList().push_back( br_inst );
> FibF->getBasicBlockList().push_back(true_bb);
> FibF->getBasicBlockList().push_back(exit_bb);
> }
>
> // Now we going to create JIT
> Exist...
2004 Aug 17
0
[LLVMdev] JIT API example (fibonacci)
...st().push_back(Add);
>>>
>>> // Create the return instruction and add it to the basic block
>>> exit_bb->getInstList().push_back(new ReturnInst(Add));
>>> }
>>>
>>> // Create a branch on the SetCond
>>> BranchInst* br_inst =
>>> new BranchInst( true_bb, exit_bb, CondInst );
>>>
>>> BB->getInstList().push_back( br_inst );
>>> FibF->getBasicBlockList().push_back(true_bb);
>>> FibF->getBasicBlockList().push_back(exit_bb);
>>> }
>>>
&g...
2004 Aug 18
1
[LLVMdev] JIT API example (fibonacci)
...gt;
> >>> // Create the return instruction and add it to the basic block
> >>> exit_bb->getInstList().push_back(new ReturnInst(Add));
> >>> }
> >>>
> >>> // Create a branch on the SetCond
> >>> BranchInst* br_inst =
> >>> new BranchInst( true_bb, exit_bb, CondInst );
> >>>
> >>> BB->getInstList().push_back( br_inst );
> >>> FibF->getBasicBlockList().push_back(true_bb);
> >>> FibF->getBasicBlockList().push_back(exit_bb);
> &...
2004 Aug 17
4
[LLVMdev] JIT API example (fibonacci)
Hi LLVMers,
the example attached I have used to prove that JIT and some visible
optimizations are really invoked.
Proved OK. I got 30% speed-up in comparison to gcc 3.3.3
on my Athlon XP 1500.
Nice.
P.S. guys, no fears, I don't plan to flood the cvs repository
with my "brilliant" examples ;)
---
Valery A.Khamenya
-------------- next part --------------
An