/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | BlockFrequencyInfoImpl.cpp | 137 Weights.push_back(Weight(Type, Node, Amount)); in add() 156 static void combineWeightsBySorting(WeightList &Weights) { in combineWeightsBySorting() argument 158 llvm::sort(Weights, [](const Weight &L, const Weight &R) { in combineWeightsBySorting() 163 WeightList::iterator O = Weights.begin(); in combineWeightsBySorting() 164 for (WeightList::const_iterator I = O, L = O, E = Weights.end(); I != E; in combineWeightsBySorting() 174 Weights.erase(O, Weights.end()); in combineWeightsBySorting() 177 static void combineWeightsByHashing(WeightList &Weights) { in combineWeightsByHashing() argument 181 HashTable Combined(NextPowerOf2(2 * Weights.size())); in combineWeightsByHashing() 182 for (const Weight &W : Weights) in combineWeightsByHashing() 186 if (Weights.size() == Combined.size()) in combineWeightsByHashing() [all …]
|
D | BranchProbabilityInfo.cpp | 299 SmallVector<uint32_t, 2> Weights; in calcMetadataWeights() local 302 Weights.reserve(TI->getNumSuccessors()); in calcMetadataWeights() 310 Weights.push_back(Weight->getZExtValue()); in calcMetadataWeights() 311 WeightSum += Weights.back(); in calcMetadataWeights() 317 assert(Weights.size() == TI->getNumSuccessors() && "Checked above"); in calcMetadataWeights() 327 Weights[i] /= ScalingFactor; in calcMetadataWeights() 328 WeightSum += Weights[i]; in calcMetadataWeights() 336 Weights[i] = 1; in calcMetadataWeights() 343 BP.push_back({ Weights[i], static_cast<uint32_t>(WeightSum) }); in calcMetadataWeights()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | MisExpect.cpp | 96 void verifyMisExpect(Instruction *I, const SmallVector<uint32_t, 4> &Weights, in verifyMisExpect() argument 106 LLVM_DEBUG(for (int Idx = 0, Size = Weights.size(); Idx < Size; ++Idx) { in verifyMisExpect() 107 llvm::dbgs() << "Weights[" << Idx << "] = " << Weights[Idx] << "\n"; in verifyMisExpect() 124 const uint64_t ProfileCount = Weights[Index]; in verifyMisExpect() 126 Weights.begin(), Weights.end(), (uint64_t)0, std::plus<uint64_t>()); in verifyMisExpect() 127 const uint64_t NumUnlikelyTargets = Weights.size() - 1; in verifyMisExpect()
|
D | SimplifyCFG.cpp | 789 static void setBranchWeights(SwitchInst *SI, ArrayRef<uint32_t> Weights) { in setBranchWeights() argument 793 if (llvm::any_of(Weights, [](uint32_t W) { return W != 0; })) in setBranchWeights() 794 N = MDBuilder(SI->getParent()->getContext()).createBranchWeights(Weights); in setBranchWeights() 970 SmallVectorImpl<uint64_t> &Weights) { in GetBranchWeights() argument 975 Weights.push_back(CI->getValue().getZExtValue()); in GetBranchWeights() 982 assert(Weights.size() == 2); in GetBranchWeights() 985 std::swap(Weights.front(), Weights.back()); in GetBranchWeights() 990 static void FitWeights(MutableArrayRef<uint64_t> Weights) { in FitWeights() argument 991 uint64_t Max = *std::max_element(Weights.begin(), Weights.end()); in FitWeights() 994 for (uint64_t &I : Weights) in FitWeights() [all …]
|
/third_party/json/test/thirdparty/Fuzzer/ |
D | FuzzerCorpus.h | 190 Weights.resize(N); in UpdateCorpusDistribution() 194 Weights[i] = Inputs[i]->NumFeatures * (i + 1); in UpdateCorpusDistribution() 196 std::iota(Weights.begin(), Weights.end(), 1); in UpdateCorpusDistribution() 198 Intervals.begin(), Intervals.end(), Weights.begin()); in UpdateCorpusDistribution() 203 std::vector<double> Weights; variable
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/ |
D | layer_input.h | 30 explicit LayerInput(nvinfer1::Weights &w, const std::vector<int64_t> &s) in LayerInput() 38 nvinfer1::Weights *weight() { in weight() 60 nvinfer1::Weights weight_;
|
D | trt_op_converter.cc | 272 nvinfer1::Weights bias{nvinfer1::DataType::kFLOAT, nullptr, 0}; in MS_TRT_CONVERTER_FUNC_REG() 368 …auto *layer = context->network()->addConstant(dim, nvinfer1::Weights{nvinfer1::DataType::kFLOAT, v… in MS_TRT_CONVERTER_FUNC_REG() 403 …auto *layer = context->network()->addConstant(dim, nvinfer1::Weights{nvinfer1::DataType::kFLOAT, v… in MS_TRT_CONVERTER_FUNC_REG() 454 …auto *layer = context->network()->addConstant(dim, nvinfer1::Weights{nvinfer1::DataType::kFLOAT, v… in MS_TRT_CONVERTER_FUNC_REG() 495 …auto *layer = context->network()->addConstant(dim, nvinfer1::Weights{nvinfer1::DataType::kFLOAT, v… in MS_TRT_CONVERTER_FUNC_REG() 540 nvinfer1::Weights bias{nvinfer1::DataType::kFLOAT, nullptr, 0}; in MS_TRT_CONVERTER_FUNC_REG() 670 const nvinfer1::Weights &scale{nvinfer1::DataType::kFLOAT, coeff_value, channel_num}; in MS_TRT_CONVERTER_FUNC_REG() 671 const nvinfer1::Weights &shift{nvinfer1::DataType::kFLOAT, bias_value, channel_num}; in MS_TRT_CONVERTER_FUNC_REG() 672 const nvinfer1::Weights &pow{nvinfer1::DataType::kFLOAT, nullptr, 0}; in MS_TRT_CONVERTER_FUNC_REG() 725 const nvinfer1::Weights &bias{nvinfer1::DataType::kFLOAT, nullptr, 0}; in MS_TRT_CONVERTER_FUNC_REG() [all …]
|
D | trt_converter_context.cc | 112 nvinfer1::Weights weight; in InitInputTable() 139 nvinfer1::Weights weight; in InitValueNodeTable()
|
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/ |
D | tensorrt_utils.cc | 123 nvinfer1::Weights weights{data_type, ms_tensor.Data().get(), ms_tensor.ElementNum()}; in ConvertConstantTensor() 137 nvinfer1::Weights weights{ConvertDataType(data_type), value, 1}; in ConvertScalarToITensor() 192 nvinfer1::Weights weights{data_type, ms_tensor.Data().get(), ms_tensor.ElementNum()}; in ConvertTensorWithExpandDims() 203 nvinfer1::Weights TransposeWeight(const mindspore::MSTensor &ms_tensor, void **pack_weight) { in TransposeWeight() 204 nvinfer1::Weights weights{}; in TransposeWeight() 226 nvinfer1::Weights TransposeWeightFP32(const mindspore::MSTensor &ms_tensor, void **pack_weight) { in TransposeWeightFP32() 228 nvinfer1::Weights weights{}; in TransposeWeightFP32() 253 nvinfer1::Weights ConvertWeight(const mindspore::MSTensor &ms_tensor) { in ConvertWeight() 254 nvinfer1::Weights weights{}; in ConvertWeight()
|
D | tensorrt_utils.h | 70 nvinfer1::Weights TransposeWeight(const mindspore::MSTensor &ms_tensor, void **pack_weight); 72 nvinfer1::Weights TransposeWeightFP32(const mindspore::MSTensor &ms_tensor, void **pack_weight); 74 nvinfer1::Weights ConvertWeight(const mindspore::MSTensor &ms_tensor);
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceRegAlloc.cpp | 88 const llvm::SmallVector<RegWeight, LinearScan::REGS_SIZE> &Weights) { in findMinWeightIndex() argument 91 if (MinWeightIndex < 0 || Weights[i] < Weights[MinWeightIndex]) in findMinWeightIndex() 606 Iter.Weights[RegAlias].setWeight(RegWeight::Inf); in filterFreeWithPrecoloredRanges() 674 Iter.Weights[RegAlias].addWeight(W); in handleNoFreeRegisters() 685 Iter.Weights[RegAlias].addWeight(W); in handleNoFreeRegisters() 690 int32_t MinWeightIndex = findMinWeightIndex(Iter.RegMask, Iter.Weights); in handleNoFreeRegisters() 693 Iter.Cur->getWeight(Func) <= Iter.Weights[MinWeightIndex]) { in handleNoFreeRegisters() 720 MinWeightIndex = findMinWeightIndex(Iter.RegMaskUnfiltered, Iter.Weights); in handleNoFreeRegisters() 722 if (Iter.Cur->getWeight(Func) <= Iter.Weights[MinWeightIndex]) { in handleNoFreeRegisters() 845 Iter.Weights.reserve(NumRegisters); in scan() [all …]
|
D | IceRegAlloc.h | 71 llvm::SmallVector<RegWeight, REGS_SIZE> Weights; variable
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | MDBuilder.cpp | 42 MDNode *MDBuilder::createBranchWeights(ArrayRef<uint32_t> Weights) { in createBranchWeights() argument 43 assert(Weights.size() >= 1 && "Need at least one branch weights!"); in createBranchWeights() 45 SmallVector<Metadata *, 4> Vals(Weights.size() + 1); in createBranchWeights() 49 for (unsigned i = 0, e = Weights.size(); i != e; ++i) in createBranchWeights() 50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
|
D | Instructions.cpp | 3895 if (!Weights) in buildProfBranchWeightsMD() 3898 assert(SI.getNumSuccessors() == Weights->size() && in buildProfBranchWeightsMD() 3902 all_of(Weights.getValue(), [](uint32_t W) { return W == 0; }); in buildProfBranchWeightsMD() 3904 if (AllZeroes || Weights.getValue().size() < 2) in buildProfBranchWeightsMD() 3907 return MDBuilder(SI.getParent()->getContext()).createBranchWeights(*Weights); in buildProfBranchWeightsMD() 3920 SmallVector<uint32_t, 8> Weights; in init() local 3924 Weights.push_back(CW); in init() 3926 this->Weights = std::move(Weights); in init() 3931 if (Weights) { in removeCase() 3932 assert(SI.getNumSuccessors() == Weights->size() && in removeCase() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | MisExpect.h | 31 const llvm::SmallVector<uint32_t, 4> &Weights,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 74 SmallVector<uint32_t, 16> Weights(n + 1, UnlikelyBranchWeight); in handleSwitchExpect() local 77 Weights[Index] = LikelyBranchWeight; in handleSwitchExpect() 88 MDBuilder(CI->getContext()).createBranchWeights(Weights)); in handleSwitchExpect()
|
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/op/ |
D | scale_tensorrt.cc | 77 nvinfer1::Weights power{nvinfer1::DataType::kFLOAT, nullptr, 0}; in AddInnerOp() 78 nvinfer1::Weights shift{nvinfer1::DataType::kFLOAT, nullptr, 0}; in AddInnerOp() 79 nvinfer1::Weights scale{nvinfer1::DataType::kFLOAT, nullptr, 0}; in AddInnerOp()
|
D | convolution_tensorrt.cc | 71 nvinfer1::Weights kernelWeights = lite::TransposeWeight(weight_tensor, &pack_weight_); in AddInnerOp() 88 nvinfer1::Weights biasWeights{}; in AddInnerOp()
|
D | deconvolution_tensorrt.cc | 68 nvinfer1::Weights kernelWeights = lite::TransposeWeight(weight_tensor, &pack_weight_); in AddInnerOp() 85 nvinfer1::Weights biasWeights{}; in AddInnerOp()
|
/third_party/gettext/libtextstyle/gnulib-local/tests/ |
D | test-term-ostream-xterm-r6.out | 123 Weights:
|
/third_party/ffmpeg/libavcodec/ |
D | dxva2_h264.c | 271 slice->Weights[list][i][plane][0] = w; in fill_slice_long() 272 slice->Weights[list][i][plane][1] = o; in fill_slice_long() 278 slice->Weights[list][i][plane][0] = 0; in fill_slice_long() 279 slice->Weights[list][i][plane][1] = 0; in fill_slice_long()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | PGOInstrumentation.cpp | 1703 SmallVector<unsigned, 4> Weights; in setProfMetadata() local 1705 Weights.push_back(scaleBranchCount(ECI, Scale)); in setProfMetadata() 1708 : Weights) { in setProfMetadata() 1712 misexpect::verifyMisExpect(TI, Weights, TI->getContext()); in setProfMetadata() 1714 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in setProfMetadata() 1721 std::accumulate(Weights.begin(), Weights.end(), (uint64_t)0, in setProfMetadata() 1727 BranchProbability BP(scaleBranchCount(Weights[0], Scale), in setProfMetadata()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | MDBuilder.h | 64 MDNode *createBranchWeights(ArrayRef<uint32_t> Weights);
|
/third_party/boost/tools/boostdep/examples/ |
D | report.bat | 37 %BOOSTDEP% %OPTIONS% --html-title "Boost Module Weights" --html --module-weights > %OUTDIR%\module-…
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | StackProtector.cpp | 514 MDNode *Weights = MDBuilder(F->getContext()) in InsertStackProtectors() local 517 B.CreateCondBr(Cmp, NewBB, FailBB, Weights); in InsertStackProtectors()
|