Home
last modified time | relevance | path

Searched refs:MSSA (Results 1 – 15 of 15) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DMemorySSA.cpp48 std::unique_ptr<MemorySSA> MSSA; member
55 MSSA = make_unique<MemorySSA>(*Test.F, &AA, &DT); in TestAnalyses()
56 Walker = MSSA->getWalker(); in TestAnalyses()
92 MemorySSA &MSSA = *Analyses->MSSA; in TEST_F() local
93 MemorySSAUpdater Updater(&MSSA); in TEST_F()
99 MemoryPhi *MP = MSSA.getMemoryAccess(Merge); in TEST_F()
107 MSSA.verifyMemorySSA(); in TEST_F()
131 MemorySSA &MSSA = *Analyses->MSSA; in TEST_F() local
132 MemorySSAUpdater Updater(&MSSA); in TEST_F()
145 MemoryPhi *MP = MSSA.getMemoryAccess(Merge); in TEST_F()
[all …]
/external/llvm/unittests/Transforms/Utils/
DMemorySSA.cpp45 MemorySSA MSSA; member
50 BAA(Test.DL, Test.TLI, AC, &DT), MSSA(*Test.F, &AA, &DT) { in TestAnalyses()
52 Walker = MSSA.getWalker(); in TestAnalyses()
88 MemorySSA &MSSA = Analyses->MSSA; in TEST_F() local
93 EXPECT_EQ(MSSA.getMemoryAccess(Merge), nullptr); in TEST_F()
96 MemoryPhi *MP = MSSA.createMemoryPhi(Merge); in TEST_F()
97 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); in TEST_F()
99 MP->addIncoming(MSSA.getLiveOnEntryDef(), Right); in TEST_F()
103 MSSA.createMemoryAccessInBB(LoadInst, MP, Merge, MemorySSA::Beginning)); in TEST_F()
106 MSSA.verifyMemorySSA(); in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemorySSAUpdater.cpp61 MemoryAccess *Result = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
78 MemoryPhi *Phi = dyn_cast_or_null<MemoryPhi>(MSSA->getMemoryAccess(BB)); in getPreviousDefRecursive()
85 Phi = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
129 auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock()); in getPreviousDefInBlock()
141 auto End = MSSA->getWritableBlockAccesses(MA->getBlock())->rend(); in getPreviousDefInBlock()
156 auto *Defs = MSSA->getWritableBlockDefs(BB); in getPreviousDefFromEnd()
204 return MSSA->getLiveOnEntryDef(); in tryRemoveTrivialPhi()
308 MemoryAccess *FirstDef = &*MSSA->getWritableBlockDefs(StartBlock)->begin(); in insertDef()
314 MSSA->renamePass(MD->getBlock(), FirstDef, Visited); in insertDef()
320 MSSA->renamePass(Phi->getBlock(), nullptr, Visited); in insertDef()
[all …]
DMemorySSA.cpp91 const MemorySSA *MSSA; member in llvm::MemorySSAAnnotatedWriter
94 MemorySSAAnnotatedWriter(const MemorySSA *M) : MSSA(M) {} in MemorySSAAnnotatedWriter()
98 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
104 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot()
378 const MemoryLocation &StartLoc, const MemorySSA &MSSA, in checkClobberSanity() argument
380 assert(MSSA.dominates(ClobberAt, Start) && "Clobber doesn't dominate start?"); in checkClobberSanity()
382 if (MSSA.isLiveOnEntryDef(Start)) { in checkClobberSanity()
383 assert(MSSA.isLiveOnEntryDef(ClobberAt) && in checkClobberSanity()
409 FoundClobber = FoundClobber || MSSA.isLiveOnEntryDef(MD); in checkClobberSanity()
423 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DMemorySSAUpdater.h62 MemorySSA *MSSA;
72 MemorySSAUpdater(MemorySSA *MSSA) : MSSA(MSSA) {} in MemorySSAUpdater() argument
188 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in removeMemoryAccess()
202 MemorySSA* getMemorySSA() const { return MSSA; } in getMemorySSA()
DMemorySSA.h893 Result(std::unique_ptr<MemorySSA> &&MSSA) : MSSA(std::move(MSSA)) {}
895 MemorySSA &getMSSA() { return *MSSA.get(); }
897 std::unique_ptr<MemorySSA> MSSA;
927 MemorySSA &getMSSA() { return *MSSA; }
928 const MemorySSA &getMSSA() const { return *MSSA; }
936 std::unique_ptr<MemorySSA> MSSA;
980 MemoryAccess *MA = MSSA->getMemoryAccess(I);
1010 virtual void verify(const MemorySSA *MSSA) { assert(MSSA == this->MSSA); }
1015 MemorySSA *MSSA;
DLoopAnalysisManager.h62 MemorySSA *MSSA; member
/external/llvm/lib/Transforms/Utils/
DMemorySSA.cpp72 const MemorySSA *MSSA; member in llvm::MemorySSAAnnotatedWriter
75 MemorySSAAnnotatedWriter(const MemorySSA *M) : MSSA(M) {} in MemorySSAAnnotatedWriter()
79 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
85 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot()
302 MemorySSA::MemorySSA(MemorySSA &&MSSA) in MemorySSA() argument
303 : AA(MSSA.AA), DT(MSSA.DT), F(MSSA.F), in MemorySSA()
304 ValueToMemoryAccess(std::move(MSSA.ValueToMemoryAccess)), in MemorySSA()
305 PerBlockAccesses(std::move(MSSA.PerBlockAccesses)), in MemorySSA()
306 LiveOnEntryDef(std::move(MSSA.LiveOnEntryDef)), in MemorySSA()
307 Walker(std::move(MSSA.Walker)), NextID(MSSA.NextID) { in MemorySSA()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DEarlyCSE.cpp334 MemorySSA *MSSA; member in __anonca29b00e0311::EarlyCSE
413 AssumptionCache &AC, MemorySSA *MSSA) in EarlyCSE() argument
414 : TLI(TLI), TTI(TTI), DT(DT), AC(AC), SQ(DL, &TLI, &DT, &AC), MSSA(MSSA), in EarlyCSE()
415 MSSAUpdater(llvm::make_unique<MemorySSAUpdater>(MSSA)) {} in EarlyCSE()
603 if (!MSSA) in removeMSSA()
610 if (MemoryAccess *MA = MSSA->getMemoryAccess(Inst)) { in removeMSSA()
666 if (!MSSA) in isSameMemGeneration()
676 auto *EarlierMA = MSSA->getMemoryAccess(EarlierInst); in isSameMemGeneration()
679 auto *LaterMA = MSSA->getMemoryAccess(LaterInst); in isSameMemGeneration()
688 MSSA->getWalker()->getClobberingMemoryAccess(LaterInst); in isSameMemGeneration()
[all …]
DGVNHoist.cpp259 MemoryDependenceResults *MD, MemorySSA *MSSA) in GVNHoist() argument
260 : DT(DT), PDT(PDT), AA(AA), MD(MD), MSSA(MSSA), in GVNHoist()
261 MSSAUpdater(llvm::make_unique<MemorySSAUpdater>(MSSA)) {} in GVNHoist()
335 MemorySSA *MSSA; member in llvm::GVNHoist
387 const MemorySSA::AccessList *Acc = MSSA->getBlockAccesses(BB); in hasMemoryUse()
535 if (NewBB == DBB && !MSSA->isLiveOnEntryDef(D)) in safeToHoistLdSt()
552 assert(MSSA->locallyDominates(D, U)); in safeToHoistLdSt()
608 MemoryUseOrDef *UD = MSSA->getMemoryAccess(Insn); in checkSafety()
923 MemoryAccess *OldMA = MSSA->getMemoryAccess(I); in rauw()
958 MemoryUseOrDef *NewMemAcc = MSSA->getMemoryAccess(Repl); in removeAndReplace()
[all …]
DNewGVN.cpp494 MemorySSA *MSSA; member in __anonc9d17a0b0311::NewGVN
657 TargetLibraryInfo *TLI, AliasAnalysis *AA, MemorySSA *MSSA, in NewGVN() argument
659 : F(F), DT(DT), TLI(TLI), AA(AA), MSSA(MSSA), DL(DL), in NewGVN()
905 auto *Result = MSSA->getMemoryAccess(I); in getMemoryAccess()
911 return MSSA->getMemoryAccess(BB); in getMemoryAccess()
1374 StoreRHS = MSSA->getLiveOnEntryDef(); in performSymbolicStoreEvaluation()
1502 if (!MSSA->isLiveOnEntryDef(DefiningAccess)) { in performSymbolicLoadEvaluation()
2890 TOPClass->setMemoryLeader(MSSA->getLiveOnEntryDef()); in initializeCongruenceClasses()
2892 MemoryAccessToClass[MSSA->getLiveOnEntryDef()] = in initializeCongruenceClasses()
2893 createMemoryClass(MSSA->getLiveOnEntryDef()); in initializeCongruenceClasses()
[all …]
DLICM.cpp120 ScalarEvolution *SE, MemorySSA *MSSA,
152 MemorySSA *MSSA = EnableMSSALoopDependency in runOnLoop() local
166 SE ? &SE->getSE() : nullptr, MSSA, &ORE, false); in runOnLoop()
220 AR.MSSA, ORE, true)) in run()
252 MemorySSA *MSSA, OptimizationRemarkEmitter *ORE, bool DeleteAST) { in runOnLoop() argument
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DLoopPassManager.h289 MemorySSA *MSSA = EnableMSSALoopDependency
299 MSSA};
/external/llvm/include/llvm/Transforms/Utils/
DMemorySSA.h674 MemorySSA &getMSSA() { return *MSSA; }
675 const MemorySSA &getMSSA() const { return *MSSA; }
683 std::unique_ptr<MemorySSA> MSSA;
752 MemorySSA *MSSA;
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GVNHoist/
Dhoist-mssa.ll52 ; Check that we hoist stores and remove the MSSA phi node.