Lines Matching refs:Weights
72 SmallVectorImpl<T> &Weights) { in extractFromBranchWeightMD() argument
78 Weights.resize(NOps - WeightsIdx); in extractFromBranchWeightMD()
86 Weights[Idx - WeightsIdx] = Weight->getZExtValue(); in extractFromBranchWeightMD()
164 SmallVectorImpl<uint32_t> &Weights) { in extractFromBranchWeightMD32() argument
165 extractFromBranchWeightMD(ProfileData, Weights); in extractFromBranchWeightMD32()
169 SmallVectorImpl<uint64_t> &Weights) { in extractFromBranchWeightMD64() argument
170 extractFromBranchWeightMD(ProfileData, Weights); in extractFromBranchWeightMD64()
174 SmallVectorImpl<uint32_t> &Weights) { in extractBranchWeights() argument
177 extractFromBranchWeightMD(ProfileData, Weights); in extractBranchWeights()
182 SmallVectorImpl<uint32_t> &Weights) { in extractBranchWeights() argument
184 return extractBranchWeights(ProfileData, Weights); in extractBranchWeights()
194 SmallVector<uint32_t, 2> Weights; in extractBranchWeights() local
196 if (!extractBranchWeights(ProfileData, Weights)) in extractBranchWeights()
199 if (Weights.size() > 2) in extractBranchWeights()
202 TrueVal = Weights[0]; in extractBranchWeights()
203 FalseVal = Weights[1]; in extractBranchWeights()
239 void setBranchWeights(Instruction &I, ArrayRef<uint32_t> Weights, in setBranchWeights() argument
242 MDNode *BranchWeights = MDB.createBranchWeights(Weights, IsExpected); in setBranchWeights()