Lines Matching refs:getType

643     if (RelocatedBase->getType() != Base->getType()) {
645 Builder.CreateBitCast(RelocatedBase, Base->getType());
653 if (Replacement->getType() != ToReplace->getType()) {
655 Builder.CreateBitCast(Replacement, ToReplace->getType());
749 CI->getType(), "", &*InsertPt);
776 EVT SrcVT = TLI.getValueType(DL, CI->getOperand(0)->getType());
777 EVT DstVT = TLI.getValueType(DL, CI->getType());
815 Type *Ty = AddI->getType();
967 ISDOpcode, TLI.getValueType(DL, TruncUser->getType(), true)))
999 TruncI->getType(), "", &*TruncInsertPt);
1034 bool shiftIsLegal = TLI.isTypeLegal(TLI.getValueType(DL, ShiftI->getType()));
1072 (!TLI.isTypeLegal(TLI.getValueType(DL, User->getType()))))
1148 VectorType *VecType = dyn_cast<VectorType>(CI->getType());
1151 Type *EltTy = CI->getType()->getVectorElementType();
1177 EltTy->getPointerTo(cast<PointerType>(Ptr->getType())->getAddressSpace());
1224 ConstantInt::get(Predicate->getType(), 1));
1294 VectorType *VecType = dyn_cast<VectorType>(Src->getType());
1319 EltTy->getPointerTo(cast<PointerType>(Ptr->getType())->getAddressSpace());
1346 ConstantInt::get(Predicate->getType(), 1));
1412 VectorType *VecType = dyn_cast<VectorType>(CI->getType());
1476 ConstantInt::get(Predicate->getType(), 1),
1547 assert(isa<VectorType>(Src->getType()) &&
1549 assert(isa<VectorType>(Ptrs->getType()) &&
1550 isa<PointerType>(Ptrs->getType()->getVectorElementType()) &&
1560 unsigned VectorWidth = Src->getType()->getVectorNumElements();
1590 ConstantInt::get(Predicate->getType(), 1),
1654 Type *Ty = CountZeros->getType();
1727 if (!Arg->getType()->isPointerTy())
1730 cast<PointerType>(Arg->getType())->getAddressSpace()),
1747 DL->getTypeAllocSize(GV->getType()->getElementType()) >=
1769 Type *ReturnTy = CI->getType();
1790 if (!TTI->isLegalMaskedLoad(CI->getType())) {
1798 if (!TTI->isLegalMaskedStore(CI->getArgOperand(0)->getType())) {
1806 if (!TTI->isLegalMaskedGather(CI->getType())) {
1814 if (!TTI->isLegalMaskedScatter(CI->getArgOperand(0)->getType())) {
2226 Inst->setOperand(It, UndefValue::get(Val->getType()));
2320 : TypePromotionAction(Inst), OrigTy(Inst->getType()) {
2668 if (I->getType() == I->getOperand(0)->getType())
2670 return I->getType()->isPointerTy() || I->getType()->isIntegerTy();
2705 ISDOpcode, TLI.getValueType(DL, PromotedInst->getType()));
2811 if (Inst->getType()->isVectorTy())
2838 if (!OpndVal->getType()->isIntegerTy() ||
2839 OpndVal->getType()->getIntegerBitWidth() >
2859 OpndType = Opnd->getOperand(0)->getType();
2864 return Inst->getType()->getIntegerBitWidth() >=
2874 Type *ExtTy = Ext->getType();
2896 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType()))
2916 TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType());
2933 if (!ExtInst || ExtInst->getType() != ExtInst->getOperand(0)->getType()) {
2964 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType());
2987 ExtOpnd, TypeIsSExt(ExtOpnd->getType(), IsSExt)));
2989 TPT.mutateType(ExtOpnd, Ext->getType());
2999 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() ||
3008 unsigned BitWidth = Ext->getType()->getIntegerBitWidth();
3011 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal));
3017 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType()));
3026 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType())
3027 : TPT.createZExt(Ext, Opnd, Ext->getType());
3102 auto AS = AddrInst->getType()->getPointerAddressSpace();
3105 if (TLI.getValueType(DL, AddrInst->getOperand(0)->getType()) == PtrTy)
3112 if ((AddrInst->getOperand(0)->getType()->isPointerTy() ||
3113 AddrInst->getOperand(0)->getType()->isIntegerTy()) &&
3117 AddrInst->getOperand(0)->getType() != AddrInst->getType())
3122 = AddrInst->getOperand(0)->getType()->getPointerAddressSpace();
3123 unsigned DestAS = AddrInst->getType()->getPointerAddressSpace();
3574 PointerType *AddrTy = dyn_cast<PointerType>(Address->getType());
3741 if (SunkAddr->getType() != Addr->getType())
3742 SunkAddr = Builder.CreateBitCast(SunkAddr, Addr->getType());
3751 Type *IntPtrTy = DL->getIntPtrType(Addr->getType());
3755 if (AddrMode.BaseReg && AddrMode.BaseReg->getType()->isPointerTy()) {
3760 if (AddrMode.Scale && AddrMode.ScaledReg->getType()->isPointerTy()) {
3782 Builder.CreateIntToPtr(AddrMode.BaseReg, Addr->getType(), "sunkaddr");
3786 Builder.CreateIntToPtr(AddrMode.ScaledReg, Addr->getType(), "sunkaddr");
3792 SunkAddr = Constant::getNullValue(Addr->getType());
3797 Builder.getInt8PtrTy(Addr->getType()->getPointerAddressSpace());
3807 if (V->getType() != IntPtrTy)
3816 if (V->getType() == IntPtrTy) {
3819 cast<IntegerType>(V->getType())->getBitWidth()) {
3848 if (ResultPtr->getType() != I8PtrTy)
3859 if (ResultPtr->getType() != I8PtrTy)
3864 if (SunkAddr->getType() != Addr->getType())
3865 SunkAddr = Builder.CreateBitCast(SunkAddr, Addr->getType());
3870 Type *IntPtrTy = DL->getIntPtrType(Addr->getType());
3880 if (V->getType()->isPointerTy())
3882 if (V->getType() != IntPtrTy)
3890 if (V->getType() == IntPtrTy) {
3892 } else if (V->getType()->isPointerTy()) {
3895 cast<IntegerType>(V->getType())->getBitWidth()) {
3936 SunkAddr = Constant::getNullValue(Addr->getType());
3938 SunkAddr = Builder.CreateIntToPtr(Result, Addr->getType(), "sunkaddr");
3983 MadeChange |= optimizeMemoryInst(CS, OpVal, OpVal->getType(), ~0u);
3997 Type *ExtTy = FirstUser->getType();
4002 Type *CurTy = UI->getType();
4161 EVT VT = TLI->getValueType(*DL, I->getType());
4162 EVT LoadVT = TLI->getValueType(*DL, LI->getType());
4168 !TLI->isTruncateFree(I->getType(), LI->getType())) {
4207 if (TLI && !TLI->isTruncateFree(I->getType(), Src->getType()))
4256 InsertedTrunc = new TruncInst(I, Src->getType(), "", &*InsertPt);
4325 !(Load->getType()->isIntegerTy() || Load->getType()->isPointerTy()))
4344 EVT LoadResultVT = TLI->getValueType(*DL, Load->getType());
4390 EVT TruncVT = TLI->getValueType(*DL, I->getType());
4418 LLVMContext &Ctx = Load->getType()->getContext();
4502 bool VectorCond = !SI->getCondition()->getType()->isIntegerTy(1);
4511 else if (SI->getType()->isVectorTy())
4607 PHINode *PN = PHINode::Create(SI->getType(), 2, "", &EndBlock->front());
4641 if (!TLI || !TLI->isVectorShiftByScalarCheap(SVI->getType()))
4693 Type *OldType = Cond->getType();
4798 return Transition->getOperand(getTransitionOriginalValueIdx())->getType();
4824 TLI.getValueType(DL, ST->getValueOperand()->getType()), AS,
4852 Inst->getOpcode(), Inst->getType(), Arg0OVK, Arg1OVK);
4886 UndefValue *UndefVal = UndefValue::get(Val->getType());
5010 assert(ToBePromoted->getType() == Transition->getType() &&
5050 !TLI->canCombineStoreAndExtract(Inst->getOperand(0)->getType(),
5135 TLI->getValueType(*DL, CI->getType())) ==
5155 Modified |= optimizeMemoryInst(I, I->getOperand(0), LI->getType(), AS);
5166 SI->getOperand(0)->getType(), AS);
5185 Instruction *NC = new BitCastInst(GEPI->getOperand(0), GEPI->getType(),
5218 if (!I.getType()->isIntegerTy() ||
5220 TLI.getValueType(DL, I.getType(), true)))