Home
last modified time | relevance | path

Searched refs:op_ptr (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/tests/ut/cpp/parallel/tensor_layout/
Dtensor_redistribution_test.cc89 std::shared_ptr<std::pair<OperatorVector, OutPutInfoVector>> op_ptr; in TEST_F() local
90 op_ptr = tensor_redistribution.InferTensorRedistributionOperatorList(); in TEST_F()
91 ASSERT_TRUE(op_ptr != nullptr); in TEST_F()
92 ASSERT_EQ(op_ptr->first.size(), 7); in TEST_F()
93 ASSERT_EQ(op_ptr->second.size(), 7); in TEST_F()
96 for (auto iter : op_ptr->first) { in TEST_F()
142 std::shared_ptr<std::pair<OperatorVector, OutPutInfoVector>> op_ptr; in TEST_F() local
143 op_ptr = tensor_redistribution.InferTensorRedistributionOperatorList(); in TEST_F()
144 ASSERT_TRUE(op_ptr != nullptr); in TEST_F()
145 ASSERT_EQ(op_ptr->first.size(), 2); in TEST_F()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/model/
Dlite_graph.cc97 PrimOpPtr op_ptr = CreateOp(op, node_name); in Emit() local
98 auto baseinfo = op_ptr->Infer(inputs, attrs); in Emit()
99 op_ptr->SetInputs(inputs); in Emit()
100 op_ptr->SetAttrs(attrs); in Emit()
101 op_ptr->SetBaseInfo(baseinfo); in Emit()
102 return graph_->Add(op_ptr); in Emit()
108 PrimOpPtr op_ptr = CreateOp(op, node_name); in Op() local
109 op_ptr->SetInputs(inputs); in Op()
110 op_ptr->SetAttrs(attrs); in Op()
111 op_ptr->SetBaseInfo(baseinfo); in Op()
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc_dump.cpp50 if ((n.bc.op_ptr->flags & CF_ALU) && n.bc.is_alu_extended()) { in visit()
59 if (n.bc.op_ptr->flags & CF_CLAUSE) { in visit()
119 s << n.bc.op_ptr->name; in dump()
121 if (n.bc.op_ptr->flags & CF_EXP) { in dump()
141 } else if (n.bc.op_ptr->flags & CF_MEM) { in dump()
151 if ((n.bc.op_ptr->flags & CF_RAT) && (n.bc.type & 1)) { in dump()
154 if ((n.bc.op_ptr->flags & CF_MEM) && (n.bc.type & 1)) { in dump()
167 if (n.bc.op_ptr->flags & CF_CLAUSE) { in dump()
173 if (n.bc.op_ptr->flags & CF_ALU) { in dump()
192 if (n.bc.count && (n.bc.op_ptr->flags & CF_EMIT)) in dump()
[all …]
Dsb_peephole.cpp71 if (a->bc.op_ptr->flags & AF_LDS) { in run_on()
78 } else if (a->bc.op_ptr->flags & in run_on()
94 unsigned aflags = a->bc.op_ptr->flags; in optimize_cc_op()
115 unsigned flags = a->bc.op_ptr->flags; in optimize_cc_op2()
159 cc = bop.n->bc.op_ptr->flags & AF_CC_MASK; in optimize_cc_op2()
212 unsigned flags = a->bc.op_ptr->flags; in optimize_CNDcc_op()
248 unsigned dflags = d->bc.op_ptr->flags; in optimize_CNDcc_op()
327 if (dn->bc.op_ptr->flags & AF_SET) { in get_bool_flt_to_int_source()
344 if (dn->bc.op_ptr->flags & AF_SET) { in get_bool_op_info()
347 if (dn->bc.op_ptr->flags & AF_DX10) in get_bool_op_info()
Dsb_dump.cpp124 dump_op(n, n.bc.op_ptr->name); in visit()
126 if (n.bc.op_ptr->flags & CF_BRANCH) { in visit()
171 dump_op(n, n.op_ptr()->name); in visit()
192 dump_op(n, n.bc.op_ptr->name); in visit()
348 if (c->bc.op_ptr->flags & CF_EXP) { in dump_op()
352 } else if (c->bc.op_ptr->flags & (CF_MEM)) { in dump_op()
357 if (!(c->bc.op_ptr->flags & CF_EMIT)) { in dump_op()
416 sblog << n->bc.op_ptr->name; in dump_alu()
473 dump_op(*n, static_cast<fetch_node*>(n)->bc.op_ptr->name); in dump_op()
480 dump_op(*n, static_cast<cf_node*>(n)->bc.op_ptr->name); in dump_op()
[all …]
Dsb_bc.h442 const cf_op_info * op_ptr; member
480 void set_op(unsigned op) { this->op = op; op_ptr = r600_isa_cf(op); } in set_op()
483 assert(op_ptr->flags & CF_ALU); in is_alu_extended()
510 const alu_op_info * op_ptr; member
539 op_ptr = r600_isa_alu(op); in set_op()
542 op_ptr = nullptr; in clear()
569 const fetch_op_info * op_ptr; member
631 void set_op(unsigned op) { this->op = op; op_ptr = r600_isa_fetch(op); } in set_op()
751 unsigned alu_slots(const alu_op_info * op_ptr) { in alu_slots() argument
752 return op_ptr->slots[isa->hw_class]; in alu_slots()
[all …]
Dsb_bc_builder.cpp49 cf_op_flags flags = (cf_op_flags)cf->bc.op_ptr->flags; in build()
68 cf_op_flags flags = (cf_op_flags)cf->bc.op_ptr->flags; in build()
132 if (f->bc.op_ptr->flags & FF_GDS) in build_fetch_clause()
134 else if (f->bc.op_ptr->flags & FF_MEM) in build_fetch_clause()
136 else if (f->bc.op_ptr->flags & FF_VTX) in build_fetch_clause()
147 const cf_op_info *cfop = bc.op_ptr; in build_cf()
264 const cf_op_info *cfop = bc.op_ptr; in build_cf_exp()
376 const alu_op_info *aop = bc.op_ptr; in build_alu()
378 if (n->bc.op_ptr->flags & AF_LDS) { in build_alu()
400 .LDS_OP((bc.op_ptr->opcode[1] >> 8) & 0xff) in build_alu()
[all …]
Dsb_ir.cpp324 unsigned flags = c->bc.op_ptr->flags; in update_packed_items()
394 return (a->bc.op_ptr->flags & AF_MOVA); in is_mova()
401 return (a->bc.op_ptr->flags & AF_ANY_PRED); in is_pred_set()
407 return c->bc.op_ptr->flags; in cf_op_flags()
413 return c->bc.op_ptr->flags; in alu_op_flags()
419 return c->bc.op_ptr->flags; in fetch_op_flags()
460 if (a->bc.op_ptr->flags & AF_KILL) in collect_stats()
528 if (!(bc.op_ptr->flags & AF_INTERP)) in interp_param()
531 if (bc.op_ptr->src_count == 2) { in interp_param()
Dsb_if_conversion.cpp68 unsigned flags = a->bc.op_ptr->flags; in convert_kill_instructions()
247 unsigned cc = newpredset->bc.op_ptr->flags & AF_CC_MASK; in run_on()
248 unsigned cmptype = newpredset->bc.op_ptr->flags & AF_CMP_TYPE_MASK; in run_on()
Dsb_bc_decoder.cpp47 if (bc.op_ptr->flags & CF_EXP) { in decode_cf()
49 } else if (bc.op_ptr->flags & CF_MEM) { in decode_cf()
235 if (!(bc.op_ptr->flags & CF_RAT)) { in decode_cf_mem()
335 bc.op_ptr = &r600_alu_op_table[k]; in decode_alu()
400 bc.slot_flags = (alu_op_flags)bc.op_ptr->slots[ctx.isa->hw_class]; in decode_alu()
430 if (bc.op_ptr->flags & FF_MEM) in decode_fetch()
433 if (bc.op_ptr->flags & FF_GDS) in decode_fetch()
436 if (bc.op_ptr->flags & FF_VTX) in decode_fetch()
Dsb_bc_parser.cpp223 cf_op_flags flags = (cf_op_flags)cf->bc.op_ptr->flags; in decode_cf()
304 for (int k = 0; k < n->bc.op_ptr->src_count; ++k) { in decode_alu_group()
383 unsigned src_count = n->bc.op_ptr->src_count; in prepare_alu_group()
393 unsigned flags = n->bc.op_ptr->flags; in prepare_alu_group()
461 } else if ((n->bc.op_ptr->src_count == 3 || n->bc.write_mask) && !(flags & AF_LDS)) { in prepare_alu_group()
632 if (cf->bc.op_ptr->flags & FF_GDS) in decode_fetch_clause()
658 unsigned flags = n->bc.op_ptr->flags; in prepare_fetch_clause()
758 unsigned flags = c->bc.op_ptr->flags; in prepare_ir()
Dsb_expr.cpp195 unsigned flags = n.bc.op_ptr->flags; in fold_setcc()
294 switch (n.bc.op_ptr->src_count) { in fold()
364 unsigned src_count = b0.op_ptr->src_count; in ops_equal()
389 if (n.bc.op_ptr->flags & AF_LDS) in fold_alu_op1()
630 if (n->bc.op_ptr->src_count != 2) in fold_assoc()
743 unsigned flags = n.bc.op_ptr->flags; in fold_alu_op2()
945 if (!sh.safe_math && (n.bc.op_ptr->flags & AF_M_ASSOC)) { in fold_alu_op3()
982 unsigned flags = n.bc.op_ptr->flags; in fold_alu_op3()
992 bool cond = evaluate_condition(n.bc.op_ptr->flags & (AF_CC_MASK | in fold_alu_op3()
1311 unsigned flags = a->bc.op_ptr->flags; in convert_predset_to_set()
Dsb_bc_finalize.cpp98 if (!ctx.is_cayman() && last_cf->bc.op_ptr->flags & CF_ALU) { in run()
314 …assert((n->bc.op_ptr->flags & AF_MOVA) || d->is_geometry_emit() || d->is_lds_oq() || d->is_lds_acc… in finalize_alu_group()
324 if (!(n->bc.op_ptr->flags & AF_MOVA && ctx.is_cayman())) in finalize_alu_group()
339 if (n->bc.op_ptr->flags & AF_PRED) { in finalize_alu_group()
586 unsigned flags = f->bc.op_ptr->flags; in finalize_fetch()
711 unsigned flags = c->bc.op_ptr->flags; in finalize_cf()
Dsb_sched.cpp146 unsigned nsrc = n->bc.op_ptr->src_count, i; in unreserve()
231 unsigned nsrc = n->bc.op_ptr->src_count, i; in unreserve()
259 unsigned nsrc = n->bc.op_ptr->src_count, i; in try_reserve()
440 unsigned nsrc = n->bc.op_ptr->src_count; in try_reserve()
447 unsigned flags = n->bc.op_ptr->flags; in try_reserve()
707 unsigned flags = n->bc.op_ptr->flags; in update_flags()
1680 …assert((a->bc.op_ptr->flags & AF_MOVA) || d->is_geometry_emit() || d->is_lds_oq() || d->is_lds_acc… in try_add_instruction()
1684 unsigned allowed_slots = ctx.alu_slots_mask(a->bc.op_ptr); in try_add_instruction()
1697 if (a->bc.op_ptr->flags & AF_MOVA) { in try_add_instruction()
Dsb_dce_cleanup.cpp72 (n.bc.op_ptr->flags & (CF_CLAUSE | CF_BRANCH | CF_LOOP))) in visit()
Dsb_ssa_builder.cpp206 if ((n.bc.op_ptr->flags & AF_INTERP) || n.bc.op == ALU_OP2_CUBE) in visit()
223 bool repl = (n.op_ptr()->flags & AF_REPL) || in visit()
Dsb_gvn.cpp164 if (a->bc.op_ptr->src_count == 3 && !(a->bc.slot_flags & AF_V)) { in process_alu_src_constants()
Dsb_ir.h1025 return ((bc.op_ptr->flags & AF_INTERP) && in forced_bank_swizzle()
1045 const alu_op_info* op_ptr() { in op_ptr() function
1046 return static_cast<alu_node*>(first)->bc.op_ptr; in op_ptr()
1071 bool uses_grad() { return bc.op_ptr->flags & FF_USEGRAD; } in uses_grad()
Dsb_shader.cpp599 if (ctx.is_r600() && (f->bc.op_ptr->flags & FF_VTX)) in get_queue_id()
601 if (f->bc.op_ptr->flags & FF_GDS) in get_queue_id()
Dsb_gcm.cpp644 if (a->bc.op_ptr->flags & AF_PRED && a->dst[2]) { in add_ready()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Darithmetic_simplify.cc624 auto op_ptr = gb.Emit("BroadcastTo", {outputs[i]}, {{"shape", MakeValue(new_shape)}}); in ReorganizeEmptyGraph() local
625 litegraph->output()->SetInput(i, op_ptr); in ReorganizeEmptyGraph()
628 auto op_ptr = gb.Emit("Reshape", {outputs[i]}, {{"shape", MakeValue(outputs[i]->shape)}}); in ReorganizeEmptyGraph() local
629 litegraph->output()->SetInput(i, op_ptr); in ReorganizeEmptyGraph()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/
Dgraph_costmodel.cc733 auto *op_ptr = pair.first; in CheckEdgeElimination() local
739 if (edge->next_operator().get() == op_ptr) { in CheckEdgeElimination()