/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 87 bool makeIVComparisonInvariant(ICmpInst *ICmp, Value *IVOperand); 88 void eliminateIVComparison(ICmpInst *ICmp, Value *IVOperand); 175 bool SimplifyIndvar::makeIVComparisonInvariant(ICmpInst *ICmp, in makeIVComparisonInvariant() argument 178 ICmpInst::Predicate Pred = ICmp->getPredicate(); in makeIVComparisonInvariant() 179 if (IVOperand != ICmp->getOperand(0)) { in makeIVComparisonInvariant() 181 assert(IVOperand == ICmp->getOperand(1) && "Can't find IVOperand"); in makeIVComparisonInvariant() 188 const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent()); in makeIVComparisonInvariant() 189 const SCEV *S = SE->getSCEVAtScope(ICmp->getOperand(IVOperIdx), ICmpLoop); in makeIVComparisonInvariant() 190 const SCEV *X = SE->getSCEVAtScope(ICmp->getOperand(1 - IVOperIdx), ICmpLoop); in makeIVComparisonInvariant() 207 CheapExpansions[S] = ICmp->getOperand(IVOperIdx); in makeIVComparisonInvariant() [all …]
|
D | LoopUtils.cpp | 814 if (Op != Instruction::ICmp && Op != Instruction::FCmp) { in getOrderedReduction() 856 if (Op != Instruction::ICmp && Op != Instruction::FCmp) { in getShuffleReduction() 914 case Instruction::ICmp: in createSimpleTargetReduction() 980 return createSimpleTargetReduction(B, TTI, Instruction::ICmp, Src, Flags); in createTargetReduction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | Operations.cpp | 33 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_EQ)); in describeFuzzerIntOps() 34 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_NE)); in describeFuzzerIntOps() 35 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_UGT)); in describeFuzzerIntOps() 36 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_UGE)); in describeFuzzerIntOps() 37 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_ULT)); in describeFuzzerIntOps() 38 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_ULE)); in describeFuzzerIntOps() 39 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SGT)); in describeFuzzerIntOps() 40 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SGE)); in describeFuzzerIntOps() 41 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SLT)); in describeFuzzerIntOps() 42 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_SLE)); in describeFuzzerIntOps() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | HardwareLoops.cpp | 356 auto ICmp = cast<ICmpInst>(BI->getCondition()); in CanGenerateTest() local 357 LLVM_DEBUG(dbgs() << " - Found condition: " << *ICmp << "\n"); in CanGenerateTest() 358 if (!ICmp->isEquality()) in CanGenerateTest() 361 auto IsCompareZero = [](ICmpInst *ICmp, Value *Count, unsigned OpIdx) { in CanGenerateTest() argument 362 if (auto *Const = dyn_cast<ConstantInt>(ICmp->getOperand(OpIdx))) in CanGenerateTest() 363 return Const->isZero() && ICmp->getOperand(OpIdx ^ 1) == Count; in CanGenerateTest() 367 if (!IsCompareZero(ICmp, Count, 0) && !IsCompareZero(ICmp, Count, 1)) in CanGenerateTest() 370 unsigned SuccIdx = ICmp->getPredicate() == ICmpInst::ICMP_NE ? 0 : 1; in CanGenerateTest()
|
D | TypePromotion.cpp | 268 if (auto *ICmp = dyn_cast<ICmpInst>(V)) in isSink() local 269 return ICmp->isSigned() || LessThanTypeSize(ICmp->getOperand(0)); in isSink() 765 case Instruction::ICmp: in isSupportedValue() 965 auto *ICmp = cast<ICmpInst>(&I); in runOnFunction() local 967 if (ICmp->isSigned() || in runOnFunction() 968 !isa<IntegerType>(ICmp->getOperand(0)->getType())) in runOnFunction() 971 LLVM_DEBUG(dbgs() << "IR Promotion: Searching from: " << *ICmp << "\n"); in runOnFunction() 973 for (auto &Op : ICmp->operands()) { in runOnFunction() 979 if (TLI->getTypeAction(ICmp->getContext(), SrcVT) != in runOnFunction() 983 EVT PromotedVT = TLI->getTypeToTransformTo(ICmp->getContext(), SrcVT); in runOnFunction()
|
D | ExpandReductions.cpp | 51 return Instruction::ICmp; in getOpcode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFastISel.cpp | 420 if (const auto *ICmp = dyn_cast<ICmpInst>(V)) in getRegForI1Value() local 421 if (const ConstantInt *C = dyn_cast<ConstantInt>(ICmp->getOperand(1))) in getRegForI1Value() 422 if (ICmp->isEquality() && C->isZero() && C->getType()->isIntegerTy(32)) { in getRegForI1Value() 423 Not = ICmp->isTrueWhenEqual(); in getRegForI1Value() 424 return getRegForValue(ICmp->getOperand(0)); in getRegForI1Value() 1000 const auto *ICmp = cast<ICmpInst>(I); in selectICmp() local 1002 bool I32 = getSimpleType(ICmp->getOperand(0)->getType()) != MVT::i64; in selectICmp() 1005 switch (ICmp->getPredicate()) { in selectICmp() 1044 unsigned LHS = getRegForPromotedValue(ICmp->getOperand(0), IsSigned); in selectICmp() 1048 unsigned RHS = getRegForPromotedValue(ICmp->getOperand(1), IsSigned); in selectICmp() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZTDC.cpp | 321 else if (I.getOpcode() == Instruction::ICmp) in runOnFunction() 364 Value *ICmp = IRB.CreateICmp(CmpInst::ICMP_NE, TDC, Zero32); in runOnFunction() local 365 I->replaceAllUsesWith(ICmp); in runOnFunction()
|
D | SystemZTargetTransformInfo.cpp | 98 case Instruction::ICmp: in getIntImmCostInst() 814 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost() 861 case Instruction::ICmp: { in getCmpSelInstrCost() 944 case Instruction::ICmp: in isFoldableLoad() 949 if (UserI->getOpcode() != Instruction::ICmp) { in isFoldableLoad() 977 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1356 return ICmpInst::Create(Instruction::ICmp, Pred, Masked, Zero); in foldIRemByPowerOfTwoToBitTest() 1385 return ICmpInst::Create(Instruction::ICmp, in foldSignBitTest() 3096 return ICmpInst::Create(Instruction::ICmp, NewPred, in foldICmpEqIntrinsicWithConstant() 3123 return CmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_ULT, in foldICmpIntrinsicWithConstant() 3132 return CmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_UGT, in foldICmpIntrinsicWithConstant() 3145 return CmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ, in foldICmpIntrinsicWithConstant() 3154 return CmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_NE, in foldICmpIntrinsicWithConstant() 4333 static Instruction *foldICmpWithZextOrSext(ICmpInst &ICmp, in foldICmpWithZextOrSext() argument 4335 assert(isa<CastInst>(ICmp.getOperand(0)) && "Expected cast for operand 0"); in foldICmpWithZextOrSext() 4336 auto *CastOp0 = cast<CastInst>(ICmp.getOperand(0)); in foldICmpWithZextOrSext() [all …]
|
D | InstCombineAndOrXor.cpp | 934 auto tryToMatchSignedTruncationCheck = [](ICmpInst *ICmp, Value *&X, in foldSignedTruncationCheck() 938 if (!(match(ICmp, in foldSignedTruncationCheck() 962 auto tryToDecompose = [](ICmpInst *ICmp, Value *&X, in foldSignedTruncationCheck() 964 CmpInst::Predicate Pred = ICmp->getPredicate(); in foldSignedTruncationCheck() 966 if (llvm::decomposeBitTestICmp(ICmp->getOperand(0), ICmp->getOperand(1), in foldSignedTruncationCheck() 973 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolutionExpander.cpp | 1673 Value *ICmp = Builder.CreateICmpSGT(LHS, RHS); in visitSMaxExpr() local 1674 rememberInstruction(ICmp); in visitSMaxExpr() 1675 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smax"); in visitSMaxExpr() 1698 Value *ICmp = Builder.CreateICmpUGT(LHS, RHS); in visitUMaxExpr() local 1699 rememberInstruction(ICmp); in visitUMaxExpr() 1700 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "umax"); in visitUMaxExpr() 1723 Value *ICmp = Builder.CreateICmpSLT(LHS, RHS); in visitSMinExpr() local 1724 rememberInstruction(ICmp); in visitSMinExpr() 1725 Value *Sel = Builder.CreateSelect(ICmp, LHS, RHS, "smin"); in visitSMinExpr() 1748 Value *ICmp = Builder.CreateICmpULT(LHS, RHS); in visitUMinExpr() local [all …]
|
D | CFLGraph.h | 185 return CE->getOpcode() != Instruction::ICmp && in hasUsefulEdges() 579 case Instruction::ICmp: in visitConstantExpr()
|
D | CaptureTracking.cpp | 349 case Instruction::ICmp: { in PointerMayBeCaptured()
|
D | IVDescriptors.cpp | 588 case Instruction::ICmp: in isRecurrenceInstr() 790 return Instruction::ICmp; in getRecurrenceBinOp()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 1165 Cost += ConcreteTTI->getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, 1350 Cost += ConcreteTTI->getCmpSelInstrCost(BinaryOperator::ICmp, RetTy, 1412 Cost += 3 * ConcreteTTI->getCmpSelInstrCost(BinaryOperator::ICmp, SumTy, 1415 BinaryOperator::ICmp, OverflowTy, OverflowTy, nullptr); 1430 Cost += ConcreteTTI->getCmpSelInstrCost(BinaryOperator::ICmp, SumTy, 1458 Cost += ConcreteTTI->getCmpSelInstrCost(BinaryOperator::ICmp, MulTy, 1669 CmpOpcode = Instruction::ICmp; in getMinMaxReductionCost()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | ControlHeightReduction.cpp | 1529 static bool negateICmpIfUsedByBranchOrSelectOnly(ICmpInst *ICmp, in negateICmpIfUsedByBranchOrSelectOnly() argument 1532 for (User *U : ICmp->users()) { in negateICmpIfUsedByBranchOrSelectOnly() 1537 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp) in negateICmpIfUsedByBranchOrSelectOnly() 1541 for (User *U : ICmp->users()) { in negateICmpIfUsedByBranchOrSelectOnly() 1571 ICmp->setPredicate(CmpInst::getInversePredicate(ICmp->getPredicate())); in negateICmpIfUsedByBranchOrSelectOnly() 1969 if (auto *ICmp = dyn_cast<ICmpInst>(Cond)) in addToMergedCondition() local 1970 if (negateICmpIfUsedByBranchOrSelectOnly(ICmp, BranchOrSelect, Scope)) { in addToMergedCondition()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantsContext.h | 287 return CE->getOpcode() == Instruction::ICmp || in classof() 560 case Instruction::ICmp: 561 return new CompareConstantExpr(Ty, Instruction::ICmp, SubclassData,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 568 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes() local 569 if (!binaryOpIsDerivedFromSameAlloca(BaseAlloca, Val, ICmp, 0, 1)) in collectUsesWithPtrTypes() 573 WorkList.push_back(ICmp); in collectUsesWithPtrTypes()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 2770 case Instruction::ICmp: in buildTree_rec() 3376 case Instruction::ICmp: in getEntryCost() 4213 case Instruction::ICmp: { in vectorizeTree() 6142 ((Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) && in isVectorizable() 6144 (Opcode == Instruction::ICmp && in isVectorizable() 6158 Cmp = Opcode == Instruction::ICmp ? Builder.CreateICmpSLT(LHS, RHS) in createOp() 6162 Cmp = Opcode == Instruction::ICmp ? Builder.CreateICmpSGT(LHS, RHS) in createOp() 6166 assert(Opcode == Instruction::ICmp && "Expected integer types."); in createOp() 6170 assert(Opcode == Instruction::ICmp && "Expected integer types."); in createOp() 6289 return Opcode == Instruction::ICmp || in isAssociative() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SpeculativeExecution.cpp | 245 case Instruction::ICmp: in ComputeSpeculationCost()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXGenericToNVVM.cpp | 258 case Instruction::ICmp: in remapConstantExpr()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.cpp | 135 if (Opcode == Instruction::ICmp && Imm.isNegative() && in getIntImmCostInst() 761 case Instruction::ICmp: in getArithmeticInstrCost() 1290 case Instruction::ICmp: in useReductionIntrinsic()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Instruction.def | 183 HANDLE_OTHER_INST(51, ICmp , ICmpInst ) // Integer comparison instruction
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Instruction.def | 206 HANDLE_OTHER_INST(53, ICmp , ICmpInst ) // Integer comparison instruction
|