Lines Matching refs:ConstantInt
972 auto *Op = dyn_cast<ConstantInt>(GEP->getOperand(i));
1297 B = ConstantInt::get(B->getType(), 1);
1299 B = ConstantInt::get(B->getType(), -1);
1363 B = ConstantInt::get(B->getType(), 1);
1601 if (!isa<ConstantInt>(AndI->getOperand(0)) &&
1602 !isa<ConstantInt>(AndI->getOperand(1)) &&
1613 auto *CmpC = dyn_cast<ConstantInt>(User->getOperand(1));
1665 !isa<ConstantInt>(User->getOperand(1)))
1668 const APInt &Cimm = cast<ConstantInt>(User->getOperand(1))->getValue();
1678 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
1767 static bool OptimizeExtractBits(BinaryOperator *ShiftI, ConstantInt *CI,
2026 Constant *RetVal = ConstantInt::getTrue(II->getContext());
2084 auto *One = ConstantInt::getSigned(II->getType(), 1);
2356 return ConstantInt::get(IntPtrTy, BaseOffs);
3730 ConstantInt *CI = nullptr; Value *AddLHS = nullptr;
3774 return isa<ConstantInt>(I->getOperand(1));
3969 const ConstantInt *Cst = dyn_cast<ConstantInt>(Inst->getOperand(1));
3993 const auto *Cst = dyn_cast<ConstantInt>(AndInst->getOperand(1));
4174 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) {
4179 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal));
4335 ConstantInt *RHS = dyn_cast<ConstantInt>(AddrInst->getOperand(1));
4356 cast<ConstantInt>(AddrInst->getOperand(i))->getZExtValue();
4365 if (ConstantInt *CI =
4366 dyn_cast<ConstantInt>(AddrInst->getOperand(i))) {
4534 if (ConstantInt *CI = dyn_cast<ConstantInt>(Addr)) {
5103 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale),
5113 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs);
5199 V = Builder.CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale),
5218 Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs);
5308 auto *CI = dyn_cast_or_null<ConstantInt>(C);
5318 auto *C = dyn_cast<ConstantInt>(V);
5703 Value *BaseIndex = ConstantInt::get(IntPtrTy, BaseOffset);
5719 Value *Index = ConstantInt::get(IntPtrTy, Offset - BaseOffset);
6218 auto *AndC = dyn_cast<ConstantInt>(I->getOperand(1));
6232 auto *ShlC = dyn_cast<ConstantInt>(I->getOperand(1));
6279 Builder.CreateAnd(Load, ConstantInt::get(Ctx, DemandBits)));
6293 if (cast<ConstantInt>(And->getOperand(1))->getValue() == DemandBits) {
6754 Case.setValue(ConstantInt::get(Context, WideConst));
6848 unsigned Index = isa<ConstantInt>(ValIdx)
6849 ? cast<ConstantInt>(ValIdx)->getZExtValue()
6879 bool IsArg0Constant = isa<UndefValue>(Arg0) || isa<ConstantInt>(Arg0) ||
6913 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx))
6991 if (!isa<ConstantInt>(Val) && !isa<UndefValue>(Val) &&
7069 else if (isa<UndefValue>(Val) || isa<ConstantInt>(Val) ||
7253 ConstantInt::get(Type::getInt32Ty(SI.getContext()), 1));
7277 isa<ConstantInt>(GEP->getOperand(1));
7347 ConstantInt *GEPIIdx = cast<ConstantInt>(GEPI->getOperand(1));
7396 cast<ConstantInt>(UGEPI->getOperand(1))->getType())
7398 ConstantInt *UGEPIIdx = cast<ConstantInt>(UGEPI->getOperand(1));
7409 ConstantInt *UGEPIIdx = cast<ConstantInt>(UGEPI->getOperand(1));
7420 ConstantInt *UGEPIIdx = cast<ConstantInt>(UGEPI->getOperand(1));
7422 ConstantInt::get(GEPIIdx->getType(),
7529 ConstantInt *CI = dyn_cast<ConstantInt>(BinOp->getOperand(1));
7564 bool Const0 = isa<ConstantInt>(Op0) || isa<ConstantFP>(Op0) ||
7566 bool Const1 = isa<ConstantInt>(Op1) || isa<ConstantFP>(Op1) ||