/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyTIL.h | 708 if (Cmp.notTrue(Ct)) in compare() 712 Cmp.leaveScope(); in compare() 764 Cmp.leaveScope(); in compare() 798 if (Cmp.notTrue(Ct)) in compare() 833 if (Cmp.notTrue(Ct)) in compare() 872 if (Cmp.notTrue(Ct)) in compare() 962 if (Cmp.notTrue(Ct)) in compare() 1030 if (Cmp.notTrue(Ct)) in compare() 1090 if (Cmp.notTrue(Ct)) in compare() 1126 if (Cmp.notTrue(Ct)) in compare() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/ |
H A D | GtestMatchers.cpp | 38 static DeclarationMatcher getComparisonDecl(GtestCmp Cmp) { in getComparisonDecl() argument 39 switch (Cmp) { in getComparisonDecl() 70 static llvm::StringRef getComparisonTypeName(GtestCmp Cmp) { in getComparisonTypeName() argument 71 switch (Cmp) { in getComparisonTypeName() 88 static std::string getMacroName(MacroType Macro, GtestCmp Cmp) { in getMacroName() argument 89 return (getMacroTypeName(Macro) + "_" + getComparisonTypeName(Cmp)).str(); in getMacroName() 122 gtestComparisonInternal(MacroType Macro, GtestCmp Cmp, StatementMatcher Left, in gtestComparisonInternal() argument 124 return callExpr(isExpandedFromMacro(getMacroName(Macro, Cmp)), in gtestComparisonInternal() 125 callee(getComparisonDecl(Cmp)), hasArgument(2, Left), in gtestComparisonInternal() 192 return gtestComparisonInternal(MacroType::Assert, Cmp, Left, Right); in gtestAssert() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonHardwareLoops.cpp | 149 if ((Cmp & L) || (Cmp & G)) in getSwappedComparison() 155 if ((Cmp & L) || (Cmp & G)) in getNegatedComparison() 157 if ((Cmp & NE) || (Cmp & EQ)) in getNegatedComparison() 163 return (Cmp & (L | G) && !(Cmp & U)); in isSigned() 559 return Cmp; in getComparisonKind() 694 if (!Cmp) in getLoopTripCount() 697 Cmp = Comparison::getNegatedComparison(Cmp); in getLoopTripCount() 699 Cmp = Comparison::getSwappedComparison(Cmp); in getLoopTripCount() 1469 Cmp = Comparison::getNegatedComparison(Cmp); in loopCountMayWrapOrUnderFlow() 1471 Cmp = Comparison::getSwappedComparison(Cmp); in loopCountMayWrapOrUnderFlow() [all …]
|
H A D | HexagonConstPropagation.cpp | 347 if (Cmp == EQ) in negate() 349 if (Cmp == NE) in negate() 352 return Cmp ^ (L|G); in negate() 1218 if (Cmp & Comparison::U) { in evaluateCMPii() 1231 if (Cmp & Comparison::L) in evaluateCMPii() 1261 Result = (Cmp & Comparison::G) || (Cmp == Comparison::NE); in evaluateCMPpi() 1268 Result = (Cmp & Comparison::L) || (Cmp == Comparison::NE); in evaluateCMPpi() 1289 Result = (Cmp & Comparison::G) || (Cmp == Comparison::NE); in evaluateCMPpi() 1297 Result = (Cmp & Comparison::L) || (Cmp == Comparison::NE); in evaluateCMPpi() 1348 if ((Cmp & Comparison::EQ) && (Cmp & Comparison::L)) in evaluateCMPpp() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineInternal.h | 639 Instruction *foldICmpUsingKnownBits(ICmpInst &Cmp); 640 Instruction *foldICmpWithDominatingICmp(ICmpInst &Cmp); 641 Instruction *foldICmpWithConstant(ICmpInst &Cmp); 643 Instruction *foldICmpInstWithConstant(ICmpInst &Cmp); 644 Instruction *foldICmpInstWithConstantNotInt(ICmpInst &Cmp); 650 Instruction *foldICmpEquality(ICmpInst &Cmp); 653 Instruction *foldICmpWithZero(ICmpInst &Cmp); 655 Value *foldMultiplicationOverflowCheck(ICmpInst &Cmp); 663 Instruction *foldICmpTruncWithTruncOrExt(ICmpInst &Cmp, 705 Instruction *foldICmpBitCast(ICmpInst &Cmp); [all …]
|
H A D | InstCombineCompares.cpp | 1296 Value *Op0 = Cmp.getOperand(0), *Op1 = Cmp.getOperand(1); in foldICmpWithConstant() 1336 Value *X = Cmp.getOperand(0), *Y = Cmp.getOperand(1); in foldICmpWithDominatingICmp() 1374 if (Cmp.isEquality() || (IsSignBit && hasBranchUse(Cmp))) in foldICmpWithDominatingICmp() 1432 auto NewPred = (Pred == Cmp.ICMP_EQ) ? Cmp.ICMP_UGE : Cmp.ICMP_ULT; in foldICmpTruncConstant() 1488 if (Cmp.isSigned()) in foldICmpTruncWithTruncOrExt() 1497 (!Cmp.getOperand(0)->hasOneUse() || !Cmp.getOperand(1)->hasOneUse())) in foldICmpTruncWithTruncOrExt() 1698 return replaceInstUsesWith(Cmp, ConstantInt::getTrue(Cmp.getType())); in foldICmpAndShift() 2655 if (!Cmp.isEquality() && DivIsSigned != Cmp.isSigned()) in foldICmpDivConstant() 2816 ((Cmp.isUnsigned() && HasNUW) || (Cmp.isSigned() && HasNSW)) && in foldICmpSubConstant() 6654 if (match(&Cmp, in foldICmpWithHighBitMask() [all …]
|
H A D | InstCombineSelect.cpp | 141 V = Cmp->getOperand(0); in foldSelectICmpAnd() 147 } else if (decomposeBitTestICmp(Cmp->getOperand(0), Cmp->getOperand(1), in foldSelectICmpAnd() 173 if (!Cmp->hasOneUse()) in foldSelectICmpAnd() 573 if (!(Cmp->hasOneUse() && Cmp->getOperand(0)->hasOneUse() && in foldSelectICmpAndAnd() 956 if (!Cmp->hasOneUse()) in canonicalizeSaturatedAdd() 1034 Value *A = Cmp->getOperand(0); in foldAbsDiff() 1266 if (!Cmp.isEquality()) in foldSelectValueEquivalence() 1282 Value *CmpLHS = Cmp.getOperand(0), *CmpRHS = Cmp.getOperand(1); in foldSelectValueEquivalence() 1609 if (!Cmp->hasOneUse()) in foldSelectZeroOrOnes() 2091 (!Cmp || Cmp->getOperand(0)->getType() != SmallType)) in foldSelectExtConst() [all …]
|
H A D | InstCombineCasts.cpp | 182 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() || in commonCastTransforms() 776 Constant *Cmp = in visitTrunc() local 907 Value *In = Cmp->getOperand(0); in transformZExtICmp() 933 Value *In = Cmp->getOperand(0); in transformZExtICmp() 954 if (Cmp->isEquality() && Zext.getType() == Cmp->getOperand(0)->getType()) { in transformZExtICmp() 959 if (Cmp->hasOneUse() && match(Cmp->getOperand(1), m_ZeroInt()) && in transformZExtICmp() 960 match(Cmp->getOperand(0), in transformZExtICmp() 1193 return transformZExtICmp(Cmp, Zext); in visitZExt() 1259 Value *Op0 = Cmp->getOperand(0), *Op1 = Cmp->getOperand(1); in transformSExtICmp() 1281 if (Cmp->hasOneUse() && in transformSExtICmp() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ConditionOptimizer.cpp | 112 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp); 230 static AArch64CC::CondCode getAdjustedCmp(AArch64CC::CondCode Cmp) { in getAdjustedCmp() argument 231 switch (Cmp) { in getAdjustedCmp() 244 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument 251 int Correction = (Cmp == AArch64CC::GT) ? 1 : -1; in adjustCmp() 267 return CmpInfo(NewImm, Opc, getAdjustedCmp(Cmp)); in adjustCmp() 275 AArch64CC::CondCode Cmp; in modifyCmp() local 276 std::tie(Imm, Opc, Cmp) = Info; in modifyCmp() 294 .addImm(Cmp) in modifyCmp() 318 AArch64CC::CondCode Cmp, MachineInstr *To, int ToImm) in adjustTo() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SIOptimizeExecMaskingPreRA.cpp | 148 auto *Cmp = TRI->findReachingDef(CmpReg, CmpSubReg, *And, *MRI, LIS); in optimizeVcndVcmpPair() local 149 if (!Cmp || !(Cmp->getOpcode() == AMDGPU::V_CMP_NE_U32_e32 || in optimizeVcndVcmpPair() 150 Cmp->getOpcode() == AMDGPU::V_CMP_NE_U32_e64) || in optimizeVcndVcmpPair() 151 Cmp->getParent() != And->getParent()) in optimizeVcndVcmpPair() 154 MachineOperand *Op1 = TII->getNamedOperand(*Cmp, AMDGPU::OpName::src0); in optimizeVcndVcmpPair() 155 MachineOperand *Op2 = TII->getNamedOperand(*Cmp, AMDGPU::OpName::src1); in optimizeVcndVcmpPair() 219 SlotIndex CmpIdx = LIS->getInstructionIndex(*Cmp); in optimizeVcndVcmpPair() 235 std::none_of(std::next(Cmp->getIterator()), Andn2->getIterator(), in optimizeVcndVcmpPair() 239 LLVM_DEBUG(dbgs() << "Erasing: " << *Cmp << '\n'); in optimizeVcndVcmpPair() 242 LIS->RemoveMachineInstrFromMaps(*Cmp); in optimizeVcndVcmpPair() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | OptEmitter.cpp | 54 if (int Cmp = StrCmpOptionName(A->getValueAsString("Name").str().c_str(), in CompareOptionRecords() local 56 return Cmp; in CompareOptionRecords() 67 if (int Cmp = StrCmpOptionName(APre->str().c_str(), BPre->str().c_str())) in CompareOptionRecords() local 68 return Cmp; in CompareOptionRecords()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
H A D | DataflowWorklist.h | 51 PostOrderCFGView::BlockOrderCompare Cmp; member 53 return Cmp(rhs, lhs); in operator() 79 WTODataflowWorklist(const CFG &Cfg, const WTOCompare &Cmp) in WTODataflowWorklist() 80 : DataflowWorklistBase(Cfg, Cmp) {} in WTODataflowWorklist()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LibCallsShrinkWrap.cpp | 83 Value *createOrCond(CallInst *CI, Value *Arg, CmpInst::Predicate Cmp, in createOrCond() argument 88 auto Cond1 = createCond(BBBuilder, Arg, Cmp, Val); in createOrCond() 93 Value *createOrCond(CallInst *CI, CmpInst::Predicate Cmp, float Val, in createOrCond() argument 96 return createOrCond(CI, Arg, Cmp, Val, Arg, Cmp2, Val2); in createOrCond() 100 Value *createCond(IRBuilder<> &BBBuilder, Value *Arg, CmpInst::Predicate Cmp, in createCond() argument 107 return BBBuilder.CreateFCmp(Cmp, Arg, V); in createCond() 111 Value *createCond(CallInst *CI, Value *Arg, CmpInst::Predicate Cmp, in createCond() argument 114 return createCond(BBBuilder, Arg, Cmp, Val); in createCond() 118 Value *createCond(CallInst *CI, CmpInst::Predicate Cmp, float Val) { in createCond() argument 120 return createCond(CI, Arg, Cmp, Val); in createCond()
|
H A D | LowerAtomic.cpp | 25 Value *Cmp = CXI->getCompareOperand(); in lowerAtomicCmpXchgInst() local 29 Value *Equal = Builder.CreateICmpEQ(Orig, Cmp); in lowerAtomicCmpXchgInst() 83 Value *Cmp = Builder.CreateICmpUGE(Loaded, Val); in buildAtomicRMWValue() local 85 return Builder.CreateSelect(Cmp, Zero, Inc, "new"); in buildAtomicRMWValue()
|
H A D | PredicateInfo.cpp | 409 if (auto *Cmp = dyn_cast<CmpInst>(Cond)) in processAssume() local 410 collectCmpOps(Cmp, Values); in processAssume() 455 if (auto *Cmp = dyn_cast<CmpInst>(Cond)) in processBranch() local 456 collectCmpOps(Cmp, Values); in processBranch() 793 CmpInst *Cmp = dyn_cast<CmpInst>(Condition); in getConstraint() local 794 if (!Cmp) { in getConstraint() 801 if (Cmp->getOperand(0) == RenamedOp) { in getConstraint() 802 Pred = Cmp->getPredicate(); in getConstraint() 803 OtherOp = Cmp->getOperand(1); in getConstraint() 805 Pred = Cmp->getSwappedPredicate(); in getConstraint() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | CorrelatedValuePropagation.cpp | 300 if (!Cmp->isSigned()) in processICmp() 305 Cmp->getPredicate(), in processICmp() 315 Cmp->setPredicate(UnsignedPred); in processICmp() 325 Value *Op0 = Cmp->getOperand(0); in constantFoldCmp() 326 Value *Op1 = Cmp->getOperand(1); in constantFoldCmp() 328 LVI->getPredicateAt(Cmp->getPredicate(), Op0, Op1, Cmp, in constantFoldCmp() 336 Cmp->replaceAllUsesWith(TorF); in constantFoldCmp() 337 Cmp->eraseFromParent(); in constantFoldCmp() 342 if (constantFoldCmp(Cmp, LVI)) in processCmp() 792 auto *Cmp = in expandUDivOrURem() local [all …]
|
H A D | CallSiteSplitting.cpp | 109 static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) { in isCondRelevantToAnyCallArgument() argument 110 assert(isa<Constant>(Cmp->getOperand(1)) && "Expected a constant operand."); in isCondRelevantToAnyCallArgument() 111 Value *Op0 = Cmp->getOperand(0); in isCondRelevantToAnyCallArgument() 140 ICmpInst *Cmp = cast<ICmpInst>(Cond); in recordCondition() local 142 if (isCondRelevantToAnyCallArgument(Cmp, CB)) in recordCondition() 143 Conditions.push_back({Cmp, From->getTerminator()->getSuccessor(0) == To in recordCondition() 145 : Cmp->getInversePredicate()}); in recordCondition()
|
H A D | MergeICmps.cpp | 205 BCECmpBlock(BCECmp Cmp, BasicBlock *BB, InstructionSet BlockInsts) in BCECmpBlock() argument 206 : BB(BB), BlockInsts(std::move(BlockInsts)), Cmp(std::move(Cmp)) {} in BCECmpBlock() 208 const BCEAtom &Lhs() const { return Cmp.Lhs; } in Lhs() 209 const BCEAtom &Rhs() const { return Cmp.Rhs; } in Rhs() 210 int SizeBits() const { return Cmp.SizeBits; } in SizeBits() 240 BCECmp Cmp; member in __anoncb3ea8070111::BCECmpBlock 254 if (MayClobber(Cmp.Lhs.LoadI) || MayClobber(Cmp.Rhs.LoadI)) in canSinkBCECmpInst() 575 [](int i, const BCECmpBlock &Cmp) { in makeName() argument 576 return i + Cmp.BB->getName().size(); in makeName()
|
H A D | ConstraintElimination.cpp | 1028 if (auto Cmp = dyn_cast<ICmpInst>(&I)) { in addInfoFor() local 1029 for (Use &U : Cmp->uses()) { in addInfoFor() 1123 if (auto *Cmp = dyn_cast<ICmpInst>(Cur)) { in addInfoFor() local 1127 : Cmp->getPredicate(), in addInfoFor() 1128 Cmp->getOperand(0), Cmp->getOperand(1))); in addInfoFor() 1308 Builder.CreateAssumption(Cmp); in generateReproducer() 1386 if (Cmp->use_empty()) in checkAndReplaceCondition() 1387 ToRemove.push_back(Cmp); in checkAndReplaceCondition() 1392 checkCondition(Cmp->getPredicate(), Cmp->getOperand(0), in checkAndReplaceCondition() 1393 Cmp->getOperand(1), Cmp, Info)) in checkAndReplaceCondition() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | atomic_helpers.h | 116 inline bool atomic_compare_exchange_strong(volatile T *A, typename T::Type *Cmp, in atomic_compare_exchange_strong() argument 119 return __atomic_compare_exchange(&A->ValDoNotUse, Cmp, &Xchg, false, MO, in atomic_compare_exchange_strong() 137 atomic_compare_exchange_strong(volatile T *A, typename T::Type Cmp, in atomic_compare_exchange_strong() argument 139 atomic_compare_exchange_strong(A, &Cmp, Xchg, MO); in atomic_compare_exchange_strong() 140 return Cmp; in atomic_compare_exchange_strong()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandMemCmp.cpp | 390 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_NE, Diff, in emitLoadCompareByteBlock() local 427 Value *Cmp = nullptr; in getCompareLoadPairs() local 449 Cmp = Builder.CreateICmpNE(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs() 464 if (!Cmp) { in getCompareLoadPairs() 477 return Cmp; in getCompareLoadPairs() 482 Value *Cmp = getCompareLoadPairs(BlockIndex, LoadIndex); in emitLoadCompareBlockMultipleLoads() local 490 BranchInst *CmpBr = BranchInst::Create(ResBlock.BB, NextBB, Cmp); in emitLoadCompareBlockMultipleLoads() 554 BranchInst *CmpBr = BranchInst::Create(NextBB, ResBlock.BB, Cmp); in emitLoadCompareBlock() 635 Value *Cmp = getCompareLoadPairs(0, LoadIndex); in getMemCmpEqZeroOneBlock() local 637 return Builder.CreateZExt(Cmp, Type::getInt32Ty(CI->getContext())); in getMemCmpEqZeroOneBlock() [all …]
|
H A D | CodeGenPrepare.cpp | 1629 Cmp->eraseFromParent(); in replaceMathCmpWithIntrinsic() 1639 Value *A = Cmp->getOperand(0), *B = Cmp->getOperand(1); in matchUAddWithOverflowConstantEdgeCases() 1703 Value *A = Cmp->getOperand(0), *B = Cmp->getOperand(1); in combineToUSubWithOverflow() 1781 for (Value::user_iterator UI = Cmp->user_begin(), E = Cmp->user_end(); in sinkCmpExpression() 1807 InsertedCmp = CmpInst::Create(Cmp->getOpcode(), Cmp->getPredicate(), in sinkCmpExpression() 1808 Cmp->getOperand(0), Cmp->getOperand(1), ""); in sinkCmpExpression() 1821 if (Cmp->use_empty()) { in sinkCmpExpression() 1884 Value *CmpOp0 = Cmp->getOperand(0), *CmpOp1 = Cmp->getOperand(1); in foldICmpWithDominatingICmp() 1941 Cmp->swapOperands(); in swapICmpOperandsToExposeCSEOpportunities() 6896 if (!Cmp || !Cmp->hasOneUse()) in isFormingBranchFromSelectProfitable() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Statistic.cpp | 144 if (int Cmp = std::strcmp(LHS->getDebugType(), RHS->getDebugType())) in sort() local 145 return Cmp < 0; in sort() 147 if (int Cmp = std::strcmp(LHS->getName(), RHS->getName())) in sort() local 148 return Cmp < 0; in sort()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
H A D | UncheckedOptionalAccessModel.cpp | 765 [](const clang::CXXOperatorCallExpr *Cmp, in buildTransferMatchSwitch() 767 transferOptionalAndNulloptCmp(Cmp, Cmp->getArg(0), State.Env); in buildTransferMatchSwitch() 771 [](const clang::CXXOperatorCallExpr *Cmp, in buildTransferMatchSwitch() argument 773 transferOptionalAndNulloptCmp(Cmp, Cmp->getArg(1), State.Env); in buildTransferMatchSwitch() 779 [](const clang::CXXOperatorCallExpr *Cmp, in buildTransferMatchSwitch() argument 781 transferOptionalAndValueCmp(Cmp, Cmp->getArg(0), State.Env); in buildTransferMatchSwitch() 787 [](const clang::CXXOperatorCallExpr *Cmp, in buildTransferMatchSwitch() argument 789 transferOptionalAndValueCmp(Cmp, Cmp->getArg(1), State.Env); in buildTransferMatchSwitch()
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | GtestMatchers.h | 45 internal::BindableMatcher<Stmt> gtestAssert(GtestCmp Cmp, StatementMatcher Left, 54 internal::BindableMatcher<Stmt> gtestExpect(GtestCmp Cmp, StatementMatcher Left,
|