Lines Matching refs:BBMap
65 ValueMapT &BBMap, in trySynthesizeNewValue() argument
80 VTV.insert(BBMap.begin(), BBMap.end()); in trySynthesizeNewValue()
93 BBMap[Old] = Expanded; in trySynthesizeNewValue()
97 Value *BlockGenerator::getNewValue(ScopStmt &Stmt, Value *Old, ValueMapT &BBMap, in getNewValue() argument
131 New = BBMap.lookup(Old); in getNewValue()
143 assert(!BBMap.count(Old)); in getNewValue()
161 if ((New = BBMap.lookup(Old))) in getNewValue()
189 if ((New = BBMap.lookup(Old))) in getNewValue()
192 New = trySynthesizeNewValue(Stmt, Old, BBMap, LTS, L); in getNewValue()
207 New = BBMap.lookup(Old); in getNewValue()
215 ValueMapT &BBMap, LoopToScevMapT <S) { in copyInstScalar() argument
227 getNewValue(Stmt, OldOperand, BBMap, LTS, getLoopForStmt(Stmt)); in copyInstScalar()
240 BBMap[Inst] = NewInst; in copyInstScalar()
257 ValueMapT &BBMap, LoopToScevMapT <S, in generateLocationAccessed() argument
262 Inst.isNull() ? nullptr : Inst.getPointerOperand(), BBMap, LTS, in generateLocationAccessed()
267 ScopStmt &Stmt, Loop *L, Value *Pointer, ValueMapT &BBMap, in generateLocationAccessed() argument
291 return getNewValue(Stmt, Pointer, BBMap, LTS, L); in generateLocationAccessed()
296 LoopToScevMapT <S, ValueMapT &BBMap, in getImplicitAddress() argument
299 return generateLocationAccessed(*Access.getStatement(), L, nullptr, BBMap, in getImplicitAddress()
312 ValueMapT &BBMap, LoopToScevMapT <S, in generateArrayLoad() argument
318 generateLocationAccessed(Stmt, Load, BBMap, LTS, NewAccesses); in generateArrayLoad()
330 ValueMapT &BBMap, LoopToScevMapT <S, in generateArrayStore() argument
338 generateLocationAccessed(Stmt, Store, BBMap, LTS, NewAccesses); in generateArrayStore()
339 Value *ValueOperand = getNewValue(Stmt, Store->getValueOperand(), BBMap, in generateArrayStore()
357 ValueMapT &BBMap, LoopToScevMapT <S, in copyInstruction() argument
369 Value *NewLoad = generateArrayLoad(Stmt, Load, BBMap, LTS, NewAccesses); in copyInstruction()
372 BBMap[Load] = NewLoad; in copyInstruction()
381 generateArrayStore(Stmt, Store, BBMap, LTS, NewAccesses); in copyInstruction()
386 copyPHIInstruction(Stmt, PHI, BBMap, LTS); in copyInstruction()
395 copyInstScalar(Stmt, Inst, BBMap, LTS); in copyInstruction()
398 void BlockGenerator::removeDeadInstructions(BasicBlock *BB, ValueMapT &BBMap) { in removeDeadInstructions() argument
406 for (auto Pair : BBMap) in removeDeadInstructions()
408 BBMap.erase(Pair.first); in removeDeadInstructions()
421 ValueMapT BBMap; in copyStmt() local
424 copyBB(Stmt, BB, BBMap, LTS, NewAccesses); in copyStmt()
425 removeDeadInstructions(BB, BBMap); in copyStmt()
436 ValueMapT &BBMap, LoopToScevMapT <S, in copyBB() argument
440 generateScalarLoads(Stmt, LTS, BBMap, NewAccesses); in copyBB()
441 generateBeginStmtTrace(Stmt, LTS, BBMap); in copyBB()
443 copyBB(Stmt, BB, CopyBB, BBMap, LTS, NewAccesses); in copyBB()
447 generateScalarStores(Stmt, LTS, BBMap, NewAccesses); in copyBB()
452 ValueMapT &BBMap, LoopToScevMapT <S, in copyBB() argument
463 copyInstruction(Stmt, Inst, BBMap, LTS, NewAccesses); in copyBB()
466 copyInstruction(Stmt, &Inst, BBMap, LTS, NewAccesses); in copyBB()
558 ScopStmt &Stmt, LoopToScevMapT <S, ValueMapT &BBMap, in generateScalarLoads() argument
573 getImplicitAddress(*MA, getLoopForStmt(Stmt), LTS, BBMap, NewAccesses); in generateScalarLoads()
578 BBMap[MA->getAccessValue()] = in generateScalarLoads()
662 ValueMapT &BBMap) { in generateBeginStmtTrace() argument
716 Values.push_back(getNewValue(Stmt, Inst, BBMap, LTS, in generateBeginStmtTrace()
739 Values.push_back(getNewValue(Stmt, OpInst, BBMap, LTS, in generateBeginStmtTrace()
757 ScopStmt &Stmt, LoopToScevMapT <S, ValueMapT &BBMap, in generateScalarStores() argument
789 BBMap, NewAccesses); in generateScalarStores()
791 Val = getNewValue(Stmt, Val, BBMap, LTS, L); in generateScalarStores()
1081 ScopStmt &Stmt, LoadInst *Load, ValueMapT &BBMap, in generateStrideZeroLoad() argument
1086 generateLocationAccessed(Stmt, Load, BBMap, VLTS[0], NewAccesses); in generateStrideZeroLoad()
1623 ValueMapT &BBMap, Loop *L) { in buildExitPHI() argument
1664 ValueMapT &BBMap) { in getExitScalar() argument
1678 return getNewValue(*Stmt, OldVal, BBMap, LTS, L); in getExitScalar()
1681 return buildExitPHI(MA, LTS, BBMap, L); in getExitScalar()
1687 return getNewValue(*Stmt, OldVal, BBMap, LTS, L); in getExitScalar()
1691 ScopStmt &Stmt, LoopToScevMapT <S, ValueMapT &BBMap, in generateScalarStores() argument
1709 Value *NewVal = getExitScalar(MA, LTS, BBMap); in generateScalarStores()
1724 BBMap, NewAccesses); in generateScalarStores()
1787 ValueMapT &BBMap, in copyPHIInstruction() argument
1793 BBMap[PHI] = PHICopy; in copyPHIInstruction()