/minix/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 532 if (In->getType() != CI.getType()) in transformZExtICmp() 587 if (CI.getType() == In->getType()) in transformZExtICmp() 874 X->getType() == CI.getType()) in visitZExt() 881 X->getType() == CI.getType()) { in visitZExt() 916 if (In->getType() != CI.getType()) in transformSExtICmp() 975 if (CI.getType() == In->getType()) in transformSExtICmp() 1127 BA == CA && A->getType() == CI.getType()) { in visitSExt() 1222 if (LHSOrig->getType() != CI.getType()) in visitFPTrunc() 1224 if (RHSOrig->getType() != CI.getType()) in visitFPTrunc() 1239 if (LHSOrig->getType() != CI.getType()) in visitFPTrunc() [all …]
|
H A D | InstCombineCalls.cpp | 865 auto V2 = UndefValue::get(V1->getType()); in visitCallInst() 1079 RHS->getType()->isPointerTy() && in visitCallInst() 1299 if (!OldCall->getType()->isVoidTy()) in visitCallSite() 1391 Type *OldRetTy = Caller->getType(); in transformConstExprCastCall() 1447 Type *ActTy = (*AI)->getType(); in transformConstExprCastCall() 1541 if ((*AI)->getType() == ParamTy) { in transformConstExprCastCall() 1566 if (PTy != (*AI)->getType()) { in transformConstExprCastCall() 1614 if (!NV->getType()->isVoidTy()) { in transformConstExprCastCall() 1636 if (OldRetTy == NV->getType()) in transformConstExprCastCall() 1711 if (NestVal->getType() != NestTy) in transformCallThroughTrampoline() [all …]
|
H A D | InstCombineVectorOps.cpp | 67 VectorType *VTy = cast<VectorType>(V->getType()); in FindScalarElement() 221 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst() 301 if (Cond->getType()->isVectorTy()) { in visitExtractElementInst() 331 assert(LHS->getType() == RHS->getType() && in CollectSingleShuffleElements() 333 unsigned NumElts = V->getType()->getVectorNumElements(); in CollectSingleShuffleElements() 417 assert(V->getType()->isVectorTy() && "Invalid shuffle!"); in CollectShuffleElements() 450 if (LR.first->getType() != RHS->getType()) { in CollectShuffleElements() 479 if (EI->getOperand(0)->getType() == PermittedRHS->getType() && in CollectShuffleElements() 726 VectorType::get(I->getType()->getScalarType(), in BuildNew() 910 SVI.setOperand(1, UndefValue::get(RHS->getType())); in visitShuffleVectorInst() [all …]
|
H A D | InstCombineLoadStoreAlloca.cpp | 170 Type *IntPtrTy = DL->getIntPtrType(AI.getType()); in visitAllocaInst() 171 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst() 197 ? DL->getIntPtrType(AI.getType()) in visitAllocaInst() 255 if (AI.getType() != EntryAI->getType()) in visitAllocaInst() 256 return new BitCastInst(EntryAI, AI.getType()); in visitAllocaInst() 407 DL->getABITypeAlignment(LI.getType()); in visitLoadInst() 437 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 450 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst() 451 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst() 619 DL->getABITypeAlignment(Val->getType()); in visitStoreInst() [all …]
|
H A D | InstCombineCompares.cpp | 489 Ty = Idx->getType(); in FoldCmpLoadFromIndexedGlobal() 605 if (VariableIdx->getType() != IntPtrTy) in EvaluateGEPOffsetExpression() 1925 Type *SrcTy = LHSCIOp->getType(); in visitICmpInstWithCastAndCast() 1926 Type *DestTy = LHSCI->getType(); in visitICmpInstWithCastAndCast() 1939 if (LHSCIOp->getType() != RHSOp->getType()) in visitICmpInstWithCastAndCast() 1959 if (RHSCIOp->getType() != LHSCIOp->getType()) in visitICmpInstWithCastAndCast() 2136 Type *Ty = LHS->getType(); in ProcessUAddIdiom() 2180 Type *TyA = A->getType(), *TyB = B->getType(); in ProcessUMulZExtIdiom() 2430 if (Op0->getType()->isPointerTy()) in swapMayExposeCSEOpportunities() 2613 Type *Ty = Op0->getType(); in visitICmpInst() [all …]
|
/minix/external/bsd/llvm/dist/llvm/lib/CodeGen/ |
H A D | IntrinsicLowering.cpp | 34 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() 275 Value *Count = ConstantInt::get(V->getType(), 0); in LowerCTPOP() 335 CI->getArgOperand(0)->getType()); in ReplaceFPIntrinsicWithCall() 370 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall() 375 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall() 561 if (!CI->getType()->isVoidTy()) in LowerIntrinsicCall() 583 CI->getType() != CI->getArgOperand(0)->getType() || in LowerToByteSwap() [all …]
|
/minix/external/bsd/llvm/dist/clang/lib/CodeGen/ |
H A D | CGExprAgg.cpp | 210 if (LV.getType()->isAtomicType()) { in EmitAggLoadOfLValue() 215 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue() 673 EnsureDest(E->getType()); in VisitCastExpr() 868 EmitCopy(E->getLHS()->getType(), in VisitBinAssign() 959 EmitFinalDestCopy(VE->getType(), CGF.MakeAddrLValue(ArgPtr, VE->getType())); in VisitVAArgExpr() 966 EnsureDest(E->getType()); in VisitCXXBindTemporaryExpr() 997 QualType T = E->getType(); in VisitCXXScalarValueInitExpr() 1003 QualType T = E->getType(); in VisitImplicitValueInitExpr() 1038 QualType type = LV.getType(); in EmitInitializationToLValue() 1074 QualType type = lv.getType(); in EmitNullInitializationToLValue() [all …]
|
H A D | CGExpr.cpp | 432 QualType Ty = E->getType(); in EmitReferenceBindingToExpr() 657 IndexedType = Base->getType(); in getArrayIndexingBound() 997 resultType = value->getType(); in tryEmitAsConstant() 1416 assert((LV.getType()->isIntegerType() || LV.getType()->isPointerType()) && in EmitLoadOfGlobalRegLValue() 1678 assert((Dst.getType()->isIntegerType() || Dst.getType()->isPointerType()) && in EmitStoreThroughGlobalRegLValue() 1817 QualType T = E->getType(); in EmitGlobalVarDeclLValue() 1896 VD->getType(), Alignment); in EmitGlobalNamedRegister() 1902 QualType T = E->getType(); in EmitDeclRefLValue() 3043 QualType FT = FD->getType(); in EmitRValueForField() 3349 PrefixSig->getType(), in EmitCall() [all …]
|
H A D | CGExprScalar.cpp | 56 return E->getType()->isNullPtrType(); in MustVisitNullValue() 368 if (E->getType()->isVoidType()) in VisitUnaryDeref() 944 if (E->getType()->isVoidType()) in VisitExpr() 1589 BinOp.Ty = E->getType(); in EmitAddConsiderOverflowBehavior() 1685 BinOp.Ty = E->getType(); in EmitScalarPrePostIncDec() 1830 BinOp.Ty = E->getType(); in VisitUnaryMinus() 2044 Result.Ty = E->getType(); in EmitBinOps() 2664 if (Ops.LHS->getType() != RHS->getType()) in EmitShl() 2717 if (Ops.LHS->getType() != RHS->getType()) in EmitShr() 3302 QualType Ty = VE->getType(); in VisitVAArgExpr() [all …]
|
H A D | CGExprConstant.cpp | 551 return Builder.Finalize(ILE->getType()); in BuildStruct() 633 Types.push_back(C->getType()); in VisitCastExpr() 807 if (ILE->getType()->isArrayType()) in VisitInitListExpr() 810 if (ILE->getType()->isRecordType()) in VisitInitListExpr() 820 QualType Ty = E->getType(); in VisitCXXConstructExpr() 860 QualType T = E->getType(); in VisitObjCEncodeExpr() 1007 QualType Ty = D.getType(); in EmitConstantInit() 1028 if (D.getType()->isReferenceType()) in EmitConstantInit() 1132 if (C->getType() != DestTy) in EmitConstantValue() 1242 CommonElementType = C->getType(); in EmitConstantValue() [all …]
|
H A D | CGExprComplex.cpp | 305 if (lvalue.getType()->isAtomicType()) in EmitLoadOfLValue() 312 QualType ComplexTy = lvalue.getType(); in EmitLoadOfLValue() 338 if (lvalue.getType()->isAtomicType()) in EmitStoreOfComplex() 346 QualType ComplexTy = lvalue.getType(); in EmitStoreOfComplex() 524 if (Op.second->getType()->isFloatingPointTy()) in VisitUnaryNot() 733 if (LHSr->getType()->isFloatingPointTy()) { in EmitBinDiv() 746 switch (LHSr->getType()->getTypeID()) { in EmitBinDiv() 809 Ops.Ty = E->getType(); in EmitBinOps() 820 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue() 1032 assert(E && getComplexType(E->getType()) && in EmitComplexExpr() [all …]
|
/minix/external/bsd/llvm/dist/llvm/lib/IR/ |
H A D | Constants.cpp | 1196 assert(Op->getType() == getOperand(OpNo)->getType() && in getWithOperandReplaced() 1847 assert(C1->getType() == C2->getType() && in get() 1855 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get() 1862 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get() 1869 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get() 1874 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get() 1880 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in get() 1965 assert(C1->getType() == C2->getType() && "Op types should be identical!"); in getCompare() 2043 assert(LHS->getType() == RHS->getType()); in getICmp() 2068 assert(LHS->getType() == RHS->getType()); in getFCmp() [all …]
|
H A D | Instructions.cpp | 63 if (Op1->getType() != Op2->getType()) in areInvalidOperands() 1577 if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType()) in isValidOperands() 1778 assert(getType() == LHS->getType() && in init() 1785 assert(getType() == LHS->getType() && in init() 1793 assert(getType() == LHS->getType() && in init() 1800 assert(getType() == LHS->getType() && in init() 1807 assert(getType() == LHS->getType() && in init() 1814 assert(getType() == LHS->getType() && in init() 1822 assert(getType() == LHS->getType() && in init() 1831 assert(getType() == LHS->getType() && in init() [all …]
|
H A D | IRBuilder.cpp | 29 GlobalVariable *GV = new GlobalVariable(M, StrConstant->getType(), in CreateGlobalString() 43 PointerType *PT = cast<PointerType>(Ptr->getType()); in getCastedInt8PtrValue() 70 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet() 97 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemCpy() 128 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove() 148 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeStart() 154 assert(Size->getType() == getInt64Ty() && in CreateLifetimeStart() 163 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeEnd() 169 assert(Size->getType() == getInt64Ty() && in CreateLifetimeEnd() 178 assert(Cond->getType() == getInt1Ty() && in CreateAssumption() [all …]
|
H A D | Verifier.cpp | 430 Assert1(GV.getInitializer()->getType() == GV.getType()->getElementType(), in visitGlobalVariable() 576 Assert1(GA.getType() == Aliasee->getType(), in visitGlobalAlias() 1276 Assert1(SI.getTrueValue()->getType() == SI.getType(), in visitSelectInst() 1549 Assert1(PN.getType() == PN.getIncomingValue(i)->getType(), in visitPHINode() 1769 Assert1(B.getOperand(0)->getType() == B.getOperand(1)->getType(), in visitBinaryOperator() 1784 Assert1(B.getType() == B.getOperand(0)->getType(), in visitBinaryOperator() 1798 Assert1(B.getType() == B.getOperand(0)->getType(), in visitBinaryOperator() 1808 Assert1(B.getType() == B.getOperand(0)->getType(), in visitBinaryOperator() 1817 Assert1(B.getType() == B.getOperand(0)->getType(), in visitBinaryOperator() 1942 Assert1(High->getType() == Low->getType() && in visitRangeMetadata() [all …]
|
H A D | ConstantFold.cpp | 88 Type *MidTy = Op->getType(); in foldConstantCastPair() 103 Type *SrcTy = V->getType(); in FoldBitCast() 201 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes() 688 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction() 1212 if (C1->getType()->isIntegerTy(1)) { in ConstantFoldBinaryInstruction() 1278 if (!C1->getType()->isIntegerTy(64)) in IdxCompare() 1312 assert(V1->getType() == V2->getType() && in evaluateFCmpRelation() 1401 assert(V1->getType() == V2->getType() && in evaluateICmpRelation() 1504 (CE1->getType()->isPointerTy() || CE1->getType()->isIntegerTy())) { in evaluateICmpRelation() 1916 CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy()) { in ConstantFoldCompareInstruction() [all …]
|
/minix/external/bsd/llvm/dist/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 52 if (U->getType() == Ty) in ReuseOrCreateCast() 99 if (V->getType() == Ty) in InsertNoopCastOfTo() 1005 if (IncV->getType() != PN->getType()) { in expandIVInc() 1553 if (LHS->getType() != S->getType()) in visitSMaxExpr() 1577 if (LHS->getType() != S->getType()) in visitUMaxExpr() 1698 if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy()) in replaceCongruentIVs() 1730 && TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) { in replaceCongruentIVs() 1742 if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy()) in replaceCongruentIVs() 1754 if (OrigPhiRef->getType() == Phi->getType() in replaceCongruentIVs() 1778 if (OrigInc->getType() != IsomorphicInc->getType()) { in replaceCongruentIVs() [all …]
|
H A D | ConstantFolding.cpp | 310 if (CFP->getType()->isDoubleTy()) { in ReadDataFromGlobal() 314 if (CFP->getType()->isFloatTy()){ in ReadDataFromGlobal() 318 if (CFP->getType()->isHalfTy()){ in ReadDataFromGlobal() 393 CE->getOperand(0)->getType() == TD.getIntPtrType(CE->getType())) { in ReadDataFromGlobal() 498 Type *SrcTy = C->getType(); in ConstantFoldLoadThroughBitcast() 695 Ops[i]->getType() != IntPtrTy) { in CastGEPIndices() 740 !Ptr->getType()->isPointerTy()) in SymbolicallyEvaluateGEP() 817 Type *Ty = Ptr->getType(); in SymbolicallyEvaluateGEP() 1168 CE0->getOperand(0)->getType() == CE1->getOperand(0)->getType()) { in ConstantFoldCompareInstOperands() 1401 Type *Ty = Op->getType(); in getValueAsDouble() [all …]
|
H A D | CostModel.cpp | 171 assert(BinOp->getType()->isVectorTy() && "Expecting a vector type"); in matchPairwiseReductionAtLevel() 258 Type *VecTy = ReduxRoot->getOperand(0)->getType(); in matchPairwiseReduction() 322 Type *VecTy = ReduxRoot->getOperand(0)->getType(); in matchVectorSplittingReduction() 422 Type *CondTy = SI->getCondition()->getType(); in getInstructionCost() 427 Type *ValTy = I->getOperand(0)->getType(); in getInstructionCost() 432 Type *ValTy = SI->getValueOperand()->getType(); in getInstructionCost() 439 return TTI->getMemoryOpCost(I->getOpcode(), I->getType(), in getInstructionCost() 456 Type *SrcTy = I->getOperand(0)->getType(); in getInstructionCost() 486 IE->getType(), Idx); in getInstructionCost() 490 Type *VecTypOp0 = Shuffle->getOperand(0)->getType(); in getInstructionCost() [all …]
|
/minix/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineC.cpp | 245 QualType T = CastE->getType(); in VisitCast() 246 QualType ExTy = Ex->getType(); in VisitCast() 344 QualType resultType = CastE->getType(); in VisitCast() 396 QualType resultType = CastE->getType(); in VisitCast() 492 QualType Ty = InitEx->getType(); in VisitDeclStmt() 570 X = getSValBuilder().evalCast(RHSVal, B->getType(), RHS->getType()); in VisitLogicalExpr() 703 assert(OOE->getType()->isBuiltinType()); in VisitOffsetOfExpr() 788 assert (U->getType() == Ex->getType()); in VisitUnaryOperator() 875 U->getType()); in VisitUnaryOperator() 928 if (U->getType()->isAnyPointerType()) in VisitIncrementDecrementOperator() [all …]
|
/minix/external/bsd/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
H A D | VectorUtils.h | 77 !I.getArgOperand(0)->getType()->isFloatingPointTy() || in checkUnaryFloatSignature() 78 I.getType() != I.getArgOperand(0)->getType() || in checkUnaryFloatSignature() 88 !I.getArgOperand(0)->getType()->isFloatingPointTy() || in checkBinaryFloatSignature() 89 !I.getArgOperand(1)->getType()->isFloatingPointTy() || in checkBinaryFloatSignature() 90 I.getType() != I.getArgOperand(0)->getType() || in checkBinaryFloatSignature() 91 I.getType() != I.getArgOperand(1)->getType() || in checkBinaryFloatSignature()
|
/minix/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | CtorUtils.cpp | 39 ArrayType::get(OldCA->getType()->getElementType(), CAList.size()); in removeGlobalCtors() 43 if (CA->getType() == OldCA->getType()) { in removeGlobalCtors() 50 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors() 58 if (V->getType() != GCL->getType()) in removeGlobalCtors() 59 V = ConstantExpr::getBitCast(V, GCL->getType()); in removeGlobalCtors()
|
/minix/external/bsd/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64AddressTypePromotion.cpp | 167 if (Inst->getType()->getIntegerBitWidth() >= in canGetThrough() 168 Opnd->getOperand(0)->getType()->getIntegerBitWidth() && in canGetThrough() 169 Inst->getOperand(0)->getType()->getIntegerBitWidth() <= in canGetThrough() 183 (Inst->getType() == ConsideredSExtType || Inst->hasOneUse())) in shouldGetThrough() 214 if (SExt->getType() != ConsideredSExtType) in shouldConsiderSExt() 304 Inst->mutateType(SExt->getType()); in propagateSignExtension() 314 if (Inst->getOperand(OpIdx)->getType() == SExt->getType() || in propagateSignExtension() 323 Inst->setOperand(OpIdx, ConstantInt::getSigned(SExt->getType(), in propagateSignExtension() 330 Inst->setOperand(OpIdx, UndefValue::get(SExt->getType())); in propagateSignExtension() 358 SExt->getType() == SExt->getOperand(0)->getType()) { in propagateSignExtension()
|
/minix/external/bsd/llvm/dist/llvm/lib/Target/R600/ |
H A D | SITypeRewriter.cpp | 83 Type *PtrTy = Ptr->getType(); in visitLoadInst() 95 Value *BitCastLoad = Builder.CreateBitCast(Load, I.getType()); in visitLoadInst() 111 if (Arg->getType() == v16i8) { in visitCallInst() 116 } else if (Arg->getType()->isVectorTy() && in visitCallInst() 117 Arg->getType()->getVectorNumElements() == 1 && in visitCallInst() 118 Arg->getType()->getVectorElementType() == in visitCallInst() 120 Type *ElementTy = Arg->getType()->getVectorElementType(); in visitCallInst() 130 Types.push_back(Arg->getType()); in visitCallInst()
|
/minix/external/bsd/llvm/dist/clang/lib/Analysis/ |
H A D | BodyFarm.cpp | 120 /* T = */ D->getType(), in makeDeclRefExpr() 136 if (Arg->getType() == Ty) in makeIntegralCast() 181 QualType PredicateQPtrTy = Predicate->getType(); in create_dispatch_once() 191 QualType Ty = Block->getType(); in create_dispatch_once() 257 QualType Ty = PV->getType(); in create_dispatch_sync() 299 QualType OldValueTy = OldValue->getType(); in create_OSAtomicCompareAndSwap() 302 QualType NewValueTy = NewValue->getType(); in create_OSAtomicCompareAndSwap() 307 QualType TheValueTy = TheValue->getType(); in create_OSAtomicCompareAndSwap() 425 if (!IVar->getType()->isObjCLifetimeType() && in createObjCPropertyGetter() 439 selfVar->getType()), in createObjCPropertyGetter() [all …]
|