Home
last modified time | relevance | path

Searched refs:Dep (Results 1 – 25 of 51) sorted by relevance

123

/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-mca/Views/
H A DBottleneckAnalysis.cpp153 const DependencyEdge::Dependency &DE = DepEdge.Dep; in dumpDependencyEdge()
243 uint64_t Cost = N.Cost + DepEdge.Dep.Cost; in propagateThroughEdges()
360 const DependencyEdge::Dependency &Dep = DE->Dep; in printCriticalSequence() local
364 if (Dep.Type == DependencyEdge::DT_REGISTER) { in printCriticalSequence()
368 getInstPrinter().printRegName(FOS, Dep.ResourceOrRegID); in printCriticalSequence()
369 } else if (Dep.Type == DependencyEdge::DT_MEMORY) { in printCriticalSequence()
372 assert(Dep.Type == DependencyEdge::DT_RESOURCE && in printCriticalSequence()
377 FOS << Tracker.resolveResourceName(Dep.ResourceOrRegID); in printCriticalSequence()
405 if (DE.Dep.Type == DependencyEdge::DT_REGISTER) in dump()
411 if (DE.Dep.Type == DependencyEdge::DT_MEMORY) in dump()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachinePipeliner.cpp786 SDep Dep(Load, SDep::Barrier); in addLoopCarriedDependences() local
787 Dep.setLatency(1); in addLoopCarriedDependences()
788 SU.addPred(Dep); in addLoopCarriedDependences()
796 SDep Dep(Load, SDep::Barrier); in addLoopCarriedDependences() local
797 Dep.setLatency(1); in addLoopCarriedDependences()
798 SU.addPred(Dep); in addLoopCarriedDependences()
804 SDep Dep(Load, SDep::Barrier); in addLoopCarriedDependences() local
805 Dep.setLatency(1); in addLoopCarriedDependences()
806 SU.addPred(Dep); in addLoopCarriedDependences()
811 SDep Dep(Load, SDep::Barrier); in addLoopCarriedDependences() local
[all …]
H A DMacroFusion.cpp35 static bool isHazard(const SDep &Dep) { in isHazard() argument
36 return Dep.getKind() == SDep::Anti || Dep.getKind() == SDep::Output; in isHazard()
178 for (SDep &Dep : AnchorSU.Preds) { in scheduleAdjacentImpl()
180 if (Dep.isWeak() || isHazard(Dep)) in scheduleAdjacentImpl()
183 SUnit &DepSU = *Dep.getSUnit(); in scheduleAdjacentImpl()
H A DScheduleDAGInstrs.cpp256 SDep Dep; in addPhysRegDataDeps() local
258 Dep = SDep(SU, SDep::Artificial); in addPhysRegDataDeps()
263 Dep = SDep(SU, SDep::Data, *Alias); in addPhysRegDataDeps()
272 Dep.setLatency(SchedModel.computeOperandLatency(SU->getInstr(), OperIdx, in addPhysRegDataDeps()
274 ST.adjustSchedDependency(SU, OperIdx, UseSU, UseOp, Dep); in addPhysRegDataDeps()
276 Dep.setLatency(0); in addPhysRegDataDeps()
280 ST.adjustSchedDependency(SU, OperIdx, UseSU, UseOp, Dep); in addPhysRegDataDeps()
283 UseSU->addPred(Dep); in addPhysRegDataDeps()
318 SDep Dep(SU, Kind, /*Reg=*/*Alias); in addPhysRegDeps() local
320 Dep.setLatency( in addPhysRegDeps()
[all …]
H A DMachineTraceMetrics.cpp793 for (const DataDep &Dep : Deps) { in updateDepth() local
795 BlockInfo[Dep.DefMI->getParent()->getNumber()]; in updateDepth()
800 unsigned DepCycle = Cycles.lookup(Dep.DefMI).Depth; in updateDepth()
802 if (!Dep.DefMI->isTransient()) in updateDepth()
804 .computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, Dep.UseOp); in updateDepth()
953 static bool pushDepHeight(const DataDep &Dep, const MachineInstr &UseMI, in pushDepHeight() argument
958 if (!Dep.DefMI->isTransient()) in pushDepHeight()
959 UseHeight += SchedModel.computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, in pushDepHeight()
960 Dep.UseOp); in pushDepHeight()
965 std::tie(I, New) = Heights.insert(std::make_pair(Dep.DefMI, UseHeight)); in pushDepHeight()
[all …]
H A DScheduleDAG.cpp368 for (const SDep &Dep : SU.Preds) { in dumpNodeAll() local
370 dumpNodeName(*Dep.getSUnit()); in dumpNodeAll()
372 Dep.dump(TRI); in dumpNodeAll()
378 for (const SDep &Dep : SU.Succs) { in dumpNodeAll() local
380 dumpNodeName(*Dep.getSUnit()); in dumpNodeAll()
382 Dep.dump(TRI); in dumpNodeAll()
H A DImplicitNullChecks.cpp258 Optional<ArrayRef<MachineInstr *>::iterator> Dep; in computeDependence() local
264 if (Dep == None) { in computeDependence()
266 Dep = I; in computeDependence()
273 return {true, Dep}; in computeDependence()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DScheduleDAG.h80 PointerIntPair<SUnit *, 2, Kind> Dep;
101 SDep() : Dep(nullptr, Data) {} in SDep()
105 : Dep(S, kind), Contents() { in SDep()
124 : Dep(S, Order), Contents(), Latency(0) { in SDep()
385 SDep Dep(SU, SDep::Barrier); in addPredBarrier()
388 Dep.setLatency(TrueMemOrderLatency); in addPredBarrier()
389 return addPred(Dep); in addPredBarrier()
466 if (Dep != Other.Dep) in overlaps()
468 switch (Dep.getInt()) { in overlaps()
480 inline SUnit *SDep::getSUnit() const { return Dep.getPointer(); } in getSUnit()
[all …]
H A DMachinePipeliner.h240 bool isBackedge(SUnit *Source, const SDep &Dep) { in isBackedge() argument
241 if (Dep.getKind() != SDep::Anti) in isBackedge()
243 return Source->getInstr()->isPHI() || Dep.getSUnit()->getInstr()->isPHI(); in isBackedge()
246 bool isLoopCarriedDep(SUnit *Source, const SDep &Dep, bool isSucc = true);
250 unsigned getDistance(SUnit *U, SUnit *V, const SDep &Dep) { in getDistance() argument
253 if (V->getInstr()->isPHI() && Dep.getKind() == SDep::Anti) in getDistance()
541 int earliestCycleInChain(const SDep &Dep);
545 int latestCycleInChain(const SDep &Dep);
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/GlobalISel/
H A DGIMatchTree.cpp98 for (auto &Dep : enumerate(MatchDag.predicate_edges())) { in GIMatchTreeBuilderLeafInfo() local
99 PredicateDepIDs.insert(std::make_pair(Dep.value(), Dep.index())); in GIMatchTreeBuilderLeafInfo()
103 for (auto &Dep : enumerate(MatchDag.predicate_edges())) { in GIMatchTreeBuilderLeafInfo() local
104 unsigned ID = PredicateIDs.lookup(Dep.value()->getPredicate()); in GIMatchTreeBuilderLeafInfo()
105 UnsatisfiedPredDepsForPred[ID].set(Dep.index()); in GIMatchTreeBuilderLeafInfo()
137 for (auto &Dep : enumerate(MatchDag.predicate_edges())) { in declareInstr() local
138 if (Dep.value()->getRequiredMI() == Instr && in declareInstr()
139 Dep.value()->getRequiredMO() == nullptr) { in declareInstr()
141 DepsFor.value().reset(Dep.index()); in declareInstr()
171 for (auto &Dep : enumerate(MatchDag.predicate_edges())) { in declareOperand() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonSubtarget.cpp391 SDep &Dep) const { in adjustSchedDependency()
404 Dep.setLatency(0); in adjustSchedDependency()
413 Dep.setLatency(0); in adjustSchedDependency()
431 Dep.setLatency((unsigned)DLatency); in adjustSchedDependency()
439 Dep.setLatency(0); in adjustSchedDependency()
443 updateLatency(*SrcInst, *DstInst, Dep); in adjustSchedDependency()
473 MachineInstr &DstInst, SDep &Dep) const { in updateLatency()
474 if (Dep.isArtificial()) { in updateLatency()
475 Dep.setLatency(1); in updateLatency()
486 Dep.setLatency((Dep.getLatency() + 1) >> 1); in updateLatency()
H A DHexagonVLIWPacketizer.cpp937 auto &Dep = PacketSU->Succs[i]; in restrictingDepExistInPacket() local
938 if (Dep.getSUnit() == PacketSUDep && Dep.getKind() == SDep::Anti && in restrictingDepExistInPacket()
939 Dep.getReg() == DepReg) in restrictingDepExistInPacket()
1001 auto Dep = PacketSU->Succs[i]; in arePredicatesComplements() local
1006 if (Dep.getSUnit() == SU && Dep.getKind() == SDep::Data && in arePredicatesComplements()
1007 Hexagon::PredRegsRegClass.contains(Dep.getReg())) { in arePredicatesComplements()
1013 if (restrictingDepExistInPacket(*I, Dep.getReg())) in arePredicatesComplements()
H A DHexagonSubtarget.h271 SDep &Dep) const override;
302 void updateLatency(MachineInstr &SrcInst, MachineInstr &DstInst, SDep &Dep)
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp805 MemDepResult Dep; in getNonLocalCallDependency() local
808 Dep = getCallDependencyFrom(QueryCall, isReadonlyCall, ScanPos, DirtyBB); in getNonLocalCallDependency()
812 Dep = MemDepResult::getNonLocal(); in getNonLocalCallDependency()
814 Dep = MemDepResult::getNonFuncLocal(); in getNonLocalCallDependency()
820 ExistingResult->setResult(Dep); in getNonLocalCallDependency()
822 Cache.push_back(NonLocalDepEntry(DirtyBB, Dep)); in getNonLocalCallDependency()
826 if (!Dep.isNonLocal()) { in getNonLocalCallDependency()
829 if (Instruction *Inst = Dep.getInst()) in getNonLocalCallDependency()
958 MemDepResult Dep = getPointerDependencyFrom(Loc, isLoad, ScanPos, BB, in GetNonLocalInfoForBlock() local
963 return Dep; in GetNonLocalInfoForBlock()
[all …]
H A DMemDepPrinter.cpp39 typedef std::pair<InstTypePair, const BasicBlock *> Dep; typedef
40 typedef SmallSetVector<Dep, 4> DepSet;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopLoadElimination.cpp190 for (const auto &Dep : *Deps) { in findStoreToLoadDependences()
191 Instruction *Source = Dep.getSource(LAI); in findStoreToLoadDependences()
192 Instruction *Destination = Dep.getDestination(LAI); in findStoreToLoadDependences()
194 if (Dep.Type == MemoryDepChecker::Dependence::Unknown) { in findStoreToLoadDependences()
202 if (Dep.isBackward()) in findStoreToLoadDependences()
208 assert(Dep.isForward() && "Needs to be a forward dependence"); in findStoreToLoadDependences()
H A DLoopDistribute.cpp639 for (auto &Dep : Dependences) in MemoryInstructionDependences() local
640 if (Dep.isPossiblyBackward()) { in MemoryInstructionDependences()
644 ++Accesses[Dep.Source].NumUnsafeDependencesStartOrEnd; in MemoryInstructionDependences()
645 --Accesses[Dep.Destination].NumUnsafeDependencesStartOrEnd; in MemoryInstructionDependences()
647 LLVM_DEBUG(Dep.print(dbgs(), 2, Instructions)); in MemoryInstructionDependences()
H A DLoopInterchange.cpp120 std::vector<char> Dep; in populateDependencyMatrix() local
150 Dep.push_back(Direction); in populateDependencyMatrix()
153 Dep.push_back(Direction); in populateDependencyMatrix()
166 Dep.push_back(Direction); in populateDependencyMatrix()
169 while (Dep.size() != Level) { in populateDependencyMatrix()
170 Dep.push_back('I'); in populateDependencyMatrix()
173 DepMatrix.push_back(Dep); in populateDependencyMatrix()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUSubtarget.cpp814 int UseOpIdx, SDep &Dep) const { in adjustSchedDependency()
815 if (Dep.getKind() != SDep::Kind::Data || !Dep.getReg() || in adjustSchedDependency()
824 auto Reg = Dep.getReg(); in adjustSchedDependency()
834 Dep.setLatency(Lat); in adjustSchedDependency()
837 auto Reg = Dep.getReg(); in adjustSchedDependency()
846 Dep.setLatency(Lat); in adjustSchedDependency()
H A DR600Packetizer.cpp190 const SDep &Dep = SUJ->Succs[i]; in isLegalToPacketizeTogether() local
191 if (Dep.getSUnit() != SUI) in isLegalToPacketizeTogether()
193 if (Dep.getKind() == SDep::Anti) in isLegalToPacketizeTogether()
195 if (Dep.getKind() == SDep::Output) in isLegalToPacketizeTogether()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/
H A DMain.cpp78 for (const auto &Dep : Parser.getDependencies()) { in createDependencyFile() local
79 DepOut.os() << ' ' << Dep; in createDependencyFile()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningTool.cpp77 for (const auto &Dep : Dependencies) in getDependencyFile() local
78 addDependency(Dep); in getDependencyFile()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DScheduleDAGSDNodes.cpp507 SDep Dep = isChain ? SDep(OpSU, SDep::Barrier) in AddSchedEdges() local
509 Dep.setLatency(OpLatency); in AddSchedEdges()
511 computeOperandLatency(OpN, N, i, Dep); in AddSchedEdges()
512 ST.adjustSchedDependency(OpSU, DefIdx, SU, i, Dep); in AddSchedEdges()
515 if (!SU->addPred(Dep) && !Dep.isCtrl() && OpSU->NumRegDefsLeft > 1) { in AddSchedEdges()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DTemplateName.cpp78 TemplateName::TemplateName(DependentTemplateName *Dep) : Storage(Dep) {} in TemplateName() argument
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DVectorUtils.h937 for (auto Dep : *Deps) in collectDependences()
938 Dependences[Dep.getSource(*LAI)].insert(Dep.getDestination(*LAI)); in collectDependences()

123