Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMacroFusion.cpp36 static bool isHazard(const SDep &Dep) { in isHazard() argument
37 return Dep.getKind() == SDep::Anti || Dep.getKind() == SDep::Output; in isHazard()
158 for (SDep &Dep : AnchorSU.Preds) { in scheduleAdjacentImpl()
160 if (Dep.isWeak() || isHazard(Dep)) in scheduleAdjacentImpl()
163 SUnit &DepSU = *Dep.getSUnit(); in scheduleAdjacentImpl()
DMachineTraceMetrics.cpp795 for (const DataDep &Dep : Deps) { in updateDepth() local
797 BlockInfo[Dep.DefMI->getParent()->getNumber()]; in updateDepth()
802 unsigned DepCycle = Cycles.lookup(Dep.DefMI).Depth; in updateDepth()
804 if (!Dep.DefMI->isTransient()) in updateDepth()
806 .computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, Dep.UseOp); in updateDepth()
954 static bool pushDepHeight(const DataDep &Dep, const MachineInstr &UseMI, in pushDepHeight() argument
959 if (!Dep.DefMI->isTransient()) in pushDepHeight()
960 UseHeight += SchedModel.computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, in pushDepHeight()
961 Dep.UseOp); in pushDepHeight()
966 std::tie(I, New) = Heights.insert(std::make_pair(Dep.DefMI, UseHeight)); in pushDepHeight()
[all …]
DMachinePipeliner.cpp346 bool isBackedge(SUnit *Source, const SDep &Dep) { in isBackedge() argument
347 if (Dep.getKind() != SDep::Anti) in isBackedge()
349 return Source->getInstr()->isPHI() || Dep.getSUnit()->getInstr()->isPHI(); in isBackedge()
352 bool isLoopCarriedDep(SUnit *Source, const SDep &Dep, bool isSucc = true);
356 unsigned getDistance(SUnit *U, SUnit *V, const SDep &Dep) { in getDistance() argument
359 if (V->getInstr()->isPHI() && Dep.getKind() == SDep::Anti) in getDistance()
639 int earliestCycleInChain(const SDep &Dep);
643 int latestCycleInChain(const SDep &Dep);
1111 SDep Dep(Load, SDep::Barrier); in addLoopCarriedDependences() local
1112 Dep.setLatency(1); in addLoopCarriedDependences()
[all …]
DScheduleDAGInstrs.cpp250 SDep Dep; in addPhysRegDataDeps() local
252 Dep = SDep(SU, SDep::Artificial); in addPhysRegDataDeps()
257 Dep = SDep(SU, SDep::Data, *Alias); in addPhysRegDataDeps()
260 Dep.setLatency( in addPhysRegDataDeps()
264 ST.adjustSchedDependency(SU, UseSU, Dep); in addPhysRegDataDeps()
265 UseSU->addPred(Dep); in addPhysRegDataDeps()
301 SDep Dep(SU, Kind, /*Reg=*/*Alias); in addPhysRegDeps() local
302 Dep.setLatency( in addPhysRegDeps()
304 DefSU->addPred(Dep); in addPhysRegDeps()
410 SDep Dep(SU, SDep::Data, Reg); in addVRegDefDeps() local
[all …]
DScheduleDAG.cpp380 for (const SDep &Dep : Preds) { in dumpAll() local
382 Dep.getSUnit()->print(dbgs(), G); dbgs() << ": "; in dumpAll()
383 Dep.print(dbgs(), G->TRI); dbgs() << '\n'; in dumpAll()
388 for (const SDep &Dep : Succs) { in dumpAll() local
390 Dep.getSUnit()->print(dbgs(), G); dbgs() << ": "; in dumpAll()
391 Dep.print(dbgs(), G->TRI); dbgs() << '\n'; in dumpAll()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DScheduleDAG.h81 PointerIntPair<SUnit *, 2, Kind> Dep;
102 SDep() : Dep(nullptr, Data) {} in SDep()
106 : Dep(S, kind), Contents() { in SDep()
125 : Dep(S, Order), Contents(), Latency(0) { in SDep()
390 SDep Dep(SU, SDep::Barrier);
393 Dep.setLatency(TrueMemOrderLatency);
394 return addPred(Dep);
476 if (Dep != Other.Dep)
478 switch (Dep.getInt()) {
490 inline SUnit *SDep::getSUnit() const { return Dep.getPointer(); }
[all …]
/external/llvm/include/llvm/CodeGen/
DScheduleDAG.h76 PointerIntPair<SUnit *, 2, Kind> Dep;
98 SDep() : Dep(nullptr, Data) {} in SDep()
102 : Dep(S, kind), Contents() { in SDep()
120 : Dep(S, Order), Contents(), Latency(0) { in SDep()
403 SDep Dep(SU, SDep::Barrier);
406 Dep.setLatency(TrueMemOrderLatency);
407 return addPred(Dep);
489 if (Dep != Other.Dep)
491 switch (Dep.getInt()) {
503 inline SUnit *SDep::getSUnit() const { return Dep.getPointer(); }
[all …]
/external/llvm/lib/CodeGen/
DMachineTraceMetrics.cpp836 for (const DataDep &Dep : Deps) { in computeInstrDepths() local
838 BlockInfo[Dep.DefMI->getParent()->getNumber()]; in computeInstrDepths()
843 unsigned DepCycle = Cycles.lookup(Dep.DefMI).Depth; in computeInstrDepths()
845 if (!Dep.DefMI->isTransient()) in computeInstrDepths()
847 .computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, Dep.UseOp); in computeInstrDepths()
929 static bool pushDepHeight(const DataDep &Dep, const MachineInstr &UseMI, in pushDepHeight() argument
934 if (!Dep.DefMI->isTransient()) in pushDepHeight()
935 UseHeight += SchedModel.computeOperandLatency(Dep.DefMI, Dep.DefOp, &UseMI, in pushDepHeight()
936 Dep.UseOp); in pushDepHeight()
941 std::tie(I, New) = Heights.insert(std::make_pair(Dep.DefMI, UseHeight)); in pushDepHeight()
[all …]
DMachinePipeliner.cpp292 bool isBackedge(SUnit *Source, const SDep &Dep) { in isBackedge() argument
293 if (Dep.getKind() != SDep::Anti) in isBackedge()
295 return Source->getInstr()->isPHI() || Dep.getSUnit()->getInstr()->isPHI(); in isBackedge()
299 static bool isOrder(SUnit *Source, const SDep &Dep) { in isOrder() argument
300 if (Dep.getKind() != SDep::Order) in isOrder()
303 !Dep.getSUnit()->getInstr()->isPHI()); in isOrder()
306 bool isLoopCarriedOrder(SUnit *Source, const SDep &Dep, bool isSucc = true);
309 unsigned getLatency(SUnit *Source, const SDep &Dep) { in getLatency() argument
312 if (Dep.getKind() == SDep::Anti) { in getLatency()
314 return Dep.getSUnit()->Latency; in getLatency()
[all …]
DScheduleDAGInstrs.cpp303 SDep Dep; in addPhysRegDataDeps() local
305 Dep = SDep(SU, SDep::Artificial); in addPhysRegDataDeps()
310 Dep = SDep(SU, SDep::Data, *Alias); in addPhysRegDataDeps()
313 Dep.setLatency( in addPhysRegDataDeps()
317 ST.adjustSchedDependency(SU, UseSU, Dep); in addPhysRegDataDeps()
318 UseSU->addPred(Dep); in addPhysRegDataDeps()
351 SDep Dep(SU, Kind, /*Reg=*/*Alias); in addPhysRegDeps() local
352 Dep.setLatency( in addPhysRegDeps()
354 DefSU->addPred(Dep); in addPhysRegDeps()
461 SDep Dep(SU, SDep::Data, Reg); in addVRegDefDeps() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonSubtarget.cpp321 SDep &Dep) const { in adjustSchedDependency()
334 Dep.setLatency(0); in adjustSchedDependency()
343 Dep.setLatency(0); in adjustSchedDependency()
361 Dep.setLatency((unsigned)DLatency); in adjustSchedDependency()
369 Dep.setLatency(0); in adjustSchedDependency()
373 updateLatency(*SrcInst, *DstInst, Dep); in adjustSchedDependency()
403 MachineInstr &DstInst, SDep &Dep) const { in updateLatency()
404 if (Dep.isArtificial()) { in updateLatency()
405 Dep.setLatency(1); in updateLatency()
416 Dep.setLatency((Dep.getLatency() + 1) >> 1); in updateLatency()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DMemoryDependenceAnalysis.cpp682 MemDepResult Dep; in getNonLocalCallDependency() local
685 Dep = getCallSiteDependencyFrom(QueryCS, isReadonlyCall,ScanPos, DirtyBB); in getNonLocalCallDependency()
689 Dep = MemDepResult::getNonLocal(); in getNonLocalCallDependency()
691 Dep = MemDepResult::getNonFuncLocal(); in getNonLocalCallDependency()
697 ExistingResult->setResult(Dep); in getNonLocalCallDependency()
699 Cache.push_back(NonLocalDepEntry(DirtyBB, Dep)); in getNonLocalCallDependency()
703 if (!Dep.isNonLocal()) { in getNonLocalCallDependency()
706 if (Instruction *Inst = Dep.getInst()) in getNonLocalCallDependency()
797 MemDepResult Dep = getPointerDependencyFrom(Loc, isLoad, ScanPos, BB); in GetNonLocalInfoForBlock() local
802 ExistingResult->setResult(Dep); in GetNonLocalInfoForBlock()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DScheduleDAG.h57 PointerIntPair<SUnit *, 2, Kind> Dep;
92 SDep() : Dep(0, Data) {} in SDep()
98 : Dep(S, kind), Contents(), Latency(latency) { in Dep() function
120 if (Dep != Other.Dep || Latency != Other.Latency) return false;
121 switch (Dep.getInt()) {
155 return Dep.getPointer(); in getSUnit()
160 Dep.setPointer(SU); in setSUnit()
165 return Dep.getInt(); in getKind()
/external/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp838 MemDepResult Dep; in getNonLocalCallDependency() local
841 Dep = in getNonLocalCallDependency()
846 Dep = MemDepResult::getNonLocal(); in getNonLocalCallDependency()
848 Dep = MemDepResult::getNonFuncLocal(); in getNonLocalCallDependency()
854 ExistingResult->setResult(Dep); in getNonLocalCallDependency()
856 Cache.push_back(NonLocalDepEntry(DirtyBB, Dep)); in getNonLocalCallDependency()
860 if (!Dep.isNonLocal()) { in getNonLocalCallDependency()
863 if (Instruction *Inst = Dep.getInst()) in getNonLocalCallDependency()
970 MemDepResult Dep = in GetNonLocalInfoForBlock() local
976 ExistingResult->setResult(Dep); in GetNonLocalInfoForBlock()
[all …]
DMemDepPrinter.cpp37 typedef std::pair<InstTypePair, const BasicBlock *> Dep; typedef
38 typedef SmallSetVector<Dep, 4> DepSet;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp874 MemDepResult Dep; in getNonLocalCallDependency() local
877 Dep = in getNonLocalCallDependency()
882 Dep = MemDepResult::getNonLocal(); in getNonLocalCallDependency()
884 Dep = MemDepResult::getNonFuncLocal(); in getNonLocalCallDependency()
890 ExistingResult->setResult(Dep); in getNonLocalCallDependency()
892 Cache.push_back(NonLocalDepEntry(DirtyBB, Dep)); in getNonLocalCallDependency()
896 if (!Dep.isNonLocal()) { in getNonLocalCallDependency()
899 if (Instruction *Inst = Dep.getInst()) in getNonLocalCallDependency()
1016 MemDepResult Dep = in GetNonLocalInfoForBlock() local
1022 ExistingResult->setResult(Dep); in GetNonLocalInfoForBlock()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopLoadElimination.cpp153 for (const auto &Dep : *Deps) { in findStoreToLoadDependences()
154 Instruction *Source = Dep.getSource(LAI); in findStoreToLoadDependences()
155 Instruction *Destination = Dep.getDestination(LAI); in findStoreToLoadDependences()
157 if (Dep.Type == MemoryDepChecker::Dependence::Unknown) { in findStoreToLoadDependences()
165 if (Dep.isBackward()) in findStoreToLoadDependences()
171 assert(Dep.isForward() && "Needs to be a forward dependence"); in findStoreToLoadDependences()
/external/clang/test/PCH/
Dcxx-templates.cpp37 Dep<A>::Ty ty; in test()
38 Dep<A> a; in test()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopLoadElimination.cpp184 for (const auto &Dep : *Deps) { in findStoreToLoadDependences()
185 Instruction *Source = Dep.getSource(LAI); in findStoreToLoadDependences()
186 Instruction *Destination = Dep.getDestination(LAI); in findStoreToLoadDependences()
188 if (Dep.Type == MemoryDepChecker::Dependence::Unknown) { in findStoreToLoadDependences()
196 if (Dep.isBackward()) in findStoreToLoadDependences()
202 assert(Dep.isForward() && "Needs to be a forward dependence"); in findStoreToLoadDependences()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DMain.cpp69 for (const auto &Dep : Parser.getDependencies()) { in createDependencyFile() local
70 DepOut.os() << ' ' << Dep.first; in createDependencyFile()
/external/llvm/lib/TableGen/
DMain.cpp65 for (const auto &Dep : Parser.getDependencies()) { in createDependencyFile() local
66 DepOut.os() << ' ' << Dep.first; in createDependencyFile()
/external/llvm/lib/Target/AMDGPU/
DR600Packetizer.cpp198 const SDep &Dep = SUJ->Succs[i]; in isLegalToPacketizeTogether() local
199 if (Dep.getSUnit() != SUI) in isLegalToPacketizeTogether()
201 if (Dep.getKind() == SDep::Anti) in isLegalToPacketizeTogether()
203 if (Dep.getKind() == SDep::Output) in isLegalToPacketizeTogether()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600Packetizer.cpp196 const SDep &Dep = SUJ->Succs[i]; in isLegalToPacketizeTogether() local
197 if (Dep.getSUnit() != SUI) in isLegalToPacketizeTogether()
199 if (Dep.getKind() == SDep::Anti) in isLegalToPacketizeTogether()
201 if (Dep.getKind() == SDep::Output) in isLegalToPacketizeTogether()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DDeadStoreElimination.cpp546 MemDepResult Dep = MD->getDependency(F); in HandleFree() local
548 while (Dep.isDef() || Dep.isClobber()) { in HandleFree()
549 Instruction *Dependency = Dep.getInst(); in HandleFree()
570 Dep = MD->getDependency(F); in HandleFree()
/external/llvm/lib/Target/Hexagon/
DHexagonVLIWPacketizer.cpp813 auto &Dep = PacketSU->Succs[i]; in restrictingDepExistInPacket() local
814 if (Dep.getSUnit() == PacketSUDep && Dep.getKind() == SDep::Anti && in restrictingDepExistInPacket()
815 Dep.getReg() == DepReg) in restrictingDepExistInPacket()
878 auto Dep = PacketSU->Succs[i]; in arePredicatesComplements() local
883 if (Dep.getSUnit() == SU && Dep.getKind() == SDep::Data && in arePredicatesComplements()
884 Hexagon::PredRegsRegClass.contains(Dep.getReg())) { in arePredicatesComplements()
890 if (restrictingDepExistInPacket(I, Dep.getReg())) in arePredicatesComplements()

123