Lines Matching defs:MA
1163 for (MemoryAccess *MA : *this)
1164 MA->realignParams();
1279 void ScopStmt::removeAccessData(MemoryAccess *MA) {
1280 if (MA->isRead() && MA->isOriginalValueKind()) {
1281 bool Found = ValueReads.erase(MA->getAccessValue());
1285 if (MA->isWrite() && MA->isOriginalValueKind()) {
1286 bool Found = ValueWrites.erase(cast<Instruction>(MA->getAccessValue()));
1290 if (MA->isWrite() && MA->isOriginalAnyPHIKind()) {
1291 bool Found = PHIWrites.erase(cast<PHINode>(MA->getAccessInstruction()));
1295 if (MA->isRead() && MA->isOriginalAnyPHIKind()) {
1296 bool Found = PHIReads.erase(cast<PHINode>(MA->getAccessInstruction()));
1302 void ScopStmt::removeMemoryAccess(MemoryAccess *MA) {
1310 return Acc->getAccessInstruction() == MA->getAccessInstruction();
1312 for (auto *MA : MemAccs) {
1313 if (Predicate(MA)) {
1314 removeAccessData(MA);
1315 Parent.removeAccessData(MA);
1319 InstructionToAccess.erase(MA->getAccessInstruction());
1322 void ScopStmt::removeSingleMemoryAccess(MemoryAccess *MA, bool AfterHoisting) {
1324 auto MAIt = std::find(MemAccs.begin(), MemAccs.end(), MA);
1328 removeAccessData(MA);
1329 Parent.removeAccessData(MA);
1332 auto It = InstructionToAccess.find(MA->getAccessInstruction());
1334 It->second.remove(MA);
1336 InstructionToAccess.erase(MA->getAccessInstruction());
1677 for (MemoryAccess *MA : MAList)
1678 StmtIt->removeSingleMemoryAccess(MA, AfterHoisting);
1706 for (MemoryAccess *MA : Stmt) {
1707 if (MA->isRead())
1736 for (auto *MA : MAs)
1737 if (MA->getAccessInstruction() == Val)
1866 for (auto *MA : Stmt) {
1867 if (MA->isRead())
1869 ContainsArrayAccs |= MA->isLatestArrayKind();
1870 ContainsScalarAccs |= MA->isLatestScalarKind();
1892 MemoryAccess *Scop::lookupBasePtrAccess(MemoryAccess *MA) {
1893 Value *PointerBase = MA->getOriginalBaseAddr();
2219 for (MemoryAccess *MA : Stmt) {
2220 if (!Predicate(*MA))
2224 isl::map AccessDomain = MA->getAccessRelation();
2234 return getAccessesOfType([](MemoryAccess &MA) { return MA.isMustWrite(); });
2238 return getAccessesOfType([](MemoryAccess &MA) { return MA.isMayWrite(); });
2242 return getAccessesOfType([](MemoryAccess &MA) { return MA.isWrite(); });
2246 return getAccessesOfType([](MemoryAccess &MA) { return MA.isRead(); });
2250 return getAccessesOfType([](MemoryAccess &MA) { return true; });
2255 [Array](MemoryAccess &MA) { return MA.getScopArrayInfo() == Array; });
2513 for (MemoryAccess *MA : Stmt) {
2514 if (!MA->isWrite())
2517 if (MA->isLatestValueKind()) {
2523 if (MA->isLatestAnyPHIKind()) {
2530 MA->getAccessRelation().intersect_domain(Domain).range();