Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/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 …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DCombinerUtils.h25 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/lib/Transforms/Scalar/
H A DDCE.cpp77 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 DLoopUnrollPass.cpp446 if (auto *OpI = dyn_cast<Instruction>( in analyzeLoopUnrollCost() local
448 if (L->contains(OpI)) in analyzeLoopUnrollCost()
449 PHIUsedList.push_back(OpI); in analyzeLoopUnrollCost()
475 auto *OpI = dyn_cast<Instruction>(Op); in analyzeLoopUnrollCost() local
476 if (!OpI || !L->contains(OpI)) in analyzeLoopUnrollCost()
480 CostWorklist.push_back(OpI); in analyzeLoopUnrollCost()
665 if (auto *OpI = dyn_cast<Instruction>(Op)) in analyzeLoopUnrollCost() local
666 if (L->contains(OpI)) in analyzeLoopUnrollCost()
667 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
H A DReassociate.cpp2502 Instruction *OpI = dyn_cast<Instruction>(Op); in BuildPairMap() local
2503 if (!OpI || OpI->getOpcode() != I.getOpcode() || !OpI->hasOneUse()) { in BuildPairMap()
2508 if (OpI->getOperand(0) != OpI) in BuildPairMap()
2509 Worklist.push_back(OpI->getOperand(0)); in BuildPairMap()
2510 if (OpI->getOperand(1) != OpI) in BuildPairMap()
2511 Worklist.push_back(OpI->getOperand(1)); in BuildPairMap()
H A DScalarizer.cpp687 Value *OpI = CI.getOperand(I); in splitCall() local
689 dyn_cast<FixedVectorType>(OpI->getType())) { in splitCall()
691 std::optional<VectorSplit> OpVS = getVectorSplit(OpI->getType()); in splitCall()
703 Scattered[I] = scatter(&CI, OpI, *OpVS); in splitCall()
709 ScalarOperands[I] = OpI; in splitCall()
711 Tys.push_back(OpI->getType()); in splitCall()
H A DMergeICmps.cpp260 const Instruction *OpI = dyn_cast<Instruction>(Op); in canSinkBCECmpInst() local
261 return OpI && BlockInsts.contains(OpI); in canSinkBCECmpInst()
H A DLoopInterchange.cpp1336 Instruction *OpI = dyn_cast<Instruction>(Op); in transform() local
1337 if (!OpI || in transform()
1338 this->LI->getLoopFor(OpI->getParent()) != this->InnerLoop || in transform()
1339 llvm::is_contained(InductionPHIs, OpI)) in transform()
1341 WorkList.insert(OpI); in transform()
H A DSimpleLoopUnswitch.cpp221 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()
H A DDeadStoreElimination.cpp1740 if (Instruction *OpI = dyn_cast<Instruction>(O)) { in deleteDeadInstruction() local
1742 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction()
1743 NowDeadInsts.push_back(OpI); in deleteDeadInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.cpp152 for (unsigned OpI = 1, OpE = OpMD->getNumOperands(); OpI != OpE; ++OpI) { in buildOpSpirvDecorations() local
154 mdconst::dyn_extract<ConstantInt>(OpMD->getOperand(OpI))) in buildOpSpirvDecorations()
156 else if (MDString *OpV = dyn_cast<MDString>(OpMD->getOperand(OpI))) in buildOpSpirvDecorations()
H A DSPIRVEmitIntrinsics.cpp795 if (auto *OpI = dyn_cast<Instruction>(Op)) { in deduceOperandElementType() local
798 B.SetInsertPoint(*OpI->getInsertionPointAfterDef()); in deduceOperandElementType()
799 B.SetCurrentDebugLocation(OpI->getDebugLoc()); in deduceOperandElementType()
1133 if (auto *OpI = dyn_cast<Instruction>(Op)) in insertPtrCastOrAssignTypeInstr() local
1134 OpTy = restoreMutatedType(GR, OpI, OpTy); in insertPtrCastOrAssignTypeInstr()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FalkorHWPFFix.cpp741 for (unsigned OpI = 0, OpE = MI.getNumOperands(); OpI < OpE; ++OpI) { in runOnLoop() local
742 if (OpI == static_cast<unsigned>(LdI.BaseRegIdx)) in runOnLoop()
744 MachineOperand &MO = MI.getOperand(OpI); in runOnLoop()
/freebsd/contrib/llvm-project/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()
2318 Instruction *OpI = dyn_cast<Instruction>(I); in coverLoop() local
2319 if (!OpI) in coverLoop()
2321 BasicBlock *PB = OpI->getParent(); in coverLoop()
2324 Worklist.insert(OpI); in coverLoop()
H A DHexagonVLIWPacketizer.cpp1287 for (const MachineOperand &OpI : I.operands()) { in hasRegMaskDependence() local
1288 if (OpI.isReg()) { in hasRegMaskDependence()
1289 if (OpJ.clobbersPhysReg(OpI.getReg())) in hasRegMaskDependence()
1291 } else if (OpI.isRegMask()) { in hasRegMaskDependence()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp165 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/CodeGen/
H A DTypePromotion.cpp994 if (auto *OpI = dyn_cast<Instruction>(Op)) { in run() local
995 if (auto PromotedWidth = GetPromoteWidth(OpI)) { in run()
996 MadeChange |= TryToPromote(OpI, PromotedWidth, LI); in run()
H A DComplexDeinterleavingPass.cpp1583 if (auto *OpI = dyn_cast<Instruction>(Op)) { in checkNodes() local
1585 Worklist.emplace_back(OpI); in checkNodes()
1632 if (auto *OpI = dyn_cast<Instruction>(Op)) in checkNodes() local
1633 Worklist.emplace_back(OpI); in checkNodes()
H A DSelectOptimize.cpp1075 if (auto *OpI = dyn_cast<Instruction>(Op)) in getExclBackwardsSlice() local
1076 Worklist.push(OpI); in getExclBackwardsSlice()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp745 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) { in DCEInstruction() local
746 if (isInstructionTriviallyDead(OpI, TLI)) { in DCEInstruction()
747 WorkList.insert(OpI); in DCEInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1918 auto *OpI = cast<CastInst>(FI.getOperand(0)); in foldItoFPtoI() local
1919 Value *X = OpI->getOperand(0); in foldItoFPtoI()
1930 if (!isKnownExactCastIntToFP(*OpI, *this)) { in foldItoFPtoI()
1937 if (OutputSize > OpI->getType()->getFPMantissaWidth()) in foldItoFPtoI()
1942 bool IsInputSigned = isa<SIToFPInst>(OpI); in foldItoFPtoI()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp2194 for (unsigned OpI = 0, OpE = getNumOperands(); OpI != OpE; ++OpI) { in shouldBroadcast() local
2195 OperandData &Data = getData(OpI, Ln); in shouldBroadcast()
2198 Value *OpILane = getValue(OpI, Lane); in shouldBroadcast()
2212 !getSameOpcode({Op, getValue((OpI + 1) % OpE, Ln)}, TLI) in shouldBroadcast()
2244 if (any_of(seq<unsigned>(getNumOperands()), [&](unsigned OpI) { in canBeVectorized() argument
2245 const OperandData &Data = getData(OpI, Ln); in canBeVectorized()
2248 Value *OpILn = getValue(OpI, Ln); in canBeVectorized()
2527 if (auto *OpI in removeInstructionsAndOperands() local
2577 if (auto *OpI = dyn_cast<Instruction>(OpV)) removeInstructionsAndOperands() local
3128 for (unsigned OpI = 0, OpE = Operands.size(); OpI != OpE; ++OpI) { dump() local
7192 if (auto *OpI = dyn_cast<Instruction>(VL0->getOperand(0))) { buildTree_rec() local
14325 auto *OpI = dyn_cast<Instruction>(V); optimizeGatherSequence() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp606 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in RecursivelyDeleteTriviallyDeadInstructions() local
607 if (isInstructionTriviallyDead(OpI, TLI)) in RecursivelyDeleteTriviallyDeadInstructions()
608 DeadInsts.push_back(OpI); in RecursivelyDeleteTriviallyDeadInstructions()
692 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in simplifyAndDCEInstruction() local
693 if (isInstructionTriviallyDead(OpI, TLI)) in simplifyAndDCEInstruction()
694 WorkList.insert(OpI); in simplifyAndDCEInstruction()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2465 unsigned OpI; member
2468 Argument_match(unsigned OpIdx, const Opnd_t &V) : OpI(OpIdx), Val(V) {} in Argument_match()
2473 return Val.match(CI->getArgOperand(OpI)); in match()
2479 template <unsigned OpI, typename Opnd_t>
2481 return Argument_match<Opnd_t>(OpI, Op); in m_Argument()

12