search for: addpoolcheck

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

Did you mean: addpoolchecks
2011 Jan 23
1
[LLVMdev] Pointers in Load and Store
...(as it may or may not work) (2) Create a new pass named "unGep", "Breaks Constant GEPs" (3) The new pass derives from FunctionPass (because safecode does so, if I had to write it, ModulePass would have been good enough.) (4) The RunOnFunction method of the unGep pass invokes addPoolChecks(F) passing it the function F. I will modify addGetElementPtrChecks so that it produces array bounds in the way I need. (I need a check that array bounds are being voilated for my reaserch to detect overflows.) I will then run opt as opt -load../unGep.so to produce llvm code without geps as ope...
2011 Jan 22
0
[LLVMdev] Pointers in Load and Store
On 1/21/2011 10:46 PM, Surinder wrote: > John, > > I have looked at the SAFECode and thought following sould work > > if (isa<Constant>(I.getOperand(0))) > { Out<< "*** operand 0 is a constant ******"; > if (Instruction *operandI = dyn_cast<Instruction>(I.getOperand(0))) > { Out<<
2011 Jan 22
2
[LLVMdev] Pointers in Load and Store
John, I have looked at the SAFECode and thought following sould work if (isa<Constant>(I.getOperand(0))) { Out << "*** operand 0 is a constant ******"; if (Instruction *operandI = dyn_cast<Instruction>(I.getOperand(0))) { Out << "********operand is an instruction ****"; if (GetElementPtrInst *gepI =