Lines Matching refs:Constant

42 bool Constant::isNegativeZeroValue() const {  in isNegativeZeroValue()
62 bool Constant::isZeroValue() const { in isZeroValue()
76 bool Constant::isNullValue() const { in isNullValue()
93 bool Constant::isAllOnesValue() const { in isAllOnesValue()
110 bool Constant::isOneValue() const { in isOneValue()
127 bool Constant::isNotOneValue() const { in isNotOneValue()
139 Constant *Elt = getAggregateElement(I); in isNotOneValue()
155 bool Constant::isMinSignedValue() const { in isMinSignedValue()
172 bool Constant::isNotMinSignedValue() const { in isNotMinSignedValue()
184 Constant *Elt = getAggregateElement(I); in isNotMinSignedValue()
200 bool Constant::isFiniteNonZeroFP() const { in isFiniteNonZeroFP()
221 bool Constant::isNormalFP() const { in isNormalFP()
242 bool Constant::hasExactInverseFP() const { in hasExactInverseFP()
263 bool Constant::isNaN() const { in isNaN()
284 bool Constant::isElementWiseEqual(Value *Y) const { in isElementWiseEqual()
291 if (!isa<Constant>(Y) || !VTy || VTy != Y->getType()) in isElementWiseEqual()
302 Constant *C0 = ConstantExpr::getBitCast(const_cast<Constant *>(this), IntTy); in isElementWiseEqual()
303 Constant *C1 = ConstantExpr::getBitCast(cast<Constant>(Y), IntTy); in isElementWiseEqual()
304 Constant *CmpEq = ConstantExpr::getICmp(ICmpInst::ICMP_EQ, C0, C1); in isElementWiseEqual()
309 containsUndefinedElement(const Constant *C, in containsUndefinedElement()
310 function_ref<bool(const Constant *)> HasFn) { in containsUndefinedElement()
321 if (Constant *Elem = C->getAggregateElement(i)) in containsUndefinedElement()
330 bool Constant::containsUndefOrPoisonElement() const { in containsUndefOrPoisonElement()
335 bool Constant::containsPoisonElement() const { in containsPoisonElement()
340 bool Constant::containsConstantExpression() const { in containsConstantExpression()
350 Constant *Constant::getNullValue(Type *Ty) { in getNullValue()
378 Constant *Constant::getIntegerValue(Type *Ty, const APInt &V) { in getIntegerValue()
382 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
395 Constant *Constant::getAllOnesValue(Type *Ty) { in getAllOnesValue()
410 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement()
439 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement()
450 void Constant::destroyConstant() { in destroyConstant()
473 if (!isa<Constant>(V)) { in destroyConstant()
479 assert(isa<Constant>(V) && "References remain to Constant being destroyed"); in destroyConstant()
480 cast<Constant>(V)->destroyConstant(); in destroyConstant()
490 void llvm::deleteConstant(Constant *C) { in deleteConstant()
492 case Constant::ConstantIntVal: in deleteConstant()
495 case Constant::ConstantFPVal: in deleteConstant()
498 case Constant::ConstantAggregateZeroVal: in deleteConstant()
501 case Constant::ConstantArrayVal: in deleteConstant()
504 case Constant::ConstantStructVal: in deleteConstant()
507 case Constant::ConstantVectorVal: in deleteConstant()
510 case Constant::ConstantPointerNullVal: in deleteConstant()
513 case Constant::ConstantDataArrayVal: in deleteConstant()
516 case Constant::ConstantDataVectorVal: in deleteConstant()
519 case Constant::ConstantTokenNoneVal: in deleteConstant()
522 case Constant::BlockAddressVal: in deleteConstant()
525 case Constant::DSOLocalEquivalentVal: in deleteConstant()
528 case Constant::NoCFIValueVal: in deleteConstant()
531 case Constant::UndefValueVal: in deleteConstant()
534 case Constant::PoisonValueVal: in deleteConstant()
537 case Constant::ConstantExprVal: in deleteConstant()
564 ConstHasGlobalValuePredicate(const Constant *C, in ConstHasGlobalValuePredicate()
566 SmallPtrSet<const Constant *, 8> Visited; in ConstHasGlobalValuePredicate()
567 SmallVector<const Constant *, 8> WorkList; in ConstHasGlobalValuePredicate()
572 const Constant *WorkItem = WorkList.pop_back_val(); in ConstHasGlobalValuePredicate()
577 const Constant *ConstOp = dyn_cast<Constant>(Op); in ConstHasGlobalValuePredicate()
587 bool Constant::isThreadDependent() const { in isThreadDependent()
594 bool Constant::isDLLImportDependent() const { in isDLLImportDependent()
601 bool Constant::isConstantUsed() const { in isConstantUsed()
603 const Constant *UC = dyn_cast<Constant>(U); in isConstantUsed()
613 bool Constant::needsDynamicRelocation() const { in needsDynamicRelocation()
617 bool Constant::needsRelocation() const { in needsRelocation()
621 Constant::PossibleRelocationsTy Constant::getRelocationInfo() const { in getRelocationInfo()
634 Constant *LHSOp0 = LHS->getOperand(0); in getRelocationInfo()
635 Constant *RHSOp0 = RHS->getOperand(0); in getRelocationInfo()
665 std::max(cast<Constant>(getOperand(i))->getRelocationInfo(), Result); in getRelocationInfo()
673 static bool constantIsDead(const Constant *C, bool RemoveDeadUsers) { in constantIsDead()
678 const Constant *User = dyn_cast<Constant>(*I); in constantIsDead()
696 const_cast<Constant *>(C)->destroyConstant(); in constantIsDead()
702 void Constant::removeDeadConstantUsers() const { in removeDeadConstantUsers()
706 const Constant *User = dyn_cast<Constant>(*I); in removeDeadConstantUsers()
729 bool Constant::hasOneLiveUse() const { return hasNLiveUses(1); } in hasOneLiveUse()
731 bool Constant::hasZeroLiveUses() const { return hasNLiveUses(0); } in hasZeroLiveUses()
733 bool Constant::hasNLiveUses(unsigned N) const { in hasNLiveUses()
736 const Constant *User = dyn_cast<Constant>(U.getUser()); in hasNLiveUses()
747 Constant *Constant::replaceUndefsWith(Constant *C, Constant *Replacement) { in replaceUndefsWith()
761 SmallVector<Constant *, 32> NewC(NumElts); in replaceUndefsWith()
763 Constant *EltC = C->getAggregateElement(i); in replaceUndefsWith()
771 Constant *Constant::mergeUndefsWith(Constant *C, Constant *Other) { in mergeUndefsWith()
791 SmallVector<Constant *, 32> NewC(NumElts); in mergeUndefsWith()
794 Constant *OtherEltC = Other->getAggregateElement(I); in mergeUndefsWith()
806 bool Constant::isManifestConstant() const { in isManifestConstant()
811 if (!cast<Constant>(Op)->isManifestConstant()) in isManifestConstant()
845 Constant *ConstantInt::getTrue(Type *Ty) { in getTrue()
853 Constant *ConstantInt::getFalse(Type *Ty) { in getFalse()
861 Constant *ConstantInt::getBool(Type *Ty, bool V) { in getBool()
879 Constant *ConstantInt::get(Type *Ty, uint64_t V, bool isSigned) { in get()
880 Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned); in get()
897 Constant *ConstantInt::getSigned(Type *Ty, int64_t V) { in getSigned()
901 Constant *ConstantInt::get(Type *Ty, const APInt& V) { in get()
926 Constant *ConstantFP::get(Type *Ty, double V) { in get()
933 Constant *C = get(Context, FV); in get()
942 Constant *ConstantFP::get(Type *Ty, const APFloat &V) { in get()
954 Constant *ConstantFP::get(Type *Ty, StringRef Str) { in get()
958 Constant *C = get(Context, FV); in get()
967 Constant *ConstantFP::getNaN(Type *Ty, bool Negative, uint64_t Payload) { in getNaN()
970 Constant *C = get(Ty->getContext(), NaN); in getNaN()
978 Constant *ConstantFP::getQNaN(Type *Ty, bool Negative, APInt *Payload) { in getQNaN()
981 Constant *C = get(Ty->getContext(), NaN); in getQNaN()
989 Constant *ConstantFP::getSNaN(Type *Ty, bool Negative, APInt *Payload) { in getSNaN()
992 Constant *C = get(Ty->getContext(), NaN); in getSNaN()
1000 Constant *ConstantFP::getZero(Type *Ty, bool Negative) { in getZero()
1003 Constant *C = get(Ty->getContext(), NegZero); in getZero()
1011 Constant *ConstantFP::getZeroValueForNegation(Type *Ty) { in getZeroValueForNegation()
1015 return Constant::getNullValue(Ty); in getZeroValueForNegation()
1033 Constant *ConstantFP::getInfinity(Type *Ty, bool Negative) { in getInfinity()
1035 Constant *C = get(Ty->getContext(), APFloat::getInf(Semantics, Negative)); in getInfinity()
1062 Constant *ConstantAggregateZero::getSequentialElement() const { in getSequentialElement()
1064 return Constant::getNullValue(AT->getElementType()); in getSequentialElement()
1065 return Constant::getNullValue(cast<VectorType>(getType())->getElementType()); in getSequentialElement()
1068 Constant *ConstantAggregateZero::getStructElement(unsigned Elt) const { in getStructElement()
1069 return Constant::getNullValue(getType()->getStructElementType(Elt)); in getStructElement()
1072 Constant *ConstantAggregateZero::getElementValue(Constant *C) const { in getElementValue()
1078 Constant *ConstantAggregateZero::getElementValue(unsigned Idx) const { in getElementValue()
1107 UndefValue *UndefValue::getElementValue(Constant *C) const { in getElementValue()
1142 PoisonValue *PoisonValue::getElementValue(Constant *C) const { in getElementValue()
1167 static Constant *getIntSequenceIfElementsMatch(ArrayRef<Constant *> V) { in getIntSequenceIfElementsMatch()
1171 for (Constant *C : V) in getIntSequenceIfElementsMatch()
1180 static Constant *getFPSequenceIfElementsMatch(ArrayRef<Constant *> V) { in getFPSequenceIfElementsMatch()
1184 for (Constant *C : V) in getFPSequenceIfElementsMatch()
1193 static Constant *getSequenceIfElementsMatch(Constant *C, in getSequenceIfElementsMatch()
1194 ArrayRef<Constant *> V) { in getSequenceIfElementsMatch()
1220 ArrayRef<Constant *> V) in ConstantAggregate()
1221 : Constant(T, VT, OperandTraits<ConstantAggregate>::op_end(this) - V.size(), in ConstantAggregate()
1235 ConstantArray::ConstantArray(ArrayType *T, ArrayRef<Constant *> V) in ConstantArray()
1241 Constant *ConstantArray::get(ArrayType *Ty, ArrayRef<Constant*> V) { in get()
1242 if (Constant *C = getImpl(Ty, V)) in get()
1247 Constant *ConstantArray::getImpl(ArrayType *Ty, ArrayRef<Constant*> V) { in getImpl()
1252 for (Constant *C : V) { in getImpl()
1261 Constant *C = V[0]; in getImpl()
1281 ArrayRef<Constant*> V, in getTypeForElements()
1292 StructType *ConstantStruct::getTypeForElements(ArrayRef<Constant*> V, in getTypeForElements()
1299 ConstantStruct::ConstantStruct(StructType *T, ArrayRef<Constant *> V) in ConstantStruct()
1306 Constant *ConstantStruct::get(StructType *ST, ArrayRef<Constant*> V) { in get()
1321 for (Constant *C : V) { in get()
1341 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector()
1348 Constant *ConstantVector::get(ArrayRef<Constant*> V) { in get()
1349 if (Constant *C = getImpl(V)) in get()
1355 Constant *ConstantVector::getImpl(ArrayRef<Constant*> V) { in getImpl()
1361 Constant *C = V[0]; in getImpl()
1391 Constant *ConstantVector::getSplat(ElementCount EC, Constant *V) { in getSplat()
1399 SmallVector<Constant *, 32> Elts(EC.getKnownMinValue(), V); in getSplat()
1413 Constant *PoisonV = PoisonValue::get(VTy); in getSplat()
1452 Constant *ConstantExpr::getShuffleMaskForBitcode() const { in getShuffleMaskForBitcode()
1456 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands()
1625 Constant *Constant::getSplatValue(bool AllowUndefs) const { in getSplatValue()
1645 Constant *SplatVal = IElt->getOperand(1); in getSplatValue()
1657 Constant *ConstantVector::getSplatValue(bool AllowUndefs) const { in getSplatValue()
1659 Constant *Elt = getOperand(0); in getSplatValue()
1662 Constant *OpC = getOperand(I); in getSplatValue()
1684 const APInt &Constant::getUniqueInteger() const { in getUniqueInteger()
1688 const Constant *C = this->getAggregateElement(0U); in getUniqueInteger()
1759 : Constant(Type::getInt8PtrTy(F->getContext(), F->getAddressSpace()), in BlockAddress()
1832 : Constant(GV->getType(), Value::DSOLocalEquivalentVal, &Op<0>(), 1) { in DSOLocalEquivalent()
1844 assert(isa<Constant>(To) && "Can only replace the operands with a constant"); in handleOperandChangeImpl()
1856 if (cast<Constant>(To)->isNullValue()) in handleOperandChangeImpl()
1890 : Constant(GV->getType(), Value::NoCFIValueVal, &Op<0>(), 1) { in NoCFIValue()
1925 static Constant *getFoldedCast(Instruction::CastOps opc, Constant *C, Type *Ty, in getFoldedCast()
1929 if (Constant *FC = ConstantFoldCastInstruction(opc, C, Ty)) in getFoldedCast()
1943 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast()
1982 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast()
1988 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast()
1994 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast()
2000 Constant *ConstantExpr::getSExtOrTrunc(Constant *C, Type *Ty) { in getSExtOrTrunc()
2011 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast()
2026 Constant *ConstantExpr::getPointerBitCastOrAddrSpaceCast(Constant *S, in getPointerBitCastOrAddrSpaceCast()
2037 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, bool isSigned) { in getIntegerCast()
2049 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast()
2061 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc()
2075 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSExt()
2089 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getZExt()
2103 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPTrunc()
2115 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPExtend()
2127 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getUIToFP()
2138 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSIToFP()
2149 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToUI()
2160 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToSI()
2171 Constant *ConstantExpr::getPtrToInt(Constant *C, Type *DstTy, in getPtrToInt()
2185 Constant *ConstantExpr::getIntToPtr(Constant *C, Type *DstTy, in getIntToPtr()
2199 Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy, in getBitCast()
2211 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy, in getAddrSpaceCast()
2233 Constant *ConstantExpr::get(unsigned Opcode, Constant *C, unsigned Flags, in get()
2251 if (Constant *FC = ConstantFoldUnaryInstruction(Opcode, C)) in get()
2257 Constant *ArgVec[] = { C }; in get()
2264 Constant *ConstantExpr::get(unsigned Opcode, Constant *C1, Constant *C2, in get()
2312 if (Constant *FC = ConstantFoldBinaryInstruction(Opcode, C1, C2)) in get()
2318 Constant *ArgVec[] = { C1, C2 }; in get()
2379 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf()
2382 Constant *GEPIdx = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1); in getSizeOf()
2383 Constant *GEP = getGetElementPtr( in getSizeOf()
2384 Ty, Constant::getNullValue(PointerType::getUnqual(Ty)), GEPIdx); in getSizeOf()
2389 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf()
2393 Constant *NullPtr = Constant::getNullValue(AligningTy->getPointerTo(0)); in getAlignOf()
2394 Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0); in getAlignOf()
2395 Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1); in getAlignOf()
2396 Constant *Indices[2] = { Zero, One }; in getAlignOf()
2397 Constant *GEP = getGetElementPtr(AligningTy, NullPtr, Indices); in getAlignOf()
2402 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { in getOffsetOf()
2407 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf()
2410 Constant *GEPIdx[] = { in getOffsetOf()
2414 Constant *GEP = getGetElementPtr( in getOffsetOf()
2415 Ty, Constant::getNullValue(PointerType::getUnqual(Ty)), GEPIdx); in getOffsetOf()
2420 Constant *ConstantExpr::getCompare(unsigned short Predicate, Constant *C1, in getCompare()
2421 Constant *C2, bool OnlyIfReduced) { in getCompare()
2442 Constant *ConstantExpr::getSelect(Constant *C, Constant *V1, Constant *V2, in getSelect()
2446 if (Constant *SC = ConstantFoldSelectInstruction(C, V1, V2)) in getSelect()
2452 Constant *ArgVec[] = { C, V1, V2 }; in getSelect()
2459 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr()
2467 if (Constant *FC = in getGetElementPtr()
2494 std::vector<Constant*> ArgVec; in getGetElementPtr()
2499 auto *Idx = cast<Constant>(GTI.getOperand()); in getGetElementPtr()
2524 Constant *ConstantExpr::getICmp(unsigned short pred, Constant *LHS, in getICmp()
2525 Constant *RHS, bool OnlyIfReduced) { in getICmp()
2530 if (Constant *FC = ConstantFoldCompareInstruction(Predicate, LHS, RHS)) in getICmp()
2537 Constant *ArgVec[] = { LHS, RHS }; in getICmp()
2549 Constant *ConstantExpr::getFCmp(unsigned short pred, Constant *LHS, in getFCmp()
2550 Constant *RHS, bool OnlyIfReduced) { in getFCmp()
2555 if (Constant *FC = ConstantFoldCompareInstruction(Predicate, LHS, RHS)) in getFCmp()
2562 Constant *ArgVec[] = { LHS, RHS }; in getFCmp()
2574 Constant *ConstantExpr::getExtractElement(Constant *Val, Constant *Idx, in getExtractElement()
2581 if (Constant *FC = ConstantFoldExtractElementInstruction(Val, Idx)) in getExtractElement()
2589 Constant *ArgVec[] = { Val, Idx }; in getExtractElement()
2596 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement()
2597 Constant *Idx, Type *OnlyIfReducedTy) { in getInsertElement()
2605 if (Constant *FC = ConstantFoldInsertElementInstruction(Val, Elt, Idx)) in getInsertElement()
2612 Constant *ArgVec[] = { Val, Elt, Idx }; in getInsertElement()
2619 Constant *ConstantExpr::getShuffleVector(Constant *V1, Constant *V2, in getShuffleVector()
2625 if (Constant *FC = ConstantFoldShuffleVectorInstruction(V1, V2, Mask)) in getShuffleVector()
2638 Constant *ArgVec[] = {V1, V2}; in getShuffleVector()
2645 Constant *ConstantExpr::getNeg(Constant *C, bool HasNUW, bool HasNSW) { in getNeg()
2652 Constant *ConstantExpr::getFNeg(Constant *C) { in getFNeg()
2658 Constant *ConstantExpr::getNot(Constant *C) { in getNot()
2661 return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType())); in getNot()
2664 Constant *ConstantExpr::getAdd(Constant *C1, Constant *C2, in getAdd()
2671 Constant *ConstantExpr::getSub(Constant *C1, Constant *C2, in getSub()
2678 Constant *ConstantExpr::getMul(Constant *C1, Constant *C2, in getMul()
2685 Constant *ConstantExpr::getAnd(Constant *C1, Constant *C2) { in getAnd()
2689 Constant *ConstantExpr::getOr(Constant *C1, Constant *C2) { in getOr()
2693 Constant *ConstantExpr::getXor(Constant *C1, Constant *C2) { in getXor()
2697 Constant *ConstantExpr::getUMin(Constant *C1, Constant *C2) { in getUMin()
2698 Constant *Cmp = ConstantExpr::getICmp(CmpInst::ICMP_ULT, C1, C2); in getUMin()
2702 Constant *ConstantExpr::getShl(Constant *C1, Constant *C2, in getShl()
2709 Constant *ConstantExpr::getLShr(Constant *C1, Constant *C2, bool isExact) { in getLShr()
2714 Constant *ConstantExpr::getAShr(Constant *C1, Constant *C2, bool isExact) { in getAShr()
2719 Constant *ConstantExpr::getExactLogBase2(Constant *C) { in getExactLogBase2()
2730 SmallVector<Constant *, 4> Elts; in getExactLogBase2()
2732 Constant *Elt = C->getAggregateElement(I); in getExactLogBase2()
2737 Elts.push_back(Constant::getNullValue(Ty->getScalarType())); in getExactLogBase2()
2748 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity()
2758 return Constant::getNullValue(Ty); in getBinOpIdentity()
2762 return Constant::getAllOnesValue(Ty); in getBinOpIdentity()
2782 return Constant::getNullValue(Ty); in getBinOpIdentity()
2793 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber()
2800 return Constant::getAllOnesValue(Ty); in getBinOpAbsorber()
2804 return Constant::getNullValue(Ty); in getBinOpAbsorber()
2818 Type *SrcElementTy, Constant *C, ArrayRef<Constant *> IdxList, Type *DestTy) in GetElementPtrConstantExpr()
2898 Constant *ConstantDataSequential::getImpl(StringRef Elements, Type *Ty) { in getImpl()
2980 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint16_t> Elts) { in getFP()
2987 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint32_t> Elts) { in getFP()
2993 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint64_t> Elts) { in getFP()
3001 Constant *ConstantDataArray::getString(LLVMContext &Context, in getString()
3017 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint8_t> Elts){ in get()
3022 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){ in get()
3027 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){ in get()
3032 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){ in get()
3037 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<float> Elts) { in get()
3042 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<double> Elts) { in get()
3054 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP()
3062 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP()
3069 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP()
3078 Constant *ConstantDataVector::getSplat(unsigned NumElts, Constant *V) { in getSplat()
3210 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant()
3255 Constant *ConstantDataVector::getSplatValue() const { in getSplatValue()
3274 void Constant::handleOperandChange(Value *From, Value *To) { in handleOperandChange()
3302 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!"); in handleOperandChangeImpl()
3303 Constant *ToC = cast<Constant>(To); in handleOperandChangeImpl()
3305 SmallVector<Constant*, 8> Values; in handleOperandChangeImpl()
3317 Constant *Val = cast<Constant>(O->get()); in handleOperandChangeImpl()
3334 if (Constant *C = getImpl(getType(), Values)) in handleOperandChangeImpl()
3343 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!"); in handleOperandChangeImpl()
3344 Constant *ToC = cast<Constant>(To); in handleOperandChangeImpl()
3348 SmallVector<Constant*, 8> Values; in handleOperandChangeImpl()
3357 Constant *Val = cast<Constant>(O->get()); in handleOperandChangeImpl()
3379 assert(isa<Constant>(To) && "Cannot make Constant refer to non-constant!"); in handleOperandChangeImpl()
3380 Constant *ToC = cast<Constant>(To); in handleOperandChangeImpl()
3382 SmallVector<Constant*, 8> Values; in handleOperandChangeImpl()
3387 Constant *Val = getOperand(i); in handleOperandChangeImpl()
3396 if (Constant *C = getImpl(Values)) in handleOperandChangeImpl()
3405 assert(isa<Constant>(ToV) && "Cannot make Constant refer to non-constant!"); in handleOperandChangeImpl()
3406 Constant *To = cast<Constant>(ToV); in handleOperandChangeImpl()
3408 SmallVector<Constant*, 8> NewOps; in handleOperandChangeImpl()
3412 Constant *Op = getOperand(i); in handleOperandChangeImpl()
3422 if (Constant *C = getWithOperands(NewOps, getType(), true)) in handleOperandChangeImpl()