Home
last modified time | relevance | path

Searched refs:UseInst (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp80 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
82 bool eliminateIdentitySCEV(Instruction *UseInst, Instruction *IVOperand);
83 bool replaceIVUserWithLoopInvariant(Instruction *UseInst);
88 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
128 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser() argument
133 switch (UseInst->getOpcode()) { in foldIVUser()
140 if (IVOperand != UseInst->getOperand(OperIdx) || in foldIVUser()
141 !isa<ConstantInt>(UseInst->getOperand(1))) in foldIVUser()
154 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1)); in foldIVUser()
155 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1108 Instruction *UseInst) { in isCompleteOverwrite()
1112 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite()
1115 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite()
1120 if (auto CC = getLocForWriteEx(UseInst)) in isCompleteOverwrite()
1121 return isOverwrite(UseInst, DefInst, *CC, DefLoc, DepWriteOffset, in isCompleteOverwrite()
1163 Instruction *UseInst = cast<MemoryUseOrDef>(UseAccess)->getMemoryInst(); in isWriteAtEndOfFunction() local
1164 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction()
1165 LLVM_DEBUG(dbgs() << " ... hit read clobber " << *UseInst << ".\n"); in isWriteAtEndOfFunction()
1230 bool isReadClobber(const MemoryLocation &DefLoc, Instruction *UseInst) { in isReadClobber()
1231 if (isNoopIntrinsic(UseInst)) in isReadClobber()
[all …]
H A DSink.cpp136 Instruction *UseInst = cast<Instruction>(U.getUser()); in SinkInstruction() local
137 BasicBlock *UseBlock = UseInst->getParent(); in SinkInstruction()
141 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in SinkInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp93 Instruction *UseInst,
619 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local
620 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
623 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes()
630 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes()
637 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes()
640 } else if (AtomicCmpXchgInst *CAS = dyn_cast<AtomicCmpXchgInst>(UseInst)) { in collectUsesWithPtrTypes()
647 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes()
655 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes()
657 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes()
[all …]
H A DGCNNSAReassign.cpp209 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local
210 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
H A DSIPeepholeSDWA.cpp424 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert()
425 if (&UseInst != ParentMI) in potentialToConvert()
H A DSIInstrInfo.cpp7700 auto &UseInst = *Use.getParent(); in execMayBeModifiedBeforeAnyUse() local
7703 if (UseInst.getParent() != DefBB) in execMayBeModifiedBeforeAnyUse()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCPreEmitPeephole.cpp252 MachineBasicBlock::iterator UseInst; in addLinkerOpt() member
297 Pair.UseInst = BBI; in addLinkerOpt()
308 assert(Pair->UseInst.isValid() && Pair->StillValid && in addLinkerOpt()
315 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt()
337 Pair->UseInst->addOperand(ImplUse); in addLinkerOpt()
345 Pair->UseInst->addOperand(*MF, PCRelLabel); in addLinkerOpt()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineSink.cpp329 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
330 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock()
331 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
332 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
333 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock()
341 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
342 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
343 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
344 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
347 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
[all …]
H A DMIRCanonicalizerPass.cpp220 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local
223 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically()
226 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically()
233 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
H A DRegAllocFast.cpp363 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local
364 if (UseInst.getParent() != MBB || ++C >= Limit) { in mayLiveOut()
373 if (SelfLoopDef == &UseInst || in mayLiveOut()
374 !dominates(*MBB, SelfLoopDef->getIterator(), UseInst.getIterator())) { in mayLiveOut()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp445 const MachineInstr *UseInst = Use.getParent(); in oneUseDominatesOtherUses() local
446 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses()
451 if (UseInst == OneUseInst) { in oneUseDominatesOtherUses()
458 while (!MDT.dominates(OneUseInst, UseInst)) { in oneUseDominatesOtherUses()
464 if (UseInst->getDesc().getNumDefs() == 0) in oneUseDominatesOtherUses()
466 const MachineOperand &MO = UseInst->getOperand(0); in oneUseDominatesOtherUses()
481 UseInst = NewUseInst; in oneUseDominatesOtherUses()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DMemorySSA.cpp271 const Instruction *UseInst, AliasAnalysisType &AA) { in instructionClobbersQuery() argument
300 if (auto *CB = dyn_cast_or_null<CallBase>(UseInst)) { in instructionClobbersQuery()
307 if (auto *UseLoad = dyn_cast_or_null<LoadInst>(UseInst)) in instructionClobbersQuery()
H A DScalarEvolution.cpp8171 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
8180 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1531 auto *UseInst = dyn_cast<Instruction>(U.getUser()); in removeUnusedBlocksFromParent() local
1532 if (!UseInst) in removeUnusedBlocksFromParent()
1534 if (BBsToErase.count(UseInst->getParent())) in removeUnusedBlocksFromParent()