Searched defs:Weights (Results 1 - 14 of 14) sorted by relevance

/external/llvm/include/llvm/Analysis/
H A DBranchProbabilityInfo.h127 DenseMap<Edge, uint32_t> Weights; member in class:llvm::BranchProbabilityInfo
H A DBlockFrequencyInfoImpl.h349 WeightList Weights; ///< Individual successor weights. member in struct:llvm::BlockFrequencyInfoImplBase::Distribution
369 /// This is linear in the size of \a Weights. For the vast majority of
/external/llvm/lib/IR/
H A DMDBuilder.cpp34 uint32_t Weights[] = {TrueWeight, FalseWeight}; local
35 return createBranchWeights(Weights);
38 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { argument
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/
H A DIRBuilderTest.cpp93 MDNode *Weights = MDBuilder(Ctx).createBranchWeights(42, 13); local
94 BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB, Weights);
100 EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof));
/external/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp37 // Weights are for internal use only. They are used by heuristics to help to
196 SmallVector<uint32_t, 2> Weights; local
197 Weights.reserve(TI->getNumSuccessors());
202 Weights.push_back(
205 assert(Weights.size() == TI->getNumSuccessors() && "Checked above");
207 setEdgeWeight(BB, i, Weights[i]);
273 // Calculate Edge Weights using "Pointer Heuristics". Predict a comparsion
306 // Calculate Edge Weights using "Loop Branch Heuristics". Predict backedges
593 Weights.find(std::make_pair(Src, IndexInSuccessors));
595 if (I != Weights
[all...]
/external/clang/lib/CodeGen/
H A DCodeGenPGO.cpp976 llvm::MDNode *CodeGenPGO::createBranchWeights(ArrayRef<uint64_t> Weights) { argument
978 if (Weights.size() < 2)
982 uint64_t MaxWeight = *std::max_element(Weights.begin(), Weights.end());
990 ScaledWeights.reserve(Weights.size());
991 for (uint64_t W : Weights)
H A DCGStmt.cpp1149 llvm::MDNode *Weights = nullptr; local
1153 Weights = PGO.createBranchWeights(ThisCount, DefaultCount);
1160 Builder.CreateCondBr(Cond, CaseDest, FalseDest, Weights);
H A DCodeGenFunction.cpp1121 llvm::MDNode *Weights = PGO.createBranchWeights(TrueCount, local
1126 Builder.CreateCondBr(CondV, TrueBlock, FalseBlock, Weights);
/external/llvm/include/llvm/CodeGen/
H A DMachineBasicBlock.h74 /// Weights - Keep track of the weights to the successors. This vector
77 std::vector<uint32_t> Weights; member in class:llvm::MachineBasicBlock
382 /// parameter is stored in Weights list and it may be used by
/external/llvm/lib/Transforms/Scalar/
H A DSampleProfile.cpp933 SmallVector<unsigned, 4> Weights; local
940 Weights.push_back(Weight);
950 MDB.createBranchWeights(Weights));
/external/llvm/lib/Transforms/Utils/
H A DLocal.cpp137 SmallVector<uint32_t, 8> Weights; local
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));
H A DSimplifyCFG.cpp630 SmallVector<uint32_t, 8> Weights; local
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) {
743 Weights
737 GetBranchWeights(TerminatorInst *TI, SmallVectorImpl<uint64_t> &Weights) argument
758 FitWeights(MutableArrayRef<uint64_t> Weights) argument
800 SmallVector<uint64_t, 8> Weights; local
2595 SmallVector<uint64_t, 8> Weights; local
2729 SmallVector<uint64_t, 8> Weights; local
3180 SmallVector<uint64_t, 8> Weights; local
3228 SmallVector<uint64_t, 8> Weights; local
[all...]
/external/openfst/src/include/fst/
H A Daccumulator.h135 vector<double> *Weights() { return &weights_; } function in class:fst::FastLogAccumulatorData
188 vector<double> &weights = *data_->Weights();
248 vector<double> &weights = *data_->Weights();
/external/llvm/include/llvm/IR/
H A DIRBuilder.h511 InstTy *addBranchWeights(InstTy *I, MDNode *Weights) { argument
512 if (Weights)
513 I->setMetadata(LLVMContext::MD_prof, Weights);

Completed in 2482 milliseconds