| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/frontend/optimizer/irpass/ |
| D | taylor_eliminate.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 prim::kPrimAdd->name(), prim::kPrimSub->name(), prim::kPrimRealDiv->name(), 33 prim::kPrimMul->name(), prim::kPrimSin->name(), prim::kPrimCos->name(), 34 prim::kPrimTan->name(), prim::kPrimExp->name(), prim::kPrimLog->name()}; 36 …::HashSet<std::string> taylor_exception_ops{prim::kPrimReturn->name(), prim::kPrimMakeTuple->name(… 37 … prim::kPrimTupleGetItem->name(), prim::kPrimCast->name()}; 43 // Set a child scope named "grad'PrimitiveName'" for the taylor rule function, in GetTaylorRule() 48 …auto scope = std::make_shared<Scope>(gradients_scope + ScopeManager::GetInstance().GetCurrentScope… in GetTaylorRule() local 49 grad_op_child_scope_prefix + prim->name()); in GetTaylorRule() 50 ScopeGuard scope_guard(scope); in GetTaylorRule() [all …]
|
| D | vmap_eliminate.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 40 constexpr int kInvalidAxisSize = -1; 50 …re::HashSet<std::string> throughtout_op{prim::kPrimMakeTuple->name(), prim::kPrimMakeList->name(… 51 … prim::kPrimDepend->name(), prim::kPrimReturn->name(), 52 … prim::kPrimUpdateState->name(), prim::kPrimStopGradient->name()}; 54 auto input_abs = input->abstract(); in BuildBindInAxisSeqInput() 59 if (in_axis->isa<ValueSequence>()) { in BuildBindInAxisSeqInput() 61 if (input_abs_elements->size() != in_axis_value_sequence->size()) { in BuildBindInAxisSeqInput() 63 … << input_abs_elements->size() << ", in_axis length: " << in_axis_value_sequence->size() in BuildBindInAxisSeqInput() 68 if (input_abs->isa<abstract::AbstractList>()) { in BuildBindInAxisSeqInput() [all …]
|
| D | updatestate_eliminate.cc | 2 * Copyright 2020-2024 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 49 auto fg = node->func_graph(); in GetManager() 53 return fg->manager(); in GetManager() 62 auto &node_users = mgr->node_users(); in OnlyUsedByOneNode() 67 auto &partial_users = iter->second; in OnlyUsedByOneNode() 77 auto &node_users = mgr->node_users(); in OnlyUsedByTwoNode() 83 auto &partial_users = iter->second; in OnlyUsedByTwoNode() 95 // If the last input is a monad, means the attach node has side-effect and in CheckHasMonadInput() 97 if (cnode->size() > 1 && HasAbstractMonad(cnode->inputs().back())) { in CheckHasMonadInput() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/frontend/optimizer/ |
| D | flash_sp.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 65 std::shared_ptr<OperatorInfo> operator_info = fa_score_node->user_data<parallel::OperatorInfo>(); in FlashSPInfo() 70 flashsp_num_ = flash_score_info_ptr->s1_split_num(); in FlashSPInfo() 71 dev_rank_id_ = g_device_manager->global_rank(); in FlashSPInfo() 73 auto rankList = flash_score_info_ptr->GetSPRankList(); in FlashSPInfo() 74 size_t pos = -1; in FlashSPInfo() 81 recv_rank_id_ = rankList[(pos + rankList.size() - 1) % rankList.size()]; in FlashSPInfo() 87 std::vector<CNodePtr> FindFWFlashAttentionScore(const FuncGraphManagerPtr &manager, in FindFWFlashAttentionScore() argument 93 result.push_back(node->cast<CNodePtr>()); in FindFWFlashAttentionScore() 101 …nfNodePtr> reshape_inputs = {NewValueNode(std::make_shared<Primitive>(prim::kPrimReshape->name())), in NewReshapeNode() [all …]
|
| D | grouped_pairwise_exchange_alltoall.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 48 auto input_node = marked_node->input(1); in FindFrontAlltoall() 49 auto input_cnode = input_node->cast<CNodePtr>(); in FindFrontAlltoall() 63 if (cnode->HasAttr("gpea_label")) { in FindFrontAlltoall() 64 visited_marked_nodes->push_back(cnode); in FindFrontAlltoall() 67 auto input = cnode->input(1); in FindFrontAlltoall() 69 if (!input->isa<CNode>()) { in FindFrontAlltoall() 72 auto in_cnode = input->cast<CNodePtr>(); in FindFrontAlltoall() 78 MS_LOG(WARNING) << "Can't find alltoall node before " << GetCNodePrimitive(marked_node)->name(); in FindFrontAlltoall() 83 CNodePtr FindBackAlltoall(const FuncGraphManagerPtr &manager, const CNodePtr &marked_node, in FindBackAlltoall() argument [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/frontend/parallel/ops_info/ |
| D | dropout_do_mask_info.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 44 Strategies stra = strategy->GetInputDim(); in CheckStrategy() 72 Strategies strategy = strategy_->GetInputDim(); in InferDevMatrixShape() 92 tensor_map_index.push_back(SizeToLong(size - i - 1)); in InferTensorMap() 122 Dimensions strategy(inputs_shape_[0].size() - 1, 1); in GenerateBatchStrategies() 129 size_t cnode_non_monad_size = cnode->size(); in GetNonMonadInputSize() 130 for (auto &input : cnode->inputs()) { in GetNonMonadInputSize() 132 cnode_non_monad_size--; in GetNonMonadInputSize() 140 if (cnode->size() != DROPOUT_DO_MASK_CNODE_INPUT_SIZE) { in GetDropoutGenMaskPrim() 144 AnfNodePtr dropout_gen_mask = cnode->input(DROPOUT_GEN_MASK_INDEX); in GetDropoutGenMaskPrim() [all …]
|
| /third_party/spirv-tools/test/opt/ |
| D | debug_info_manager_test.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 23 #include "spirv-tools/libspirv.hpp" 85 DebugInfoManager manager(context.get()); local 87 EXPECT_EQ(manager.GetDebugInlinedAt(150), nullptr); 88 EXPECT_EQ(manager.GetDebugInlinedAt(31), nullptr); 89 EXPECT_EQ(manager.GetDebugInlinedAt(22), nullptr); 91 auto* inst = manager.GetDebugInlinedAt(100); 92 EXPECT_EQ(inst->GetSingleWordOperand(kDebugInlinedAtOperandLineIndex), 7); 93 EXPECT_EQ(inst->GetSingleWordOperand(kDebugInlinedAtOperandScopeIndex), 22); 138 DebugScope scope(22U, 0U); local [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/test/opt/ |
| D | debug_info_manager_test.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 26 #include "spirv-tools/libspirv.hpp" 88 DebugInfoManager manager(context.get()); local 90 EXPECT_EQ(manager.GetDebugInlinedAt(150), nullptr); 91 EXPECT_EQ(manager.GetDebugInlinedAt(31), nullptr); 92 EXPECT_EQ(manager.GetDebugInlinedAt(22), nullptr); 94 auto* inst = manager.GetDebugInlinedAt(100); 95 EXPECT_EQ(inst->GetSingleWordOperand(kDebugInlinedAtOperandLineIndex), 7); 96 EXPECT_EQ(inst->GetSingleWordOperand(kDebugInlinedAtOperandScopeIndex), 22); 141 DebugScope scope(22U, 0U); local [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
| D | debug_info_manager_test.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 26 #include "spirv-tools/libspirv.hpp" 88 DebugInfoManager manager(context.get()); local 90 EXPECT_EQ(manager.GetDebugInlinedAt(150), nullptr); 91 EXPECT_EQ(manager.GetDebugInlinedAt(31), nullptr); 92 EXPECT_EQ(manager.GetDebugInlinedAt(22), nullptr); 94 auto* inst = manager.GetDebugInlinedAt(100); 95 EXPECT_EQ(inst->GetSingleWordOperand(kDebugInlinedAtOperandLineIndex), 7); 96 EXPECT_EQ(inst->GetSingleWordOperand(kDebugInlinedAtOperandScopeIndex), 22); 141 DebugScope scope(22U, 0U); local [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/frontend/parallel/ |
| D | step_parallel.cc | 2 * Copyright 2019-2024 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 87 auto prim_anf_node = new_node_input[0]->cast<ValueNodePtr>(); in SetAllReduceRecomputeFlag() 90 auto attrs = prim->attrs(); in SetAllReduceRecomputeFlag() 92 auto anf_node = node->input(0)->cast<ValueNodePtr>(); in SetAllReduceRecomputeFlag() 95 auto node_attrs = prim_node->attrs(); in SetAllReduceRecomputeFlag() 98 (void)prim->SetAttrs(attrs); in SetAllReduceRecomputeFlag() 99 …MS_LOG(INFO) << "Do not recompute the forward communication operator of " << prim_node->ToString(); in SetAllReduceRecomputeFlag() 103 // Replace pre_node with pre_node->op 108 FuncGraphManagerPtr manager = func_graph->manager(); in ReplaceNode() local [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/optimizer/ge/ |
| D | unfold_maketuple.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 37 auto manager = func_graph->manager(); in ReplaceNodeWithNewMakeTupleNode() local 38 MS_EXCEPTION_IF_NULL(manager); in ReplaceNodeWithNewMakeTupleNode() 39 auto iter = manager->node_users().find(node); in ReplaceNodeWithNewMakeTupleNode() 40 if (iter == manager->node_users().end()) { in ReplaceNodeWithNewMakeTupleNode() 43 for (const auto &used_node_info : iter->second) { in ReplaceNodeWithNewMakeTupleNode() 47 if (!used_node->isa<CNode>()) { in ReplaceNodeWithNewMakeTupleNode() 50 utils::cast<CNodePtr>(used_node)->set_input(IntToSize(used_index), new_maketuple_node); in ReplaceNodeWithNewMakeTupleNode() 56 auto abs = input->abstract(); in IsTupleInput() 58 if (abs->isa<abstract::AbstractTuple>()) { in IsTupleInput() [all …]
|
| D | unfold_nested_output.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 37 auto abs = node->abstract(); in IsNestedTuple() 38 if (!abs || !abs->isa<abstract::AbstractTuple>()) { in IsNestedTuple() 41 auto abs_tuple = abs->cast<abstract::AbstractTuplePtr>(); in IsNestedTuple() 43 for (const auto element : abs_tuple->elements()) { in IsNestedTuple() 45 if (element->isa<abstract::AbstractTuple>()) { in IsNestedTuple() 54 auto tuple_elements = abs_tuple->elements(); in GetUnfoldElements() 58 if (tuple_element->isa<abstract::AbstractTuple>()) { in GetUnfoldElements() 59 auto abs_tuple_1 = tuple_element->cast<abstract::AbstractTuplePtr>(); in GetUnfoldElements() 65 unfold_abs_elements->insert(unfold_abs_elements->end(), elements.begin(), elements.end()); in GetUnfoldElements() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fusion/ |
| D | square_sum_fusion.cc | 2 * Copyright 2020-2023 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 38 auto sum = node->cast<CNodePtr>(); in GetPrevNodes() 41 auto square_anf = sum->input(1); in GetPrevNodes() 43 auto square = square_anf->cast<CNodePtr>(); in GetPrevNodes() 58 std::vector<AnfNodePtr> square_sumv1_inputs = {NewValueNode(prim), square->input(1)}; in GenerateSquareSumV1() 63 square_sumv1->set_kernel_info(kernel_info); in GenerateSquareSumV1() 67 square_sumv1->set_scope(sum->scope()); in GenerateSquareSumV1() 70 …auto names = MakeValue<std::vector<std::string>>({square->fullname_with_scope(), sum->fullname_wit… in GenerateSquareSumV1() 83 std::vector<AnfNodePtr> square_sumv2_inputs = {NewValueNode(prim), square->input(1)}; in GenerateSquareSumV2() [all …]
|
| /third_party/skia/m133/src/gpu/graphite/ |
| D | ScratchResourceManager.h | 4 * Use of this source code is governed by a BSD-style license that can be 45 (*count)--; in decrement() 67 * the manager maintains a stack that corresponds with the depth-first traversal of the tasks 93 // - ScratchBuffer uses RAII to return the resource; ScratchResourceManager could adopt this 96 // - ScratchResourceManager is currently only available in snap(), but DrawBufferManager needs 99 // Alternatively, ScratchResourceManager could have the same lifetime as the buffer manager. 101 // Mark the resource as available for reuse. Must have been previously returned by this manager. 107 // added to the root task list, or explicitly when appending child tasks). The depth-first 112 // Each recursion in the depth-first traversal of the task graph pushes the stack. Going up 114 // listener that is triggered when either its scope is popped off or a consuming task that [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fission/ |
| D | batch_norm_bert_fission.cc | 2 * Copyright 2020-2023 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 38 auto manager = func_graph->manager(); in GetBatchNormOutputs() local 39 MS_EXCEPTION_IF_NULL(manager); in GetBatchNormOutputs() 40 if (manager->node_users().find(bn) == manager->node_users().end()) { in GetBatchNormOutputs() 44 for (const auto &node_index : manager->node_users()[bn]) { in GetBatchNormOutputs() 50 auto tuple_getiterm_cnode = output->cast<CNodePtr>(); in GetBatchNormOutputs() 52 auto index_node = tuple_getiterm_cnode->input(kInputNodeOutputIndexInTupleGetItem); in GetBatchNormOutputs() 54 auto value_node = index_node->cast<ValueNodePtr>(); in GetBatchNormOutputs() 56 auto index = GetValue<int64_t>(value_node->value()); in GetBatchNormOutputs() [all …]
|
| D | batch_norm_grad_infer_fission.cc | 2 * Copyright 2020-2023 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 36 auto manager = func_graph->manager(); in CheckOutputsIndex() local 37 MS_EXCEPTION_IF_NULL(manager); in CheckOutputsIndex() 38 if (manager->node_users().find(node) == manager->node_users().end()) { in CheckOutputsIndex() 39 MS_LOG(DEBUG) << "The node " << node->DebugString() << " should have some outputs"; in CheckOutputsIndex() 42 for (const auto &node_index : manager->node_users()[node]) { in CheckOutputsIndex() 48 auto tuple_getiterm_cnode = output->cast<CNodePtr>(); in CheckOutputsIndex() 50 auto index_node = tuple_getiterm_cnode->input(kInputNodeOutputIndexInTupleGetItem); in CheckOutputsIndex() 52 auto value_node = index_node->cast<ValueNodePtr>(); in CheckOutputsIndex() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/optimizer/ge/hcom/ |
| D | insert_depend_for_all_gather_ge.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 35 auto manager = graph->manager(); in ReplaceLoadToTensorMove() local 36 MS_EXCEPTION_IF_NULL(manager); in ReplaceLoadToTensorMove() 37 if (manager->node_users()[load_cnode].size() == 1) { in ReplaceLoadToTensorMove() 40 …std::vector<AnfNodePtr> inputs = {NewValueNode(prim::kPrimTensorMove), load_cnode->input(kIndex1)}; in ReplaceLoadToTensorMove() 41 auto tensor_move = graph->NewCNode(inputs); in ReplaceLoadToTensorMove() 42 tensor_move->set_abstract(load_cnode->abstract()); in ReplaceLoadToTensorMove() 43 tensor_move->set_scope(load_cnode->scope()); in ReplaceLoadToTensorMove() 44 manager->Replace(load_cnode, tensor_move); in ReplaceLoadToTensorMove() 54 if (!node_queue_end->isa<CNode>()) { in InputNodeWithFilter() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/backend/common/pass/ |
| D | convert_unused_tuple_para_to_make_tuple.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 for (auto &input : kernel_graph->inputs()) { in Run() 34 auto manager = func_graph->manager(); in Run() local 35 MS_EXCEPTION_IF_NULL(manager); in Run() 36 if (manager->node_users().find(parameter) != manager->node_users().end()) { in Run() 39 if (kernel_graph->FindTupleParameterToMakeTupleMap(parameter) != nullptr) { in Run() 42 auto make_tuple = kernel_graph->TransTupleToMakeTuple(parameter); in Run() 43 make_tuple->set_scope(parameter->scope()); in Run() 44 kernel_graph->InsertTupleParameterToMakeTupleMap(parameter, make_tuple); in Run() 46 kernel_graph->ReplaceGraphInput(parameter, make_tuple); in Run()
|
| /third_party/grpc/tools/distrib/python/xds_protos/envoy/service/route/v3/ |
| D | srds_pb2_grpc.py | 2 """Client and server classes corresponding to protobuf-defined services.""" 9 """[#protodoc-title: SRDS] 15 scope" containing a mapping that allows the HTTP connection manager to 45 """[#protodoc-title: SRDS] 51 scope" containing a mapping that allows the HTTP connection manager to 101 """[#protodoc-title: SRDS] 107 scope" containing a mapping that allows the HTTP connection manager to
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/optimizer/format_type/ |
| D | insert_cast.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 auto manager = func_graph->manager(); in InsertCastForMultipleOutput() local 33 MS_EXCEPTION_IF_NULL(manager); in InsertCastForMultipleOutput() 34 auto update_states = common::AnfAlgo::GetUpdateStateUsers(manager, orig_cnode); in InsertCastForMultipleOutput() 36 manager->SetEdge(update_state.first, update_state.second, cnode); in InsertCastForMultipleOutput() 38 if (manager->node_users()[orig_cnode].empty()) { in InsertCastForMultipleOutput() 44 auto kernel_graph = func_graph->cast<KernelGraphPtr>(); in InsertCastForMultipleOutput() 53 idx->set_abstract(std::make_shared<abstract::AbstractScalar>(imm)); in InsertCastForMultipleOutput() 54 auto getitem = func_graph->NewCNode({NewValueNode(prim::kPrimTupleGetItem), cnode, idx}); in InsertCastForMultipleOutput() 55 auto abs = cnode->abstract()->cast<abstract::AbstractTuplePtr>(); in InsertCastForMultipleOutput() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/frontend/optimizer/ad/ |
| D | dfunctor.cc | 2 * Copyright 2020-2023 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 31 #include "ir/manager.h" 52 TraceGuard guard(std::make_shared<TraceGradFprop>(primal_graph->debug_info())); in DFunctor() 56 k_graph_->set_indirect(primal_graph->indirect()); in DFunctor() 57 k_graph_->set_stage(primal_graph->stage()); in DFunctor() 58 k_graph_->set_segment(primal_graph->segment()); in DFunctor() 61 TraceGuard guard(std::make_shared<TraceGradBprop>(primal_graph->debug_info())); in DFunctor() 64 tape_->set_stage(primal_graph->stage()); in DFunctor() 65 tape_->set_segment(primal_graph->segment()); in DFunctor() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/backend/common/graph_kernel/core/ |
| D | shape_ops_splitter.cc | 2 * Copyright 2020-2021 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 29 auto func_graph = anf_node->func_graph(); in CloneCNode() 31 auto cnode = anf_node->cast<CNodePtr>(); in CloneCNode() 33 TraceGuard guard(std::make_shared<TraceOpt>(cnode->debug_info())); in CloneCNode() 34 CNodePtr node = func_graph->NewCNode(cnode->inputs()); in CloneCNode() 35 ScopePtr scope = (anf_node->scope() != kDefaultScope) ? anf_node->scope() : kDefaultScope; in CloneCNode() local 36 node->set_scope(scope); in CloneCNode() 37 node->CloneCNodeInfo(cnode); in CloneCNode() 42 const auto &index_set = mng->node_users()[node]; in SplitNode() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/jit/ps/parse/ |
| D | resolve.cc | 2 * Copyright 2019-2024 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 72 … AnfDumpHandler::SetValueNodeStrHandler([](const std::shared_ptr<ValueNode> &node) -> std::string { in AnfDumpHandlerRegister() 77 return node->value()->cast<MetaFuncGraphPtr>()->name(); in AnfDumpHandlerRegister() 79 return node->value()->cast<parse::NameSpacePtr>()->name(); in AnfDumpHandlerRegister() 81 return ReplaceSpecialChar(node->value()->cast<parse::SymbolPtr>()->name()); in AnfDumpHandlerRegister() 93 this->set_name(buf.str()); in InterpretedObject() 105 res_val->set_value_desc(ToString()); in ToAbstract() 135 res_val->set_value_desc(ToString()); in ToAbstract() 151 map_tensor->set_param_info(param_info); in GetParameterValue() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/optimizer/mindir/ |
| D | sparse_softmax_cross_entropy_with_logits_unify_mindir.cc | 2 * Copyright 2020-2023 Huawei Technologies Co., Ltd 8 * http://www.apache.org/licenses/LICENSE-2.0 50 MS_LOG(INTERNAL_EXCEPTION) << "Node is not mul, but is " << mul_node->fullname_with_scope(); in CheckMulInputShapeEqual() 52 auto input1_shape = common::AnfAlgo::GetOutputInferShape(mul_node->input(kIndex1), 0); in CheckMulInputShapeEqual() 53 auto input2_shape = common::AnfAlgo::GetOutputInferShape(mul_node->input(kIndex2), 0); in CheckMulInputShapeEqual() 61 auto value_abstract = value_ptr->ToAbstract(); in CreateValueNode() 62 new_node->set_abstract(value_abstract); in CreateValueNode() 66 new_node->set_kernel_info(kernel_info); in CreateValueNode() 83 auto kernel_graph = graph->cast<KernelGraphPtr>(); in CreateReshape() 89 reshape_primitive->set_attr(kAttrInputNames, MakeValue(input_names)); in CreateReshape() [all …]
|
| /third_party/spirv-tools/source/fuzz/ |
| D | transformation_load.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 48 auto pointer = ir_context->get_def_use_mgr()->GetDef(message_.pointer_id()); in IsApplicable() 49 if (!pointer || !pointer->type_id()) { in IsApplicable() 53 auto pointer_type = ir_context->get_def_use_mgr()->GetDef(pointer->type_id()); in IsApplicable() 55 if (pointer_type->opcode() != spv::Op::OpTypePointer) { in IsApplicable() 61 switch (pointer->opcode()) { in IsApplicable() 88 // Check the exists of memory scope and memory semantics ids. in IsApplicable() 90 ir_context->get_def_use_mgr()->GetDef(message_.memory_scope_id()); in IsApplicable() 92 ir_context->get_def_use_mgr()->GetDef(message_.memory_semantics_id()); in IsApplicable() 100 // The memory scope and memory semantics instructions must have the in IsApplicable() [all …]
|