Home | History | Annotate | Download | only in SelectionDAG

Lines Matching refs:SDB

284   SDB(new SelectionDAGBuilder(*CurDAG, *FuncInfo, OL)),
295 delete SDB;
384 SDB->init(GFI, *AA, LibInfo);
509 // Release function-specific state. SDB and CurDAG are already cleared
522 for (BasicBlock::const_iterator I = Begin; I != End && !SDB->HasTailCall; ++I)
523 SDB->visit(*I);
526 CurDAG->setRoot(SDB->getControlRoot());
527 HadTailCall = SDB->HasTailCall;
528 SDB->clear();
723 SDB->UpdateSplitBlock(FirstMBB, LastMBB);
827 MF->getMMI().setCallSiteLandingPad(Label, SDB->LPadToCallSiteMap[MBB]);
830 BuildMI(*MBB, FuncInfo->InsertPt, SDB->getCurDebugLoc(), II)
1002 CurDAG->setRoot(SDB->getControlRoot());
1003 SDB->clear();
1142 SDB->clearDanglingDebugInfo();
1157 if (SDB->SwitchCases.empty() &&
1158 SDB->JTCases.empty() &&
1159 SDB->BitTestCases.empty()) {
1171 for (unsigned i = 0, e = SDB->BitTestCases.size(); i != e; ++i) {
1173 if (!SDB->BitTestCases[i].Emitted) {
1175 FuncInfo->MBB = SDB->BitTestCases[i].Parent;
1178 SDB->visitBitTestHeader(SDB->BitTestCases[i], FuncInfo->MBB);
1179 CurDAG->setRoot(SDB->getRoot());
1180 SDB->clear();
1185 for (unsigned j = 0, ej = SDB->BitTestCases[i].Cases.size(); j != ej; ++j)
1186 UnhandledWeight += SDB->BitTestCases[i].Cases[j].ExtraWeight;
1188 for (unsigned j = 0, ej = SDB->BitTestCases[i].Cases.size(); j != ej; ++j) {
1189 UnhandledWeight -= SDB->BitTestCases[i].Cases[j].ExtraWeight;
1191 FuncInfo->MBB = SDB->BitTestCases[i].Cases[j].ThisBB;
1195 SDB->visitBitTestCase(SDB->BitTestCases[i],
1196 SDB->BitTestCases[i].Cases[j+1].ThisBB,
1198 SDB->BitTestCases[i].Reg,
1199 SDB->BitTestCases[i].Cases[j],
1202 SDB->visitBitTestCase(SDB->BitTestCases[i],
1203 SDB->BitTestCases[i].Default,
1205 SDB->BitTestCases[i].Reg,
1206 SDB->BitTestCases[i].Cases[j],
1210 CurDAG->setRoot(SDB->getRoot());
1211 SDB->clear();
1224 if (PHIBB == SDB->BitTestCases[i].Default)
1226 .addMBB(SDB->BitTestCases[i].Parent)
1228 .addMBB(SDB->BitTestCases[i].Cases.back().ThisBB);
1230 for (unsigned j = 0, ej = SDB->BitTestCases[i].Cases.size();
1232 MachineBasicBlock* cBB = SDB->BitTestCases[i].Cases[j].ThisBB;
1238 SDB->BitTestCases.clear();
1243 for (unsigned i = 0, e = SDB->JTCases.size(); i != e; ++i) {
1245 if (!SDB->JTCases[i].first.Emitted) {
1247 FuncInfo->MBB = SDB->JTCases[i].first.HeaderBB;
1250 SDB->visitJumpTableHeader(SDB->JTCases[i].second, SDB->JTCases[i].first,
1252 CurDAG->setRoot(SDB->getRoot());
1253 SDB->clear();
1258 FuncInfo->MBB = SDB->JTCases[i].second.MBB;
1261 SDB->visitJumpTable(SDB->JTCases[i].second);
1262 CurDAG->setRoot(SDB->getRoot());
1263 SDB->clear();
1274 if (PHIBB == SDB->JTCases[i].second.Default)
1276 .addMBB(SDB->JTCases[i].first.HeaderBB);
1282 SDB->JTCases.clear();
1296 for (unsigned i = 0, e = SDB->SwitchCases.size(); i != e; ++i) {
1298 FuncInfo->MBB = SDB->SwitchCases[i].ThisBB;
1303 Succs.push_back(SDB->SwitchCases[i].TrueBB);
1304 if (SDB->SwitchCases[i].TrueBB != SDB->SwitchCases[i].FalseBB)
1305 Succs.push_back(SDB->SwitchCases[i].FalseBB);
1308 SDB->visitSwitchCase(SDB->SwitchCases[i], FuncInfo->MBB);
1309 CurDAG->setRoot(SDB->getRoot());
1310 SDB->clear();
1344 SDB->SwitchCases.clear();