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

References

include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1304   return Prob.getNumerator();
 1452     uint32_t N = BP.getNumerator();
lib/CodeGen/MIRPrinter.cpp
  659            << format("0x%08" PRIx32, MBB.getSuccProbability(I).getNumerator())
lib/CodeGen/MachineBasicBlock.cpp
  367            << format("0x%08" PRIx32, getSuccProbability(I).getNumerator())
  379                      rint(((double)BP.getNumerator() / BP.getDenominator()) *
  645     Sum += Prob.getNumerator();
lib/CodeGen/MachineBlockPlacement.cpp
  679   uint32_t SuccProbN = OrigProb.getNumerator();
  680   uint32_t SuccProbD = AdjustedSumProb.getNumerator();
lib/CodeGen/SafeStack.cpp
  471                         .createBranchWeights(SuccessProb.getNumerator(),
  472                                              FailureProb.getNumerator());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
10431   uint32_t Numerator = CaseProb.getNumerator();
lib/CodeGen/StackProtector.cpp
  510                             .createBranchWeights(SuccessProb.getNumerator(),
  511                                                  FailureProb.getNumerator());
lib/Transforms/Scalar/JumpThreading.cpp
  283       Weights.push_back(BP.getNumerator());
  284       Weights.push_back(BP.getCompl().getNumerator());
  286       Weights.push_back(BP.getCompl().getNumerator());
  287       Weights.push_back(BP.getNumerator());
 2248       Weights.push_back(Prob.getNumerator());
unittests/Support/BranchProbabilityTest.cpp
   17   *os << P.getNumerator() << "/" << P.getDenominator();
   24   EXPECT_EQ(306783378u, BP(1, 7).getNumerator());
   26   EXPECT_EQ(0u, BP::getZero().getNumerator());
   28   EXPECT_EQ(1u << 31, BP::getOne().getNumerator());
  342     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
  343     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
  348     EXPECT_EQ(0u, Probs[0].getNumerator());
  349     EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
  354     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
  355     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
  360     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
  361     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
  367               Probs[0].getNumerator());
  369               Probs[1].getNumerator());
  371               Probs[2].getNumerator());
  376     EXPECT_EQ(0U, Probs[0].getNumerator());
  377     EXPECT_EQ(BranchProbability::getDenominator(), Probs[1].getNumerator());
  382     EXPECT_EQ(BranchProbability::getDenominator(), Probs[0].getNumerator());
  383     EXPECT_EQ(0U, Probs[1].getNumerator());
  388     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[0].getNumerator());
  389     EXPECT_EQ(BranchProbability::getDenominator() / 2, Probs[1].getNumerator());
  396               Probs[0].getNumerator());
  398               Probs[1].getNumerator());
  400               Probs[2].getNumerator());
  401     EXPECT_EQ(0U, Probs[3].getNumerator());