Lines Matching refs:SAI

552   bool isMappable(const ScopArrayInfo *SAI) {  in isMappable()  argument
553 assert(SAI); in isMappable()
555 if (SAI->isValueKind()) { in isMappable()
556 auto *MA = S->getValueDef(SAI); in isMappable()
583 if (SAI->isPHIKind()) { in isMappable()
584 auto *MA = S->getPHIRead(SAI); in isMappable()
615 computeValueUses(const ScopArrayInfo *SAI) { in computeValueUses() argument
616 assert(SAI->isValueKind()); in computeValueUses()
622 for (auto *MA : S->getValueUses(SAI)) in computeValueUses()
628 auto *DefMA = S->getValueDef(SAI); in computeValueUses()
665 bool tryMapValue(const ScopArrayInfo *SAI, isl::map TargetElt) { in tryMapValue() argument
666 assert(SAI->isValueKind()); in tryMapValue()
668 auto *DefMA = S->getValueDef(SAI); in tryMapValue()
702 std::tie(DefUses, Lifetime) = computeValueUses(SAI); in tryMapValue()
741 mapValue(SAI, std::move(DefTarget), std::move(UseTarget), in tryMapValue()
765 void mapValue(const ScopArrayInfo *SAI, isl::map DefTarget, in mapValue() argument
769 for (auto *MA : S->getValueUses(SAI)) { in mapValue()
781 auto *WA = S->getValueDef(SAI); in mapValue()
804 isl::union_map determinePHIWrittenValues(const ScopArrayInfo *SAI) { in determinePHIWrittenValues() argument
808 for (auto *MA : S->getPHIIncomings(SAI)) { in determinePHIWrittenValues()
843 bool tryMapPHI(const ScopArrayInfo *SAI, isl::map TargetElt) { in tryMapPHI() argument
844 auto *PHIRead = S->getPHIRead(SAI); in tryMapPHI()
870 auto PerPHIWrites = computePerPHI(SAI); in tryMapPHI()
879 for (auto *MA : S->getPHIIncomings(SAI)) in tryMapPHI()
917 auto WrittenValue = determinePHIWrittenValues(SAI); in tryMapPHI()
944 mapPHI(SAI, std::move(PHITarget), std::move(WritesTarget), in tryMapPHI()
963 void mapPHI(const ScopArrayInfo *SAI, isl::map ReadTarget, in mapPHI() argument
970 for (auto *MA : S->getPHIIncomings(SAI)) { in mapPHI()
985 auto *PHIRead = S->getPHIRead(SAI); in mapPHI()
1058 auto *SAI = MA->getScopArrayInfo(); in collapseScalarsToStore() local
1059 if (Closed.count(SAI)) in collapseScalarsToStore()
1061 Closed.insert(SAI); in collapseScalarsToStore()
1062 LLVM_DEBUG(dbgs() << "\n Trying to map " << MA << " (SAI: " << SAI in collapseScalarsToStore()
1066 if (!isMappable(SAI)) in collapseScalarsToStore()
1077 if (SAI->isValueKind()) { in collapseScalarsToStore()
1078 if (!tryMapValue(SAI, EltTarget)) in collapseScalarsToStore()
1081 auto *DefAcc = S->getValueDef(SAI); in collapseScalarsToStore()
1089 if (SAI->isPHIKind()) { in collapseScalarsToStore()
1090 if (!tryMapPHI(SAI, EltTarget)) in collapseScalarsToStore()
1094 for (auto *PHIWrite : S->getPHIIncomings(SAI)) { in collapseScalarsToStore()