Home
last modified time | relevance | path

Searched refs:UseI (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64StackTaggingPreRA.cpp178 for (MachineInstr &UseI : in uncheckUsesOf()
180 if (isUncheckedLoadOrStoreOpcode(UseI.getOpcode())) { in uncheckUsesOf()
183 if (UseI.getOperand(OpIdx).isReg() && in uncheckUsesOf()
184 UseI.getOperand(OpIdx).getReg() == TaggedReg) { in uncheckUsesOf()
185 UseI.getOperand(OpIdx).ChangeToFrameIndex(FI); in uncheckUsesOf()
188 } else if (UseI.isCopy() && in uncheckUsesOf()
190 uncheckUsesOf(UseI.getOperand(0).getReg(), FI); in uncheckUsesOf()
278 for (auto &UseI : MRI->use_instructions(UseReg)) { in findFirstSlotCandidate() local
279 unsigned Opcode = UseI.getOpcode(); in findFirstSlotCandidate()
286 if (UseI.isCopy()) { in findFirstSlotCandidate()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DR600EmitClauseMarkers.cpp195 for (MachineBasicBlock::iterator UseI = Def; UseI != BBEnd; ++UseI) { in canClauseLocalKillFitInClause() local
196 AluInstCount += OccupiedDwords(*UseI); in canClauseLocalKillFitInClause()
198 if (!SubstituteKCacheBank(*UseI, KCacheBanks, false)) in canClauseLocalKillFitInClause()
213 if (UseI->readsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
217 if (UseI != Def && UseI->killsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
H A DAMDGPUSubtarget.cpp805 MachineInstr *UseI = Use->getInstr(); in adjustSchedDependency() local
820 } else if (UseI->isBundle()) { in adjustSchedDependency()
823 MachineBasicBlock::const_instr_iterator I(UseI->getIterator()); in adjustSchedDependency()
824 MachineBasicBlock::const_instr_iterator E(UseI->getParent()->instr_end()); in adjustSchedDependency()
838 DefI, DefOpIdx, UseI, UseOpIdx)); in adjustSchedDependency()
H A DGCNSchedStrategy.cpp900 MachineInstr *UseI = &*DAG.MRI.use_instr_nodbg_begin(Reg); in collectRematerializableInstructions() local
901 if (Def->getParent() == UseI->getParent()) in collectRematerializableInstructions()
912 RematerializableInsts[I][Def] = UseI; in collectRematerializableInstructions()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMIRCanonicalizerPass.cpp230 MachineBasicBlock::iterator UseI = BBE; in rescheduleCanonically() local
234 if (DefI != BBE && UseI != BBE) in rescheduleCanonically()
243 UseI = BBI; in rescheduleCanonically()
248 if (DefI == BBE || UseI == BBE) in rescheduleCanonically()
255 UseI->dump(); in rescheduleCanonically()
260 MBB->splice(UseI, MBB, DefI); in rescheduleCanonically()
266 auto UseI = llvm::find_if(MBB->instrs(), [&](MachineInstr &MI) -> bool { in rescheduleCanonically() local
270 if (UseI == MBB->instr_end()) in rescheduleCanonically()
277 [&]() -> MachineBasicBlock::iterator { return UseI; }); in rescheduleCanonically()
H A DMachineCopyPropagation.cpp331 const MachineInstr &UseI, unsigned UseIdx);
333 const MachineInstr &UseI,
441 const MachineInstr &Copy, const MachineInstr &UseI, unsigned UseIdx) { in isBackwardPropagatableRegClassCopy() argument
447 UseI.getRegClassConstraint(UseIdx, TII, TRI)) in isBackwardPropagatableRegClassCopy()
459 const MachineInstr &UseI, in isForwardableRegClassCopy() argument
468 UseI.getRegClassConstraint(UseIdx, TII, TRI)) in isForwardableRegClassCopy()
471 auto UseICopyOperands = isCopyInstr(UseI, *TII, UseCopyInstr); in isForwardableRegClassCopy()
H A DSplitKit.cpp207 SmallVectorImpl<SlotIndex>::const_iterator UseI, UseE; in calcLiveBlockInfo() local
208 UseI = UseSlots.begin(); in calcLiveBlockInfo()
223 if (UseI == UseE || *UseI >= Stop) { in calcLiveBlockInfo()
231 BI.FirstInstr = *UseI; in calcLiveBlockInfo()
233 do ++UseI; in calcLiveBlockInfo()
234 while (UseI != UseE && *UseI < Stop); in calcLiveBlockInfo()
235 BI.LastInstr = UseI[-1]; in calcLiveBlockInfo()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonSplitDouble.cpp253 MachineInstr *UseI = Op.getParent(); in partitionRegisters() local
254 if (isFixedInstr(UseI)) in partitionRegisters()
257 MachineOperand &MO = UseI->getOperand(i); in partitionRegisters()
437 MachineInstr *UseI = U->getParent(); in isProfitable() local
438 if (isFixedInstr(UseI)) { in isProfitable()
441 for (auto &Op : UseI->operands()) { in isProfitable()
452 if (UseI->isPHI()) { in isProfitable()
459 int32_t P = profit(UseI); in isProfitable()
547 const MachineInstr *UseI = I->getParent(); in collectIndRegsForLoop() local
548 if (UseI->getOpcode() != Hexagon::A2_addp) in collectIndRegsForLoop()
[all …]
H A DBitTracker.cpp986 for (MachineInstr &UseI : MRI.use_nodbg_instructions(Reg)) in visitUsesOf()
987 UseQ.push(&UseI); in visitUsesOf()
1104 MachineInstr &UseI = *UseQ.front(); in runUseQueue() local
1107 if (!InstrExec.count(&UseI)) in runUseQueue()
1109 if (UseI.isPHI()) in runUseQueue()
1110 visitPHI(UseI); in runUseQueue()
1111 else if (!UseI.isBranch()) in runUseQueue()
1112 visitNonBranch(UseI); in runUseQueue()
1114 visitBranchesFrom(UseI); in runUseQueue()
H A DHexagonBitSimplify.cpp1004 const MachineInstr *UseI = MO.getParent(); in isDead() local
1005 if (UseI->isDebugValue()) in isDead()
1007 if (UseI->isPHI()) { in isDead()
1008 assert(!UseI->getOperand(0).getSubReg()); in isDead()
1248 MachineInstr &UseI = *I->getParent(); in computeUsedBits() local
1249 if (UseI.isPHI() || UseI.isCopy()) { in computeUsedBits()
3152 if (UseI->getParent() != C.LB) { in processLoop()
3156 if (isBitShuffle(UseI, PR) || isStoreInput(UseI, PR)) in processLoop()
3204 MachineInstr *UseI = UI->getParent(); in processLoop() local
3205 if (UseI->getParent() == C.LB) { in processLoop()
[all …]
H A DHexagonLoopIdiomRecognition.cpp1203 if (UseI->getOpcode() == Instruction::Select) { in classifyInst()
1204 Value *TV = UseI->getOperand(1), *FV = UseI->getOperand(2); in classifyInst()
1208 Early.insert(UseI); in classifyInst()
1212 Late.insert(UseI); in classifyInst()
1219 if (UseI->getNumOperands() == 0) in classifyInst()
1223 for (auto &I : UseI->operands()) { in classifyInst()
1244 Early.insert(UseI); in classifyInst()
1246 Late.insert(UseI); in classifyInst()
2351 Instruction *UseI = dyn_cast<Instruction>(K); in coverLoop() local
2352 if (!UseI) in coverLoop()
[all …]
H A DHexagonGenPredicate.cpp238 MachineInstr *UseI = I->getParent(); in processPredicateGPR() local
239 if (isConvertibleToPredForm(UseI)) in processPredicateGPR()
240 PUsers.insert(UseI); in processPredicateGPR()
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/
H A DBareMetal.cpp75 bool UseI = (Arch == "rv32i") || (Arch == "rv32ic"); // ic => i in findRISCVMultilibs() local
80 addMultilibFlag(UseI, "march=rv32i", Flags); in findRISCVMultilibs()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp317 const MachineInstr *UseI = Use->getParent(); in isSafeToMove() local
319 assert(UseI->getParent() == Insert->getParent()); in isSafeToMove()
340 for (const auto &PriorUse : UseI->uses()) { in isSafeToMove()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86CmovConversion.cpp333 [&](MachineInstr &UseI) { in collectCmovCandidates() argument
334 return UseI.getOpcode() == X86::SUBREG_TO_REG; in collectCmovCandidates()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp735 for (User *UseI : IVOpnd->users()) { in shouldSpeculateInstrs()
736 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs()
H A DSimplifyIndVar.cpp1045 Instruction *UseI) { in getPostIncRangeInfo() argument
1046 DefUserPair Key(Def, UseI); in getPostIncRangeInfo()
1056 void updatePostIncRangeInfo(Value *Def, Instruction *UseI, ConstantRange R) { in updatePostIncRangeInfo() argument
1057 DefUserPair Key(Def, UseI); in updatePostIncRangeInfo()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1941 if (auto *UseI = dyn_cast<Instruction>(U)) in emitInstructionAnnot() local
1942 if (!isa<PHINode>(UseI) || DT.dominates(ParentBB, UseI->getParent())) in emitInstructionAnnot()
1943 printResult(UseI->getParent()); in emitInstructionAnnot()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp3157 auto UseI = find(Inc.UserInst->operands(), Inc.IVOperand); in FinalizeChain() local
3158 assert(UseI != Inc.UserInst->op_end() && "cannot find IV operand"); in FinalizeChain()
3159 IVIncSet.insert(UseI); in FinalizeChain()
3294 User::op_iterator UseI = in CollectFixupsAndInitialFormulae() local
3296 assert(UseI != UserInst->op_end() && "cannot find IV operand"); in CollectFixupsAndInitialFormulae()
3297 if (IVIncSet.count(UseI)) { in CollectFixupsAndInitialFormulae()
3298 LLVM_DEBUG(dbgs() << "Use is in profitable chain: " << **UseI << '\n'); in CollectFixupsAndInitialFormulae()