Lines Matching refs:BB
28 : NextInstPos(0), BB(BasicB) {
29 LastInstFound = BB->end();
32 /// Given no cached results, find if \p A comes before \p B in \p BB.
33 /// Cache and number out instruction while walking \p BB.
37 assert(!(LastInstFound == BB->end() && NextInstPos != 0) &&
39 assert(A->getParent() == BB && "Instruction supposed to be in the block!");
40 assert(B->getParent() == BB && "Instruction supposed to be in the block!");
43 auto II = BB->begin();
44 auto IE = BB->end();
63 /// comes before \p B in \p BB. This is a simplification that considers
65 /// only relevant to compare relative instructions positions inside \p BB.
69 assert(A->getParent() == BB && "Instructions must be in the tracked block!");
90 if (LastInstFound != BB->end() && I == &*LastInstFound) {
91 if (LastInstFound == BB->begin()) {
92 LastInstFound = BB->end();
108 if (LastInstFound != BB->end() && Old == &*LastInstFound)