search for: condr

Displaying 3 results from an estimated 3 matches for "condr".

Did you mean: cond
2010 Jun 04
5
[LLVMdev] Inserting a function call into bitcode
...<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()<<"\n"; // Looking for a function in Module Symbol table Constant *PrintFn = M.getOrInsertFunction("_Z12PrintC...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...--; // 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()<<"\n"; > > // Looking for a function in Module Symbol table > > Constant *PrintFn = M.getOrInsertFunction("_Z12PrintCondResb", > Type::...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...; >                         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()<<"\n"; > > > >                        // Looking for a function in Module Symbol > table > >                         Constant *PrintFn...