Home
last modified time | relevance | path

Searched refs:getType (Results 1 – 25 of 1135) sorted by relevance

12345678910>>...46

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h39 assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && in splatScalarOperandIfNeeded()
41 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded()
47 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded()
162 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateAdd()
163 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateAdd()
169 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateAdd()
177 return cast<VectorType>(LHS->getType()) in CreateAdd()
187 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateSub()
188 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateSub()
194 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateSub()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp39 ParamTys.push_back((*I)->getType()); in ReplaceCallWith()
56 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP()
119 ConstantInt::get(V->getType(), in LowerBSWAP()
123 ConstantInt::get(V->getType(), in LowerBSWAP()
161 Value *Count = ConstantInt::get(V->getType(), 0); in LowerCTPOP()
193 Value *ShVal = ConstantInt::get(V->getType(), i); in LowerCTLZ()
219 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall()
360 Type *IntPtr = DL.getIntPtrType(Op0->getType()); in LowerIntrinsicCall()
435 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall()
457 CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap()
[all …]
H A DMachineStableHash.cpp63 switch (MO.getType()) { in stableHashValue()
71 return stable_hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), in stableHashValue()
81 return hash_combine(MO.getType(), MO.getTargetFlags(), ValHash); in stableHashValue()
101 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
110 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
128 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
134 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
138 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
141 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
144 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.cpp71 CHECK(getType().isSignedIntegerTy()); in getSIntValue()
79 if (getType().getIntegerBitWidth() == 64) in getSIntValue()
82 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
85 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
92 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue()
95 if (getType().getIntegerBitWidth() == 64) in getUIntValue()
98 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
108 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue()
119 CHECK(getType().isFloatTy()); in getFloatValue()
121 switch (getType().getFloatBitWidth()) { in getFloatValue()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h97 return V->getType() == Only; in onlyType()
107 return !V->getType()->isVoidTy(); in anyType()
115 return V->getType()->isIntegerTy(); in anyIntType()
123 return V->getType()->isFloatingPointTy(); in anyFloatType()
167 if (isa<ArrayType>(V->getType())) in anyAggregateType()
171 if (isa<StructType>(V->getType())) in anyAggregateType()
174 return V->getType()->isAggregateType(); in anyAggregateType()
184 return V->getType()->isVectorTy(); in anyVectorType()
197 return V->getType() == Cur[0]->getType(); in matchFirstType()
201 return makeConstantsWithType(Cur[0]->getType()); in matchFirstType()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp1096 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1102 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1131 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1137 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1166 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1172 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1515 assert(Op->getType() == getOperand(OpNo)->getType() && in getWithOperandReplaced()
1947 if (Func->getType() != getType()) { in handleOperandChangeImpl()
2293 assert(C1->getType() == C2->getType() && in get()
2494 assert(LHS->getType() == RHS->getType()); in getICmp()
[all …]
H A DConstantFold.cpp97 Type *MidTy = Op->getType(); in foldConstantCastPair()
112 Type *SrcTy = V->getType(); in FoldBitCast()
192 if (FP->getType()->isPPC_FP128Ty()) in FoldBitCast()
217 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes()
503 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction()
537 auto *V1VTy = CondV->getType(); in ConstantFoldSelectInstruction()
595 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction()
1364 assert(V1->getType() == V2->getType() && in evaluateFCmpRelation()
1454 assert(V1->getType() == V2->getType() && in evaluateICmpRelation()
2025 CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy() && in ConstantFoldCompareInstruction()
[all …]
H A DIRBuilder.cpp119 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet()
147 Type *Tys[] = {Ptr->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemSet()
177 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemTransferInst()
214 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateMemCpyInline()
256 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemCpy()
294 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove()
331 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemMove()
528 Type *DataTy = Val->getType(); in CreateMaskedStore()
994 assert(LHS->getType() == RHS->getType() && in CreatePtrDiff()
1009 auto *PtrType = Ptr->getType(); in CreateLaunderInvariantGroup()
[all …]
H A DInstructions.cpp76 if (Op1->getType() != Op2->getType()) in areInvalidOperands()
2002 if (!isa<VectorType>(V1->getType()) || V1->getType() != V2->getType()) in isValidOperands()
2022 if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType()) in isValidOperands()
2455 assert(getType() == LHS->getType() && in AssertOK()
2505 assert(getType() == LHS->getType() && in AssertOK()
2512 assert(getType() == LHS->getType() && in AssertOK()
2520 assert(getType() == LHS->getType() && in AssertOK()
2526 assert(getType() == LHS->getType() && in AssertOK()
2533 assert(getType() == LHS->getType() && in AssertOK()
2539 assert(getType() == LHS->getType() && in AssertOK()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp302 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() || in commonCastTransforms()
703 Shuf->getType() == Shuf->getOperand(0)->getType()) { in shrinkSplatShuffle()
750 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType(); in visitTrunc()
988 if (In->getType() != Zext.getType()) in transformZExtICmp()
1039 if (Zext.getType() == In->getType()) in transformZExtICmp()
1240 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt()
1352 X->getType() == CI.getType()) in visitZExt()
1359 X->getType() == CI.getType()) { in visitZExt()
1384 if (In->getType() != CI.getType()) in transformSExtICmp()
1440 if (CI.getType() == In->getType()) in transformSExtICmp()
[all …]
H A DInstCombineVectorOps.cpp187 Type *DestTy = Ext.getType(); in foldBitcastExtElt()
356 Type *Ty = EI.getType(); in visitExtractElementInst()
534 assert(LHS->getType() == RHS->getType() && in collectSingleShuffleElements()
724 if (LR.first->getType() != RHS->getType()) { in collectShuffleElements()
755 if (EI->getOperand(0)->getType() == PermittedRHS->getType() && in collectShuffleElements()
1434 VecSrc->getType()->isVectorTy() && !ScalarSrc->getType()->isVectorTy() && in visitInsertElementInst()
1581 Type *ITy = I->getType(); in canEvaluateShuffled()
1827 Type *Ty = BO->getType(); in getAlternateBinop()
2081 Type *SrcType = X->getType(); in foldTruncShuffle()
2298 if (X->getType() != Y->getType() || in foldIdentityPaddedShuffles()
[all …]
H A DInstCombinePHI.cpp106 if (!PN.getType()->isIntegerTy()) in foldIntegerTypedPHI()
153 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
200 if (PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in foldIntegerTypedPHI()
216 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
225 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in foldIntegerTypedPHI()
234 if (V->getType() == IntToPtr->getType()) in foldIntegerTypedPHI()
257 if (IncomingVal->getType() == IntToPtr->getType()) { in foldIntegerTypedPHI()
388 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI()
494 if (!GEP || !GEP->hasOneUser() || GEP->getType() != FirstInst->getType() || in foldPHIArgGEPIntoPHI()
520 if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType()) in foldPHIArgGEPIntoPHI()
[all …]
H A DInstCombineLoadStoreAlloca.cpp354 auto *PT = cast<PointerType>(I.getType()); in replacePointer()
401 if (AI.getType() != EntryAI->getType()) in visitAllocaInst()
481 NewPtr->getType() == NewPtrTy)) in combineLoadToNewType()
564 LoadTy = L1->getType(); in isMinMaxWithLoads()
613 if (BC->getType()->isX86_AMXTy()) in combineLoadToOperationType()
639 Type *T = LI.getType(); in unpackLoadToAggregate()
1084 auto *VT = V->getType(); in likeBitCastFromVector()
1144 if (V->getType()->isX86_AMXTy()) in combineStoreToValueType()
1170 Type *T = V->getType(); in unpackStoreToAggregate()
1313 if (!LI->getType()->isIntegerTy()) in removeBitcastsFromLoadStoreOnMinMax()
[all …]
H A DInstCombineCompares.cpp553 GEP->getType() != Start->getType()) in canRewriteGEPAsOffset()
761 GEP->getType() == V->getType()) { in getAsConstantIndexedAddress()
801 if (GEPLHS->getType() != RHS->getType()) in transformToIndexedCompare()
885 if (GEPLHS->getType()->isVectorTy() && Base->getType()->isPointerTy()) { in foldGEPICmp()
1359 XTy = X->getType(); in foldSignBitTest()
1368 XTy = X->getType(); in foldSignBitTest()
3650 if (XShAmt->getType() != YShAmt->getType()) in foldShiftIntoShiftInAnotherHandOfAndInICmp()
4499 Type *XTy = X->getType(), *YTy = Y->getType(); in foldICmpWithZextOrSext()
4612 if (Op0Src->getType() != NewOp1->getType()) in foldICmpWithCastOp()
4748 Type *TyA = A->getType(), *TyB = B->getType(); in processUMulZExtIdiom()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp455 {Ty, Ptr->getType(), Mask->getType()}, in tryCreateMaskedGatherBase()
476 {Ty, Ptr->getType(), Mask->getType()}, in tryCreateMaskedGatherBaseWB()
546 {ResultTy, BasePtr->getType(), Offsets->getType(), Mask->getType()}, in tryCreateMaskedGatherOffset()
552 {ResultTy, BasePtr->getType(), Offsets->getType()}, in tryCreateMaskedGatherOffset()
616 {Ptr->getType(), Input->getType()}, in tryCreateMaskedScatterBase()
621 {Ptr->getType(), Input->getType(), Mask->getType()}, in tryCreateMaskedScatterBase()
638 {Ptr->getType(), Input->getType()}, in tryCreateMaskedScatterBaseWB()
643 {Ptr->getType(), Input->getType(), Mask->getType()}, in tryCreateMaskedScatterBaseWB()
698 {BasePtr->getType(), Offsets->getType(), Input->getType(), in tryCreateMaskedScatterOffset()
706 {BasePtr->getType(), Offsets->getType(), Input->getType()}, in tryCreateMaskedScatterOffset()
[all …]
H A DARMRegisterBankInfo.cpp239 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
284 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
297 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
304 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
364 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
378 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
380 LLT Ty2 = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
392 LLT Ty2 = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping()
402 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
424 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprAgg.cpp256 QualType RetTy = E->getType(); in withReturnValueSlot()
840 EnsureDest(E->getType()); in VisitCastExpr()
1072 EnsureDest(E->getType()); in VisitBinCmp()
1293 EmitFinalDestCopy(VE->getType(), CGF.MakeAddrLValue(ArgPtr, VE->getType())); in VisitVAArgExpr()
1300 EnsureDest(E->getType()); in VisitCXXBindTemporaryExpr()
1383 QualType T = E->getType(); in VisitCXXScalarValueInitExpr()
1389 QualType T = E->getType(); in VisitImplicitValueInitExpr()
1526 QualType type = LV.getType(); in EmitInitializationToLValue()
1565 QualType type = lv.getType(); in EmitNullInitializationToLValue()
1602 EmitFinalDestCopy(E->getType(), CGF.MakeAddrLValue(GV, E->getType())); in VisitInitListExpr()
[all …]
H A DCGExpr.cpp402 QualType Ty = Inner->getType(); in createReferenceTemporary()
628 QualType Ty = E->getType(); in EmitReferenceBindingToExpr()
1300 QualType Ty = E->getType(); in EmitLValue()
2037 assert((LV.getType()->isIntegerType() || LV.getType()->isPointerType()) && in EmitLoadOfGlobalRegLValue()
2310 assert((Dst.getType()->isIntegerType() || Dst.getType()->isPointerType()) && in EmitStoreThroughGlobalRegLValue()
2515 QualType T = E->getType(); in EmitGlobalVarDeclLValue()
2671 QualType T = E->getType(); in EmitDeclRefLValue()
3030 if (V->getType() == TargetTy) in EmitCheckValue()
4548 dead->getType()); in EmitConditionalOperatorLValue()
4815 QualType FT = FD->getType(); in EmitRValueForField()
[all …]
H A DCGExprScalar.cpp165 QualType BaseTy = Base->getType(); in getUnwidenedIntegerType()
1581 if (E->getType()->isVoidType()) in VisitExpr()
2405 BinOp.Ty = E->getType(); in createBinOpInfoFromIncDec()
2696 Info.Ty = E->getType(); in EmitScalarPrePostIncDec()
2771 BinOp.Ty = E->getType(); in VisitUnaryMinus()
2995 Result.Ty = E->getType(); in EmitBinOps()
3863 if (Ops.LHS->getType() != RHS->getType()) in EmitShl()
3941 if (Ops.LHS->getType() != RHS->getType()) in EmitShr()
4660 QualType Ty = VE->getType(); in VisitVAArgExpr()
4680 if (ArgTy != Val->getType()) { in VisitVAArgExpr()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp1118 if (IncV->getType() != PN->getType()) in expandIVInc()
1762 if (LHS->getType() != S->getType()) in visitSMaxExpr()
1791 if (LHS->getType() != S->getType()) in visitUMaxExpr()
1820 if (LHS->getType() != S->getType()) in visitSMinExpr()
1849 if (LHS->getType() != S->getType()) in visitUMinExpr()
1918 S->getType() == V->getType() && in FindValueInExprValueMap()
2098 if (V->getType() != Phi->getType()) in replaceCongruentIVs()
2116 TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) { in replaceCongruentIVs()
2141 if (OrigPhiRef->getType() == Phi->getType() && in replaceCongruentIVs()
2166 if (OrigInc->getType() != IsomorphicInc->getType()) { in replaceCongruentIVs()
[all …]
H A DVNCoercion.cpp19 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad()
76 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper()
256 if (!isa<IntegerType>(LI->getType()) || !LI->isSimple()) in getLoadLoadClobberFullWidthSize()
335 if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy()) in analyzeLoadFromClobberingLoad()
406 unsigned AS = Src->getType()->getPointerAddressSpace(); in analyzeLoadFromClobberingMemInst()
427 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper()
443 if (SrcVal->getType()->isPtrOrPtrVectorTy()) in getStoreValueForLoadHelper()
445 if (!SrcVal->getType()->isIntegerTy()) in getStoreValueForLoadHelper()
493 DL.getTypeStoreSize(SrcVal->getType()).getFixedSize(); in getLoadValueForLoad()
526 RV = Builder.CreateTrunc(RV, SrcVal->getType()); in getLoadValueForLoad()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp262 I2P->getOperand(0)->getType(), I2P->getType(), in isNoopPtrIntCastPair()
265 P2I->getOperand(0)->getType(), P2I->getType(), in isNoopPtrIntCastPair()
283 assert(Op->getType()->isPointerTy()); in isAddressExpression()
290 return Op->getType()->isPointerTy(); in isAddressExpression()
345 Type *DestTy = II->getType(); in rewriteIntrinsicOperands()
346 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands()
395 assert(V->getType()->isPointerTy()); in appendsFlatAddressExpressionToPostorderStack()
443 if (!GEP->getType()->isVectorTy()) in collectFlatAddressExpressions()
469 if (!ASC->getType()->isVectorTy()) in collectFlatAddressExpressions()
549 if (Src->getType() != NewPtrType) in cloneInstructionWithNewAddressSpace()
[all …]
H A DIndVarSimplify.cpp518 Type *Ty = Cast->getType(); in visitIVCast()
865 if (!SE->isSCEVable(Phi->getType())) in isLoopCounter()
909 if (BECount->getType()->isPointerTy() && !Phi->getType()->isPointerTy()) in FindLoopCounter()
941 if (!Phi->getType()->isIntegerTy() && in FindLoopCounter()
1052 IndVar->getType() : ExitCount->getType(); in genLoopLimit()
1364 auto *ARTy = LHSS->getType(); in optimizeLoopExitWithUnknownExitCount()
1365 auto *MaxIterTy = MaxIter->getType(); in optimizeLoopExitWithUnknownExitCount()
1518 SE->getWiderType(MaxExitCount->getType(), ExitCount->getType()); in optimizeLoopExits()
1521 assert(MaxExitCount->getType() == ExitCount->getType()); in optimizeLoopExits()
1701 if (ECV->getType() != RHS->getType()) { in predicateLoopExits()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp63 Type *VTy = V.getType(); in canSafelyConvertTo16Bit()
80 Type *CastSrcTy = CastSrc->getType(); in canSafelyConvertTo16Bit()
90 Type *VTy = V.getType(); in convertTo16Bit()
200 Type *Ty = II.getType(); in instCombineIntrinsic()
227 Type *Ty = II.getType(); in instCombineIntrinsic()
410 Type *Ty = II.getType(); in instCombineIntrinsic()
651 Type *Ty = SrcLHS->getType(); in instCombineIntrinsic()
684 II.getModule(), NewIID, {II.getType(), SrcLHS->getType()}); in instCombineIntrinsic()
704 if (II.getType()->isIntegerTy(32)) in instCombineIntrinsic()
805 Type *Ty = II.getType(); in instCombineIntrinsic()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp138 Type *Ty = Denominator->getType(); in visitAddRecExpr()
139 if (Ty != StartQ->getType() || Ty != StartR->getType() || in visitAddRecExpr()
140 Ty != StepQ->getType() || Ty != StepR->getType()) in visitAddRecExpr()
150 Type *Ty = Denominator->getType(); in visitAddExpr()
157 if (Ty != Q->getType() || Ty != R->getType()) in visitAddExpr()
176 Type *Ty = Denominator->getType(); in visitMulExpr()
181 if (Ty != Op->getType()) in visitMulExpr()
198 if (Ty != Q->getType()) in visitMulExpr()
244 Zero = SE.getZero(Denominator->getType()); in SCEVDivision()
245 One = SE.getOne(Denominator->getType()); in SCEVDivision()

12345678910>>...46