• Home
  • Raw
  • Download

Lines Matching refs:IsRead

329 std::string CodeGenSchedModels::genRWName(ArrayRef<unsigned> Seq, bool IsRead) {  in genRWName()  argument
334 Name += getSchedRW(*I, IsRead).Name; in genRWName()
340 unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead, in getSchedRWIdx() argument
342 const std::vector<CodeGenSchedRW> &RWVec = IsRead ? SchedReads : SchedWrites; in getSchedRWIdx()
393 bool IsRead) const { in findRWs()
395 unsigned Idx = getSchedRWIdx(*RI, IsRead); in findRWs()
402 bool IsRead) const { in expandRWSequence()
403 const CodeGenSchedRW &SchedRW = getSchedRW(RWIdx, IsRead); in expandRWSequence()
413 expandRWSequence(*I, RWSeq, IsRead); in expandRWSequence()
421 unsigned RWIdx, IdxVec &RWSeq, bool IsRead, in expandRWSeqForProc() argument
424 const CodeGenSchedRW &SchedWrite = getSchedRW(RWIdx, IsRead); in expandRWSeqForProc()
441 expandRWSeqForProc(getSchedRWIdx(AliasDef, IsRead), in expandRWSeqForProc()
442 RWSeq, IsRead,ProcModel); in expandRWSeqForProc()
454 expandRWSeqForProc(*I, RWSeq, IsRead, ProcModel); in expandRWSeqForProc()
461 bool IsRead) { in findRWForSequence() argument
462 std::vector<CodeGenSchedRW> &RWVec = IsRead ? SchedReads : SchedWrites; in findRWForSequence()
475 bool IsRead) { in findOrInsertRW() argument
480 unsigned Idx = findRWForSequence(Seq, IsRead); in findOrInsertRW()
484 unsigned RWIdx = IsRead ? SchedReads.size() : SchedWrites.size(); in findOrInsertRW()
485 CodeGenSchedRW SchedRW(RWIdx, IsRead, Seq, genRWName(Seq, IsRead)); in findOrInsertRW()
486 if (IsRead) in findOrInsertRW()
930 bool IsRead; member
934 PredCheck(bool r, unsigned w, Record *p): IsRead(r), RWIdx(w), Predicate(p) {} in PredCheck()
957 bool IsRead, unsigned StartIdx);
970 void pushVariant(const TransVariant &VInfo, bool IsRead);
991 const CodeGenSchedRW &SchedRW = SchedModels.getSchedRW(I->RWIdx, I->IsRead); in mutuallyExclusive()
1014 SchedModels.expandRWSequence(AliasRW.Index, ExpandedRWs, AliasRW.IsRead); in hasAliasedVariants()
1017 if (hasAliasedVariants(SchedModels.getSchedRW(*SI, AliasRW.IsRead), in hasAliasedVariants()
1147 pushVariant(const TransVariant &VInfo, bool IsRead) { in pushVariant() argument
1159 Trans.PredTerm.push_back(PredCheck(IsRead, VInfo.RWIdx,PredDef)); in pushVariant()
1161 SchedModels.findRWs(SelectedDefs, SelectedRWs, IsRead); in pushVariant()
1166 SelectedRWs.push_back(SchedModels.getSchedRWIdx(VInfo.VarOrSeqDef, IsRead)); in pushVariant()
1169 const CodeGenSchedRW &SchedRW = SchedModels.getSchedRW(VInfo.RWIdx, IsRead); in pushVariant()
1171 SmallVectorImpl<SmallVector<unsigned,4> > &RWSequences = IsRead in pushVariant()
1188 if (IsRead) in pushVariant()
1191 SchedModels.expandRWSequence(*RWI, ExpandedRWs, IsRead); in pushVariant()
1204 if (IsRead) in pushVariant()
1207 SchedModels.expandRWSequence(*RWI, ExpandedRWs, IsRead); in pushVariant()
1218 const SmallVectorImpl<unsigned> &RWSeq, bool IsRead, unsigned StartIdx) { in substituteVariantOperand() argument
1223 const CodeGenSchedRW &SchedRW = SchedModels.getSchedRW(*RWI, IsRead); in substituteVariantOperand()
1231 if (IsRead) in substituteVariantOperand()
1246 pushVariant(*IVI, IsRead); in substituteVariantOperand()
1625 void CodeGenSchedModels::collectRWResources(unsigned RWIdx, bool IsRead, in collectRWResources() argument
1627 const CodeGenSchedRW &SchedRW = getSchedRW(RWIdx, IsRead); in collectRWResources()
1629 if (!IsRead && SchedRW.TheDef->isSubClassOf("SchedWriteRes")) { in collectRWResources()
1633 else if (IsRead && SchedRW.TheDef->isSubClassOf("SchedReadAdvance")) { in collectRWResources()
1648 assert(AliasRW.IsRead == IsRead && "cannot alias reads to writes"); in collectRWResources()
1651 expandRWSequence(AliasRW.Index, ExpandedRWs, IsRead); in collectRWResources()
1654 collectRWResources(*SI, IsRead, AliasProcIndices); in collectRWResources()
1841 dbgs() << SchedModels.getSchedRW(PCI->RWIdx, PCI->IsRead).Name in dump()