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

Declarations

include/llvm/IR/Instructions.h
 3503   CaseWeightOpt getSuccessorWeight(unsigned idx);

References

lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  636     auto W = SIW.getSuccessorWeight(CaseI->getSuccessorIndex());
  751                      SIW.getSuccessorWeight(Case.getSuccessorIndex()));
  756       auto W = SIW.getSuccessorWeight(Case.getSuccessorIndex());
  799         0, SIW.getSuccessorWeight(LastCaseI->getSuccessorIndex()));
lib/Transforms/Utils/SimplifyCFG.cpp
 3672     auto W0 = SIW.getSuccessorWeight(0);
unittests/IR/InstructionsTest.cpp
  779     EXPECT_EQ(*SIW.getSuccessorWeight(0), 9u);
  780     EXPECT_EQ(*SIW.getSuccessorWeight(1), 1u);
  781     EXPECT_EQ(*SIW.getSuccessorWeight(2), 22u);
  784     EXPECT_EQ(*SIW.getSuccessorWeight(0), 99u);
  785     EXPECT_EQ(*SIW.getSuccessorWeight(1), 11u);
  786     EXPECT_EQ(*SIW.getSuccessorWeight(2), 22u);
  791     EXPECT_EQ(*SIW.getSuccessorWeight(0), 99u);
  792     EXPECT_EQ(*SIW.getSuccessorWeight(1), 11u);
  793     EXPECT_EQ(*SIW.getSuccessorWeight(2), 22u);