Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ConstantInt

67     MI->setAlignment(ConstantInt::get(MI->getAlignmentType(),
74 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getArgOperand(2));
122 isa<ConstantInt>(M->getOperand(0)) &&
123 cast<ConstantInt>(M->getOperand(0))->isNullValue() &&
125 isa<ConstantInt>(M->getOperand(1)) &&
126 cast<ConstantInt>(M->getOperand(1))->getValue() == Size &&
159 MI->setAlignment(ConstantInt::get(MI->getAlignmentType(),
165 ConstantInt *LenC = dyn_cast<ConstantInt>(MI->getLength());
166 ConstantInt *FillC = dyn_cast<ConstantInt>(MI->getValue());
187 StoreInst *S = Builder->CreateStore(ConstantInt::get(ITy, Fill), Dest,
228 if (ConstantInt *CI = dyn_cast<ConstantInt>(NumBytes))
280 return ReplaceInstUsesWith(CI, ConstantInt::get(CI.getType(), Size));
295 Value *CV = ConstantInt::get(X->getType(), C);
303 if (ConstantInt *Power = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
329 return ReplaceInstUsesWith(CI, ConstantInt::get(IT,
347 return ReplaceInstUsesWith(CI, ConstantInt::get(IT,
375 ConstantInt::getTrue(II->getContext())
389 ConstantInt::getFalse(II->getContext())
412 if (ConstantInt *RHS = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
417 ConstantInt::getFalse(II->getContext())
448 if (ConstantInt *RHS = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
453 ConstantInt::getFalse(II->getContext())
504 if (ConstantInt *RHSI = dyn_cast<ConstantInt>(II->getArgOperand(1))) {
513 ConstantInt::getFalse(II->getContext())
604 auto CInt = dyn_cast<ConstantInt>(II->getArgOperand(1));
607 ConstantInt *Count;
609 Count = cast<ConstantInt>(CDV->getElementAsConstant(0));
639 auto VTCI = ConstantInt::get(VT->getElementType(), Count->getZExtValue());
673 if (auto CIWidth = dyn_cast<ConstantInt>(II->getArgOperand(2))) {
674 if (auto CIStart = dyn_cast<ConstantInt>(II->getArgOperand(3))) {
693 dyn_cast<ConstantInt>(Source->getArgOperand(2));
695 dyn_cast<ConstantInt>(Source->getArgOperand(3));
716 Constant *ConstantWidth = ConstantInt::get(
718 Constant *ConstantStart = ConstantInt::get(
766 Selectors.push_back(ConstantInt::get(Tyi1, Selector >> (BitWidth - 1)));
831 if (!Elt || !(isa<ConstantInt>(Elt) || isa<UndefValue>(Elt))) {
853 cast<ConstantInt>(Mask->getAggregateElement(i))->getZExtValue();
891 ConstantInt *IntrAlign = dyn_cast<ConstantInt>(II->getArgOperand(AlignArg));
894 ConstantInt::get(Type::getInt32Ty(II->getContext()),
931 if (ConstantInt *Splat =
932 dyn_cast_or_null<ConstantInt>(CV1->getSplatValue()))
1147 new StoreInst(ConstantInt::getTrue(Callee->getContext()),
1179 new StoreInst(ConstantInt::getTrue(Callee->getContext()),