OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:Weights
(Results
26 - 29
of
29
) sorted by null
1
2
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
JumpThreading.cpp
264
SmallVector<uint32_t, 2>
Weights
;
266
Weights
.push_back(BP.getNumerator());
267
Weights
.push_back(BP.getCompl().getNumerator());
269
Weights
.push_back(BP.getCompl().getNumerator());
270
Weights
.push_back(BP.getNumerator());
274
.createBranchWeights(
Weights
));
349
// When profile data is available, we need to update edge
weights
after
[
all
...]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
Local.cpp
182
// Collect branch
weights
into a vector.
183
SmallVector<uint32_t, 8>
Weights
;
187
Weights
.push_back(CI->getValue().getZExtValue());
191
Weights
[0] +=
Weights
[idx+1];
193
std::swap(
Weights
[idx+1],
Weights
.back());
194
Weights
.pop_back();
197
createBranchWeights(
Weights
));
[
all
...]
SimplifyCFG.cpp
772
// Set branch
weights
on SwitchInst. This sets the metadata if there is at
774
static void setBranchWeights(SwitchInst *SI, ArrayRef<uint32_t>
Weights
) {
778
if (llvm::any_of(
Weights
, [](uint32_t W) { return W != 0; }))
779
N = MDBuilder(SI->getParent()->getContext()).createBranchWeights(
Weights
);
784
// exactly 2
weights
.
[
all
...]
/external/llvm/lib/Transforms/Utils/
SimplifyCFG.cpp
801
// Collect branch
weights
into a vector.
802
SmallVector<uint32_t, 8>
Weights
;
809
Weights
.push_back(CI->getValue().getZExtValue());
815
std::swap(
Weights
[i.getCaseIndex() + 1],
Weights
.back());
816
Weights
.pop_back();
822
if (HasWeight &&
Weights
.size() >= 2)
[
all
...]
Completed in 583 milliseconds
1
2