reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/Utils/Local.cpp
  162     auto *CI = dyn_cast<ConstantInt>(SI->getCondition());
  163     BasicBlock *DefaultDest = SI->getDefaultDest();
  168         SI->getNumCases() > 0) {
  169       TheOnlyDest = SI->case_begin()->getCaseSuccessor();
  173     for (auto i = SI->case_begin(), e = SI->case_end(); i != e;) {
  173     for (auto i = SI->case_begin(), e = SI->case_end(); i != e;) {
  183         MDNode *MD = SI->getMetadata(LLVMContext::MD_prof);
  184         unsigned NCases = SI->getNumCases();
  201           SI->setMetadata(LLVMContext::MD_prof,
  206         BasicBlock *ParentBB = SI->getParent();
  208         i = SI->removeCase(i);
  209         e = SI->case_end();
  229       TheOnlyDest = SI->getDefaultDest();
  237       BasicBlock *BB = SI->getParent();
  240         Updates.reserve(SI->getNumSuccessors() - 1);
  243       for (BasicBlock *Succ : successors(SI)) {
  255       Value *Cond = SI->getCondition();
  256       SI->eraseFromParent();
  264     if (SI->getNumCases() == 1) {
  267       auto FirstCase = *SI->case_begin();
  268       Value *Cond = Builder.CreateICmpEQ(SI->getCondition(),
  274                                                SI->getDefaultDest());
  275       MDNode *MD = SI->getMetadata(LLVMContext::MD_prof);
  290       MDNode *MakeImplicitMD = SI->getMetadata(LLVMContext::MD_make_implicit);
  295       SI->eraseFromParent();