Lines Matching refs:ConstantInt

557     if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) {  in CanTraceInto()
561 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
627 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
697 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
699 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
731 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
732 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
748 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
850 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
882 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs()
892 Idx, ConstantInt::get(PtrIndexTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
895 Builder.CreateMul(Idx, ConstantInt::get(PtrIndexTy, ElementSize)); in lowerToSingleIndexGEPs()
907 Value *Offset = ConstantInt::get(PtrIndexTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs()
942 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToArithmetics()
952 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
954 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
965 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset)); in lowerToArithmetics()
1155 NewGEP, ConstantInt::get(PtrIdxTy, AccumulativeByteOffset, true), in splitGEP()
1339 isa<ConstantInt>(FirstOffsetDef->getOperand(1))) in isLegalToSwapOperand()
1348 (isa<ConstantInt>(BO->getOperand(0)) || in isLegalToSwapOperand()
1349 isa<ConstantInt>(BO->getOperand(1)))) in isLegalToSwapOperand()