Home
last modified time | relevance | path

Searched refs:SAI (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm-project/polly/lib/Transform/
DMaximalStaticExpansion.cpp73 bool isExpandable(const ScopArrayInfo *SAI,
111 void expandPhi(Scop &S, const ScopArrayInfo *SAI,
134 auto SAI = MA->getLatestScopArrayInfo(); in filterDependences() local
153 if (SAI != UserSAI) in filterDependences()
171 const ScopArrayInfo *SAI, SmallPtrSetImpl<MemoryAccess *> &Writes, in isExpandable() argument
174 if (SAI->isValueKind()) { in isExpandable()
175 Writes.insert(S.getValueDef(SAI)); in isExpandable()
176 for (auto MA : S.getValueUses(SAI)) in isExpandable()
179 } else if (SAI->isPHIKind()) { in isExpandable()
180 auto Read = S.getPHIRead(SAI); in isExpandable()
[all …]
DDeLICM.cpp552 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()
[all …]
DForwardOpTree.cpp316 ScopArrayInfo *SAI = static_cast<ScopArrayInfo *>(ArrayId.get_user()); in singleLocation() local
319 if (SAI->getBasePtrOriginSAI()) in singleLocation()
418 ScopArrayInfo *SAI = reinterpret_cast<ScopArrayInfo *>(ArrayId.get_user()); in makeReadArrayAccess() local
422 Sizes.reserve(SAI->getNumberOfDimensions()); in makeReadArrayAccess()
424 Subscripts.reserve(SAI->getNumberOfDimensions()); in makeReadArrayAccess()
425 for (unsigned i = 0; i < SAI->getNumberOfDimensions(); i += 1) { in makeReadArrayAccess()
426 Sizes.push_back(SAI->getDimensionSize(i)); in makeReadArrayAccess()
431 new MemoryAccess(Stmt, LI, MemoryAccess::READ, SAI->getBasePtr(), in makeReadArrayAccess()
DZoneAlgo.cpp535 isl::union_map ZoneAlgorithm::computePerPHI(const ScopArrayInfo *SAI) { in computePerPHI() argument
539 auto *PHI = cast<PHINode>(SAI->getBasePtr()); in computePerPHI()
544 assert(SAI->isPHIKind()); in computePerPHI()
550 for (MemoryAccess *MA : S->getPHIIncomings(SAI)) { in computePerPHI()
556 isl::map PHIReadScatter = getScatterFor(S->getPHIRead(SAI)); in computePerPHI()
909 const ScopArrayInfo *SAI = MA->getOriginalScopArrayInfo(); in isNormalizable() local
910 auto Incomings = S->getPHIIncomings(SAI); in isNormalizable()
1026 const ScopArrayInfo *SAI = MA->getOriginalScopArrayInfo(); in computeNormalizedPHIs() local
1035 for (MemoryAccess *MA : S->getPHIIncomings(SAI)) { in computeNormalizedPHIs()
1054 isl::union_map PerPHI = computePerPHI(SAI); in computeNormalizedPHIs()
/external/llvm-project/polly/lib/Exchange/
DJSONExporter.cpp102 for (auto &SAI : S.arrays()) { in exportArrays() local
103 if (!SAI->isArrayKind()) in exportArrays()
108 Array["name"] = SAI->getName(); in exportArrays()
110 if (!SAI->getDimensionSize(i)) { in exportArrays()
114 for (; i < SAI->getNumberOfDimensions(); i++) { in exportArrays()
115 SAI->getDimensionSize(i)->print(RawStringOstream); in exportArrays()
120 SAI->getElementType()->print(RawStringOstream); in exportArrays()
425 auto *SAI = S.getArrayInfoByName(isl_id_get_name(NewOutId)); in importAccesses() local
428 if (!SAI || SAI->getElementType() != OutSAI->getElementType()) { in importAccesses()
437 NewOutId = SAI->getBasePtrId().release(); in importAccesses()
[all …]
/external/llvm-project/polly/lib/Analysis/
DScopInfo.cpp409 const ScopArrayInfo *SAI = static_cast<ScopArrayInfo *>(User); in getFromId() local
410 return SAI; in getFromId()
414 auto *SAI = getScopArrayInfo(); in wrapConstantDimensions() local
415 isl::space ArraySpace = SAI->getSpace(); in wrapConstantDimensions()
417 unsigned DimsArray = SAI->getNumberOfDimensions(); in wrapConstantDimensions()
425 auto *DimSize = SAI->getDimensionSize(i); in wrapConstantDimensions()
466 auto *SAI = getScopArrayInfo(); in updateDimensionality() local
467 isl::space ArraySpace = SAI->getSpace(); in updateDimensionality()
477 unsigned ArrayElemSize = SAI->getElemSizeInBytes(); in updateDimensionality()
574 const ScopArrayInfo *SAI = static_cast<ScopArrayInfo *>(User); in getOriginalScopArrayInfo() local
[all …]
/external/llvm-project/polly/lib/Support/
DVirtualInstruction.cpp39 if (const ScopArrayInfo *SAI = in create() local
41 IncomingMA = S->getPHIRead(SAI); in create()
330 const ScopArrayInfo *SAI = Acc->getScopArrayInfo(); in walkReachable() local
333 MemoryAccess *DefAcc = S->getValueDef(SAI); in walkReachable()
337 WorklistAccs.push_back(S->getValueDef(SAI)); in walkReachable()
341 auto IncomingMAs = S->getPHIIncomings(SAI); in walkReachable()
/external/llvm-project/polly/lib/CodeGen/
DIslNodeBuilder.cpp1346 auto *SAI = MA->getScopArrayInfo(); in preloadInvariantEquivClass() local
1347 if (auto *BaseIAClass = S.lookupInvariantEquivClass(SAI->getBasePtr())) { in preloadInvariantEquivClass()
1359 for (unsigned i = 1, e = SAI->getNumberOfDimensions(); i < e; ++i) { in preloadInvariantEquivClass()
1360 const SCEV *Dim = SAI->getDimensionSize(i); in preloadInvariantEquivClass()
1405 for (auto *DerivedSAI : SAI->getDerivedSAIs()) { in preloadInvariantEquivClass()
1444 for (auto &SAI : S.arrays()) { in allocateNewArrays() local
1445 if (SAI->getBasePtr()) in allocateNewArrays()
1448 assert(SAI->getNumberOfDimensions() > 0 && SAI->getDimensionSize(0) && in allocateNewArrays()
1456 for (int i = SAI->getNumberOfDimensions() - 1; i >= 0; i--) { in allocateNewArrays()
1457 auto *DimSize = SAI->getDimensionSize(i); in allocateNewArrays()
[all …]
DIslExprBuilder.cpp250 const ScopArrayInfo *SAI = nullptr; in createAccessAddress() local
256 SAI = (*IDToSAI)[BaseId]; in createAccessAddress()
258 if (!SAI) in createAccessAddress()
259 SAI = ScopArrayInfo::getFromId(isl::manage(BaseId)); in createAccessAddress()
263 assert(SAI && "No ScopArrayInfo found for this isl_id."); in createAccessAddress()
265 Base = SAI->getBasePtr(); in createAccessAddress()
273 auto PointerTy = PointerType::get(SAI->getElementType(), in createAccessAddress()
314 const SCEV *DimSCEV = SAI->getDimensionSize(u); in createAccessAddress()
DPPCGCodeGeneration.cpp166 const ScopArrayInfo *SAI) { in isScalarUsesContainedInScop() argument
167 assert(SAI->isValueKind() && "this function only deals with scalars." in isScalarUsesContainedInScop()
171 for (User *U : SAI->getBasePtr()->users()) { in isScalarUsesContainedInScop()
193 for (ScopArrayInfo *SAI : S.arrays()) { in computeMustKillsInfo()
194 if (SAI->isPHIKind() || in computeMustKillsInfo()
195 (SAI->isValueKind() && isScalarUsesContainedInScop(S, SAI))) in computeMustKillsInfo()
196 KillMemIds.push_back(isl::manage(SAI->getBasePtrId().release())); in computeMustKillsInfo()
1491 for (auto &SAI : S.arrays()) in getReferencesInKernel() local
1492 SubtreeValues.remove(SAI->getBasePtr()); in getReferencesInKernel()
1640 const ScopArrayInfo *SAI = ScopArrayInfo::getFromId(isl::manage(Id)); in createLaunchParameters() local
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOI386.h166 section_iterator SAI = getSectionByAddress(Obj, AddrA); in processSECTDIFFRelocation() local
167 assert(SAI != Obj.section_end() && "Can't find section for address A"); in processSECTDIFFRelocation()
168 uint64_t SectionABase = SAI->getAddress(); in processSECTDIFFRelocation()
170 SectionRef SectionA = *SAI; in processSECTDIFFRelocation()
DRuntimeDyldMachOARM.h247 section_iterator SAI = getSectionByAddress(MachO, AddrA); in processHALFSECTDIFFRelocation() local
248 assert(SAI != MachO.section_end() && "Can't find section for address A"); in processHALFSECTDIFFRelocation()
249 uint64_t SectionABase = SAI->getAddress(); in processHALFSECTDIFFRelocation()
251 SectionRef SectionA = *SAI; in processHALFSECTDIFFRelocation()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOI386.h168 section_iterator SAI = getSectionByAddress(Obj, AddrA); in processSECTDIFFRelocation() local
169 assert(SAI != Obj.section_end() && "Can't find section for address A"); in processSECTDIFFRelocation()
170 uint64_t SectionABase = SAI->getAddress(); in processSECTDIFFRelocation()
172 SectionRef SectionA = *SAI; in processSECTDIFFRelocation()
DRuntimeDyldMachOARM.h379 section_iterator SAI = getSectionByAddress(MachO, AddrA); in processHALFSECTDIFFRelocation() local
380 assert(SAI != MachO.section_end() && "Can't find section for address A"); in processHALFSECTDIFFRelocation()
381 uint64_t SectionABase = SAI->getAddress(); in processHALFSECTDIFFRelocation()
383 SectionRef SectionA = *SAI; in processHALFSECTDIFFRelocation()
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOI386.h168 section_iterator SAI = getSectionByAddress(Obj, AddrA); in processSECTDIFFRelocation() local
169 assert(SAI != Obj.section_end() && "Can't find section for address A"); in processSECTDIFFRelocation()
170 uint64_t SectionABase = SAI->getAddress(); in processSECTDIFFRelocation()
172 SectionRef SectionA = *SAI; in processSECTDIFFRelocation()
DRuntimeDyldMachOARM.h379 section_iterator SAI = getSectionByAddress(MachO, AddrA); in processHALFSECTDIFFRelocation() local
380 assert(SAI != MachO.section_end() && "Can't find section for address A"); in processHALFSECTDIFFRelocation()
381 uint64_t SectionABase = SAI->getAddress(); in processHALFSECTDIFFRelocation()
383 SectionRef SectionA = *SAI; in processHALFSECTDIFFRelocation()
/external/llvm-project/polly/test/MaximalStaticExpansion/
Dworking_phi_expansion.ll26 ; Check that the SAI are created except the expanded SAI of tmp_04.
Dworking_phi_two_scalars.ll29 ; Check that the SAI are created except the expanded SAI of tmp_05 and tmp2_06.
Dworking_value_expansion.ll22 ; Check if the expanded SAI are created
Dworking_expansion.ll22 ; Check if the expanded SAI are created
Dtoo_many_writes.ll28 ; Check that the SAI is not expanded
Dworking_expansion_multiple_instruction_per_statement.ll22 ; Check that expanded SAI are created
Dworking_expansion_multiple_dependences_per_statement.ll24 ; Check that expanded SAI are created
/external/llvm-project/polly/include/polly/
DScopInfo.h677 void buildAccessRelation(const ScopArrayInfo *SAI);
2651 MemoryAccess *getValueDef(const ScopArrayInfo *SAI) const;
2655 ArrayRef<MemoryAccess *> getValueUses(const ScopArrayInfo *SAI) const;
2661 MemoryAccess *getPHIRead(const ScopArrayInfo *SAI) const;
2665 ArrayRef<MemoryAccess *> getPHIIncomings(const ScopArrayInfo *SAI) const;
DZoneAlgo.h220 isl::union_map computePerPHI(const polly::ScopArrayInfo *SAI);

12