Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A 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 …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A 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()
H A DLoopUnrollPass.cpp437 if (auto *OpI = dyn_cast<Instruction>( in analyzeLoopUnrollCost() local
439 if (L->contains(OpI)) in analyzeLoopUnrollCost()
440 PHIUsedList.push_back(OpI); in analyzeLoopUnrollCost()
458 auto *OpI = dyn_cast<Instruction>(Op); in analyzeLoopUnrollCost() local
459 if (!OpI || !L->contains(OpI)) in analyzeLoopUnrollCost()
463 CostWorklist.push_back(OpI); in analyzeLoopUnrollCost()
648 if (auto *OpI = dyn_cast<Instruction>(Op)) in analyzeLoopUnrollCost() local
649 if (L->contains(OpI)) in analyzeLoopUnrollCost()
650 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
H A DScalarizer.cpp587 Value *OpI = CI.getOperand(I); in splitCall() local
588 if (OpI->getType()->isVectorTy()) { in splitCall()
589 Scattered[I] = scatter(&CI, OpI); in splitCall()
592 Tys.push_back(OpI->getType()->getScalarType()); in splitCall()
594 ScalarOperands[I] = OpI; in splitCall()
596 Tys.push_back(OpI->getType()); in splitCall()
H A DReassociate.cpp2483 Instruction *OpI = dyn_cast<Instruction>(Op); in BuildPairMap() local
2484 if (!OpI || OpI->getOpcode() != I.getOpcode() || !OpI->hasOneUse()) { in BuildPairMap()
2489 if (OpI->getOperand(0) != OpI) in BuildPairMap()
2490 Worklist.push_back(OpI->getOperand(0)); in BuildPairMap()
2491 if (OpI->getOperand(1) != OpI) in BuildPairMap()
2492 Worklist.push_back(OpI->getOperand(1)); in BuildPairMap()
H A DMergeICmps.cpp258 const Instruction *OpI = dyn_cast<Instruction>(Op); in canSinkBCECmpInst() local
259 return OpI && BlockInsts.contains(OpI); in canSinkBCECmpInst()
H A DLoopInterchange.cpp1343 Instruction *OpI = dyn_cast<Instruction>(Op); in transform() local
1344 if (!OpI || in transform()
1345 this->LI->getLoopFor(OpI->getParent()) != this->InnerLoop || in transform()
1346 llvm::is_contained(InductionPHIs, OpI)) in transform()
1348 WorkList.insert(OpI); in transform()
H A DSimpleLoopUnswitch.cpp164 Instruction *OpI = dyn_cast<Instruction>(skipTrivialSelect(OpV)); in collectHomogenousInstGraphLoopInvariants() local
166 if (OpI && ((IsRootAnd && match(OpI, m_LogicalAnd())) || in collectHomogenousInstGraphLoopInvariants()
167 (IsRootOr && match(OpI, m_LogicalOr())))) { in collectHomogenousInstGraphLoopInvariants()
169 if (Visited.insert(OpI).second) in collectHomogenousInstGraphLoopInvariants()
170 Worklist.push_back(OpI); in collectHomogenousInstGraphLoopInvariants()
H A DDeadStoreElimination.cpp1623 if (Instruction *OpI = dyn_cast<Instruction>(O)) { in deleteDeadInstruction() local
1625 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction()
1626 NowDeadInsts.push_back(OpI); in deleteDeadInstruction()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A 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()
/llvm-project-15.0.7/mlir/test/mlir-tblgen/
H A Dop-result.td98 def OpI : NS_Op<"mix_variadic_and_normal_results_op", [SameVariadicResultSize]> {
102 // CHECK-LABEL: ::mlir::Operation::result_range OpI::output1
105 // CHECK-LABEL: ::mlir::Value OpI::output2
108 // CHECK-LABEL: OpI::build
H A Dpredicate.td84 def OpI: NS_Op<"op_for_arr_min_value_at_index", []> {
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A 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()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A 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()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp160 for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) { in constrainSelectedInstRegOperands() local
161 MachineOperand &MO = I.getOperand(OpI); in constrainSelectedInstRegOperands()
183 constrainOperandRegClass(MF, TRI, MRI, TII, RBI, I, I.getDesc(), MO, OpI); in constrainSelectedInstRegOperands()
188 int DefIdx = I.getDesc().getOperandConstraint(OpI, MCOI::TIED_TO); in constrainSelectedInstRegOperands()
190 I.tieOperands(DefIdx, OpI); in constrainSelectedInstRegOperands()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp480 Value *OpI = I->getOperand(i), *OpJ = J->getOperand(i); in equal() local
481 if (OpI == OpJ) in equal()
483 auto *InI = dyn_cast<const Instruction>(OpI); in equal()
521 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in link() local
522 link(OpI, B, At); in link()
2330 Instruction *OpI = dyn_cast<Instruction>(I); in coverLoop() local
2331 if (!OpI) in coverLoop()
2333 BasicBlock *PB = OpI->getParent(); in coverLoop()
2336 Worklist.insert(OpI); in coverLoop()
H A DHexagonVLIWPacketizer.cpp1286 for (const MachineOperand &OpI : I.operands()) { in hasRegMaskDependence() local
1287 if (OpI.isReg()) { in hasRegMaskDependence()
1288 if (OpJ.clobbersPhysReg(OpI.getReg())) in hasRegMaskDependence()
1290 } else if (OpI.isRegMask()) { in hasRegMaskDependence()
/llvm-project-15.0.7/mlir/unittests/IR/
H A DInterfaceAttachmentTest.cpp375 builder.create<test::OpI>(builder.getUnknownLoc(), opJ.getResult()); in TEST()
406 builder.create<test::OpI>(builder.getUnknownLoc(), opJ.getResult()); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp735 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) { in DCEInstruction() local
736 if (isInstructionTriviallyDead(OpI, TLI)) { in DCEInstruction()
737 WorkList.insert(OpI); in DCEInstruction()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSelectOptimize.cpp746 if (auto *OpI = dyn_cast<Instruction>(II->getOperand(k))) in getExclBackwardsSlice() local
747 Worklist.push(OpI); in getExclBackwardsSlice()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLocal.cpp584 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in RecursivelyDeleteTriviallyDeadInstructions() local
585 if (isInstructionTriviallyDead(OpI, TLI)) in RecursivelyDeleteTriviallyDeadInstructions()
586 DeadInsts.push_back(OpI); in RecursivelyDeleteTriviallyDeadInstructions()
669 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in simplifyAndDCEInstruction() local
670 if (isInstructionTriviallyDead(OpI, TLI)) in simplifyAndDCEInstruction()
671 WorkList.insert(OpI); in simplifyAndDCEInstruction()
H A DScalarEvolutionExpander.cpp2537 auto *OpI = dyn_cast<Instruction>(OpV); in fixupLCSSAFormFor() local
2538 if (!OpI) in fixupLCSSAFormFor()
2541 Loop *DefLoop = SE.LI.getLoopFor(OpI->getParent()); in fixupLCSSAFormFor()
2546 ToUpdate.push_back(OpI); in fixupLCSSAFormFor()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DPatternMatch.h2022 unsigned OpI; member
2025 Argument_match(unsigned OpIdx, const Opnd_t &V) : OpI(OpIdx), Val(V) {} in Argument_match()
2030 return Val.match(CI->getArgOperand(OpI)); in match()
2036 template <unsigned OpI, typename Opnd_t>
2038 return Argument_match<Opnd_t>(OpI, Op); in m_Argument()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1976 auto *OpI = cast<CastInst>(FI.getOperand(0)); in foldItoFPtoI() local
1977 Value *X = OpI->getOperand(0); in foldItoFPtoI()
1988 if (!isKnownExactCastIntToFP(*OpI, *this)) { in foldItoFPtoI()
1995 if (OutputSize > OpI->getType()->getFPMantissaWidth()) in foldItoFPtoI()
2000 bool IsInputSigned = isa<SIToFPInst>(OpI); in foldItoFPtoI()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp1791 for (unsigned OpI = 0, OpE = getNumOperands(); OpI != OpE; ++OpI) { in shouldBroadcast() local
1792 OperandData &Data = getData(OpI, Ln); in shouldBroadcast()
2442 for (unsigned OpI = 0, OpE = Operands.size(); OpI != OpE; ++OpI) { in dump() local
2443 dbgs() << "Operand " << OpI << ":\n"; in dump()
2444 for (const Value *V : Operands[OpI]) in dump()
8923 auto *OpI = dyn_cast<Instruction>(V); in optimizeGatherSequence() local
8924 return OpI && L->contains(OpI); in optimizeGatherSequence()

12