OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:Weights
(Results
1 - 12
of
12
) 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!
122
// weight to an edge that may have siblings with non-zero
weights
. This can
127
DenseMap<Edge, uint32_t>
Weights
;
141
/// \brief Get sum of the block successors'
weights
.
BlockFrequencyInfoImpl.h
214
ExitMap Exits; ///< Successor edges (and
weights
).
343
/// This class collates the successor edge
weights
for later processing.
349
WeightList
Weights
; ///< Individual successor
weights
.
350
uint64_t Total; ///< Sum of all
weights
.
369
/// This is linear in the size of \a
Weights
. For the vast majority of
370
/// cases, adjacent edge
weights
are combined by sorting WeightList and
371
/// combining adjacent
weights
. However, for very large edge lists an
702
/// - Normalize the distribution: scale
weights
down so that their sum
[
all
...]
/external/llvm/lib/IR/
MDBuilder.cpp
34
uint32_t
Weights
[] = {TrueWeight, FalseWeight};
35
return createBranchWeights(
Weights
);
38
MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t>
Weights
) {
39
assert(
Weights
.size() >= 2 && "Need at least two branch
weights
!");
41
SmallVector<Value *, 4> Vals(
Weights
.size() + 1);
45
for (unsigned i = 0, e =
Weights
.size(); i != e; ++i)
46
Vals[i + 1] = ConstantInt::get(Int32Ty,
Weights
[i]);
/external/llvm/unittests/IR/
IRBuilderTest.cpp
93
MDNode *
Weights
= MDBuilder(Ctx).createBranchWeights(42, 13);
94
BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB,
Weights
);
100
EXPECT_EQ(
Weights
, TI->getMetadata(LLVMContext::MD_prof));
/external/llvm/lib/Analysis/
BranchProbabilityInfo.cpp
37
//
Weights
are for internal use only. They are used by heuristics to help to
40
// Using "Loop Branch Heuristics" we predict
weights
of edges for the
122
/// \brief Calculate edge
weights
for successors lead to unreachable.
187
// Ensure there are
weights
for all of the successors. Note that the first
192
// Build up the final
weights
that will be used in a temporary buffer, but
196
SmallVector<uint32_t, 2>
Weights
;
197
Weights
.reserve(TI->getNumSuccessors());
202
Weights
.push_back(
205
assert(
Weights
.size() == TI->getNumSuccessors() && "Checked above");
207
setEdgeWeight(BB, i,
Weights
[i])
[
all
...]
/external/llvm/lib/Transforms/Utils/
Local.cpp
136
// Collect branch
weights
into a vector.
137
SmallVector<uint32_t, 8>
Weights
;
142
Weights
.push_back(CI->getValue().getZExtValue());
146
Weights
[0] +=
Weights
[idx+1];
148
std::swap(
Weights
[idx+1],
Weights
.back());
149
Weights
.pop_back();
152
createBranchWeights(
Weights
));
[
all
...]
SimplifyCFG.cpp
629
// Collect branch
weights
into a vector.
630
SmallVector<uint32_t, 8>
Weights
;
638
Weights
.push_back(CI->getValue().getZExtValue());
644
std::swap(
Weights
[i.getCaseIndex()+1],
Weights
.back());
645
Weights
.pop_back();
651
if (HasWeight &&
Weights
.size() >= 2)
654
createBranchWeights(
Weights
));
734
/// Get
Weights
of a given TerminatorInst, the default weight is at the front
738
SmallVectorImpl<uint64_t> &
Weights
) {
[
all
...]
/external/llvm/include/llvm/CodeGen/
MachineBasicBlock.h
74
///
Weights
- Keep track of the
weights
to the successors. This vector
77
std::vector<uint32_t>
Weights
;
382
/// parameter is stored in
Weights
list and it may be used by
/external/llvm/lib/Transforms/Scalar/
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.
65
"sample block/edge
weights
through the CFG."));
176
/// \brief Map basic blocks to their computed
weights
.
179
/// of all the instruction
weights
in that block.
182
/// \brief Map edges to their computed
weights
.
184
/// Edge
weights
are computed by propagating basic block
weights
in
194
/// \brief Equivalence classes for block
weights
.
516
// When dealing with instruction
weights
, we use the valu
[
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 300 milliseconds