Lines Matching defs:BB
40 const BasicBlock *BB) {
47 validate(BB);
50 if (!FirstSpecialInsts.contains(BB)) {
51 fill(BB);
52 assert(FirstSpecialInsts.contains(BB) && "Must be!");
54 return FirstSpecialInsts[BB];
58 const BasicBlock *BB) {
59 return getFirstSpecialInstruction(BB) != nullptr;
69 void InstructionPrecedenceTracking::fill(const BasicBlock *BB) {
70 FirstSpecialInsts.erase(BB);
71 for (const auto &I : *BB) {
74 FirstSpecialInsts[BB] = &I;
80 FirstSpecialInsts[BB] = nullptr;
84 void InstructionPrecedenceTracking::validate(const BasicBlock *BB) const {
85 auto It = FirstSpecialInsts.find(BB);
90 for (const Instruction &Insn : *BB)
110 const BasicBlock *BB) {
112 FirstSpecialInsts.erase(BB);
116 auto *BB = Inst->getParent();
117 assert(BB && "must be called before instruction is actually removed");
118 auto It = FirstSpecialInsts.find(BB);