search for: condres

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

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("_Z12PrintCon...
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::ge...
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 =...