• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/

Lines Matching refs:ConstantInt

86     auto *ElementCI = dyn_cast_or_null<ConstantInt>(Element);
133 return ConstantInt::get(DestTy, Result);
147 if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) {
224 Src = dyn_cast_or_null<ConstantInt>(Src);
233 ConstantInt::get(Src->getType(), ShiftAmt));
261 auto *Src = dyn_cast<ConstantInt>(Element);
270 ConstantInt::get(Src->getType(), ShiftAmt));
413 if (auto *CI = dyn_cast<ConstantInt>(C)) {
634 return ConstantInt::get(IntType->getContext(), ResultVal);
711 Constant *Res = ConstantInt::get(CE->getContext(), StrVal);
770 return ConstantInt::get(Op0->getType(), Known0.getConstant());
786 return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) -
874 if (!isa<ConstantInt>(Ops[i])) {
911 if (!isa<ConstantInt>(NestedOp)) {
929 if (auto *Base = dyn_cast<ConstantInt>(CE->getOperand(0)))
937 Constant *C = ConstantInt::get(Ptr->getContext(), Offset + BasePtr);
973 NewIdxs.push_back(ConstantInt::get(IntIdxTy, 0));
982 NewIdxs.push_back(ConstantInt::get(IntIdxTy, NewIdx));
998 NewIdxs.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()),
1344 ConstantInt::get(CE->getContext(),
1684 ConstantInt *CI = dyn_cast<ConstantInt>(Op->getAggregateElement(0U));
1690 if (!(CI = dyn_cast<ConstantInt>(Op->getAggregateElement(I))))
1724 return ConstantInt::get(Op->getContext(), Acc);
1751 return ConstantInt::get(Ty, UIntVal, IsSigned);
1783 if (auto *CI = dyn_cast<ConstantInt>(Op)) {
1807 return ConstantInt::getTrue(Ty->getContext());
1848 return ConstantInt::get(Ty->getContext(), Val.bitcastToAPInt());
2159 if (auto *Op = dyn_cast<ConstantInt>(Operands[0])) {
2162 return ConstantInt::get(Ty->getContext(), Op->getValue().byteSwap());
2164 return ConstantInt::get(Ty, Op->getValue().countPopulation());
2166 return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits());
2198 return ConstantInt::get(Ty, 0);
2347 } else if (auto *Op2C = dyn_cast<ConstantInt>(Operands[1])) {
2429 ConstantInt::get(Ty->getContext(), Res),
2430 ConstantInt::get(Type::getInt1Ty(Ty->getContext()), Overflow)
2441 return ConstantInt::get(Ty, C0->uadd_sat(*C1));
2443 return ConstantInt::get(Ty, C0->sadd_sat(*C1));
2451 return ConstantInt::get(Ty, C0->usub_sat(*C1));
2453 return ConstantInt::get(Ty, C0->ssub_sat(*C1));
2464 return ConstantInt::get(Ty, C0->countTrailingZeros());
2466 return ConstantInt::get(Ty, C0->countLeadingZeros());
2477 isa<ConstantInt>(Operands[1]) &&
2478 cast<ConstantInt>(Operands[1])->getValue() == 4) {
2616 if (const auto *Op1 = dyn_cast<ConstantInt>(Operands[0])) {
2617 if (const auto *Op2 = dyn_cast<ConstantInt>(Operands[1])) {
2618 if (const auto *Op3 = dyn_cast<ConstantInt>(Operands[2])) {
2645 return ConstantInt::get(Ty->getContext(),
2677 return ConstantInt::get(Ty, C1->lshr(LshrAmt));
2679 return ConstantInt::get(Ty, C0->shl(ShlAmt));
2680 return ConstantInt::get(Ty, C0->shl(ShlAmt) | C1->lshr(LshrAmt));