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

Lines Matching refs:ConstantInt

88   if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
103 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
129 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
155 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
179 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
205 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
331 return ConstantInt::get(Ty, 0);
373 Constant *C = ConstantInt::get(Ty->getContext(), V);
388 return ConstantInt::get(Ty->getContext(),
420 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) {
472 delete static_cast<ConstantInt *>(C);
561 if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue())
734 // ConstantInt
737 ConstantInt::ConstantInt(IntegerType *Ty, const APInt &V)
742 ConstantInt *ConstantInt::getTrue(LLVMContext &Context) {
745 pImpl->TheTrueVal = ConstantInt::get(Type::getInt1Ty(Context), 1);
749 ConstantInt *ConstantInt::getFalse(LLVMContext &Context) {
752 pImpl->TheFalseVal = ConstantInt::get(Type::getInt1Ty(Context), 0);
756 Constant *ConstantInt::getTrue(Type *Ty) {
758 ConstantInt *TrueC = ConstantInt::getTrue(Ty->getContext());
764 Constant *ConstantInt::getFalse(Type *Ty) {
766 ConstantInt *FalseC = ConstantInt::getFalse(Ty->getContext());
772 // Get a ConstantInt from an APInt.
773 ConstantInt *ConstantInt::get(LLVMContext &Context, const APInt &V) {
776 std::unique_ptr<ConstantInt> &Slot = pImpl->IntConstants[V];
780 Slot.reset(new ConstantInt(ITy, V));
786 Constant *ConstantInt::get(Type *Ty, uint64_t V, bool isSigned) {
796 ConstantInt *ConstantInt::get(IntegerType *Ty, uint64_t V, bool isSigned) {
800 ConstantInt *ConstantInt::getSigned(IntegerType *Ty, int64_t V) {
804 Constant *ConstantInt::getSigned(Type *Ty, int64_t V) {
808 Constant *ConstantInt::get(Type *Ty, const APInt& V) {
809 ConstantInt *C = get(Ty->getContext(), V);
811 "ConstantInt type doesn't match the type implied by its value!");
820 ConstantInt *ConstantInt::get(IntegerType* Ty, StringRef Str, uint8_t radix) {
825 void ConstantInt::destroyConstantImpl() {
826 llvm_unreachable("You can't ConstantInt->destroyConstantImpl()!");
1018 return getStructElement(cast<ConstantInt>(C)->getZExtValue());
1053 return getStructElement(cast<ConstantInt>(C)->getZExtValue());
1089 if (auto *CI = dyn_cast<ConstantInt>(C))
1115 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) {
1184 // Check to see if all of the elements are ConstantFP or ConstantInt and if
1284 // Check to see if all of the elements are ConstantFP or ConstantInt and if
1298 if ((isa<ConstantFP>(V) || isa<ConstantInt>(V)) &&
1317 V = ConstantExpr::getInsertElement(UndefV, V, ConstantInt::get(I32Ty, 0));
1358 auto *CI = dyn_cast<ConstantInt>(*OI);
1469 bool ConstantInt::isValueValidForType(Type *Ty, uint64_t Val) {
1476 bool ConstantInt::isValueValidForType(Type *Ty, int64_t Val) {
1601 ConstantInt *Index = dyn_cast<ConstantInt>(IElt->getOperand(2));
1640 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this))
1644 assert(C && isa<ConstantInt>(C) && "Not a vector of numbers!");
1645 return cast<ConstantInt>(C)->getValue();
2151 Constant *GEPIdx = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1);
2163 Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0);
2164 Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1);
2172 return getOffsetOf(STy, ConstantInt::get(Type::getInt32Ty(STy->getContext()),
2180 ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0),
2581 return ConstantInt::get(Ty, 1);
2607 return ConstantInt::get(Ty, 1);
2901 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
3035 return ConstantInt::get(getElementType(), getElementAsInteger(Elt));