Searched refs:OpI (Results 1 - 23 of 23) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstrBundle.h98 MachineInstr::mop_iterator OpI, OpE; member in class:llvm::MIBundleOperandIteratorBase
103 while (OpI == OpE) {
109 OpI = InstrI->operands_begin();
123 OpI = InstrI->operands_begin();
129 /// iterators point to the end of the BB and OpI == OpE.
132 : InstrI(InstrE), InstrE(InstrE), OpI(OpE), OpE(OpE) {}
136 bool isValid() const { return OpI != OpE; }
141 ++OpI;
145 ValueT &operator*() const { return *OpI; }
146 ValueT *operator->() const { return &*OpI; }
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculateAroundPHIs.cpp99 auto *OpI = dyn_cast<Instruction>(*OpIt); local
103 if (!OpI)
116 auto *ParentBB = OpI->getParent();
118 if (isa<PHINode>(OpI)) {
129 if (PotentialSpecSet.count(OpI))
134 if (UnsafeSet.count(OpI) || ParentBB != PhiBB ||
135 mayBeMemoryDependent(*OpI)) {
137 << *OpI << "\n");
140 UnsafeSet.insert(OpI);
149 if (!Visited.insert(OpI)
361 auto *OpI = dyn_cast<Instruction>(*OpIt); local
666 auto *OpI = dyn_cast<Instruction>(U.get()); local
[all...]
H A DDCE.cpp143 if (Instruction *OpI = dyn_cast<Instruction>(OpV))
144 if (isInstructionTriviallyDead(OpI, TLI))
145 WorkList.insert(OpI);
H A DLoopUnrollPass.cpp422 if (auto *OpI = dyn_cast<Instruction>(
424 if (L->contains(OpI))
425 PHIUsedList.push_back(OpI);
443 auto *OpI = dyn_cast<Instruction>(Op);
444 if (!OpI || !L->contains(OpI))
448 CostWorklist.push_back(OpI);
628 if (auto *OpI = dyn_cast<Instruction>(Op))
629 if (L->contains(OpI))
630 AddCostRecursively(*OpI, TripCoun
[all...]
H A DScalarizer.cpp538 Value *OpI = CI.getOperand(I); local
539 if (OpI->getType()->isVectorTy()) {
540 Scattered[I] = scatter(&CI, OpI);
543 ScalarOperands[I] = OpI;
H A DReassociate.cpp2346 Instruction *OpI = dyn_cast<Instruction>(Op);
2347 if (!OpI || OpI->getOpcode() != I.getOpcode() || !OpI->hasOneUse()) {
2352 if (OpI->getOperand(0) != OpI)
2353 Worklist.push_back(OpI->getOperand(0));
2354 if (OpI->getOperand(1) != OpI)
2355 Worklist.push_back(OpI
[all...]
H A DLoopInterchange.cpp1277 Instruction *OpI = dyn_cast<Instruction>(Op);
1278 if (!OpI ||
1279 this->LI->getLoopFor(OpI->getParent()) != this->InnerLoop ||
1280 OpI == InductionPHI)
1282 WorkList.insert(OpI);
H A DDeadStoreElimination.cpp139 if (Instruction *OpI = dyn_cast<Instruction>(Op))
140 if (isInstructionTriviallyDead(OpI, &TLI))
141 NowDeadInsts.push_back(OpI);
H A DSimpleLoopUnswitch.cpp130 Instruction *OpI = dyn_cast<Instruction>(OpV); local
131 if (!OpI || OpI->getOpcode() != Root.getOpcode())
135 if (Visited.insert(OpI).second)
136 Worklist.push_back(OpI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp121 for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) {
122 MachineOperand &MO = I.getOperand(OpI);
145 MO, OpI));
150 int DefIdx = I.getDesc().getOperandConstraint(OpI, MCOI::TIED_TO);
152 I.tieOperands(DefIdx, OpI);
/freebsd-12-stable/contrib/llvm-project/llvm/utils/TableGen/
H A DGICombinerEmitter.cpp284 if (const DefInit *OpI = dyn_cast<DefInit>(&N))
285 if (OpI->getDef()->getName() == Def)
295 if (const DefInit *OpI = dyn_cast<DefInit>(&N))
296 if (OpI->getDef()->isSubClassOf(Cls))
297 return OpI->getDef();
309 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator()))
310 if (OpI->getDef()->getName() == Name)
323 if (const DefInit *OpI = dyn_cast<DefInit>(I->getOperator()))
324 if (OpI->getDef()->isSubClassOf(Cls))
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600Packetizer.cpp187 int OpI = TII->getOperandIdx(MII->getOpcode(), R600::OpName::pred_sel), variable
189 Register PredI = (OpI > -1)?MII->getOperand(OpI).getReg() : Register(),
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FalkorHWPFFix.cpp743 for (unsigned OpI = 0, OpE = MI.getNumOperands(); OpI < OpE; ++OpI) {
744 if (OpI == static_cast<unsigned>(LdI.BaseRegIdx))
746 MachineOperand &MO = MI.getOperand(OpI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp444 if (auto *OpI = dyn_cast<Instruction>(U))
445 MaybeDead.insert(OpI);
H A DARMBaseInstrInfo.cpp3090 unsigned OpI = Opc != ARM::tSUBrr ? 1 : 2; local
3092 (SrcReg2 != 0 && SubAdd->getOperand(OpI).getReg() == SrcReg2 &&
3093 SubAdd->getOperand(OpI + 1).getReg() == SrcReg)) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp464 Value *OpI = I->getOperand(i), *OpJ = J->getOperand(i); local
465 if (OpI == OpJ)
467 auto *InI = dyn_cast<const Instruction>(OpI);
505 if (Instruction *OpI = dyn_cast<Instruction>(Op))
506 link(OpI, B, At);
2318 Instruction *OpI = dyn_cast<Instruction>(I); local
2319 if (!OpI)
2321 BasicBlock *PB = OpI->getParent();
2324 Worklist.insert(OpI);
H A DHexagonVLIWPacketizer.cpp1273 for (const MachineOperand &OpI : I.operands()) {
1274 if (OpI.isReg()) {
1275 if (OpJ.clobbersPhysReg(OpI.getReg()))
1277 } else if (OpI.isRegMask()) {
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1529 // If we have fptrunc(OpI (fpextend x), (fpextend y)), we would like to
1552 // will not occur because the result of OpI is exact (as we will for
1603 // type of OpI doesn't enter into things at all. We simply evaluate
1716 Instruction *OpI = cast<Instruction>(FI.getOperand(0));
1718 Value *SrcI = OpI->getOperand(0);
1720 Type *OpITy = OpI->getType();
1722 bool IsInputSigned = isa<SIToFPInst>(OpI);
1754 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0)); local
1755 if (!OpI)
1765 Instruction *OpI local
[all...]
H A DInstructionCombining.cpp3352 if (Instruction *OpI = dyn_cast<Instruction>(U.get()))
3353 Worklist.Add(OpI);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp478 if (Instruction *OpI = dyn_cast<Instruction>(OpV))
479 if (isInstructionTriviallyDead(OpI, TLI))
480 DeadInsts.push_back(OpI);
563 if (Instruction *OpI = dyn_cast<Instruction>(OpV))
564 if (isInstructionTriviallyDead(OpI, TLI))
565 WorkList.insert(OpI);
H A DSimplifyCFG.cpp2027 Instruction *OpI = dyn_cast<Instruction>(*i); local
2028 if (!OpI || OpI->getParent() != BB || OpI->mayHaveSideEffects())
2031 ++SinkCandidateUseCounts[OpI];
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h1699 unsigned OpI; member in struct:llvm::PatternMatch::Argument_match
1702 Argument_match(unsigned OpIdx, const Opnd_t &V) : OpI(OpIdx), Val(V) {}
1707 return Val.match(CI->getArgOperand(OpI));
1713 template <unsigned OpI, typename Opnd_t>
1715 return Argument_match<Opnd_t>(OpI, Op);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp1178 for (unsigned OpI = 0, OpE = getNumOperands(); OpI != OpE; ++OpI) {
1179 OperandData &Data = getData(OpI, Ln);
1585 for (unsigned OpI = 0, OpE = Operands.size(); OpI != OpE; ++OpI) {
1586 dbgs() << "Operand " << OpI << ":\n";
1587 for (const Value *V : Operands[OpI])

Completed in 226 milliseconds