Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:PtrToInt

1589         // Canonicalize (gep i8* X, -(ptrtoint Y))
1590 // to (inttoptr (sub (ptrtoint X), (ptrtoint Y)))
1595 Value *PtrToInt = Builder->CreatePtrToInt(PtrOp, Index->getType());
1596 Value *NewSub = Builder->CreateSub(PtrToInt, Index->getOperand(1));
1599 // Canonicalize (gep i8* X, (ptrtoint Y)-(ptrtoint X))