Searched refs:UseInst (Results 1 - 14 of 14) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp78 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
80 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand);
81 bool replaceIVUserWithLoopInvariant(Instruction *UseInst);
86 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
103 /// IVOperand is guaranteed SCEVable, but UseInst may not be.
108 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { argument
113 switch (UseInst->getOpcode()) {
120 if (IVOperand != UseInst->getOperand(OperIdx) ||
121 !isa<ConstantInt>(UseInst->getOperand(1)))
134 ConstantInt *D = cast<ConstantInt>(UseInst
160 << " -> " << *UseInst << '\\n'); local
616 eliminateIVUser(Instruction *UseInst, Instruction *IVOperand) argument
686 eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand) argument
870 Instruction *UseInst = UseOper.first; local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp105 /// be the same value as one of the input operands of UseInst.
107 Instruction *UseInst,
540 Instruction *UseInst = cast<Instruction>(User); local
541 if (UseInst->getOpcode() == Instruction::PtrToInt)
544 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) {
551 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) {
558 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) {
561 } else if (AtomicCmpXchgInst *CAS = dyn_cast<AtomicCmpXchgInst>(UseInst)) {
568 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) {
576 if (UseInst
[all...]
H A DGCNNSAReassign.cpp206 const MachineInstr *UseInst = U.getParent(); local
207 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg)
H A DGCNRegBankReassign.cpp437 const MachineInstr *UseInst = U.getParent();
438 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg)
H A DSIPeepholeSDWA.cpp450 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) {
451 if (&UseInst != ParentMI)
H A DSIInstrInfo.cpp6531 for (auto &UseInst : MRI.use_nodbg_instructions(VReg)) {
6534 if (UseInst.getParent() != DefBB)
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSink.cpp283 MachineInstr *UseInst = MO.getParent();
284 unsigned OpNo = UseInst->getOperandNo(&MO);
285 MachineBasicBlock *UseBlock = UseInst->getParent();
286 return UseBlock == MBB && UseInst->isPHI() &&
287 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB;
295 MachineInstr *UseInst = MO.getParent(); local
296 unsigned OpNo = &MO - &UseInst->getOperand(0);
297 MachineBasicBlock *UseBlock = UseInst->getParent();
298 if (UseInst->isPHI()) {
301 UseBlock = UseInst
[all...]
H A DMIRCanonicalizerPass.cpp223 MachineInstr *UseInst = UO.getParent(); local
226 const unsigned UseLoc = getInstrIdx(*UseInst);
229 if (UseInst->getParent() != Def->getParent())
236 UseToBringDefCloserTo = UseInst;
H A DRegAllocFast.cpp284 for (const MachineInstr &UseInst : MRI->reg_nodbg_instructions(VirtReg)) {
285 if (UseInst.getParent() != MBB || ++C >= Limit) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSink.cpp45 Instruction *UseInst = cast<Instruction>(U.getUser()); local
46 BasicBlock *UseBlock = UseInst->getParent();
47 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp415 const MachineInstr *UseInst = Use.getParent(); local
416 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst));
421 if (UseInst == OneUseInst) {
428 while (!MDT.dominates(OneUseInst, UseInst)) {
434 if (UseInst->getDesc().getNumDefs() == 0)
436 const MachineOperand &MO = UseInst->getOperand(0);
451 UseInst = NewUseInst;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSA.cpp264 const Instruction *UseInst, AliasAnalysisType &AA) {
267 const auto *UseCall = dyn_cast<CallBase>(UseInst);
306 if (auto *UseLoad = dyn_cast<LoadInst>(UseInst))
263 instructionClobbersQuery(const MemoryDef *MD, const MemoryLocation &UseLoc, const Instruction *UseInst, AliasAnalysisType &AA) argument
H A DScalarEvolution.cpp7805 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L,
7814 for (Value *Op : UseInst->operands()) {
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp295 for (MachineInstr &UseInst : MRI.use_nodbg_instructions(DefReg)) {
296 auto I = OrderMap.Orders.find(&UseInst);
302 FirstUser = &UseInst;

Completed in 447 milliseconds