Home
last modified time | relevance | path

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

12345678910>>...52

/freebsd/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()
96 Type *OverloadedTypes[] = {Matrix->getType(), Stride->getType()};
158 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateAdd()
159 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateAdd()
165 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateAdd()
183 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateSub()
184 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateSub()
190 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateSub()
[all …]
/freebsd/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()
456 if (CI->arg_size() != 1 || CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap()
[all …]
H A DMachineStableHash.cpp61 switch (MO.getType()) { in stableHashValue()
102 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
111 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
129 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
137 return hash_combine(MO.getType(), MO.getTargetFlags()); in stableHashValue()
147 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
153 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
157 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
160 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
163 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp32 llvm::dbgs() << "Source type " << Src.getType() << "\n"; in copyRecord()
41 assert(Field->getType()->isReferenceType() || in copyRecord()
44 if (Field->getType()->isRecordType()) { in copyRecord()
47 } else if (Field->getType()->isReferenceType()) { in copyRecord()
58 if (SynthFieldLoc->getType()->isRecordType()) { in copyRecord()
80 llvm::dbgs() << "Loc1 type " << Loc1.getType() << "\n"; in recordsEqual()
81 llvm::dbgs() << "Loc2 type " << Loc2.getType() << "\n"; in recordsEqual()
90 assert(Field->getType()->isReferenceType() || in recordsEqual()
93 if (Field->getType()->isRecordType()) { in recordsEqual()
97 } else if (Field->getType()->isReferenceType()) { in recordsEqual()
[all …]
/freebsd/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()
169 return V->getType()->isPointerTy(); in sizedPtrType()
188 Type *This = V->getType(), *First = Cur[0]->getType(); in matchFirstLengthWAnyType()
224 return V->getType() == Cur[1]->getType(); in matchSecondType()
236 if (isa<ArrayType>(V->getType())) in anyAggregateType()
240 if (isa<StructType>(V->getType())) in anyAggregateType()
253 return V->getType()->isVectorTy(); in anyVectorType()
266 return V->getType() == Cur[0]->getType(); in matchFirstType()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.cpp69 CHECK(getType().isSignedIntegerTy()); in getSIntValue()
77 if (getType().getIntegerBitWidth() == 64) in getSIntValue()
80 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
83 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
90 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue()
93 if (getType().getIntegerBitWidth() == 64) in getUIntValue()
96 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
106 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue()
117 CHECK(getType().isFloatTy()); in getFloatValue()
119 switch (getType().getFloatBitWidth()) { in getFloatValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp182 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() || in commonCastTransforms()
196 if (!Src->getType()->isIntegerTy() || !CI.getType()->isIntegerTy() || in commonCastTransforms()
627 Shuf->getType() == Shuf->getOperand(0)->getType()) { in shrinkSplatShuffle()
674 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType(); in visitTrunc()
911 if (In->getType() != Zext.getType()) in transformZExtICmp()
931 (Cmp->getOperand(0)->getType() == Zext.getType() || in transformZExtICmp()
945 if (Zext.getType() == In->getType()) in transformZExtICmp()
1116 Type *SrcTy = Src->getType(), *DestTy = Zext.getType(); in visitZExt()
1271 if (In->getType() != Sext.getType()) in transformSExtICmp()
1325 if (Sext.getType() == In->getType()) in transformSExtICmp()
[all …]
H A DInstCombineVectorOps.cpp192 Type *DestTy = Ext.getType(); in foldBitcastExtElt()
616 assert(LHS->getType() == RHS->getType() && in collectSingleShuffleElements()
810 if (LR.first->getType() != RHS->getType()) { in collectShuffleElements()
842 if (EI->getOperand(0)->getType() == PermittedRHS->getType() && in collectShuffleElements()
1525 if (X->getType()->getScalarType() != Y->getType()) in narrowInsElt()
1581 Type *SrcTy = X->getType(); in foldTruncInsEltPair()
1648 VecSrc->getType()->isVectorTy() && !ScalarSrc->getType()->isVectorTy() && in visitInsertElementInst()
2058 Type *Ty = BO->getType(); in getAlternateBinop()
2688 if (X->getType() != Y->getType() || in foldIdentityPaddedShuffles()
2753 if (X->getType() != Y->getType()) in simplifyBinOpSplats()
[all …]
H A DInstCombinePHI.cpp107 if (!PN.getType()->isIntegerTy()) in foldIntegerTypedPHI()
155 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
199 if (&PtrPHI == &PN || PtrPHI.getType() != IntToPtr->getType()) in foldIntegerTypedPHI()
213 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()
414 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI()
415 Type *RHSType = RHSVal->getType(); in foldPHIArgBinOpIntoPHI()
1209 assert(EltPHI->getType() != PN->getType() && in SliceUpIllegalIntegerPHI()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprAgg.cpp129 EnsureDest(E->getType()); in VisitConstantExpr()
136 if (Result->getType() != StoreDest.getType()) in VisitConstantExpr()
279 QualType RetTy = E->getType(); in withReturnValueSlot()
864 EnsureDest(E->getType()); in VisitCastExpr()
1096 EnsureDest(E->getType()); in VisitBinCmp()
1317 EmitFinalDestCopy(VE->getType(), CGF.MakeAddrLValue(ArgPtr, VE->getType())); in VisitVAArgExpr()
1324 EnsureDest(E->getType()); in VisitCXXBindTemporaryExpr()
1407 QualType T = E->getType(); in VisitCXXScalarValueInitExpr()
1413 QualType T = E->getType(); in VisitImplicitValueInitExpr()
1550 QualType type = LV.getType(); in EmitInitializationToLValue()
[all …]
H A DCGExpr.cpp624 QualType Ty = E->getType(); in EmitReferenceBindingToExpr()
977 QualType Ty = E->getType(); in IsExpectedRecordDecl()
1523 return SE->getType(); in getConstantExprReferredType()
1543 QualType Ty = E->getType(); in EmitLValueHelper()
2326 assert((LV.getType()->isIntegerType() || LV.getType()->isPointerType()) && in EmitLoadOfGlobalRegLValue()
2627 assert((Dst.getType()->isIntegerType() || Dst.getType()->isPointerType()) && in EmitStoreThroughGlobalRegLValue()
2828 QualType T = E->getType(); in EmitGlobalVarDeclLValue()
2972 QualType T = E->getType(); in EmitDeclRefLValue()
3352 if (V->getType() == TargetTy) in EmitCheckValue()
5014 Dead->getType()); in HandleConditionalOperatorLValueSimpleCase()
[all …]
H A DCGExprScalar.cpp161 QualType BaseTy = Base->getType(); in getUnwidenedIntegerType()
1631 if (E->getType()->isVoidType()) in VisitExpr()
1882 if (InitVector->getType() == E->getType()) in VisitInitListExpr()
2503 BinOp.Ty = E->getType(); in createBinOpInfoFromIncDec()
2798 Info.Ty = E->getType(); in EmitScalarPrePostIncDec()
2907 BinOp.Ty = E->getType(); in VisitMinus()
3234 Result.Ty = E->getType(); in EmitBinOps()
4147 if (Ops.LHS->getType() != RHS->getType()) in EmitShl()
4225 if (Ops.LHS->getType() != RHS->getType()) in EmitShr()
5012 QualType Ty = VE->getType(); in VisitVAArgExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp1067 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1073 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1102 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1108 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1137 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1143 if (isa<ArrayType>(getType()) || isa<VectorType>(getType())) in getElementValue()
1885 if (Func->getType() != getType()) { in handleOperandChangeImpl()
1928 if (GV->getType() != getType()) in handleOperandChangeImpl()
2082 assert(C1->getType() == C2->getType() && in get()
2323 assert(LHS->getType() == RHS->getType()); in getICmp()
[all …]
H A DConstantFold.cpp56 Type *MidTy = Op->getType(); in foldConstantCastPair()
71 Type *SrcTy = V->getType(); in FoldBitCast()
109 if (FP->getType()->isPPC_FP128Ty()) in FoldBitCast()
134 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes()
307 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction()
343 auto *V1VTy = CondV->getType(); in ConstantFoldSelectInstruction()
401 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction()
1100 assert(V1->getType() == V2->getType() && in evaluateICmpRelation()
1105 if (!V1->getType()->isPointerTy()) in evaluateICmpRelation()
1518 if (Idx0->getType() != CommonTy) in foldGEPOfGEP()
[all …]
H A DIRBuilder.cpp142 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet()
170 Type *Tys[] = {Dst->getType(), Size->getType()}; in CreateMemSetInline()
197 Type *Tys[] = {Ptr->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemSet()
227 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemTransferInst()
265 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemCpy()
381 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemMove()
601 Type *DataTy = Val->getType(); in CreateMaskedStore()
706 Type *DataTy = Val->getType(); in CreateMaskedCompressStore()
1126 assert(LHS->getType() == RHS->getType() && in CreatePtrDiff()
1138 auto *PtrType = Ptr->getType(); in CreateLaunderInvariantGroup()
[all …]
H A DInstructions.cpp87 if (Op1->getType() != Op2->getType()) in areInvalidOperands()
2031 if (!isa<VectorType>(V1->getType()) || V1->getType() != V2->getType()) in isValidOperands()
2051 if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType()) in isValidOperands()
2843 assert(getType() == LHS->getType() && in AssertOK()
2893 assert(getType() == LHS->getType() && in AssertOK()
2900 assert(getType() == LHS->getType() && in AssertOK()
2908 assert(getType() == LHS->getType() && in AssertOK()
2914 assert(getType() == LHS->getType() && in AssertOK()
2921 assert(getType() == LHS->getType() && in AssertOK()
2927 assert(getType() == LHS->getType() && in AssertOK()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp238 if (Op.get()->getType()->isSized()) in visitSwitchInst()
247 SmallVector<Type *, 2> Types = {I.getType(), I.getOperand(0)->getType()}; in visitGetElementPtrInst()
265 if (I.getType()->isPointerTy()) { in visitBitCastInst()
271 SmallVector<Type *, 2> Types = {I.getType(), Source->getType()}; in visitBitCastInst()
379 SmallVector<Type *, 2> Types = {Pointer->getType(), Pointer->getType()}; in insertPtrCastInstr()
389 SmallVector<Type *, 4> Types = {I.getType(), I.getOperand(0)->getType(), in visitInsertElementInst()
444 if (!I.getType()->isAggregateType()) in visitLoadInst()
467 Intrinsic::spv_store, {I.getValueOperand()->getType(), PtrOp->getType()}, in visitStoreInst()
476 Type *PtrTy = I.getType(); in visitAllocaInst()
547 Type *Ty = I->getType(); in insertAssignTypeIntrs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp470 {Ty, Ptr->getType(), Mask->getType()}, in tryCreateMaskedGatherBase()
491 {Ty, Ptr->getType(), Mask->getType()}, in tryCreateMaskedGatherBaseWB()
561 {ResultTy, BasePtr->getType(), Offsets->getType(), Mask->getType()}, in tryCreateMaskedGatherOffset()
567 {ResultTy, BasePtr->getType(), Offsets->getType()}, in tryCreateMaskedGatherOffset()
631 {Ptr->getType(), Input->getType()}, in tryCreateMaskedScatterBase()
636 {Ptr->getType(), Input->getType(), Mask->getType()}, in tryCreateMaskedScatterBase()
653 {Ptr->getType(), Input->getType()}, in tryCreateMaskedScatterBaseWB()
658 {Ptr->getType(), Input->getType(), Mask->getType()}, in tryCreateMaskedScatterBaseWB()
713 {BasePtr->getType(), Offsets->getType(), Input->getType(), in tryCreateMaskedScatterOffset()
721 {BasePtr->getType(), Offsets->getType(), Input->getType()}, in tryCreateMaskedScatterOffset()
[all …]
H A DARMRegisterBankInfo.cpp240 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
285 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
298 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
305 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
365 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
379 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
381 LLT Ty2 = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
393 LLT Ty2 = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping()
403 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
425 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp496 (!LHS->getType()->isPointerType() && !RHS->getType()->isPointerType())) in VisitPointerArithBinOp()
505 if (LHS->getType()->isPointerType() && RHS->getType()->isPointerType()) { in VisitPointerArithBinOp()
701 QualType QT = E->getType(); in VisitImplicitValueInitExpr()
855 QualType T = E->getType(); in VisitInitListExpr()
1545 if (classify(E->getType())) in VisitCompoundLiteralExpr()
1653 QualType T = E->getType(); in VisitCXXConstructExpr()
1835 QualType Ty = E->getType(); in VisitCXXScalarValueInitExpr()
1877 !classify(E->getType())) { in visit()
2275 Ty = VD->getType(); in allocateLocal()
2282 Ty = E->getType(); in allocateLocal()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp20 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad()
85 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadType()
216 if (isFirstClassAggregateOrScalableType(StoredVal->getType())) in analyzeLoadFromClobberingStore()
235 if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy()) in analyzeLoadFromClobberingLoad()
287 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in analyzeLoadFromClobberingMemInst()
296 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper()
302 cast<PointerType>(SrcVal->getType())->getAddressSpace() == in getStoreValueForLoadHelper()
312 if (SrcVal->getType()->isPtrOrPtrVectorTy()) in getStoreValueForLoadHelper()
315 if (!SrcVal->getType()->isIntegerTy()) in getStoreValueForLoadHelper()
402 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in getMemInstValueForLoad()
[all …]
H A DScalarEvolutionExpander.cpp67 if (U->getType() != Ty) in ReuseOrCreateCast()
177 if (V->getType() == Ty) in InsertNoopCastOfTo()
1390 if (S->getType() != V->getType() || !SE.DT.dominates(EntInst, InsertPt) || in FindValueInExprValueMap()
1537 if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy()) in replaceCongruentIVs()
1538 return RHS->getType()->isIntegerTy() && !LHS->getType()->isIntegerTy(); in replaceCongruentIVs()
1562 if (V->getType() != Phi->getType()) in replaceCongruentIVs()
1581 TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) { in replaceCongruentIVs()
1599 if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy()) in replaceCongruentIVs()
1612 if (OrigPhiRef->getType() == Phi->getType() && in replaceCongruentIVs()
1639 if (OrigInc->getType() != IsomorphicInc->getType()) { in replaceCongruentIVs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp67 Type *VTy = V.getType(); in canSafelyConvertTo16Bit()
95 Type *CastSrcTy = CastSrc->getType(); in canSafelyConvertTo16Bit()
105 Type *VTy = V.getType(); in convertTo16Bit()
142 if (!InstToReplace.getType()->isVoidTy()) in modifyIntrinsicCall()
444 SqrtOp->getType()->isHalfTy(); in canContractSqrtToRsq()
456 Type *Ty = II.getType(); in instCombineIntrinsic()
515 Type *Ty = II.getType(); in instCombineIntrinsic()
535 Type *Ty = II.getType(); in instCombineIntrinsic()
682 Type *Ty = II.getType(); in instCombineIntrinsic()
937 Type *Ty = SrcLHS->getType(); in instCombineIntrinsic()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DComputeDependence.cpp44 toExprDependenceForImpliedType(E->getType()->getDependence()) | in computeDependence()
197 if (!E->getType()->isDependentType()) in computeDependence()
241 if (!E->getType()->isInstantiationDependentType()) in computeDependence()
267 if (!E->getType()->isDependentType()) in computeDependence()
475 auto Type = E->getType(); in computeDependence()
553 if (TInfo->getType()->isIncompleteArrayType()) { in computeDependence()
596 E->getTypeSourceInfo()->getType()->getDependence()); in computeDependence()
606 if (E->getType()->isDependentType()) in computeDependence()
619 E->getTypeSourceInfo()->getType()->getDependence())); in computeDependence()
649 if (!E->getType()->isDependentType()) in computeDependence()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp140 Type *Ty = Denominator->getType(); in visitAddRecExpr()
141 if (Ty != StartQ->getType() || Ty != StartR->getType() || in visitAddRecExpr()
142 Ty != StepQ->getType() || Ty != StepR->getType()) in visitAddRecExpr()
152 Type *Ty = Denominator->getType(); in visitAddExpr()
159 if (Ty != Q->getType() || Ty != R->getType()) in visitAddExpr()
178 Type *Ty = Denominator->getType(); in visitMulExpr()
183 if (Ty != Op->getType()) in visitMulExpr()
200 if (Ty != Q->getType()) in visitMulExpr()
246 Zero = SE.getZero(Denominator->getType()); in SCEVDivision()
247 One = SE.getOne(Denominator->getType()); in SCEVDivision()

12345678910>>...52