Home
last modified time | relevance | path

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

12345678910>>...39

/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp34 ParamTys.push_back(I->getType()); in EnsureFunctionExists()
42 switch((int)Fn.arg_begin()->getType()->getTypeID()) { in EnsureFPIntrinsicsExist()
55 Fn.arg_begin()->getType()); in EnsureFPIntrinsicsExist()
74 ParamTys.push_back((*I)->getType()); in ReplaceCallWith()
273 Value *Count = ConstantInt::get(V->getType(), 0); in LowerCTPOP()
332 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall()
367 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall()
372 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall()
572 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall()
594 CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap()
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/ubsan/
H A Dubsan_value.cc24 CHECK(getType().isSignedIntegerTy()); in getSIntValue()
32 if (getType().getIntegerBitWidth() == 64) in getSIntValue()
35 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
38 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
45 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue()
48 if (getType().getIntegerBitWidth() == 64) in getUIntValue()
51 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
54 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
61 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue()
72 CHECK(getType().isFloatTy()); in getFloatValue()
[all …]
H A Dubsan_value.h153 CHECK(getType().isIntegerTy()); in isInlineInt()
155 const unsigned Bits = getType().getIntegerBitWidth(); in isInlineInt()
161 CHECK(getType().isFloatTy()); in isInlineFloat()
163 const unsigned Bits = getType().getFloatBitWidth(); in isInlineFloat()
170 const TypeDescriptor &getType() const { return Type; } in getType() function
183 return getType().isSignedIntegerTy() && getSIntValue() == -1; in isMinusOne()
188 return getType().isSignedIntegerTy() && getSIntValue() < 0; in isNegative()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp296 shouldChangeType(CI.getType(), Src->getType())) in commonCastTransforms()
690 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc()
865 if (In->getType() != CI.getType()) in transformZExtICmp()
916 if (CI.getType() == In->getType()) in transformZExtICmp()
1100 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt()
1209 X->getType() == CI.getType()) in visitZExt()
1216 X->getType() == CI.getType()) { in visitZExt()
1240 if (In->getType() != CI.getType()) in transformSExtICmp()
1296 if (CI.getType() == In->getType()) in transformSExtICmp()
1371 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitSExt()
[all …]
H A DInstCombinePHI.cpp97 if (!PN.getType()->isIntegerTy()) in FoldIntegerTypedPHI()
144 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
190 if (!PtrPHI || PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in FoldIntegerTypedPHI()
206 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
215 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in FoldIntegerTypedPHI()
222 if (V->getType() == IntToPtr->getType()) in FoldIntegerTypedPHI()
239 if (IncomingVal->getType() == IntToPtr->getType()) { in FoldIntegerTypedPHI()
291 Type *LHSType = LHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
396 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() || in FoldPHIArgGEPIntoPHI()
422 if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType()) in FoldPHIArgGEPIntoPHI()
[all …]
H A DInstCombineCompares.cpp429 Ty = Idx->getType(); in foldCmpLoadFromIndexedGlobal()
596 GEP->getType() != Start->getType()) in canRewriteGEPAsOffset()
801 GEP->getType() == V->getType()) { in getAsConstantIndexedAddress()
837 if (GEPLHS->getType() != RHS->getType()) in transformToIndexedCompare()
2902 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in foldICmpInstWithConstantNotInt()
3721 if (LHSCIOp->getType() != RHSOp->getType()) in foldICmpWithCastAndCast()
3744 if (RHSCIOp->getType() != LHSCIOp->getType()) in foldICmpWithCastAndCast()
3951 Type *TyA = A->getType(), *TyB = B->getType(); in processUMulZExtIdiom()
4752 V1->getType() == V2->getType() && in foldVectorCmp()
4928 if (Op0->getType() != Op1->getType()) { in visitICmpInst()
[all …]
H A DInstCombineCalls.cpp529 Type *ResTy = II.getType(); in simplifyX86pack()
535 Type *ArgTy = Arg0->getType(); in simplifyX86pack()
703 Type *ResTy = II.getType(); in simplifyX86movmsk()
704 Type *ArgTy = Arg->getType(); in simplifyX86movmsk()
743 if (Arg->getType()->isVectorTy() && in simplifyX86movmsk()
1261 if (Result->getType() != II.getType()) in simplifyInvariantGroupIntrinsic()
3534 Type *Ty = II->getType(); in visitCallInst()
3775 Type *Ty = SrcLHS->getType(); in visitCallInst()
4404 Type *ActTy = (*AI)->getType(); in transformConstExprCastCall()
4482 if ((*AI)->getType() != ParamTy) in transformConstExprCastCall()
[all …]
H A DInstCombineLoadStoreAlloca.cpp232 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize()
333 auto *PT = cast<PointerType>(I.getType()); in replacePointer()
334 auto *NT = cast<PointerType>(V->getType()); in replacePointer()
388 if (AI.getType() != EntryAI->getType()) in visitAllocaInst()
413 auto *SrcTy = TheSrc->getType(); in visitAllocaInst()
623 Type *Ty = LI.getType(); in combineLoadToOperationType()
684 Type *T = LI.getType(); in unpackLoadToAggregate()
1134 auto *UT = cast<VectorType>(U->getType()); in likeBitCastFromVector()
1135 auto *VT = V->getType(); in likeBitCastFromVector()
1215 Type *T = V->getType(); in unpackStoreToAggregate()
[all …]
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstants.cpp858 Type *Ty = getType(); in getNumElements()
891 Type *Ty = getType(); in getNumElements()
1194 assert(Op->getType() == getOperand(OpNo)->getType() && in getWithOperandReplaced()
1247 assert(SrcTy || (Ops[0]->getType() == getOperand(0)->getType())); in getWithOperands()
1841 assert(C1->getType() == C2->getType() && in get()
1849 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get()
1856 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get()
1958 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in getCompare()
2055 assert(LHS->getType() == RHS->getType()); in getICmp()
2080 assert(LHS->getType() == RHS->getType()); in getFCmp()
[all …]
H A DInstructions.cpp79 if (Op1->getType() != Op2->getType()) in areInvalidOperands()
1672 if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType()) in isValidOperands()
2055 assert(getType() == LHS->getType() && in AssertOK()
2105 assert(getType() == LHS->getType() && in AssertOK()
2112 assert(getType() == LHS->getType() && in AssertOK()
2120 assert(getType() == LHS->getType() && in AssertOK()
2126 assert(getType() == LHS->getType() && in AssertOK()
2133 assert(getType() == LHS->getType() && in AssertOK()
2139 assert(getType() == LHS->getType() && in AssertOK()
2147 assert(getType() == LHS->getType() && in AssertOK()
[all …]
H A DConstantFold.cpp87 Type *MidTy = Op->getType(); in foldConstantCastPair()
102 Type *SrcTy = V->getType(); in FoldBitCast()
189 if (FP->getType()->isPPC_FP128Ty()) in FoldBitCast()
214 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes()
705 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction()
1259 if (C1->getType()->isIntegerTy(1)) { in ConstantFoldBinaryInstruction()
1360 assert(V1->getType() == V2->getType() && in evaluateFCmpRelation()
1449 assert(V1->getType() == V2->getType() && in evaluateICmpRelation()
1760 if (C1->getType()->isIntegerTy(1)) { in ConstantFoldCompareInstruction()
1988 CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy()) { in ConstantFoldCompareInstruction()
[all …]
H A DIRBuilder.cpp106 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet()
136 Type *Tys[] = {Ptr->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemSet()
168 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemCpy()
209 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemCpy()
248 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove()
285 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemMove()
317 Type *Tys[] = { Src->getType()->getVectorElementType(), Src->getType() }; in getReductionIntrinsic()
325 Type *Tys[] = {Src->getType()->getVectorElementType(), Acc->getType(), in CreateFAddReduce()
326 Src->getType()}; in CreateFAddReduce()
335 Type *Tys[] = {Src->getType()->getVectorElementType(), Acc->getType(), in CreateFMulReduce()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h98 return V->getType() == Only; in onlyType()
108 return !V->getType()->isVoidTy(); in anyType()
116 return V->getType()->isIntegerTy(); in anyIntType()
124 return V->getType()->isFloatingPointTy(); in anyFloatType()
168 if (isa<ArrayType>(V->getType())) in anyAggregateType()
172 if (isa<StructType>(V->getType())) in anyAggregateType()
175 return V->getType()->isAggregateType(); in anyAggregateType()
185 return V->getType()->isVectorTy(); in anyVectorType()
198 return V->getType() == Cur[0]->getType(); in matchFirstType()
202 return makeConstantsWithType(Cur[0]->getType()); in matchFirstType()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprAgg.cpp246 QualType RetTy = E->getType(); in withReturnValueSlot()
794 EnsureDest(E->getType()); in VisitCastExpr()
1022 EnsureDest(E->getType()); in VisitBinCmp()
1231 EmitFinalDestCopy(VE->getType(), CGF.MakeAddrLValue(ArgPtr, VE->getType())); in VisitVAArgExpr()
1238 EnsureDest(E->getType()); in VisitCXXBindTemporaryExpr()
1277 QualType T = E->getType(); in VisitCXXScalarValueInitExpr()
1283 QualType T = E->getType(); in VisitImplicitValueInitExpr()
1319 QualType type = LV.getType(); in EmitInitializationToLValue()
1359 QualType type = lv.getType(); in EmitNullInitializationToLValue()
1396 EmitFinalDestCopy(E->getType(), CGF.MakeAddrLValue(GV, E->getType())); in VisitInitListExpr()
[all …]
H A DCGExpr.cpp382 QualType Ty = Inner->getType(); in createReferenceTemporary()
605 QualType Ty = E->getType(); in EmitReferenceBindingToExpr()
924 IndexedType = Base->getType(); in getArrayIndexingBound()
1251 QualType Ty = E->getType(); in EmitLValue()
1890 assert((LV.getType()->isIntegerType() || LV.getType()->isPointerType()) && in EmitLoadOfGlobalRegLValue()
2150 assert((Dst.getType()->isIntegerType() || Dst.getType()->isPointerType()) && in EmitStoreThroughGlobalRegLValue()
2342 QualType T = E->getType(); in EmitGlobalVarDeclLValue()
2445 QualType T = E->getType(); in EmitDeclRefLValue()
2756 if (V->getType() == TargetTy) in EmitCheckValue()
4330 QualType FT = FD->getType(); in EmitRValueForField()
[all …]
H A DCGExprScalar.cpp144 QualType BaseTy = Base->getType(); in getUnwidenedIntegerType()
601 if (E->getType()->isVoidType()) in VisitUnaryDeref()
1585 if (E->getType()->isVoidType()) in VisitExpr()
2292 BinOp.Ty = E->getType(); in createBinOpInfoFromIncDec()
2565 BinOp.Ty = E->getType(); in VisitUnaryMinus()
2785 Result.Ty = E->getType(); in EmitBinOps()
3448 if (Ops.LHS->getType() != RHS->getType()) in EmitShl()
3515 if (Ops.LHS->getType() != RHS->getType()) in EmitShr()
4143 QualType Ty = VE->getType(); in VisitVAArgExpr()
4163 if (ArgTy != Val->getType()) { in VisitVAArgExpr()
[all …]
H A DCGExprComplex.cpp347 if (lvalue.getType()->isAtomicType()) in EmitLoadOfLValue()
372 if (lvalue.getType()->isAtomicType() || in EmitStoreOfComplex()
540 if (Op.first->getType()->isFloatingPointTy()) { in VisitUnaryMinus()
556 if (Op.second->getType()->isFloatingPointTy()) in VisitUnaryNot()
770 if (LHSr->getType()->isFloatingPointTy()) { in EmitBinDiv()
784 switch (LHSr->getType()->getTypeID()) { in EmitBinDiv()
858 if (E->getLHS()->getType()->isRealFloatingType()) in EmitBinOps()
867 Ops.Ty = E->getType(); in EmitBinOps()
878 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue()
1095 assert(E && getComplexType(E->getType()) && in EmitComplexExpr()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp20 StoredVal->getType()->isStructTy() || StoredVal->getType()->isArrayTy()) in canCoerceMustAliasedValueToLoad()
34 if (DL.isNonIntegralPointerType(StoredVal->getType()) != in canCoerceMustAliasedValueToLoad()
52 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper()
211 if (DepSI->getValueOperand()->getType()->isStructTy() || in analyzeLoadFromClobberingStore()
212 DepSI->getValueOperand()->getType()->isArrayTy()) in analyzeLoadFromClobberingStore()
228 if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy()) in analyzeLoadFromClobberingLoad()
290 unsigned AS = Src->getType()->getPointerAddressSpace(); in analyzeLoadFromClobberingMemInst()
309 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper()
324 if (SrcVal->getType()->isPtrOrPtrVectorTy()) in getStoreValueForLoadHelper()
326 if (!SrcVal->getType()->isIntegerTy()) in getStoreValueForLoadHelper()
[all …]
H A DSimplifyLibCalls.cpp1017 if (Op->getType()->isFloatTy()) in valueHasFloatPrecision()
1034 if (!CI->getType()->isDoubleTy()) in optimizeDoubleFP()
1197 Type *Ty = Pow->getType(); in replacePowWithExp()
1334 Type *Ty = Pow->getType(); in replacePowWithSqrt()
1371 Type *Ty = Pow->getType(); in optimizePow()
1486 if (Op->getType()->isFloatTy()) in optimizeExp2()
1503 if (!Op->getType()->isFloatTy()) in optimizeExp2()
1656 Type *ArgType = I->getType(); in optimizeSqrt()
1711 Type *ArgTy = Arg->getType(); in insertSinCosCall()
1842 Type *ArgType = Op->getType(); in optimizeFFS()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMRegisterBankInfo.cpp261 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
274 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
281 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
347 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
349 LLT Ty2 = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
361 LLT Ty2 = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping()
371 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
373 LLT Ty1 = MRI.getType(MI.getOperand(2).getReg()); in getInstrMapping()
374 LLT Ty2 = MRI.getType(MI.getOperand(3).getReg()); in getInstrMapping()
393 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
[all …]
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DScalarEvolutionExpander.cpp56 if (U->getType() == Ty) in ReuseOrCreateCast()
1046 if (IncV->getType() != PN->getType()) { in expandIVInc()
1650 if (LHS->getType() != S->getType()) in visitSMaxExpr()
1674 if (LHS->getType() != S->getType()) in visitUMaxExpr()
1713 S->getType() == V->getType() && in FindValueInExprValueMap()
1872 if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy()) in replaceCongruentIVs()
1897 if (V->getType() != Phi->getType()) in replaceCongruentIVs()
1914 TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) { in replaceCongruentIVs()
1939 if (OrigPhiRef->getType() == Phi->getType() && in replaceCongruentIVs()
1964 if (OrigInc->getType() != IsomorphicInc->getType()) { in replaceCongruentIVs()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp274 Type *DestTy = II->getType(); in rewriteIntrinsicOperands()
275 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands()
312 assert(V->getType()->isPointerTy()); in appendsFlatAddressExpressionToPostorderStack()
360 if (!GEP->getType()->isVectorTy()) in collectFlatAddressExpressions()
386 if (!ASC->getType()->isVectorTy()) in collectFlatAddressExpressions()
456 if (Src->getType() != NewPtrType) in cloneInstructionWithNewAddressSpace()
464 if (!OperandUse.get()->getType()->isPointerTy()) in cloneInstructionWithNewAddressSpace()
475 assert(I->getType()->isPointerTy()); in cloneInstructionWithNewAddressSpace()
494 assert(I->getType()->isPointerTy()); in cloneInstructionWithNewAddressSpace()
529 if (Src0->getType()->getPointerAddressSpace() == in cloneConstantExprWithNewAddressSpace()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DBodyFarm.cpp179 if (Arg->getType() == Ty) in makeIntegralCast()
254 QualType Ty = Callback->getType(); in create_call_once_funcptr_call()
334 if (!Flag->getType()->isReferenceType()) { in create_call_once()
387 ->getType() in create_call_once()
448 QualType DerefType = Deref->getType(); in create_call_once()
495 QualType Ty = Block->getType(); in create_dispatch_once()
568 QualType Ty = PV->getType(); in create_dispatch_sync()
610 QualType OldValueTy = OldValue->getType(); in create_OSAtomicCompareAndSwap()
613 QualType NewValueTy = NewValue->getType(); in create_OSAtomicCompareAndSwap()
794 selfVar->getType()), in createObjCPropertyGetter()
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp191 getMRI()->getType(Res) == getMRI()->getType(Op0) && "type mismatch"); in buildGEP()
221 getMRI()->getType(Res) == getMRI()->getType(Op0) && "type mismatch"); in buildPtrMask()
441 LLT ResTy = getMRI()->getType(Res); in buildSequence()
442 LLT OpTy = getMRI()->getType(Ops[0]); in buildSequence()
609 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchgWithSuccess()
610 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
611 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchgWithSuccess()
636 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchg()
637 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
662 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicRMW()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp32 QualType Ty = Expression->getType(); in conjureOffsetSymbolOnLocation()
286 QualType resultType = CastE->getType(); in handleLVectorSplat()
316 QualType T = CastE->getType(); in VisitCast()
317 QualType ExTy = Ex->getType(); in VisitCast()
603 QualType Ty = InitEx->getType(); in VisitDeclStmt()
635 if (B->getType()->isVectorType()) { in VisitLogicalExpr()
689 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
690 Zero, B->getType()); in VisitLogicalExpr()
918 assert (U->getType() == Ex->getType()); in VisitUnaryOperator()
1071 if (U->getType()->isAnyPointerType()) in VisitIncrementDecrementOperator()
[all …]

12345678910>>...39