/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | graph_kernel_optimization.cc | 64 auto pm = std::make_shared<GraphKernelPassManager>(0, "preprocess"); in PreProcess() local 66 pm->AddPass(std::make_shared<CommonSubexpressionElimination>("cse1"), OptLevel_1); in PreProcess() 69 pm->AddPass(std::make_shared<SaveOutputShape>(), OptLevel_1); in PreProcess() 72 pm->AddPass(std::make_shared<SplitAssign>(), OptLevel_1, is_gpu); in PreProcess() 75 pm->AddPass(std::make_shared<SpreadUpdateState>(), OptLevel_1); in PreProcess() 77 pm->AddPass(std::make_shared<CommonSubexpressionElimination>("cse2"), OptLevel_1); in PreProcess() 78 return pm; in PreProcess() 82 auto pm = std::make_shared<GraphKernelPassManager>(1, "cluster"); in Cluster() local 85 pm->AddPass(std::make_shared<GraphKernelComplexExpander>(), OptLevel_1, is_gpu); in Cluster() 88 pm->AddPass(std::make_shared<GraphKernelExpander>(), OptLevel_1); in Cluster() [all …]
|
/third_party/mesa3d/src/etnaviv/drm/ |
D | etnaviv_perfmon.c | 30 static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom) in etna_perfmon_query_signals() argument 32 struct etna_device *dev = pm->pipe->gpu->dev; in etna_perfmon_query_signals() 34 .pipe = pm->pipe->id, in etna_perfmon_query_signals() 63 static int etna_perfmon_query_domains(struct etna_perfmon *pm) in etna_perfmon_query_domains() argument 65 struct etna_device *dev = pm->pipe->gpu->dev; in etna_perfmon_query_domains() 67 .pipe = pm->pipe->id in etna_perfmon_query_domains() 85 list_addtail(&dom->head, &pm->domains); in etna_perfmon_query_domains() 94 ret = etna_perfmon_query_signals(pm, dom); in etna_perfmon_query_domains() 113 static void etna_perfmon_free_domains(struct etna_perfmon *pm) in etna_perfmon_free_domains() argument 117 LIST_FOR_EACH_ENTRY_SAFE(dom, next, &pm->domains, head) { in etna_perfmon_free_domains() [all …]
|
/third_party/libdrm/etnaviv/ |
D | etnaviv_perfmon.c | 30 static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom) in etna_perfmon_query_signals() argument 32 struct etna_device *dev = pm->pipe->gpu->dev; in etna_perfmon_query_signals() 34 .pipe = pm->pipe->id, in etna_perfmon_query_signals() 63 static int etna_perfmon_query_domains(struct etna_perfmon *pm) in etna_perfmon_query_domains() argument 65 struct etna_device *dev = pm->pipe->gpu->dev; in etna_perfmon_query_domains() 67 .pipe = pm->pipe->id in etna_perfmon_query_domains() 85 list_addtail(&dom->head, &pm->domains); in etna_perfmon_query_domains() 94 ret = etna_perfmon_query_signals(pm, dom); in etna_perfmon_query_domains() 113 static void etna_perfmon_free_domains(struct etna_perfmon *pm) in etna_perfmon_free_domains() argument 117 LIST_FOR_EACH_ENTRY_SAFE(dom, next, &pm->domains, head) { in etna_perfmon_free_domains() [all …]
|
/third_party/flutter/skia/third_party/externals/libpng/contrib/libtests/ |
D | pngvalid.c | 2500 static int fail(png_modifier *pm) in fail() argument 2502 return !pm->log && !pm->this.verbose && (pm->this.nerrors > 0 || in fail() 2503 (pm->this.treat_warnings_as_errors && pm->this.nwarnings > 0)); in fail() 2507 modifier_init(png_modifier *pm) in modifier_init() argument 2509 memset(pm, 0, sizeof *pm); in modifier_init() 2510 store_init(&pm->this); in modifier_init() 2511 pm->modifications = NULL; in modifier_init() 2512 pm->state = modifier_start; in modifier_init() 2513 pm->sbitlow = 1U; in modifier_init() 2514 pm->ngammas = 0; in modifier_init() [all …]
|
/third_party/skia/third_party/externals/libpng/contrib/libtests/ |
D | pngvalid.c | 2500 static int fail(png_modifier *pm) in fail() argument 2502 return !pm->log && !pm->this.verbose && (pm->this.nerrors > 0 || in fail() 2503 (pm->this.treat_warnings_as_errors && pm->this.nwarnings > 0)); in fail() 2507 modifier_init(png_modifier *pm) in modifier_init() argument 2509 memset(pm, 0, sizeof *pm); in modifier_init() 2510 store_init(&pm->this); in modifier_init() 2511 pm->modifications = NULL; in modifier_init() 2512 pm->state = modifier_start; in modifier_init() 2513 pm->sbitlow = 1U; in modifier_init() 2514 pm->ngammas = 0; in modifier_init() [all …]
|
/third_party/libpng/contrib/libtests/ |
D | pngvalid.c | 2500 static int fail(png_modifier *pm) in fail() argument 2502 return !pm->log && !pm->this.verbose && (pm->this.nerrors > 0 || in fail() 2503 (pm->this.treat_warnings_as_errors && pm->this.nwarnings > 0)); in fail() 2507 modifier_init(png_modifier *pm) in modifier_init() argument 2509 memset(pm, 0, sizeof *pm); in modifier_init() 2510 store_init(&pm->this); in modifier_init() 2511 pm->modifications = NULL; in modifier_init() 2512 pm->state = modifier_start; in modifier_init() 2513 pm->sbitlow = 1U; in modifier_init() 2514 pm->ngammas = 0; in modifier_init() [all …]
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_parenmatch.py | 44 pm = ParenMatch(self.editwin) 45 pm.bell = lambda: None 46 return pm 53 pm = self.get_parenmatch() 61 pm.STYLE = style 64 pm.flash_paren_event('event') 73 pm.restore_event() 78 pm.paren_closed_event('event') 89 pm = self.get_parenmatch() 92 pm.paren_closed_event('event') [all …]
|
/third_party/flutter/skia/src/pdf/ |
D | SkPDFBitmap.cpp | 101 static void do_deflated_alpha(const SkPixmap& pm, SkPDFDocument* doc, SkPDFIndirectReference ref) { in do_deflated_alpha() argument 104 if (kAlpha_8_SkColorType == pm.colorType()) { in do_deflated_alpha() 105 SkASSERT(pm.rowBytes() == (size_t)pm.width()); in do_deflated_alpha() 106 buffer.write(pm.addr8(), pm.width() * pm.height()); in do_deflated_alpha() 108 SkASSERT(pm.alphaType() == kUnpremul_SkAlphaType); in do_deflated_alpha() 109 SkASSERT(pm.colorType() == kBGRA_8888_SkColorType); in do_deflated_alpha() 110 SkASSERT(pm.rowBytes() == (size_t)pm.width() * 4); in do_deflated_alpha() 111 const uint32_t* ptr = pm.addr32(); in do_deflated_alpha() 112 const uint32_t* stop = ptr + pm.height() * pm.width(); in do_deflated_alpha() 133 pm.info().dimensions(), "DeviceGray", SkPDFIndirectReference(), in do_deflated_alpha() [all …]
|
/third_party/skia/src/pdf/ |
D | SkPDFBitmap.cpp | 102 static void do_deflated_alpha(const SkPixmap& pm, SkPDFDocument* doc, SkPDFIndirectReference ref) { in do_deflated_alpha() argument 105 if (kAlpha_8_SkColorType == pm.colorType()) { in do_deflated_alpha() 106 SkASSERT(pm.rowBytes() == (size_t)pm.width()); in do_deflated_alpha() 107 buffer.write(pm.addr8(), pm.width() * pm.height()); in do_deflated_alpha() 109 SkASSERT(pm.alphaType() == kUnpremul_SkAlphaType); in do_deflated_alpha() 110 SkASSERT(pm.colorType() == kBGRA_8888_SkColorType); in do_deflated_alpha() 111 SkASSERT(pm.rowBytes() == (size_t)pm.width() * 4); in do_deflated_alpha() 112 const uint32_t* ptr = pm.addr32(); in do_deflated_alpha() 113 const uint32_t* stop = ptr + pm.height() * pm.width(); in do_deflated_alpha() 134 pm.info().dimensions(), "DeviceGray", SkPDFIndirectReference(), in do_deflated_alpha() [all …]
|
/third_party/boost/boost/property_map/parallel/ |
D | distributed_property_map.hpp | 88 do_put(PropertyMap pm, const Key& key, const Value& value) in do_put() 92 put(pm, key, value); in do_put() 98 maybe_put_impl(PropertyMap pm, const Key& key, const Value& value, in maybe_put_impl() argument 103 put(pm, key, value); in maybe_put_impl() 108 maybe_put_impl(PropertyMap pm, const Key& key, const Value& value, in maybe_put_impl() argument 125 maybe_put_in_lvalue_pm<(!is_constant::value)>::do_put(pm, key, value); in maybe_put_impl() 135 maybe_put(PropertyMap pm, const Key& key, const Value& value) in maybe_put() argument 137 maybe_put_impl(pm, key, value, in maybe_put() 323 const StorageMap& pm) in distributed_property_map() argument 324 : data(new data_t(pg, global, pm, basic_reduce<value_type>(), false)) in distributed_property_map() [all …]
|
D | caching_property_map.hpp | 64 get(const caching_property_map<PropertyMap>& pm, const Key& key) in get() argument 65 { return get(pm.base(), key); } in get() 69 local_put(const caching_property_map<PropertyMap>& pm, const Key& key, in local_put() argument 71 { local_put(pm.base(), key, value); } in local_put() 75 cache(const caching_property_map<PropertyMap>& pm, const Key& key, in cache() argument 77 { cache(pm.base(), key, value); } in cache() 81 put(const caching_property_map<PropertyMap>& pm, const Key& key, in put() argument 83 { local_put(pm.base(), key, value); } in put() 87 make_caching_property_map(const PropertyMap& pm) in make_caching_property_map() argument 88 { return caching_property_map<PropertyMap>(pm); } in make_caching_property_map()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | lamb_next_mv_rule_test.cc | 67 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 68 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 69 optimizer->AddPassManager(pm); in TEST_F() 111 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 112 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 113 optimizer->AddPassManager(pm); in TEST_F() 154 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 155 pm->AddPass(std::make_shared<opt::LambNextMVRuleCond4>()); in TEST_F() 156 optimizer->AddPassManager(pm); in TEST_F() 197 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local [all …]
|
D | adam_apply_one_fusion_test.cc | 60 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 61 pm->AddPass(std::make_shared<opt::AdamApplyOneFusion>()); in TEST_F() 62 optimizer->AddPassManager(pm); in TEST_F() 98 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 99 pm->AddPass(std::make_shared<opt::AdamApplyOneCond1Fusion>()); in TEST_F() 100 optimizer->AddPassManager(pm); in TEST_F() 136 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 137 pm->AddPass(std::make_shared<opt::AdamApplyOneCond2Fusion>()); in TEST_F() 138 optimizer->AddPassManager(pm); in TEST_F() 174 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local [all …]
|
D | adam_apply_one_with_decay_rule_test.cc | 45 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 46 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond1>()); in TEST_F() 47 optimizer->AddPassManager(pm); in TEST_F() 66 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 67 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond2>()); in TEST_F() 68 optimizer->AddPassManager(pm); in TEST_F() 87 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 88 pm->AddPass(std::make_shared<opt::AdamApplyOneWithDecayRuleCond3>()); in TEST_F() 89 optimizer->AddPassManager(pm); in TEST_F() 108 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local [all …]
|
D | lamb_next_mv_with_decay_rule_test.cc | 68 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 69 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 70 optimizer->AddPassManager(pm); in TEST_F() 113 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 114 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 115 optimizer->AddPassManager(pm); in TEST_F() 158 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 159 pm->AddPass(std::make_shared<opt::LambNextMVWithDecayRuleCond4>()); in TEST_F() 160 optimizer->AddPassManager(pm); in TEST_F() 203 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local [all …]
|
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/ |
D | gpu_device_context.cc | 243 auto pm = std::make_shared<opt::PassManager>(); in OptimizeGraphWithDeviceInfo() local 244 pm->AddPass(std::make_shared<opt::BatchNormReluFusion>()); in OptimizeGraphWithDeviceInfo() 245 pm->AddPass(std::make_shared<opt::BatchNormReluGradFusion>()); in OptimizeGraphWithDeviceInfo() 246 pm->AddPass(std::make_shared<opt::BatchNormAddReluFusion>()); in OptimizeGraphWithDeviceInfo() 247 pm->AddPass(std::make_shared<opt::PostBatchNormAddReluFusion>()); in OptimizeGraphWithDeviceInfo() 248 pm->AddPass(std::make_shared<opt::BatchNormAddReluGradFusion>()); in OptimizeGraphWithDeviceInfo() 249 pm->AddPass(std::make_shared<opt::InsertFormatTransformOp>()); in OptimizeGraphWithDeviceInfo() 250 pm->AddPass(std::make_shared<opt::RemoveFormatTransformPair>()); in OptimizeGraphWithDeviceInfo() 251 pm->AddPass(std::make_shared<opt::RemoveRedundantFormatTransform>()); in OptimizeGraphWithDeviceInfo() 254 pm->AddPass(std::make_shared<opt::OptimizeUpdateState>()); in OptimizeGraphWithDeviceInfo() [all …]
|
/third_party/gettext/gettext-tools/tests/ |
D | format-perl-mixed-1 | 8 cat <<\EOF > f-pm-1.data 35 cat <<EOF > f-pm-1-$n.in 38 ${XGETTEXT} -L perl --omit-header --no-location -o f-pm-1-$n.po f-pm-1-$n.in || Exit 1 39 test -f f-pm-1-$n.po || Exit 1 43 if sed 1q < f-pm-1-$n.po | LC_ALL=C tr -d '\r' | grep '^'"${formats}"'$' > /dev/null; then 50 if sed 1q < f-pm-1-$n.po | grep '^msgid' > /dev/null; then 58 cat f-pm-1-$n.in 1>&2 60 cat f-pm-1-$n.po 1>&2 63 done < f-pm-1.data
|
/third_party/mindspore/tests/ut/cpp/pre_activate/pass/ |
D | optimize_dependence_test.cc | 43 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 44 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F() 45 optimizer->AddPassManager(pm); in TEST_F() 63 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 64 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F() 65 optimizer->AddPassManager(pm); in TEST_F() 84 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 85 pm->AddPass(std::make_shared<opt::OptimizeDependence>()); in TEST_F() 86 optimizer->AddPassManager(pm); in TEST_F() 105 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local [all …]
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/enhancer/ |
D | getnext_tensor_move_elimination_test.cc | 42 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 44 pm->AddPass(pass); in TEST_F() 45 optimizer->AddPassManager(pm); in TEST_F() 57 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 59 pm->AddPass(pass); in TEST_F() 60 optimizer->AddPassManager(pm); in TEST_F() 72 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 74 pm->AddPass(pass); in TEST_F() 75 optimizer->AddPassManager(pm); in TEST_F() 87 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local [all …]
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fission/ |
D | batch_norm_grad_infer_fission_test.cc | 45 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 46 pm->AddPass(std::make_shared<opt::BatchNormGradUnifyMindIR>()); in TEST_F() 47 pm->AddPass(std::make_shared<opt::BatchNormGradInferFission>()); in TEST_F() 48 optimizer->AddPassManager(pm); in TEST_F() 67 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 68 pm->AddPass(std::make_shared<opt::BatchNormGradUnifyMindIR>()); in TEST_F() 69 pm->AddPass(std::make_shared<opt::BatchNormGradInferFission>()); in TEST_F() 70 optimizer->AddPassManager(pm); in TEST_F() 87 auto pm = std::make_shared<opt::PassManager>(); in TEST_F() local 88 pm->AddPass(std::make_shared<opt::BatchNormGradUnifyMindIR>()); in TEST_F() [all …]
|
/third_party/boost/boost/property_map/ |
D | transform_value_property_map.hpp | 42 transform_value_property_map(Func f, PM pm) : f(f), pm(pm) {} in transform_value_property_map() argument 45 return f(get(pm, k)); in operator []() 50 PM pm; member in boost::transform_value_property_map 55 make_transform_value_property_map(const Func& f, const PM& pm) { in make_transform_value_property_map() argument 56 return transform_value_property_map<Func, PM>(f, pm); in make_transform_value_property_map() 61 make_transform_value_property_map(const Func& f, const PM& pm) { in make_transform_value_property_map() argument 62 return transform_value_property_map<Func, PM, Ret>(f, pm); in make_transform_value_property_map()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_patternmodifier.cpp | 69 auto pm = new AdoptingModifierStore(); in createImmutable() local 70 if (pm == nullptr) { in createImmutable() 79 pm->adoptModifier(SIGNUM_POS, plural, createConstantModifier(status)); in createImmutable() 81 pm->adoptModifier(SIGNUM_NEG_ZERO, plural, createConstantModifier(status)); in createImmutable() 83 pm->adoptModifier(SIGNUM_POS_ZERO, plural, createConstantModifier(status)); in createImmutable() 85 pm->adoptModifier(SIGNUM_NEG, plural, createConstantModifier(status)); in createImmutable() 88 delete pm; in createImmutable() 91 return new ImmutablePatternModifier(pm, fRules); // adopts pm in createImmutable() 95 pm->adoptModifierWithoutPlural(SIGNUM_POS, createConstantModifier(status)); in createImmutable() 97 pm->adoptModifierWithoutPlural(SIGNUM_NEG_ZERO, createConstantModifier(status)); in createImmutable() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | number_patternmodifier.cpp | 69 auto pm = new AdoptingModifierStore(); in createImmutable() local 70 if (pm == nullptr) { in createImmutable() 79 pm->adoptModifier(SIGNUM_POS, plural, createConstantModifier(status)); in createImmutable() 81 pm->adoptModifier(SIGNUM_NEG_ZERO, plural, createConstantModifier(status)); in createImmutable() 83 pm->adoptModifier(SIGNUM_POS_ZERO, plural, createConstantModifier(status)); in createImmutable() 85 pm->adoptModifier(SIGNUM_NEG, plural, createConstantModifier(status)); in createImmutable() 88 delete pm; in createImmutable() 91 return new ImmutablePatternModifier(pm, fRules); // adopts pm in createImmutable() 95 pm->adoptModifierWithoutPlural(SIGNUM_POS, createConstantModifier(status)); in createImmutable() 97 pm->adoptModifierWithoutPlural(SIGNUM_NEG_ZERO, createConstantModifier(status)); in createImmutable() [all …]
|
/third_party/flutter/skia/tools/sk_app/unix/ |
D | RasterWindowContext_unix.cpp | 64 SkPixmap pm; in swapBuffers() local 65 if (!fBackbufferSurface->peekPixels(&pm)) { in swapBuffers() 68 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in swapBuffers() 71 image.width = pm.width(); in swapBuffers() 72 image.height = pm.height(); in swapBuffers() 74 image.data = (char*) pm.addr(); in swapBuffers() 80 image.bytes_per_line = pm.rowBytes() - pm.width() * pm.info().bytesPerPixel(); in swapBuffers() 85 XPutImage(fDisplay, fWindow, fGC, &image, 0, 0, 0, 0, pm.width(), pm.height()); in swapBuffers()
|
/third_party/skia/tools/sk_app/unix/ |
D | RasterWindowContext_unix.cpp | 64 SkPixmap pm; in swapBuffers() local 65 if (!fBackbufferSurface->peekPixels(&pm)) { in swapBuffers() 68 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in swapBuffers() 71 image.width = pm.width(); in swapBuffers() 72 image.height = pm.height(); in swapBuffers() 74 image.data = (char*) pm.addr(); in swapBuffers() 80 image.bytes_per_line = pm.rowBytes() - pm.width() * pm.info().bytesPerPixel(); in swapBuffers() 85 XPutImage(fDisplay, fWindow, fGC, &image, 0, 0, 0, 0, pm.width(), pm.height()); in swapBuffers()
|