Lines Matching refs:Ty

178 Constant *Constant::getNullValue(Type *Ty) {  in getNullValue()  argument
179 switch (Ty->getTypeID()) { in getNullValue()
181 return ConstantInt::get(Ty, 0); in getNullValue()
183 return ConstantFP::get(Ty->getContext(), in getNullValue()
186 return ConstantFP::get(Ty->getContext(), in getNullValue()
189 return ConstantFP::get(Ty->getContext(), in getNullValue()
192 return ConstantFP::get(Ty->getContext(), in getNullValue()
195 return ConstantFP::get(Ty->getContext(), in getNullValue()
198 return ConstantFP::get(Ty->getContext(), in getNullValue()
202 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue()
206 return ConstantAggregateZero::get(Ty); in getNullValue()
213 Constant *Constant::getIntegerValue(Type *Ty, const APInt &V) { in getIntegerValue() argument
214 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue()
217 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
224 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
230 Constant *Constant::getAllOnesValue(Type *Ty) { in getAllOnesValue() argument
231 if (IntegerType *ITy = dyn_cast<IntegerType>(Ty)) in getAllOnesValue()
232 return ConstantInt::get(Ty->getContext(), in getAllOnesValue()
235 if (Ty->isFloatingPointTy()) { in getAllOnesValue()
236 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(), in getAllOnesValue()
237 !Ty->isPPC_FP128Ty()); in getAllOnesValue()
238 return ConstantFP::get(Ty->getContext(), FL); in getAllOnesValue()
241 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
514 ConstantInt::ConstantInt(IntegerType *Ty, const APInt& V) in ConstantInt() argument
515 : Constant(Ty, ConstantIntVal, nullptr, 0), Val(V) { in ConstantInt()
516 assert(V.getBitWidth() == Ty->getBitWidth() && "Invalid constant for type"); in ConstantInt()
533 Constant *ConstantInt::getTrue(Type *Ty) { in getTrue() argument
534 VectorType *VTy = dyn_cast<VectorType>(Ty); in getTrue()
536 assert(Ty->isIntegerTy(1) && "True must be i1 or vector of i1."); in getTrue()
537 return ConstantInt::getTrue(Ty->getContext()); in getTrue()
542 ConstantInt::getTrue(Ty->getContext())); in getTrue()
545 Constant *ConstantInt::getFalse(Type *Ty) { in getFalse() argument
546 VectorType *VTy = dyn_cast<VectorType>(Ty); in getFalse()
548 assert(Ty->isIntegerTy(1) && "False must be i1 or vector of i1."); in getFalse()
549 return ConstantInt::getFalse(Ty->getContext()); in getFalse()
554 ConstantInt::getFalse(Ty->getContext())); in getFalse()
571 Constant *ConstantInt::get(Type *Ty, uint64_t V, bool isSigned) { in get() argument
572 Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned); in get()
575 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
581 ConstantInt *ConstantInt::get(IntegerType *Ty, uint64_t V, in get() argument
583 return get(Ty->getContext(), APInt(Ty->getBitWidth(), V, isSigned)); in get()
586 ConstantInt *ConstantInt::getSigned(IntegerType *Ty, int64_t V) { in getSigned() argument
587 return get(Ty, V, true); in getSigned()
590 Constant *ConstantInt::getSigned(Type *Ty, int64_t V) { in getSigned() argument
591 return get(Ty, V, true); in getSigned()
594 Constant *ConstantInt::get(Type *Ty, const APInt& V) { in get() argument
595 ConstantInt *C = get(Ty->getContext(), V); in get()
596 assert(C->getType() == Ty->getScalarType() && in get()
600 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
606 ConstantInt *ConstantInt::get(IntegerType* Ty, StringRef Str, in get() argument
608 return get(Ty->getContext(), APInt(Ty->getBitWidth(), Str, radix)); in get()
615 static const fltSemantics *TypeToFloatSemantics(Type *Ty) { in TypeToFloatSemantics() argument
616 if (Ty->isHalfTy()) in TypeToFloatSemantics()
618 if (Ty->isFloatTy()) in TypeToFloatSemantics()
620 if (Ty->isDoubleTy()) in TypeToFloatSemantics()
622 if (Ty->isX86_FP80Ty()) in TypeToFloatSemantics()
624 else if (Ty->isFP128Ty()) in TypeToFloatSemantics()
627 assert(Ty->isPPC_FP128Ty() && "Unknown FP format"); in TypeToFloatSemantics()
636 Constant *ConstantFP::get(Type *Ty, double V) { in get() argument
637 LLVMContext &Context = Ty->getContext(); in get()
641 FV.convert(*TypeToFloatSemantics(Ty->getScalarType()), in get()
646 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
653 Constant *ConstantFP::get(Type *Ty, StringRef Str) { in get() argument
654 LLVMContext &Context = Ty->getContext(); in get()
656 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str); in get()
660 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
666 Constant *ConstantFP::getNegativeZero(Type *Ty) { in getNegativeZero() argument
667 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getNegativeZero()
669 Constant *C = get(Ty->getContext(), NegZero); in getNegativeZero()
671 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getNegativeZero()
678 Constant *ConstantFP::getZeroValueForNegation(Type *Ty) { in getZeroValueForNegation() argument
679 if (Ty->isFPOrFPVectorTy()) in getZeroValueForNegation()
680 return getNegativeZero(Ty); in getZeroValueForNegation()
682 return Constant::getNullValue(Ty); in getZeroValueForNegation()
693 Type *Ty; in get() local
695 Ty = Type::getHalfTy(Context); in get()
697 Ty = Type::getFloatTy(Context); in get()
699 Ty = Type::getDoubleTy(Context); in get()
701 Ty = Type::getX86_FP80Ty(Context); in get()
703 Ty = Type::getFP128Ty(Context); in get()
707 Ty = Type::getPPC_FP128Ty(Context); in get()
709 Slot = new ConstantFP(Ty, V); in get()
715 Constant *ConstantFP::getInfinity(Type *Ty, bool Negative) { in getInfinity() argument
716 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getInfinity()
717 Constant *C = get(Ty->getContext(), APFloat::getInf(Semantics, Negative)); in getInfinity()
719 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getInfinity()
725 ConstantFP::ConstantFP(Type *Ty, const APFloat& V) in ConstantFP() argument
726 : Constant(Ty, ConstantFPVal, nullptr, 0), Val(V) { in ConstantFP()
727 assert(&V.getSemantics() == TypeToFloatSemantics(Ty) && in ConstantFP()
768 const Type *Ty = getType(); in getNumElements() local
769 if (const auto *AT = dyn_cast<ArrayType>(Ty)) in getNumElements()
771 if (const auto *VT = dyn_cast<VectorType>(Ty)) in getNumElements()
773 return Ty->getStructNumElements(); in getNumElements()
809 const Type *Ty = getType(); in getNumElements() local
810 if (const auto *AT = dyn_cast<ArrayType>(Ty)) in getNumElements()
812 if (const auto *VT = dyn_cast<VectorType>(Ty)) in getNumElements()
814 return Ty->getStructNumElements(); in getNumElements()
841 Constant *ConstantArray::get(ArrayType *Ty, ArrayRef<Constant*> V) { in get() argument
842 if (Constant *C = getImpl(Ty, V)) in get()
844 return Ty->getContext().pImpl->ArrayConstants.getOrCreate(Ty, V); in get()
846 Constant *ConstantArray::getImpl(ArrayType *Ty, ArrayRef<Constant*> V) { in getImpl() argument
849 return ConstantAggregateZero::get(Ty); in getImpl()
852 assert(V[i]->getType() == Ty->getElementType() && in getImpl()
861 return UndefValue::get(Ty); in getImpl()
864 return ConstantAggregateZero::get(Ty); in getImpl()
1028 VectorType *Ty = VectorType::get(V.front()->getType(), V.size()); in get() local
1029 return Ty->getContext().pImpl->VectorConstants.getOrCreate(Ty, V); in get()
1215 Constant *ConstantExpr::getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, in getWithOperands() argument
1220 if (Ty == getType() && std::equal(Ops.begin(), Ops.end(), op_begin())) in getWithOperands()
1223 Type *OnlyIfReducedTy = OnlyIfReduced ? Ty : nullptr; in getWithOperands()
1238 return ConstantExpr::getCast(getOpcode(), Ops[0], Ty, OnlyIfReduced); in getWithOperands()
1273 bool ConstantInt::isValueValidForType(Type *Ty, uint64_t Val) { in isValueValidForType() argument
1274 unsigned NumBits = Ty->getIntegerBitWidth(); // assert okay in isValueValidForType()
1275 if (Ty->isIntegerTy(1)) in isValueValidForType()
1283 bool ConstantInt::isValueValidForType(Type *Ty, int64_t Val) { in isValueValidForType() argument
1284 unsigned NumBits = Ty->getIntegerBitWidth(); in isValueValidForType()
1285 if (Ty->isIntegerTy(1)) in isValueValidForType()
1294 bool ConstantFP::isValueValidForType(Type *Ty, const APFloat& Val) { in isValueValidForType() argument
1298 switch (Ty->getTypeID()) { in isValueValidForType()
1345 ConstantAggregateZero *ConstantAggregateZero::get(Type *Ty) { in get() argument
1346 assert((Ty->isStructTy() || Ty->isArrayTy() || Ty->isVectorTy()) && in get()
1349 ConstantAggregateZero *&Entry = Ty->getContext().pImpl->CAZConstants[Ty]; in get()
1351 Entry = new ConstantAggregateZero(Ty); in get()
1428 ConstantPointerNull *ConstantPointerNull::get(PointerType *Ty) { in get() argument
1429 ConstantPointerNull *&Entry = Ty->getContext().pImpl->CPNConstants[Ty]; in get()
1431 Entry = new ConstantPointerNull(Ty); in get()
1448 UndefValue *UndefValue::get(Type *Ty) { in get() argument
1449 UndefValue *&Entry = Ty->getContext().pImpl->UVConstants[Ty]; in get()
1451 Entry = new UndefValue(Ty); in get()
1548 static Constant *getFoldedCast(Instruction::CastOps opc, Constant *C, Type *Ty, in getFoldedCast() argument
1550 assert(Ty->isFirstClassType() && "Cannot cast to an aggregate type!"); in getFoldedCast()
1552 if (Constant *FC = ConstantFoldCastInstruction(opc, C, Ty)) in getFoldedCast()
1558 LLVMContextImpl *pImpl = Ty->getContext().pImpl; in getFoldedCast()
1563 return pImpl->ExprConstants.getOrCreate(Ty, Key); in getFoldedCast()
1566 Constant *ConstantExpr::getCast(unsigned oc, Constant *C, Type *Ty, in getCast() argument
1570 assert(C && Ty && "Null arguments to getCast"); in getCast()
1571 assert(CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"); in getCast()
1577 return getTrunc(C, Ty, OnlyIfReduced); in getCast()
1579 return getZExt(C, Ty, OnlyIfReduced); in getCast()
1581 return getSExt(C, Ty, OnlyIfReduced); in getCast()
1583 return getFPTrunc(C, Ty, OnlyIfReduced); in getCast()
1585 return getFPExtend(C, Ty, OnlyIfReduced); in getCast()
1587 return getUIToFP(C, Ty, OnlyIfReduced); in getCast()
1589 return getSIToFP(C, Ty, OnlyIfReduced); in getCast()
1591 return getFPToUI(C, Ty, OnlyIfReduced); in getCast()
1593 return getFPToSI(C, Ty, OnlyIfReduced); in getCast()
1595 return getPtrToInt(C, Ty, OnlyIfReduced); in getCast()
1597 return getIntToPtr(C, Ty, OnlyIfReduced); in getCast()
1599 return getBitCast(C, Ty, OnlyIfReduced); in getCast()
1601 return getAddrSpaceCast(C, Ty, OnlyIfReduced); in getCast()
1605 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, Type *Ty) { in getZExtOrBitCast() argument
1606 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getZExtOrBitCast()
1607 return getBitCast(C, Ty); in getZExtOrBitCast()
1608 return getZExt(C, Ty); in getZExtOrBitCast()
1611 Constant *ConstantExpr::getSExtOrBitCast(Constant *C, Type *Ty) { in getSExtOrBitCast() argument
1612 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getSExtOrBitCast()
1613 return getBitCast(C, Ty); in getSExtOrBitCast()
1614 return getSExt(C, Ty); in getSExtOrBitCast()
1617 Constant *ConstantExpr::getTruncOrBitCast(Constant *C, Type *Ty) { in getTruncOrBitCast() argument
1618 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getTruncOrBitCast()
1619 return getBitCast(C, Ty); in getTruncOrBitCast()
1620 return getTrunc(C, Ty); in getTruncOrBitCast()
1623 Constant *ConstantExpr::getPointerCast(Constant *S, Type *Ty) { in getPointerCast() argument
1625 assert((Ty->isIntOrIntVectorTy() || Ty->isPtrOrPtrVectorTy()) && in getPointerCast()
1628 if (Ty->isIntOrIntVectorTy()) in getPointerCast()
1629 return getPtrToInt(S, Ty); in getPointerCast()
1632 if (Ty->isPtrOrPtrVectorTy() && SrcAS != Ty->getPointerAddressSpace()) in getPointerCast()
1633 return getAddrSpaceCast(S, Ty); in getPointerCast()
1635 return getBitCast(S, Ty); in getPointerCast()
1639 Type *Ty) { in getPointerBitCastOrAddrSpaceCast() argument
1641 assert(Ty->isPtrOrPtrVectorTy() && "Invalid cast"); in getPointerBitCastOrAddrSpaceCast()
1643 if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace()) in getPointerBitCastOrAddrSpaceCast()
1644 return getAddrSpaceCast(S, Ty); in getPointerBitCastOrAddrSpaceCast()
1646 return getBitCast(S, Ty); in getPointerBitCastOrAddrSpaceCast()
1649 Constant *ConstantExpr::getIntegerCast(Constant *C, Type *Ty, in getIntegerCast() argument
1652 Ty->isIntOrIntVectorTy() && "Invalid cast"); in getIntegerCast()
1654 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast()
1659 return getCast(opcode, C, Ty); in getIntegerCast()
1662 Constant *ConstantExpr::getFPCast(Constant *C, Type *Ty) { in getFPCast() argument
1663 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() && in getFPCast()
1666 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast()
1671 return getCast(opcode, C, Ty); in getFPCast()
1674 Constant *ConstantExpr::getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getTrunc() argument
1677 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getTrunc()
1681 assert(Ty->isIntOrIntVectorTy() && "Trunc produces only integral"); in getTrunc()
1682 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getTrunc()
1685 return getFoldedCast(Instruction::Trunc, C, Ty, OnlyIfReduced); in getTrunc()
1688 Constant *ConstantExpr::getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSExt() argument
1691 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getSExt()
1695 assert(Ty->isIntOrIntVectorTy() && "SExt produces only integer"); in getSExt()
1696 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getSExt()
1699 return getFoldedCast(Instruction::SExt, C, Ty, OnlyIfReduced); in getSExt()
1702 Constant *ConstantExpr::getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) { in getZExt() argument
1705 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getZExt()
1709 assert(Ty->isIntOrIntVectorTy() && "ZExt produces only integer"); in getZExt()
1710 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getZExt()
1713 return getFoldedCast(Instruction::ZExt, C, Ty, OnlyIfReduced); in getZExt()
1716 Constant *ConstantExpr::getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPTrunc() argument
1719 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getFPTrunc()
1722 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() && in getFPTrunc()
1723 C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getFPTrunc()
1725 return getFoldedCast(Instruction::FPTrunc, C, Ty, OnlyIfReduced); in getFPTrunc()
1728 Constant *ConstantExpr::getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPExtend() argument
1731 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getFPExtend()
1734 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() && in getFPExtend()
1735 C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getFPExtend()
1737 return getFoldedCast(Instruction::FPExt, C, Ty, OnlyIfReduced); in getFPExtend()
1740 Constant *ConstantExpr::getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getUIToFP() argument
1743 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getUIToFP()
1746 assert(C->getType()->isIntOrIntVectorTy() && Ty->isFPOrFPVectorTy() && in getUIToFP()
1748 return getFoldedCast(Instruction::UIToFP, C, Ty, OnlyIfReduced); in getUIToFP()
1751 Constant *ConstantExpr::getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) { in getSIToFP() argument
1754 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getSIToFP()
1757 assert(C->getType()->isIntOrIntVectorTy() && Ty->isFPOrFPVectorTy() && in getSIToFP()
1759 return getFoldedCast(Instruction::SIToFP, C, Ty, OnlyIfReduced); in getSIToFP()
1762 Constant *ConstantExpr::getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToUI() argument
1765 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getFPToUI()
1768 assert(C->getType()->isFPOrFPVectorTy() && Ty->isIntOrIntVectorTy() && in getFPToUI()
1770 return getFoldedCast(Instruction::FPToUI, C, Ty, OnlyIfReduced); in getFPToUI()
1773 Constant *ConstantExpr::getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) { in getFPToSI() argument
1776 bool toVec = Ty->getTypeID() == Type::VectorTyID; in getFPToSI()
1779 assert(C->getType()->isFPOrFPVectorTy() && Ty->isIntOrIntVectorTy() && in getFPToSI()
1781 return getFoldedCast(Instruction::FPToSI, C, Ty, OnlyIfReduced); in getFPToSI()
1923 Constant *ConstantExpr::getSizeOf(Type* Ty) { in getSizeOf() argument
1926 Constant *GEPIdx = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1); in getSizeOf()
1928 Ty, Constant::getNullValue(PointerType::getUnqual(Ty)), GEPIdx); in getSizeOf()
1930 Type::getInt64Ty(Ty->getContext())); in getSizeOf()
1933 Constant *ConstantExpr::getAlignOf(Type* Ty) { in getAlignOf() argument
1937 StructType::get(Type::getInt1Ty(Ty->getContext()), Ty, nullptr); in getAlignOf()
1939 Constant *Zero = ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0); in getAlignOf()
1940 Constant *One = ConstantInt::get(Type::getInt32Ty(Ty->getContext()), 1); in getAlignOf()
1944 Type::getInt64Ty(Ty->getContext())); in getAlignOf()
1952 Constant *ConstantExpr::getOffsetOf(Type* Ty, Constant *FieldNo) { in getOffsetOf() argument
1956 ConstantInt::get(Type::getInt64Ty(Ty->getContext()), 0), in getOffsetOf()
1960 Ty, Constant::getNullValue(PointerType::getUnqual(Ty)), GEPIdx); in getOffsetOf()
1962 Type::getInt64Ty(Ty->getContext())); in getOffsetOf()
2004 Constant *ConstantExpr::getGetElementPtr(Type *Ty, Constant *C, in getGetElementPtr() argument
2010 if (!Ty) in getGetElementPtr()
2011 Ty = cast<PointerType>(C->getType()->getScalarType())->getElementType(); in getGetElementPtr()
2013 assert(Ty == in getGetElementPtr()
2016 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); in getGetElementPtr()
2321 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty) { in getBinOpIdentity() argument
2330 return Constant::getNullValue(Ty); in getBinOpIdentity()
2333 return ConstantInt::get(Ty, 1); in getBinOpIdentity()
2336 return Constant::getAllOnesValue(Ty); in getBinOpIdentity()
2344 Constant *ConstantExpr::getBinOpAbsorber(unsigned Opcode, Type *Ty) { in getBinOpAbsorber() argument
2351 return Constant::getAllOnesValue(Ty); in getBinOpAbsorber()
2355 return Constant::getNullValue(Ty); in getBinOpAbsorber()
2402 bool ConstantDataSequential::isElementTypeCompatible(const Type *Ty) { in isElementTypeCompatible() argument
2403 if (Ty->isFloatTy() || Ty->isDoubleTy()) return true; in isElementTypeCompatible()
2404 if (const IntegerType *IT = dyn_cast<IntegerType>(Ty)) { in isElementTypeCompatible()
2449 Constant *ConstantDataSequential::getImpl(StringRef Elements, Type *Ty) { in getImpl() argument
2450 assert(isElementTypeCompatible(Ty->getSequentialElementType())); in getImpl()
2454 return ConstantAggregateZero::get(Ty); in getImpl()
2458 *Ty->getContext() in getImpl()
2469 if (Node->getType() == Ty) in getImpl()
2474 if (isa<ArrayType>(Ty)) in getImpl()
2475 return *Entry = new ConstantDataArray(Ty, Slot.first().data()); in getImpl()
2477 assert(isa<VectorType>(Ty)); in getImpl()
2478 return *Entry = new ConstantDataVector(Ty, Slot.first().data()); in getImpl()
2525 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size()); in get() local
2527 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty); in get()
2530 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size()); in get() local
2532 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty); in get()
2535 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size()); in get() local
2537 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2540 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size()); in get() local
2542 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2545 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); in get() local
2547 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2550 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); in get() local
2552 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in get()
2562 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size()); in getFP() local
2564 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 2), Ty); in getFP()
2568 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); in getFP() local
2570 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 4), Ty); in getFP()
2574 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); in getFP() local
2576 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in getFP()
2602 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); in get() local
2604 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty); in get()
2607 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); in get() local
2609 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty); in get()
2612 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); in get() local
2614 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2617 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); in get() local
2619 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2622 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); in get() local
2624 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2627 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); in get() local
2629 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in get()
2639 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size()); in getFP() local
2641 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 2), Ty); in getFP()
2645 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); in getFP() local
2647 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 4), Ty); in getFP()
2651 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); in getFP() local
2653 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in getFP()