Displaying 3 results from an estimated 3 matches for "brinst".
Did you mean:
br_inst
2010 Jun 04
5
[LLVMdev] Inserting a function call into bitcode
...fe;
fi++)
{
BasicBlock::iterator bi = fi->end();
bi--; // Getting the terminator/last
instruction of BasicBlock
if(isa<BranchInst>(bi))
{
BranchInst *brInst = cast<BranchInst>(bi);
// We are interested in conditional branch only
if(brInst->isUnconditional()) continue;
Value *condRes = brInst->getCondition();
errs()<<"Type:"<<condRes->...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...ion
>
> for(Function::iterator fi = mi->begin(), fe = mi->end(); fi!=fe; fi++)
>
> {
>
> BasicBlock::iterator bi = fi->end();
>
> bi--; // Getting the terminator/last instruction of BasicBlock
>
> if(isa<BranchInst>(bi))
>
> {
>
> BranchInst *brInst = cast<BranchInst>(bi);
>
> // We are interested in conditional branch only
>
> if(brInst->isUnconditional()) continue;
>
> Value *condRes = brInst->getCondition();
>
> errs()<<"Type:"<<condRes->getType()->getDescription()<<"...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...sicBlock::iterator bi = fi->end();
>
> bi--; // Getting the terminator/last
> instruction of BasicBlock
>
>
>
> if(isa<BranchInst>(bi))
>
> {
>
> BranchInst *brInst = cast<BranchInst>(bi);
>
>
>
> // We are interested in conditional branch only
>
> if(brInst->isUnconditional()) continue;
>
>
>
> Value *condRes = brInst->getCondition();
>
>
&g...