| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
| H A D | CombinerUtils.h | 25 if (const DefInit *OpI = dyn_cast<DefInit>(&N)) in isSpecificDef() local 26 if (OpI->getDef()->getName() == Def) in isSpecificDef() 36 if (const DefInit *OpI = dyn_cast<DefInit>(&N)) in getDefOfSubClass() local 37 if (OpI->getDef()->isSubClassOf(Cls)) in getDefOfSubClass() 38 return OpI->getDef(); in getDefOfSubClass() 50 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator())) in getDagWithSpecificOperator() local 51 if (OpI->getDef()->getName() == Name) in getDagWithSpecificOperator() 63 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator())) in getDagWithOperatorOfSubClass() local 64 if (OpI->getDef()->isSubClassOf(Cls)) in getDagWithOperatorOfSubClass()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineInstrBundle.h | 100 MachineInstr::mop_iterator OpI, OpE; variable 105 while (OpI == OpE) { in advance() 111 OpI = InstrI->operands_begin(); in advance() 125 OpI = InstrI->operands_begin(); in MIBundleOperandIteratorBase() 134 : InstrI(InstrE), InstrE(InstrE), OpI(OpE), OpE(OpE) {} in MIBundleOperandIteratorBase() 138 bool isValid() const { return OpI != OpE; } in isValid() 143 ++OpI; 147 ValueT &operator*() const { return *OpI; } 148 ValueT *operator->() const { return &*OpI; } 155 (OpI == Arg.OpI || (OpI == OpE && Arg.OpI == Arg.OpE)); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/ |
| H A D | DependencyGraph.cpp | 252 auto *OpI = dyn_cast<Instruction>(Op); in setDefUseUnscheduledSuccs() local 253 if (OpI == nullptr) in setDefUseUnscheduledSuccs() 256 if (OpI->getParent() != I.getParent()) in setDefUseUnscheduledSuccs() 258 if (!NewInterval.contains(OpI)) in setDefUseUnscheduledSuccs() 260 auto *OpN = getNode(OpI); in setDefUseUnscheduledSuccs() 287 auto *OpI = dyn_cast<Instruction>(Op); in setDefUseUnscheduledSuccs() local 288 if (OpI == nullptr) in setDefUseUnscheduledSuccs() 290 auto *OpN = getNode(OpI); in setDefUseUnscheduledSuccs() 293 if (!TopInterval.contains(OpI)) in setDefUseUnscheduledSuccs()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | DCE.cpp | 77 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in run() 78 if (isInstructionTriviallyDead(OpI, TLI)) in run() 79 WorkList.insert(OpI); in run() 110 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) DCEInstruction() local
|
| H A D | LoopUnrollPass.cpp | 447 if (auto *OpI = dyn_cast<Instruction>( in analyzeLoopUnrollCost() local 449 if (L->contains(OpI)) in analyzeLoopUnrollCost() 450 PHIUsedList.push_back(OpI); in analyzeLoopUnrollCost() 476 auto *OpI = dyn_cast<Instruction>(Op); in analyzeLoopUnrollCost() local 477 if (!OpI || !L->contains(OpI)) in analyzeLoopUnrollCost() 481 CostWorklist.push_back(OpI); in analyzeLoopUnrollCost() 666 if (auto *OpI = dyn_cast<Instruction>(Op)) in analyzeLoopUnrollCost() local 667 if (L->contains(OpI)) in analyzeLoopUnrollCost() 668 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
|
| H A D | Reassociate.cpp | 2504 Instruction *OpI = dyn_cast<Instruction>(Op); in BuildPairMap() local 2505 if (!OpI || OpI->getOpcode() != I.getOpcode() || !OpI->hasOneUse()) { in BuildPairMap() 2510 if (OpI->getOperand(0) != OpI) in BuildPairMap() 2511 Worklist.push_back(OpI->getOperand(0)); in BuildPairMap() 2512 if (OpI->getOperand(1) != OpI) in BuildPairMap() 2513 Worklist.push_back(OpI->getOperand(1)); in BuildPairMap()
|
| H A D | Scalarizer.cpp | 737 Value *OpI = CI.getOperand(I); in splitCall() local 739 dyn_cast<FixedVectorType>(OpI->getType())) { in splitCall() 741 std::optional<VectorSplit> OpVS = getVectorSplit(OpI->getType()); in splitCall() 753 Scattered[I] = scatter(&CI, OpI, *OpVS); in splitCall() 759 ScalarOperands[I] = OpI; in splitCall() 761 Tys.push_back(OpI->getType()); in splitCall()
|
| H A D | MergeICmps.cpp | 260 const Instruction *OpI = dyn_cast<Instruction>(Op); in canSinkBCECmpInst() local 261 return OpI && BlockInsts.contains(OpI); in canSinkBCECmpInst()
|
| H A D | LoopInterchange.cpp | 1555 Instruction *OpI = dyn_cast<Instruction>(Op); in transform() local 1556 if (!OpI || in transform() 1557 this->LI->getLoopFor(OpI->getParent()) != this->InnerLoop || in transform() 1558 llvm::is_contained(InductionPHIs, OpI)) in transform() 1560 WorkList.insert(OpI); in transform()
|
| H A D | SimpleLoopUnswitch.cpp | 221 Instruction *OpI = dyn_cast<Instruction>(skipTrivialSelect(OpV)); in collectHomogenousInstGraphLoopInvariants() local 223 if (OpI && ((IsRootAnd && match(OpI, m_LogicalAnd())) || in collectHomogenousInstGraphLoopInvariants() 224 (IsRootOr && match(OpI, m_LogicalOr())))) { in collectHomogenousInstGraphLoopInvariants() 226 if (Visited.insert(OpI).second) in collectHomogenousInstGraphLoopInvariants() 227 Worklist.push_back(OpI); in collectHomogenousInstGraphLoopInvariants()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanPatternMatch.h | 538 unsigned OpI; member 541 Argument_match(unsigned OpIdx, const Opnd_t &V) : OpI(OpIdx), Val(V) {} in Argument_match() 545 return Val.match(R->getOperand(OpI)); in match() 547 return Val.match(R->getOperand(OpI)); in match() 550 return Val.match(R->getOperand(OpI + 1)); in match() 556 template <unsigned OpI, typename Opnd_t> 558 return Argument_match<Opnd_t>(OpI, Op); in m_Argument()
|
| H A D | LoopVectorize.cpp | 5927 auto *OpI = dyn_cast<Instruction>(Op); in shouldConsiderInvariant() local 5928 return !OpI || !TheLoop->contains(OpI) || in shouldConsiderInvariant() 5929 (!isPredicatedInst(OpI) && in shouldConsiderInvariant() 5930 (!isa<PHINode>(OpI) || OpI->getParent() != TheLoop->getHeader()) && in shouldConsiderInvariant() 5931 all_of(OpI->operands(), in shouldConsiderInvariant() 6755 auto *OpI = dyn_cast<Instruction>(Op); in precomputeCosts() local 6756 if (Op == IV || !OpI || !OrigLoop->contains(OpI) || !Op->hasOneUse()) in precomputeCosts() 6758 IVInsts.push_back(OpI); in precomputeCosts() 6821 auto *OpI = dyn_cast<Instruction>(Op); in precomputeCosts() local 6822 if (!OpI || CostCtx.skipCostComputation(OpI, VF.isVector()) || in precomputeCosts() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | R600Packetizer.cpp | 179 int OpI = TII->getOperandIdx(MII->getOpcode(), R600::OpName::pred_sel), in isLegalToPacketizeTogether() local 181 Register PredI = (OpI > -1)?MII->getOperand(OpI).getReg() : Register(), in isLegalToPacketizeTogether()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64FalkorHWPFFix.cpp | 735 for (unsigned OpI = 0, OpE = MI.getNumOperands(); OpI < OpE; ++OpI) { in runOnLoop() local 736 if (OpI == static_cast<unsigned>(LdI.BaseRegIdx)) in runOnLoop() 738 MachineOperand &MO = MI.getOperand(OpI); in runOnLoop()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVUtils.cpp | 199 for (unsigned OpI = 1, OpE = OpMD->getNumOperands(); OpI != OpE; ++OpI) { in buildOpSpirvDecorations() local 201 mdconst::dyn_extract<ConstantInt>(OpMD->getOperand(OpI))) in buildOpSpirvDecorations() 203 else if (MDString *OpV = dyn_cast<MDString>(OpMD->getOperand(OpI))) in buildOpSpirvDecorations()
|
| H A D | SPIRVEmitIntrinsics.cpp | 366 if (auto *OpI = dyn_cast<Instruction>(Op)) in reconstructType() local 367 Ty = restoreMutatedType(GR, OpI, Ty); in reconstructType() 391 if (auto *OpI = dyn_cast<Instruction>(Op)) { in buildSpvPtrcast() local 394 setInsertPointAfterDef(B, OpI); in buildSpvPtrcast() 1566 if (auto *OpI = dyn_cast<Instruction>(Op)) in insertPtrCastOrAssignTypeInstr() local 1567 OpTy = restoreMutatedType(GR, OpI, OpTy); in insertPtrCastOrAssignTypeInstr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 470 Value *OpI = I->getOperand(i), *OpJ = J->getOperand(i); in equal() local 471 if (OpI == OpJ) in equal() 473 auto *InI = dyn_cast<const Instruction>(OpI); in equal() 511 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in link() local 512 link(OpI, B, At); in link() 2305 Instruction *OpI = dyn_cast<Instruction>(I); in coverLoop() local 2306 if (!OpI) in coverLoop() 2308 BasicBlock *PB = OpI->getParent(); in coverLoop() 2311 Worklist.insert(OpI); in coverLoop()
|
| H A D | HexagonVLIWPacketizer.cpp | 1278 for (const MachineOperand &OpI : I.operands()) { in hasRegMaskDependence() local 1279 if (OpI.isReg()) { in hasRegMaskDependence() 1280 if (OpJ.clobbersPhysReg(OpI.getReg())) in hasRegMaskDependence() 1282 } else if (OpI.isRegMask()) { in hasRegMaskDependence()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TypePromotion.cpp | 993 if (auto *OpI = dyn_cast<Instruction>(Op)) { in run() local 994 if (auto PromotedWidth = GetPromoteWidth(OpI)) { in run() 995 MadeChange |= TryToPromote(OpI, PromotedWidth, LI); in run()
|
| H A D | SelectOptimize.cpp | 210 if (auto *OpI = dyn_cast<Instruction>(I->getOperand(1 - CondIdx))) { in getOpCostOnBranch() local 211 auto It = InstCostMap.find(OpI); in getOpCostOnBranch() 1191 if (auto *OpI = dyn_cast<Instruction>(Op)) in getExclBackwardsSlice() local 1192 Worklist.push(OpI); in getExclBackwardsSlice()
|
| H A D | ComplexDeinterleavingPass.cpp | 1807 if (auto *OpI = dyn_cast<Instruction>(Op)) { in checkNodes() local 1809 Worklist.emplace_back(OpI); in checkNodes() 1854 if (auto *OpI = dyn_cast<Instruction>(Op)) in checkNodes() local 1855 Worklist.emplace_back(OpI); in checkNodes()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 165 for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) { in constrainSelectedInstRegOperands() local 166 MachineOperand &MO = I.getOperand(OpI); in constrainSelectedInstRegOperands() 188 constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, I.getDesc(), MO, OpI); in constrainSelectedInstRegOperands() 193 int DefIdx = I.getDesc().getOperandConstraint(OpI, MCOI::TIED_TO); in constrainSelectedInstRegOperands() 195 I.tieOperands(DefIdx, OpI); in constrainSelectedInstRegOperands()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86LowerAMXType.cpp | 884 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) { in DCEInstruction() local 885 if (isInstructionTriviallyDead(OpI, TLI)) { in DCEInstruction() 886 WorkList.insert(OpI); in DCEInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 886 if (auto OpI = dyn_cast<Instruction>(Op0)) in foldICmpOrChain() local 887 if (OpI->getOpcode() == Instruction::Or) in foldICmpOrChain() 888 if (foldConsecutiveLoads(*OpI, DL, TTI, AA, DT)) in foldICmpOrChain()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 1969 auto *OpI = cast<CastInst>(FI.getOperand(0)); in foldItoFPtoI() local 1970 Value *X = OpI->getOperand(0); in foldItoFPtoI() 1981 if (!isKnownExactCastIntToFP(*OpI, *this)) { in foldItoFPtoI() 1988 if (OutputSize > OpI->getType()->getFPMantissaWidth()) in foldItoFPtoI() 1993 bool IsInputSigned = isa<SIToFPInst>(OpI); in foldItoFPtoI()
|