Lines Matching refs:getType

57   if (getType()->isFPOrFPVectorTy())
205 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer");
242 assert(C->getType()->isFirstClassType() && "Cannot evaluate aggregate vals!");
517 assert(C->getType() == Ty->getScalarType() &&
661 return Constant::getNullValue(getType()->getSequentialElementType());
667 return Constant::getNullValue(getType()->getStructElementType(Elt));
673 if (isa<SequentialType>(getType()))
681 if (isa<SequentialType>(getType()))
694 return UndefValue::get(getType()->getSequentialElementType());
700 return UndefValue::get(getType()->getStructElementType(Elt));
706 if (isa<SequentialType>(getType()))
714 if (isa<SequentialType>(getType()))
740 assert(V[i]->getType() == T->getElementType() &&
751 assert(V[i]->getType() == Ty->getElementType() &&
768 if (ConstantDataSequential::isElementTypeCompatible(C->getType())) {
773 if (CI->getType()->isIntegerTy(8)) {
782 } else if (CI->getType()->isIntegerTy(16)) {
791 } else if (CI->getType()->isIntegerTy(32)) {
800 } else if (CI->getType()->isIntegerTy(64)) {
813 if (CFP->getType()->isFloatTy()) {
822 } else if (CFP->getType()->isDoubleTy()) {
847 EltTypes[i] = V[i]->getType();
868 assert((T->isOpaque() || V[i]->getType() == T->getElementType(i)) &&
917 assert(V[i]->getType() == T->getElementType() &&
925 VectorType *T = VectorType::get(V.front()->getType(), V.size());
949 if (ConstantDataSequential::isElementTypeCompatible(C->getType())) {
954 if (CI->getType()->isIntegerTy(8)) {
963 } else if (CI->getType()->isIntegerTy(16)) {
972 } else if (CI->getType()->isIntegerTy(32)) {
981 } else if (CI->getType()->isIntegerTy(64)) {
994 if (CFP->getType()->isFloatTy()) {
1003 } else if (CFP->getType()->isDoubleTy()) {
1025 ConstantDataSequential::isElementTypeCompatible(V->getType()))
1091 assert(Op->getType() == getOperand(OpNo)->getType() &&
1109 bool AnyChange = Ty != getType();
1245 getContext().pImpl->CAZConstants.erase(getType());
1252 getType()->getContext().pImpl->ArrayConstants.remove(this);
1263 getType()->getContext().pImpl->StructConstants.remove(this);
1270 getType()->getContext().pImpl->VectorConstants.remove(this);
1277 assert(this->getType()->isVectorTy() && "Only valid for vectors!");
1279 return getNullValue(this->getType()->getVectorElementType());
1325 getContext().pImpl->CPNConstants.erase(getType());
1346 getContext().pImpl->UVConstants.erase(getType());
1380 getFunction()->getType()->getContext().pImpl
1470 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
1476 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
1482 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
1488 assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
1495 unsigned SrcAS = S->getType()->getPointerAddressSpace();
1504 assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
1507 if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace())
1515 assert(C->getType()->isIntOrIntVectorTy() &&
1517 unsigned SrcBits = C->getType()->getScalarSizeInBits();
1527 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
1529 unsigned SrcBits = C->getType()->getScalarSizeInBits();
1540 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1544 assert(C->getType()->isIntOrIntVectorTy() && "Trunc operand must be integer");
1546 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&&
1554 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1558 assert(C->getType()->isIntOrIntVectorTy() && "SExt operand must be integral");
1560 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&&
1568 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1572 assert(C->getType()->isIntOrIntVectorTy() && "ZEXt operand must be integral");
1574 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&&
1582 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1586 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
1587 C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&&
1594 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1598 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
1599 C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&&
1606 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1610 assert(C->getType()->isIntOrIntVectorTy() && Ty->isFPOrFPVectorTy() &&
1617 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1621 assert(C->getType()->isIntOrIntVectorTy() && Ty->isFPOrFPVectorTy() &&
1628 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1632 assert(C->getType()->isFPOrFPVectorTy() && Ty->isIntOrIntVectorTy() &&
1639 bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
1643 assert(C->getType()->isFPOrFPVectorTy() && Ty->isIntOrIntVectorTy() &&
1649 assert(C->getType()->getScalarType()->isPointerTy() &&
1653 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1654 if (isa<VectorType>(C->getType()))
1655 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1661 assert(C->getType()->getScalarType()->isIntegerTy() &&
1665 assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
1666 if (isa<VectorType>(C->getType()))
1667 assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
1678 if (C->getType() == DstTy) return C;
1696 assert(C1->getType() == C2->getType() &&
1704 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1705 assert(C1->getType()->isIntOrIntVectorTy() &&
1711 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1712 assert(C1->getType()->isFPOrFPVectorTy() &&
1718 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1719 assert(C1->getType()->isIntOrIntVectorTy() &&
1723 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1724 assert(C1->getType()->isFPOrFPVectorTy() &&
1729 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1730 assert(C1->getType()->isIntOrIntVectorTy() &&
1734 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1735 assert(C1->getType()->isFPOrFPVectorTy() &&
1741 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1742 assert(C1->getType()->isIntOrIntVectorTy() &&
1748 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1749 assert(C1->getType()->isIntOrIntVectorTy() &&
1764 return pImpl->ExprConstants.getOrCreate(C1->getType(), Key);
1811 assert(C1->getType() == C2->getType() && "Op types should be identical!");
1841 return pImpl->ExprConstants.getOrCreate(V1->getType(), Key);
1846 assert(C->getType()->isPtrOrPtrVectorTy() &&
1853 Type *Ty = GetElementPtrInst::getIndexedType(C->getType(), Idxs);
1855 unsigned AS = C->getType()->getPointerAddressSpace();
1857 if (VectorType *VecTy = dyn_cast<VectorType>(C->getType()))
1865 assert(Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() &&
1867 assert((!Idxs[i]->getType()->isVectorTy() ||
1869 Idxs[i]->getType()->getVectorNumElements()) &&
1882 assert(LHS->getType() == RHS->getType());
1895 if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
1898 LLVMContextImpl *pImpl = LHS->getType()->getContext().pImpl;
1904 assert(LHS->getType() == RHS->getType());
1916 if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
1919 LLVMContextImpl *pImpl = LHS->getType()->getContext().pImpl;
1924 assert(Val->getType()->isVectorTy() &&
1926 assert(Idx->getType()->isIntegerTy(32) &&
1937 Type *ReqTy = Val->getType()->getVectorElementType();
1943 assert(Val->getType()->isVectorTy() &&
1945 assert(Elt->getType() == Val->getType()->getVectorElementType() &&
1947 assert(Idx->getType()->isIntegerTy(32) &&
1957 return pImpl->ExprConstants.getOrCreate(Val->getType(), Key);
1968 unsigned NElts = Mask->getType()->getVectorNumElements();
1969 Type *EltTy = V1->getType()->getVectorElementType();
1982 assert(Agg->getType()->isFirstClassType() &&
1985 assert(ExtractValueInst::getIndexedType(Agg->getType(),
1986 Idxs) == Val->getType() &&
1988 Type *ReqTy = Val->getType();
2002 assert(Agg->getType()->isFirstClassType() &&
2005 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs);
2009 assert(Agg->getType()->isFirstClassType() &&
2022 assert(C->getType()->isIntOrIntVectorTy() &&
2024 return getSub(ConstantFP::getZeroValueForNegation(C->getType()),
2029 assert(C->getType()->isFPOrFPVectorTy() &&
2031 return getFSub(ConstantFP::getZeroValueForNegation(C->getType()), C);
2035 assert(C->getType()->isIntOrIntVectorTy() &&
2037 return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType()));
2172 getType()->getContext().pImpl->ExprConstants.remove(this);
2201 return getType()->getElementType();
2229 if (ArrayType *AT = dyn_cast<ArrayType>(getType()))
2231 return getType()->getVectorNumElements();
2277 if (Node->getType() == Ty)
2292 getType()->getContext().pImpl->CDSConstants;
2417 assert(isElementTypeCompatible(V->getType()) &&
2420 if (CI->getType()->isIntegerTy(8)) {
2424 if (CI->getType()->isIntegerTy(16)) {
2428 if (CI->getType()->isIntegerTy(32)) {
2432 assert(CI->getType()->isIntegerTy(64) && "Unsupported ConstantData type");
2438 if (CFP->getType()->isFloatTy()) {
2442 if (CFP->getType()->isDoubleTy()) {
2524 return isa<ArrayType>(getType()) && getElementType()->isIntegerTy(8);
2576 LLVMContextImpl *pImpl = getType()->getContext().pImpl;
2580 Lookup.first = cast<ArrayType>(getType());
2601 Replacement = ConstantAggregateZero::get(getType());
2603 Replacement = UndefValue::get(getType());
2656 Lookup.first = cast<StructType>(getType());
2687 Replacement = ConstantAggregateZero::get(getType());
2689 Replacement = UndefValue::get(getType());
2785 Ops[0], getType());