/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
BranchProbabilityInfo.h | 31 // weight to an edge that may have siblings with non-zero weights. This can 38 DenseMap<Edge, uint32_t> Weights; 40 // Get sum of the block successors' weights.
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
ProfileSummaryInfoTest.cpp | 198 // Manually attach branch weights metadata to the call instruction. 199 SmallVector<uint32_t, 1> Weights; 200 Weights.push_back(1000); 202 CI2->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); 209 // weights that exceed the hot count threshold.
|
/external/swiftshader/third_party/subzero/src/ |
IceRegAlloc.h | 71 llvm::SmallVector<RegWeight, REGS_SIZE> Weights;
|
/external/llvm/lib/CodeGen/ |
StackProtector.cpp | 433 MDNode *Weights = MDBuilder(F->getContext()) 436 B.CreateCondBr(Cmp, NewBB, FailBB, Weights);
|
SafeStack.cpp | 497 MDNode *Weights = MDBuilder(F.getContext()) 502 /* Unreachable */ true, Weights); [all...] |
/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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
StackProtector.cpp | 476 MDNode *Weights = MDBuilder(F->getContext()) 479 B.CreateCondBr(Cmp, NewBB, FailBB, Weights);
|
SafeStack.cpp | 467 MDNode *Weights = MDBuilder(F.getContext()) 472 /* Unreachable */ true, Weights); [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
IndirectCallPromotion.cpp | 313 SmallVector<uint32_t, 1> Weights; 314 Weights.push_back(Count); 316 NewInst->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
|
PGOInstrumentation.cpp | 31 // annotates the branch weights. It also reads the indirect call value 862 // Set the branch weights based on the count values. 871 // Annotate the irreducible loop header weights. [all...] |
/external/cldr/tools/java/org/unicode/cldr/posix/ |
POSIX_LCCollate.java | 137 out.println("* assignment of characters to weights"); 176 Set<Weights> nonUniqueWeights = new HashSet<Weights>(); 177 Set<Weights> allWeights = new HashSet<Weights>(); 178 Map<String, Weights> stringToWeights = new HashMap<String, Weights>(); 187 Weights w = new Weights(col.getCollationElementIterator(string)); 196 out.println("* Define collation weights as symbols") 305 char[] weights = new char[100]; field in class:POSIX_LCCollate.WeightList [all...] |
/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 111 /// \brief Calculate edge weights for successors lead to unreachable. 153 // 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/swiftshader/third_party/LLVM/lib/Analysis/ |
BranchProbabilityInfo.cpp | 41 DenseMap<Edge, uint32_t> *Weights; 48 // Weights are for internal use only. They are used by heuristics to help to 51 // Using "Loop Branch Heuristics" we predict weights of edges for the 122 : Weights(W), BP(BP), LI(LI) { 125 // Metadata Weights 157 // Ensure there are weights for all of the successors. Note that the first 162 // Build up the final weights that will be used in a temporary buffer, but 166 SmallVector<uint32_t, 2> Weights; 167 Weights.reserve(TI->getNumSuccessors()); 172 Weights.push_back [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
Instruction.cpp | 725 "Can only set weights for call and invoke instrucitons"); 726 SmallVector<uint32_t, 1> Weights; 727 Weights.push_back(W); 729 setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
MachineBasicBlock.h | 75 /// Weights - Keep track of the weights to the successors. This vector 78 std::vector<uint32_t> Weights; 259 /// parameter is stored in Weights list and it may be used by
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
BranchProbabilityInfo.cpp | 67 // Weights are for internal use only. They are used by heuristics to help to 70 // Using "Loop Branch Heuristics" we predict weights of edges for the 200 /// Calculate edge weights for successors lead to unreachable. 261 // Ensure there are weights for all of the successors. Note that the first 266 // Build up the final weights that will be used in a temporary buffer. 267 // Compute the sum of all weights to later decide whether they need to 270 SmallVector<uint32_t, 2> Weights; 273 Weights.reserve(TI->getNumSuccessors()); 281 Weights.push_back(Weight->getZExtValue()); 282 WeightSum += Weights.back() [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
IRBuilderTest.cpp | 116 MDNode *Weights = MDBuilder(Ctx).createBranchWeights(42, 13); 117 BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB, Weights); 123 EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof));
|
/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. 69 "sample block/edge weights through the CFG.")); 133 /// \brief Map basic blocks to their computed weights. 136 /// of all the instruction weights in that block. 139 /// \brief Map edges to their computed weights. 141 /// Edge weights are computed by propagating basic block weights in 151 /// \brief Equivalence classes for block weights. 385 /// Clear all the per-function data used to load samples and propagate weights [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
PGOInstrumentation.cpp | 31 // annotates the branch weights. It also reads the indirect call value 470 // Set the branch weights based on the count values. 712 DEBUG(dbgs() << "\nSetting branch weights.\n"); 742 SmallVector<unsigned, 4> Weights; 744 Weights.push_back(scaleBranchCount(ECI, Scale)); 747 MDB.createBranchWeights(Weights)); 749 for (const auto &W : Weights) { dbgs() << W << " "; } [all...] |
/external/llvm/lib/Transforms/Scalar/ |
JumpThreading.cpp | 173 // When profile data is available, we need to update edge weights after [all...] |
/external/swiftshader/third_party/llvm-7.0/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. 102 "sample block/edge weights through the CFG.")); 228 /// Map basic blocks to their computed weights. 231 /// of all the instruction weights in that block. 234 /// Map edges to their computed weights. 236 /// Edge weights are computed by propagating basic block weights in 246 /// Equivalence classes for block weights. 462 /// Clear all the per-function data used to load samples and propagate weights [all...] |
/external/clang/lib/CodeGen/ |
CGStmt.cpp | [all...] |
CodeGenFunction.cpp | [all...] |
/external/llvm/include/llvm/Analysis/ |
BlockFrequencyInfoImpl.h | 207 ExitMap Exits; ///< Successor edges (and weights). 348 /// This class collates the successor edge weights for later processing. 354 WeightList Weights; ///< Individual successor weights. 355 uint64_t Total; ///< Sum of all weights. 374 /// This is linear in the size of \a Weights. For the vast majority of 375 /// cases, adjacent edge weights are combined by sorting WeightList and 376 /// combining adjacent weights. However, for very large edge lists an 455 /// This adjusts header mass distribution so it matches the weights of 721 /// - Normalize the distribution: scale weights down so that their su [all...] |
/external/llvm/lib/Transforms/Utils/ |
Local.cpp | 149 // Collect branch weights into a vector. 150 SmallVector<uint32_t, 8> Weights; 154 Weights.push_back(CI->getValue().getZExtValue()); 158 Weights[0] += Weights[idx+1]; 160 std::swap(Weights[idx+1], Weights.back()); 161 Weights.pop_back(); 164 createBranchWeights(Weights)); [all...] |