Lines Matching refs:ConstantInt
92 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNullValue()
109 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isAllOnesValue()
126 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isOneValue()
143 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotOneValue()
171 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isMinSignedValue()
188 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotMinSignedValue()
373 return ConstantInt::get(Ty, 0); in getNullValue()
404 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
419 return ConstantInt::get(Ty->getContext(), in getAllOnesValue()
463 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) { in getAggregateElement()
515 delete static_cast<ConstantInt *>(C); in deleteConstant()
843 ConstantInt::ConstantInt(Type *Ty, const APInt &V) in ConstantInt() function in ConstantInt
850 ConstantInt *ConstantInt::getTrue(LLVMContext &Context) { in getTrue()
853 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1); in getTrue()
857 ConstantInt *ConstantInt::getFalse(LLVMContext &Context) { in getFalse()
860 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0); in getFalse()
864 ConstantInt *ConstantInt::getBool(LLVMContext &Context, bool V) { in getBool()
868 Constant *ConstantInt::getTrue(Type *Ty) { in getTrue()
870 ConstantInt *TrueC = ConstantInt::getTrue(Ty->getContext()); in getTrue()
876 Constant *ConstantInt::getFalse(Type *Ty) { in getFalse()
878 ConstantInt *FalseC = ConstantInt::getFalse(Ty->getContext()); in getFalse()
884 Constant *ConstantInt::getBool(Type *Ty, bool V) { in getBool()
889 ConstantInt *ConstantInt::get(LLVMContext &Context, const APInt &V) { in get()
892 std::unique_ptr<ConstantInt> &Slot = in get()
899 Slot.reset(new ConstantInt(ITy, V)); in get()
906 ConstantInt *ConstantInt::get(LLVMContext &Context, ElementCount EC, in get()
909 std::unique_ptr<ConstantInt> &Slot = in get()
914 Slot.reset(new ConstantInt(VTy, V)); in get()
925 Constant *ConstantInt::get(Type *Ty, uint64_t V, bool isSigned) { in get()
935 ConstantInt *ConstantInt::get(IntegerType *Ty, uint64_t V, bool isSigned) { in get()
939 Constant *ConstantInt::get(Type *Ty, const APInt& V) { in get()
940 ConstantInt *C = get(Ty->getContext(), V); in get()
951 ConstantInt *ConstantInt::get(IntegerType* Ty, StringRef Str, uint8_t radix) { in get()
956 void ConstantInt::destroyConstantImpl() { in destroyConstantImpl()
1126 return getStructElement(cast<ConstantInt>(C)->getZExtValue()); in getElementValue()
1161 return getStructElement(cast<ConstantInt>(C)->getZExtValue()); in getElementValue()
1196 return getStructElement(cast<ConstantInt>(C)->getZExtValue()); in getElementValue()
1223 if (auto *CI = dyn_cast<ConstantInt>(C)) in getIntSequenceIfElementsMatch()
1249 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in getSequenceIfElementsMatch()
1417 bool isSplatInt = UseConstantIntForFixedLengthSplat && isa<ConstantInt>(C); in getImpl()
1437 return ConstantInt::get(C->getContext(), T->getElementCount(), in getImpl()
1438 cast<ConstantInt>(C)->getValue()); in getImpl()
1454 if (UseConstantIntForFixedLengthSplat && isa<ConstantInt>(V)) in getSplat()
1455 return ConstantInt::get(V->getContext(), EC, in getSplat()
1456 cast<ConstantInt>(V)->getValue()); in getSplat()
1464 if ((isa<ConstantFP>(V) || isa<ConstantInt>(V)) && in getSplat()
1474 if (UseConstantIntForScalableSplat && isa<ConstantInt>(V)) in getSplat()
1475 return ConstantInt::get(V->getContext(), EC, in getSplat()
1476 cast<ConstantInt>(V)->getValue()); in getSplat()
1493 V = ConstantExpr::getInsertElement(PoisonV, V, ConstantInt::get(IdxTy, 0)); in getSplat()
1575 bool ConstantInt::isValueValidForType(Type *Ty, uint64_t Val) { in isValueValidForType()
1582 bool ConstantInt::isValueValidForType(Type *Ty, int64_t Val) { in isValueValidForType()
1707 ConstantInt *Index = dyn_cast<ConstantInt>(IElt->getOperand(2)); in getSplatValue()
1746 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in getUniqueInteger()
1750 return cast<ConstantInt>(this->getSplatValue())->getValue(); in getUniqueInteger()
1755 assert(C && isa<ConstantInt>(C) && "Not a vector of numbers!"); in getUniqueInteger()
1756 return cast<ConstantInt>(C)->getValue(); in getUniqueInteger()
1760 if (auto *CI = dyn_cast<ConstantInt>(this)) in toConstantRange()
1767 if (auto *CI = dyn_cast_or_null<ConstantInt>( in toConstantRange()
1786 auto *CI = dyn_cast<ConstantInt>(Elem); in toConstantRange()
2046 ConstantPtrAuth *ConstantPtrAuth::get(Constant *Ptr, ConstantInt *Key, in get()
2047 ConstantInt *Disc, Constant *AddrDisc) { in get()
2058 ConstantPtrAuth::ConstantPtrAuth(Constant *Ptr, ConstantInt *Key, in ConstantPtrAuth()
2059 ConstantInt *Disc, Constant *AddrDisc) in ConstantPtrAuth()
2445 Constant *GEPIdx = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1); in getSizeOf()
2458 Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0); in getAlignOf()
2459 Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1); in getAlignOf()
2590 return getSub(ConstantInt::get(C->getType(), 0), C, /*HasNUW=*/false, HasNSW); in getNeg()
2628 return ConstantInt::get(Ty, IVal->logBase2()); in getExactLogBase2()
2647 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2())); in getExactLogBase2()
2665 return ConstantInt::get(Ty, 1); in getBinOpIdentity()
2690 return ConstantInt::get(Ty, 1); in getBinOpIdentity()
3018 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in getSplat()
3152 return ConstantInt::get(getElementType(), getElementAsInteger(Elt)); in getElementAsConstant()