Home
last modified time | relevance | path

Searched refs:OpI (Results 1 – 25 of 25) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h98 MachineInstr::mop_iterator OpI, OpE; variable
103 while (OpI == OpE) { in advance()
109 OpI = InstrI->operands_begin(); in advance()
123 OpI = InstrI->operands_begin(); in MIBundleOperandIteratorBase()
132 : InstrI(InstrE), InstrE(InstrE), OpI(OpE), OpE(OpE) {} in MIBundleOperandIteratorBase()
136 bool isValid() const { return OpI != OpE; } in isValid()
141 ++OpI;
145 ValueT &operator*() const { return *OpI; }
146 ValueT *operator->() const { return &*OpI; }
153 (OpI == Arg.OpI || (OpI == OpE && Arg.OpI == Arg.OpE));
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
DDCE.cpp110 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in DCEInstruction() local
111 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction()
112 WorkList.insert(OpI); in DCEInstruction()
DLoopUnrollPass.cpp427 if (auto *OpI = dyn_cast<Instruction>( in analyzeLoopUnrollCost() local
429 if (L->contains(OpI)) in analyzeLoopUnrollCost()
430 PHIUsedList.push_back(OpI); in analyzeLoopUnrollCost()
448 auto *OpI = dyn_cast<Instruction>(Op); in analyzeLoopUnrollCost() local
449 if (!OpI || !L->contains(OpI)) in analyzeLoopUnrollCost()
453 CostWorklist.push_back(OpI); in analyzeLoopUnrollCost()
638 if (auto *OpI = dyn_cast<Instruction>(Op)) in analyzeLoopUnrollCost() local
639 if (L->contains(OpI)) in analyzeLoopUnrollCost()
640 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
DReassociate.cpp2457 Instruction *OpI = dyn_cast<Instruction>(Op); in BuildPairMap() local
2458 if (!OpI || OpI->getOpcode() != I.getOpcode() || !OpI->hasOneUse()) { in BuildPairMap()
2463 if (OpI->getOperand(0) != OpI) in BuildPairMap()
2464 Worklist.push_back(OpI->getOperand(0)); in BuildPairMap()
2465 if (OpI->getOperand(1) != OpI) in BuildPairMap()
2466 Worklist.push_back(OpI->getOperand(1)); in BuildPairMap()
DScalarizer.cpp546 Value *OpI = CI.getOperand(I); in splitCall() local
547 if (OpI->getType()->isVectorTy()) { in splitCall()
548 Scattered[I] = scatter(&CI, OpI); in splitCall()
551 ScalarOperands[I] = OpI; in splitCall()
553 Tys.push_back(OpI->getType()); in splitCall()
DMergeICmps.cpp260 const Instruction *OpI = dyn_cast<Instruction>(Op); in canSinkBCECmpInst() local
261 return OpI && BlockInsts.contains(OpI); in canSinkBCECmpInst()
DLoopInterchange.cpp1398 Instruction *OpI = dyn_cast<Instruction>(Op); in transform() local
1399 if (!OpI || in transform()
1400 this->LI->getLoopFor(OpI->getParent()) != this->InnerLoop || in transform()
1401 OpI == InductionPHI) in transform()
1403 WorkList.insert(OpI); in transform()
DSimpleLoopUnswitch.cpp148 Instruction *OpI = dyn_cast<Instruction>(OpV); in collectHomogenousInstGraphLoopInvariants() local
150 if (OpI && ((IsRootAnd && match(OpI, m_LogicalAnd())) || in collectHomogenousInstGraphLoopInvariants()
151 (IsRootOr && match(OpI, m_LogicalOr())))) { in collectHomogenousInstGraphLoopInvariants()
153 if (Visited.insert(OpI).second) in collectHomogenousInstGraphLoopInvariants()
154 Worklist.push_back(OpI); in collectHomogenousInstGraphLoopInvariants()
DDeadStoreElimination.cpp1712 if (Instruction *OpI = dyn_cast<Instruction>(O)) { in deleteDeadInstruction() local
1714 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction()
1715 NowDeadInsts.push_back(OpI); in deleteDeadInstruction()
/freebsd-12-stable/contrib/llvm-project/llvm/utils/TableGen/
DGICombinerEmitter.cpp284 if (const DefInit *OpI = dyn_cast<DefInit>(&N)) in isSpecificDef() local
285 if (OpI->getDef()->getName() == Def) in isSpecificDef()
295 if (const DefInit *OpI = dyn_cast<DefInit>(&N)) in getDefOfSubClass() local
296 if (OpI->getDef()->isSubClassOf(Cls)) in getDefOfSubClass()
297 return OpI->getDef(); in getDefOfSubClass()
309 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator())) in getDagWithSpecificOperator() local
310 if (OpI->getDef()->getName() == Name) in getDagWithSpecificOperator()
323 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator())) in getDagWithOperatorOfSubClass() local
324 if (OpI->getDef()->isSubClassOf(Cls)) in getDagWithOperatorOfSubClass()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp144 for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) { in constrainSelectedInstRegOperands() local
145 MachineOperand &MO = I.getOperand(OpI); in constrainSelectedInstRegOperands()
167 constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, I.getDesc(), MO, OpI); in constrainSelectedInstRegOperands()
172 int DefIdx = I.getDesc().getOperandConstraint(OpI, MCOI::TIED_TO); in constrainSelectedInstRegOperands()
174 I.tieOperands(DefIdx, OpI); in constrainSelectedInstRegOperands()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
DAArch64FalkorHWPFFix.cpp743 for (unsigned OpI = 0, OpE = MI.getNumOperands(); OpI < OpE; ++OpI) { in runOnLoop() local
744 if (OpI == static_cast<unsigned>(LdI.BaseRegIdx)) in runOnLoop()
746 MachineOperand &MO = MI.getOperand(OpI); in runOnLoop()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
DR600Packetizer.cpp182 int OpI = TII->getOperandIdx(MII->getOpcode(), R600::OpName::pred_sel), in isLegalToPacketizeTogether() local
184 Register PredI = (OpI > -1)?MII->getOperand(OpI).getReg() : Register(), in isLegalToPacketizeTogether()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp482 Value *OpI = I->getOperand(i), *OpJ = J->getOperand(i); in equal() local
483 if (OpI == OpJ) in equal()
485 auto *InI = dyn_cast<const Instruction>(OpI); in equal()
523 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in link() local
524 link(OpI, B, At); in link()
2336 Instruction *OpI = dyn_cast<Instruction>(I); in coverLoop() local
2337 if (!OpI) in coverLoop()
2339 BasicBlock *PB = OpI->getParent(); in coverLoop()
2342 Worklist.insert(OpI); in coverLoop()
DHexagonVLIWPacketizer.cpp1280 for (const MachineOperand &OpI : I.operands()) { in hasRegMaskDependence() local
1281 if (OpI.isReg()) { in hasRegMaskDependence()
1282 if (OpJ.clobbersPhysReg(OpI.getReg())) in hasRegMaskDependence()
1284 } else if (OpI.isRegMask()) { in hasRegMaskDependence()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DLocal.cpp577 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in RecursivelyDeleteTriviallyDeadInstructions() local
578 if (isInstructionTriviallyDead(OpI, TLI)) in RecursivelyDeleteTriviallyDeadInstructions()
579 DeadInsts.push_back(OpI); in RecursivelyDeleteTriviallyDeadInstructions()
662 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in simplifyAndDCEInstruction() local
663 if (isInstructionTriviallyDead(OpI, TLI)) in simplifyAndDCEInstruction()
664 WorkList.insert(OpI); in simplifyAndDCEInstruction()
DScalarEvolutionExpander.cpp2643 auto *OpI = dyn_cast<Instruction>(OpV); in fixupLCSSAFormFor() local
2644 if (!OpI) in fixupLCSSAFormFor()
2647 Loop *DefLoop = SE.LI.getLoopFor(OpI->getParent()); in fixupLCSSAFormFor()
2652 ToUpdate.push_back(OpI); in fixupLCSSAFormFor()
DSimplifyCFG.cpp2453 Instruction *OpI = dyn_cast<Instruction>(Op); in SpeculativelyExecuteBB() local
2454 if (!OpI || OpI->getParent() != BB || OpI->mayHaveSideEffects()) in SpeculativelyExecuteBB()
2457 ++SinkCandidateUseCounts[OpI]; in SpeculativelyExecuteBB()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1946 auto *OpI = cast<CastInst>(FI.getOperand(0)); in foldItoFPtoI() local
1947 Value *X = OpI->getOperand(0); in foldItoFPtoI()
1958 if (!isKnownExactCastIntToFP(*OpI)) { in foldItoFPtoI()
1965 if (OutputSize > OpI->getType()->getFPMantissaWidth()) in foldItoFPtoI()
1970 bool IsInputSigned = isa<SIToFPInst>(OpI); in foldItoFPtoI()
DInstructionCombining.cpp3864 if (Instruction *OpI = dyn_cast<Instruction>(U.get())) in run() local
3865 Worklist.push(OpI); in run()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DPatternMatch.h2032 unsigned OpI; member
2035 Argument_match(unsigned OpIdx, const Opnd_t &V) : OpI(OpIdx), Val(V) {} in Argument_match()
2040 return Val.match(CI->getArgOperand(OpI)); in match()
2046 template <unsigned OpI, typename Opnd_t>
2048 return Argument_match<Opnd_t>(OpI, Op); in m_Argument()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1355 for (unsigned OpI = 0, OpE = getNumOperands(); OpI != OpE; ++OpI) { in shouldBroadcast() local
1356 OperandData &Data = getData(OpI, Ln); in shouldBroadcast()
1787 for (unsigned OpI = 0, OpE = Operands.size(); OpI != OpE; ++OpI) { in dump() local
1788 dbgs() << "Operand " << OpI << ":\n"; in dump()
1789 for (const Value *V : Operands[OpI]) in dump()
DLoopVectorize.cpp10036 if (auto *OpI = dyn_cast<Instruction>(Op)) in checkMixedPrecision() local
10037 Worklist.push_back(OpI); in checkMixedPrecision()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp3178 unsigned OpI = Opc != ARM::tSUBrr ? 1 : 2; in optimizeCompareInstr() local
3180 (SrcReg2 != 0 && SubAdd->getOperand(OpI).getReg() == SrcReg2 && in optimizeCompareInstr()
3181 SubAdd->getOperand(OpI + 1).getReg() == SrcReg)) { in optimizeCompareInstr()
DARMISelLowering.cpp7633 SDValue OpI = Op.getOperand(I); in LowerBUILD_VECTORToVIDUP() local
7634 if (OpI.getOpcode() != ISD::ADD || OpI.getOperand(0) != Op0 || in LowerBUILD_VECTORToVIDUP()
7635 !isa<ConstantSDNode>(OpI.getOperand(1)) || in LowerBUILD_VECTORToVIDUP()
7636 OpI.getConstantOperandVal(1) != I * N) in LowerBUILD_VECTORToVIDUP()