Lines Matching refs:getType

63   if (Op1->getType() != Op2->getType())
66 if (Op1->getType()->isTokenTy())
69 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) {
73 VectorType *ET = dyn_cast<VectorType>(Op1->getType());
79 } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) {
93 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()),
121 replaceAllUsesWith(UndefValue::get(getType()));
153 return UndefValue::get(getType());
174 : Instruction(LP.getType(), Instruction::LandingPad, nullptr,
244 FTy->getParamType(i) == Args[i]->getType()) &&
259 cast<FunctionType>(cast<PointerType>(Func->getType())->getElementType());
270 : Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
280 : Instruction(cast<FunctionType>(cast<PointerType>(Func->getType())
289 : Instruction(CI.getType(), Instruction::Call,
398 else if (ArraySize->getType() != IntPtrTy) {
426 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
441 if (Result->getType() != AllocPtrType)
447 if (Result->getType() != AllocPtrType) {
458 assert(!MCall->getType()->isVoidTy() && "Malloc has void return type");
498 assert(Source->getType()->isPointerTy() &&
511 if (Source->getType() != IntPtrTy)
515 if (Source->getType() != IntPtrTy)
563 FTy->getParamType(i) == Args[i]->getType()) &&
577 : TerminatorInst(II.getType(), Instruction::Invoke,
759 : TerminatorInst(CRI.getType(), Instruction::CleanupRet,
859 : TerminatorInst(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
870 : TerminatorInst(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
879 : TerminatorInst(CSI.getType(), Instruction::CatchSwitch, nullptr,
956 : Instruction(FPI.getType(), FPI.getOpcode(),
967 : Instruction(ParentPad->getType(), Op,
976 : Instruction(ParentPad->getType(), Op,
1014 assert(getCondition()->getType()->isIntegerTy(1) &&
1112 assert(Amt->getType()->isIntegerTy() &&
1188 assert(getOperand(0)->getType()->isPointerTy() &&
1222 assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
1234 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
1244 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
1254 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
1266 assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
1276 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(),
1300 assert(getOperand(1)->getType()->isPointerTy() &&
1302 assert(getOperand(0)->getType() ==
1303 cast<PointerType>(getOperand(1)->getType())->getElementType()
1391 assert(getOperand(0)->getType()->isPointerTy() &&
1393 assert(getOperand(1)->getType() ==
1394 cast<PointerType>(getOperand(0)->getType())->getElementType()
1396 assert(getOperand(2)->getType() ==
1397 cast<PointerType>(getOperand(0)->getType())->getElementType()
1415 StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext()),
1428 StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext()),
1450 assert(getOperand(0)->getType()->isPointerTy() &&
1452 assert(getOperand(1)->getType() ==
1453 cast<PointerType>(getOperand(0)->getType())->getElementType()
1463 : Instruction(Val->getType(), AtomicRMW,
1474 : Instruction(Val->getType(), AtomicRMW,
1517 : Instruction(GEPI.getType(), GetElementPtr,
1617 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1631 : Instruction(cast<VectorType>(Val->getType())->getElementType(),
1645 if (!Val->getType()->isVectorTy() || !Index->getType()->isIntegerTy())
1658 : Instruction(Vec->getType(), InsertElement,
1672 : Instruction(Vec->getType(), InsertElement,
1686 if (!Vec->getType()->isVectorTy())
1689 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType())
1692 if (!Index->getType()->isIntegerTy())
1705 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1706 cast<VectorType>(Mask->getType())->getNumElements()),
1722 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
1723 cast<VectorType>(Mask->getType())->getNumElements()),
1740 if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType())
1744 VectorType *MaskTy = dyn_cast<VectorType>(Mask->getType());
1753 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
1767 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
1789 assert(i < Mask->getType()->getVectorNumElements() && "Index out of range");
1802 unsigned NumElts = Mask->getType()->getVectorNumElements();
1831 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
1832 Val->getType() && "Inserted value must match indexed type!");
1841 : Instruction(IVI.getType(), InsertValue,
1865 : UnaryInstruction(EVI.getType(), ExtractValue, EVI.getOperand(0)),
1935 assert(LHS->getType() == RHS->getType() &&
1941 assert(getType() == LHS->getType() &&
1943 assert(getType()->isIntOrIntVectorTy() &&
1948 assert(getType() == LHS->getType() &&
1950 assert(getType()->isFPOrFPVectorTy() &&
1956 assert(getType() == LHS->getType() &&
1958 assert((getType()->isIntegerTy() || (getType()->isVectorTy() &&
1959 cast<VectorType>(getType())->getElementType()->isIntegerTy())) &&
1963 assert(getType() == LHS->getType() &&
1965 assert(getType()->isFPOrFPVectorTy() &&
1970 assert(getType() == LHS->getType() &&
1972 assert((getType()->isIntegerTy() || (getType()->isVectorTy() &&
1973 cast<VectorType>(getType())->getElementType()->isIntegerTy())) &&
1977 assert(getType() == LHS->getType() &&
1979 assert(getType()->isFPOrFPVectorTy() &&
1985 assert(getType() == LHS->getType() &&
1987 assert((getType()->isIntegerTy() ||
1988 (getType()->isVectorTy() &&
1989 cast<VectorType>(getType())->getElementType()->isIntegerTy())) &&
1994 assert(getType() == LHS->getType() &&
1996 assert((getType()->isIntegerTy() ||
1997 (getType()->isVectorTy() &&
1998 cast<VectorType>(getType())->getElementType()->isIntegerTy())) &&
2010 assert(S1->getType() == S2->getType() &&
2012 return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore);
2025 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2028 Op->getType(), Name, InsertBefore);
2033 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2036 Op->getType(), Name, InsertAtEnd);
2041 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2047 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2053 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2059 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2065 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2067 Op->getType(), Name, InsertBefore);
2072 Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
2074 Op->getType(), Name, InsertAtEnd);
2079 Constant *C = Constant::getAllOnesValue(Op->getType());
2081 Op->getType(), Name, InsertBefore);
2086 Constant *AllOnes = Constant::getAllOnesValue(Op->getType());
2088 Op->getType(), Name, InsertAtEnd);
2259 return getOperand(0)->getType()->isIntegerTy() &&
2260 getType()->isIntegerTy();
2270 Type* SrcTy = getOperand(0)->getType();
2271 Type* DstTy = getType();
2320 return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), IntPtrTy);
2326 PtrOpTy = getOperand(0)->getType();
2328 PtrOpTy = getType();
2333 return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), IntPtrTy);
2615 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
2623 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
2631 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
2639 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
2647 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
2655 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
2663 assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
2666 assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast");
2668 Ty->getVectorNumElements() == S->getType()->getVectorNumElements()) &&
2681 assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
2684 assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast");
2686 Ty->getVectorNumElements() == S->getType()->getVectorNumElements()) &&
2699 assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
2702 if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace())
2712 assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
2715 if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace())
2724 if (S->getType()->isPointerTy() && Ty->isIntegerTy())
2726 if (S->getType()->isIntegerTy() && Ty->isPointerTy())
2735 assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() &&
2737 unsigned SrcBits = C->getType()->getScalarSizeInBits();
2749 assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() &&
2751 unsigned SrcBits = C->getType()->getScalarSizeInBits();
2763 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
2765 unsigned SrcBits = C->getType()->getScalarSizeInBits();
2776 assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
2778 unsigned SrcBits = C->getType()->getScalarSizeInBits();
2905 Type *SrcTy = Src->getType();
3009 Type *SrcTy = S->getType();
3616 : TerminatorInst(SI.getType(), Instruction::Switch, nullptr, 0) {
3693 assert(Address && Address->getType()->isPointerTy() &&
3849 return new TruncInst(getOperand(0), getType());
3853 return new ZExtInst(getOperand(0), getType());
3857 return new SExtInst(getOperand(0), getType());
3861 return new FPTruncInst(getOperand(0), getType());
3865 return new FPExtInst(getOperand(0), getType());
3869 return new UIToFPInst(getOperand(0), getType());
3873 return new SIToFPInst(getOperand(0), getType());
3877 return new FPToUIInst(getOperand(0), getType());
3881 return new FPToSIInst(getOperand(0), getType());
3885 return new PtrToIntInst(getOperand(0), getType());
3889 return new IntToPtrInst(getOperand(0), getType());
3893 return new BitCastInst(getOperand(0), getType());
3897 return new AddrSpaceCastInst(getOperand(0), getType());
3913 return new VAArgInst(getOperand(0), getType());