| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | MergeICmps.cpp | 188 const ICmpInst *CmpI; member 191 : Lhs(std::move(L)), Rhs(std::move(R)), SizeBits(SizeBits), CmpI(CmpI) { in BCECmp() 305 std::optional<BCECmp> visitICmp(const ICmpInst *const CmpI, in visitICmp() argument 313 if (!CmpI->hasOneUse()) { in visitICmp() 317 if (CmpI->getPredicate() != ExpectedPredicate) in visitICmp() 322 auto Lhs = visitICmpLoadOperand(CmpI->getOperand(0), BaseId); in visitICmp() 325 auto Rhs = visitICmpLoadOperand(CmpI->getOperand(1), BaseId); in visitICmp() 328 const auto &DL = CmpI->getModule()->getDataLayout(); in visitICmp() 330 DL.getTypeSizeInBits(CmpI->getOperand(0)->getType()), CmpI); in visitICmp() 369 auto *CmpI = dyn_cast<ICmpInst>(Cond); in visitCmpBlock() local [all …]
|
| H A D | LowerExpectIntrinsic.cpp | 287 ICmpInst *CmpI = dyn_cast<ICmpInst>(BSI.getCondition()); in handleBrSelExpect() local 290 if (!CmpI) { in handleBrSelExpect() 294 Predicate = CmpI->getPredicate(); in handleBrSelExpect() 298 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect() 301 CI = dyn_cast<CallInst>(CmpI->getOperand(0)); in handleBrSelExpect() 343 if (CmpI) in handleBrSelExpect() 344 CmpI->setOperand(0, ArgValue); in handleBrSelExpect()
|
| H A D | ConstraintElimination.cpp | 1146 auto *CmpI = dyn_cast<ICmpInst>(Br->getCondition()); in addInfoFor() local 1147 if (!CmpI) in addInfoFor() 1151 DT.getNode(Br->getSuccessor(0)), CmpI->getPredicate(), in addInfoFor() 1152 CmpI->getOperand(0), CmpI->getOperand(1))); in addInfoFor() 1156 CmpInst::getInversePredicate(CmpI->getPredicate()), CmpI->getOperand(0), in addInfoFor() 1157 CmpI->getOperand(1))); in addInfoFor()
|
| H A D | GVN.cpp | 2079 if (auto *CmpI = dyn_cast<CmpInst>(V)) { in processAssumeIntrinsic() local 2080 if (impliesEquivalanceIfTrue(CmpI)) { in processAssumeIntrinsic() 2081 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() 2082 Value *CmpRHS = CmpI->getOperand(1); in processAssumeIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/ |
| H A D | LanaiInstrInfo.cpp | 205 inline static bool isRedundantFlagInstr(MachineInstr *CmpI, unsigned SrcReg, in isRedundantFlagInstr() argument 208 if (CmpI->getOpcode() == Lanai::SFSUB_F_RR && in isRedundantFlagInstr() 216 if (((CmpI->getOpcode() == Lanai::SFSUB_F_RI_LO && in isRedundantFlagInstr() 218 (CmpI->getOpcode() == Lanai::SFSUB_F_RI_HI && in isRedundantFlagInstr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonHardwareLoops.cpp | 233 bool orderBumpCompare(MachineInstr *BumpI, MachineInstr *CmpI); 1319 MachineInstr *CmpI) { in orderBumpCompare() argument 1320 assert (BumpI != CmpI && "Bump and compare in the same instruction?"); in orderBumpCompare() 1323 if (CmpI->getParent() != BB) in orderBumpCompare() 1330 if (&*I == CmpI) in orderBumpCompare() 1334 Register PredR = CmpI->getOperand(0).getReg(); in orderBumpCompare() 1336 instr_iterator CmpIt = CmpI->getIterator(), NextIt = std::next(CmpIt); in orderBumpCompare() 1348 BB->splice(++BumpI->getIterator(), BB, CmpI->getIterator()); in orderBumpCompare()
|
| H A D | HexagonSplitDouble.cpp | 506 const MachineInstr *CmpI = MRI->getVRegDef(PR); in collectIndRegsForLoop() local 507 while (CmpI->getOpcode() == Hexagon::C2_not) in collectIndRegsForLoop() 508 CmpI = MRI->getVRegDef(CmpI->getOperand(1).getReg()); in collectIndRegsForLoop() 511 bool OkCI = TII->analyzeCompare(*CmpI, CmpR1, CmpR2, Mask, Val); in collectIndRegsForLoop()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMInstructionSelector.cpp | 579 auto CmpI = in insertComparison() local 584 if (!constrainSelectedInstRegOperands(*CmpI, TII, TRI, RBI)) in insertComparison() 777 auto CmpI = BuildMI(MBB, InsertBefore, DbgLoc, TII.get(Opcodes.TSTri)) in selectSelect() local 781 if (!constrainSelectedInstRegOperands(*CmpI, TII, TRI, RBI)) in selectSelect()
|
| H A D | ARMBaseInstrInfo.cpp | 2858 inline static bool isRedundantFlagInstr(const MachineInstr *CmpI, in isRedundantFlagInstr() argument 2863 if ((CmpI->getOpcode() == ARM::CMPrr || CmpI->getOpcode() == ARM::t2CMPrr) && in isRedundantFlagInstr() 2873 if (CmpI->getOpcode() == ARM::tCMPr && OI->getOpcode() == ARM::tSUBrr && in isRedundantFlagInstr() 2882 if ((CmpI->getOpcode() == ARM::CMPri || CmpI->getOpcode() == ARM::t2CMPri) && in isRedundantFlagInstr() 2890 if (CmpI->getOpcode() == ARM::tCMPi8 && in isRedundantFlagInstr() 2898 if ((CmpI->getOpcode() == ARM::CMPrr || CmpI->getOpcode() == ARM::t2CMPrr) && in isRedundantFlagInstr() 2908 if (CmpI->getOpcode() == ARM::tCMPr && in isRedundantFlagInstr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 7874 if (CmpI->isUnsigned()) in lookThroughCast() 7878 if (CmpI->isSigned()) in lookThroughCast() 7883 if (match(CmpI->getOperand(1), m_Constant(CmpConst)) && in lookThroughCast() 7955 CmpInst *CmpI = dyn_cast<CmpInst>(SI->getCondition()); in matchSelectPattern() local 7956 if (!CmpI) return {SPF_UNKNOWN, SPNB_NA, false}; in matchSelectPattern() 7968 CmpInst::Predicate Pred = CmpI->getPredicate(); in matchDecomposedSelectPattern() 7969 Value *CmpLHS = CmpI->getOperand(0); in matchDecomposedSelectPattern() 7970 Value *CmpRHS = CmpI->getOperand(1); in matchDecomposedSelectPattern() 7972 if (isa<FPMathOperator>(CmpI)) in matchDecomposedSelectPattern() 7973 FMF = CmpI->getFastMathFlags(); in matchDecomposedSelectPattern() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.h | 2835 Instruction *CmpI = &Cond->front(); in getTripCount() local 2836 assert(isa<CmpInst>(CmpI) && "First inst must compare IV with TripCount"); in getTripCount() 2837 return CmpI->getOperand(1); in getTripCount()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CloneFunction.cpp | 447 if (const auto *CmpI = dyn_cast<FCmpInst>(&OldInst)) { in cloneInstruction() local 448 FCmpInst::Predicate Pred = CmpI->getPredicate(); in cloneInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 1805 if (!CmpI->isEquality() || !CmpI->isTrueWhenEqual()) in updateImpl() 1807 for (const Use &CmpU : CmpI->uses()) { in updateImpl() 1811 int Idx = CmpI->getOperandUse(0) == LoadU; in updateImpl() 1812 Assumption = {CmpI->getOperand(Idx), IntrI}; in updateImpl() 9348 Value *LHS = CmpI->getOperand(0); in calculateCmpInst() 9349 Value *RHS = CmpI->getOperand(1); in calculateCmpInst() 9402 if (LHSAARange.icmp(CmpI->getPredicate(), RHSAARange)) in calculateCmpInst() 9461 } else if (auto *CmpI = dyn_cast<CmpInst>(I)) { in updateImpl() local 11011 Instruction *CmpI = dyn_cast<Instruction>(&Cmp); in handleCmp() local 11012 Function *F = CmpI ? CmpI->getFunction() : nullptr; in handleCmp() [all …]
|
| H A D | OpenMPOpt.cpp | 4579 Instruction *CmpI = ICmpInst::Create( in buildCustomStateMachine() local 4582 CmpI->setDebugLoc(DLoc); in buildCustomStateMachine() 4583 IsPR = CmpI; in buildCustomStateMachine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 8313 Instruction *CmpI = nullptr; in optimizeInst() local 8315 CmpI = II; in optimizeInst() 8317 CmpI = F->getFastMathFlags().none() ? F : nullptr; in optimizeInst() 8319 if (CmpI && CmpI->hasOneUse()) { in optimizeInst() 8320 auto Op0 = CmpI->getOperand(0), Op1 = CmpI->getOperand(1); in optimizeInst() 8327 auto *F = new FreezeInst(Const0 ? Op1 : Op0, "", CmpI); in optimizeInst() 8329 CmpI->setOperand(Const0 ? 1 : 0, F); in optimizeInst() 8331 replaceAllUsesWith(FI, CmpI, FreshBBs, IsHugeFunc); in optimizeInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueTracking.h | 1091 CmpInst *CmpI, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 7066 Instruction *CmpI = &getCond()->front(); in setTripCount() local 7067 assert(isa<CmpInst>(CmpI) && "First inst must compare IV with TripCount"); in setTripCount() 7068 CmpI->setOperand(1, TripCount); in setTripCount() 7192 auto *CmpI = cast<CmpInst>(&Cond->front()); in assertOK() local 7193 assert(CmpI->getPredicate() == CmpInst::ICMP_ULT && in assertOK() 7195 assert(CmpI->getOperand(0) == IndVar && in assertOK() 7197 assert(CmpI->getOperand(1) == TripCount && in assertOK()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGStmtOpenMP.cpp | 3724 llvm::Value *CmpI = CGF.Builder.CreateICmpUGE(NMin1, Pow2K); in emitScanBasedDirective() local 3725 CGF.Builder.CreateCondBr(CmpI, InnerLoopBB, InnerExitBB); in emitScanBasedDirective() 3768 CmpI = CGF.Builder.CreateICmpUGE(NextIVal, Pow2K); in emitScanBasedDirective() 3769 CGF.Builder.CreateCondBr(CmpI, InnerLoopBB, InnerExitBB); in emitScanBasedDirective()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 8087 if (const auto *CmpI = dyn_cast<VPCmpIntrinsic>(&VPIntrin)) in visitVectorPredicationIntrinsic() local 8088 return visitVPCmp(*CmpI); in visitVectorPredicationIntrinsic()
|