HomeSort by relevance Sort by last modified time
    Searched defs:Weights (Results 1 - 13 of 13) sorted by null

  /external/llvm/include/llvm/Analysis/
BranchProbabilityInfo.h 98 /// This returns the sum of all raw edge weights from Src to Dst.
110 /// weights are calculated carefully before using!
133 // weight to an edge that may have siblings with non-zero weights. This can
138 DenseMap<Edge, uint32_t> Weights;
149 /// \brief Get sum of the block successors' weights.
BlockFrequencyInfoImpl.h 203 ExitMap Exits; ///< Successor edges (and weights).
344 /// This class collates the successor edge weights for later processing.
350 WeightList Weights; ///< Individual successor weights.
351 uint64_t Total; ///< Sum of all weights.
370 /// This is linear in the size of \a Weights. For the vast majority of
371 /// cases, adjacent edge weights are combined by sorting WeightList and
372 /// combining adjacent weights. However, for very large edge lists an
451 /// This adjusts header mass distribution so it matches the weights of
715 /// - Normalize the distribution: scale weights down so that their su
    [all...]
  /external/llvm/lib/CodeGen/
StackProtector.cpp 460 MDNode *Weights = MDBuilder(F->getContext())
462 B.CreateCondBr(Cmp, NewBB, FailBB, Weights);
  /external/llvm/unittests/IR/
IRBuilderTest.cpp 95 MDNode *Weights = MDBuilder(Ctx).createBranchWeights(42, 13);
96 BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB, Weights);
102 EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof));
  /external/llvm/lib/Analysis/
BranchProbabilityInfo.cpp 38 // Weights are for internal use only. They are used by heuristics to help to
41 // Using "Loop Branch Heuristics" we predict weights of edges for the
118 /// \brief Calculate edge weights for successors lead to unreachable.
155 // Return false here so that edge weights for InvokeInst could be decided
196 // Ensure there are weights for all of the successors. Note that the first
201 // Build up the final weights that will be used in a temporary buffer.
202 // Compute the sum of all weights to later decide whether they need to
205 SmallVector<uint32_t, 2> Weights;
206 Weights.reserve(TI->getNumSuccessors());
214 Weights.push_back(Weight->getZExtValue())
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
PGOInstrumentation.cpp 30 // annotates the branch weights.
454 // Set the branch weights based on the count values.
625 DEBUG(dbgs() << "\nSetting branch weights.\n");
655 SmallVector<unsigned, 4> Weights;
657 Weights.push_back(scaleBranchCount(ECI, Scale));
660 MDB.createBranchWeights(Weights));
662 for (const auto &W : Weights) { dbgs() << W << " "; }
  /external/llvm/lib/Transforms/IPO/
SampleProfile.cpp 17 // - prof: Represents branch weights. This annotation is added to branches
18 // to indicate the weights of each edge coming out of the branch.
66 "sample block/edge weights through the CFG."));
153 /// \brief Map basic blocks to their computed weights.
156 /// of all the instruction weights in that block.
159 /// \brief Map edges to their computed weights.
161 /// Edge weights are computed by propagating basic block weights in
171 /// \brief Equivalence classes for block weights.
378 /// Clear all the per-function data used to load samples and propagate weights
    [all...]
  /external/llvm/lib/Transforms/Scalar/
JumpThreading.cpp 197 // When profile data is available, we need to update edge weights after
    [all...]
  /external/llvm/lib/Transforms/Utils/
Local.cpp 146 // Collect branch weights into a vector.
147 SmallVector<uint32_t, 8> Weights;
153 Weights.push_back(CI->getValue().getZExtValue());
157 Weights[0] += Weights[idx+1];
159 std::swap(Weights[idx+1], Weights.back());
160 Weights.pop_back();
163 createBranchWeights(Weights));
    [all...]
SimplifyCFG.cpp 706 // Collect branch weights into a vector.
707 SmallVector<uint32_t, 8> Weights;
714 Weights.push_back(CI->getValue().getZExtValue());
720 std::swap(Weights[i.getCaseIndex()+1], Weights.back());
721 Weights.pop_back();
727 if (HasWeight && Weights.size() >= 2)
730 createBranchWeights(Weights));
810 /// Get Weights of a given TerminatorInst, the default weight is at the front
814 SmallVectorImpl<uint64_t> &Weights)
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
dxva.h 196 SHORT Weights[2][32][3][2];
  /external/clang/lib/CodeGen/
CGStmt.cpp     [all...]
CodeGenFunction.cpp     [all...]

Completed in 381 milliseconds