Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTaggingPreRA.cpp177 for (MachineInstr &UseI : in uncheckUsesOf()
179 if (isUncheckedLoadOrStoreOpcode(UseI.getOpcode())) { in uncheckUsesOf()
181 unsigned OpIdx = TII->getLoadStoreImmIdx(UseI.getOpcode()) - 1; in uncheckUsesOf()
182 if (UseI.getOperand(OpIdx).isReg() && in uncheckUsesOf()
183 UseI.getOperand(OpIdx).getReg() == TaggedReg) { in uncheckUsesOf()
184 UseI.getOperand(OpIdx).ChangeToFrameIndex(FI); in uncheckUsesOf()
185 UseI.getOperand(OpIdx).setTargetFlags(AArch64II::MO_TAGGED); in uncheckUsesOf()
187 } else if (UseI.isCopy() && UseI.getOperand(0).getReg().isVirtual()) { in uncheckUsesOf()
188 uncheckUsesOf(UseI in uncheckUsesOf()
277 for (auto &UseI : MRI->use_instructions(UseReg)) { findFirstSlotCandidate() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600EmitClauseMarkers.cpp193 for (MachineBasicBlock::iterator UseI = Def; UseI != BBEnd; ++UseI) { in canClauseLocalKillFitInClause() local
194 AluInstCount += OccupiedDwords(*UseI); in canClauseLocalKillFitInClause()
196 if (!SubstituteKCacheBank(*UseI, KCacheBanks, false)) in canClauseLocalKillFitInClause()
211 if (UseI->readsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
215 if (UseI != Def && UseI->killsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
H A DAMDGPUSubtarget.cpp875 MachineInstr *UseI = Use->getInstr(); in adjustSchedDependency() local
890 } else if (UseI->isBundle()) { in adjustSchedDependency()
893 MachineBasicBlock::const_instr_iterator I(UseI->getIterator()); in adjustSchedDependency()
894 MachineBasicBlock::const_instr_iterator E(UseI->getParent()->instr_end()); in adjustSchedDependency()
908 DefI, DefOpIdx, UseI, UseOpIdx)); in adjustSchedDependency()
H A DGCNSchedStrategy.cpp1388 MachineInstr *UseI = &*DAG.MRI.use_instr_nodbg_begin(Reg); in collectRematerializableInstructions() local
1389 if (Def->getParent() == UseI->getParent()) in collectRematerializableInstructions()
1400 RematerializableInsts[I][Def] = UseI; in collectRematerializableInstructions()
/freebsd/contrib/llvm-project/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.cpp423 const MachineInstr &UseI, unsigned UseIdx);
425 const MachineInstr &UseI,
556 const MachineInstr &Copy, const MachineInstr &UseI, unsigned UseIdx) { in isBackwardPropagatableRegClassCopy() argument
562 UseI.getRegClassConstraint(UseIdx, TII, TRI)) in isBackwardPropagatableRegClassCopy()
574 const MachineInstr &UseI, in isForwardableRegClassCopy() argument
583 UseI.getRegClassConstraint(UseIdx, TII, TRI)) in isForwardableRegClassCopy()
586 auto UseICopyOperands = isCopyInstr(UseI, *TII, UseCopyInstr); in isForwardableRegClassCopy()
H A DSplitKit.cpp209 SmallVectorImpl<SlotIndex>::const_iterator UseI, UseE; in calcLiveBlockInfo() local
210 UseI = UseSlots.begin(); in calcLiveBlockInfo()
225 if (UseI == UseE || *UseI >= Stop) { in calcLiveBlockInfo()
233 BI.FirstInstr = *UseI; in calcLiveBlockInfo()
235 do ++UseI; in calcLiveBlockInfo()
236 while (UseI != UseE && *UseI < Stop); in calcLiveBlockInfo()
237 BI.LastInstr = UseI[-1]; in calcLiveBlockInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonSplitDouble.cpp253 MachineInstr *UseI = Op.getParent(); in partitionRegisters() local
254 if (isFixedInstr(UseI)) in partitionRegisters()
256 for (MachineOperand &MO : UseI->operands()) { in partitionRegisters()
436 MachineInstr *UseI = U->getParent(); in isProfitable() local
437 if (isFixedInstr(UseI)) { in isProfitable()
440 for (auto &Op : UseI->operands()) { in isProfitable()
451 if (UseI->isPHI()) { in isProfitable()
452 const MachineBasicBlock *PB = UseI->getParent(); in isProfitable()
458 int32_t P = profit(UseI); in isProfitable()
546 const MachineInstr *UseI = I->getParent(); in collectIndRegsForLoop() local
[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->isDebugInstr()) in isDead()
1007 if (UseI->isPHI()) { in isDead()
1008 assert(!UseI->getOperand(0).getSubReg()); in isDead()
1009 Register DR = UseI->getOperand(0).getReg(); in isDead()
1248 MachineInstr &UseI = *I->getParent(); in computeUsedBits() local
1249 if (UseI.isPHI() || UseI.isCopy()) { in computeUsedBits()
1250 Register DefR = UseI.getOperand(0).getReg(); in computeUsedBits()
1255 if (!computeUsedBits(UseI, I.getOperandNo(), Used, B)) in computeUsedBits()
3151 const MachineInstr *UseI = MO.getParent(); in processLoop() local
[all …]
H A DHexagonLoopIdiomRecognition.cpp599 bool classifyInst(Instruction *UseI, ValueSeq &Early, ValueSeq &Late);
1192 bool PolynomialMultiplyRecognize::classifyInst(Instruction *UseI, in classifyInst() argument
1197 if (UseI->getOpcode() == Instruction::Select) { in classifyInst()
1198 Value *TV = UseI->getOperand(1), *FV = UseI->getOperand(2); in classifyInst()
1202 Early.insert(UseI); in classifyInst()
1206 Late.insert(UseI); in classifyInst()
1213 if (UseI->getNumOperands() == 0) in classifyInst()
1217 for (auto &I : UseI->operands()) { in classifyInst()
1238 Early.insert(UseI); in classifyInst()
1240 Late.insert(UseI); in classifyInst()
[all …]
H A DHexagonGenPredicate.cpp238 MachineInstr *UseI = I->getParent(); in processPredicateGPR() local
239 if (isConvertibleToPredForm(UseI)) in processPredicateGPR()
240 PUsers.insert(UseI); in processPredicateGPR()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp318 const MachineInstr *UseI = Use->getParent(); in isSafeToMove() local
320 assert(UseI->getParent() == Insert->getParent()); in isSafeToMove()
343 auto E = std::next(MachineBasicBlock::const_iterator(UseI)); in isSafeToMove()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86CmovConversion.cpp342 [&](MachineInstr &UseI) { in collectCmovCandidates() argument
343 return UseI.getOpcode() == X86::SUBREG_TO_REG; in collectCmovCandidates()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DBareMetal.cpp80 bool UseI = (Arch == "rv32i") || (Arch == "rv32ic"); // ic => i in findRISCVMultilibs() local
85 addMultilibFlag(UseI, "-march=rv32i", Flags); in findRISCVMultilibs()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp985 for (User *UseI : IVOpnd->users()) { in shouldSpeculateInstrs()
986 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs()
H A DSimplifyIndVar.cpp1093 Instruction *UseI) { in getPostIncRangeInfo() argument
1094 DefUserPair Key(Def, UseI); in getPostIncRangeInfo()
1104 void updatePostIncRangeInfo(Value *Def, Instruction *UseI, ConstantRange R) { in updatePostIncRangeInfo() argument
1105 DefUserPair Key(Def, UseI); in updatePostIncRangeInfo()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp2048 if (auto *UseI = dyn_cast<Instruction>(U)) in emitInstructionAnnot() local
2049 if (!isa<PHINode>(UseI) || DT.dominates(ParentBB, UseI->getParent())) in emitInstructionAnnot()
2050 printResult(UseI->getParent()); in emitInstructionAnnot()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp3351 auto UseI = find(Inc.UserInst->operands(), Inc.IVOperand); in FinalizeChain() local
3352 assert(UseI != Inc.UserInst->op_end() && "cannot find IV operand"); in FinalizeChain()
3353 IVIncSet.insert(UseI); in FinalizeChain()
3532 User::op_iterator UseI = in CollectFixupsAndInitialFormulae() local
3534 assert(UseI != UserInst->op_end() && "cannot find IV operand"); in CollectFixupsAndInitialFormulae()
3535 if (IVIncSet.count(UseI)) { in CollectFixupsAndInitialFormulae()
3536 LLVM_DEBUG(dbgs() << "Use is in profitable chain: " << **UseI << '\n'); in CollectFixupsAndInitialFormulae()