Home
last modified time | relevance | path

Searched +full:graph_ +full:- (Results 1 – 25 of 100) sorted by relevance

1234

/arkcompiler/runtime_core/compiler/optimizer/
Dpass_manager_statistics.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
23 : graph_(graph), in PassManagerStatistics()
24 pass_stat_list_(graph->GetAllocator()->Adapter()), in PassManagerStatistics()
25 pass_stat_stack_(graph->GetAllocator()->Adapter()), in PassManagerStatistics()
32 // clang-format off in PrintStatistics()
50 out << "-----------------------------------------------------------------------------\n"; in PrintStatistics()
56 << std::setw(OFFSET_PASS_NAME - indent) << stat.pass_name << ": " << std::right in PrintStatistics()
63 out << "-----------------------------------------------------------------------------\n"; in PrintStatistics()
65 << std::right << std::setw(OFFSET_DEFAULT) << graph_->GetAllocator()->GetAllocatedSize() in PrintStatistics()
[all …]
Dpass_manager.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
26 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
31 : graph_(graph), in PassManager()
32 optimizations_(graph->GetAllocator()->Adapter()), in PassManager()
33 … ANALYSES(details::PredefinedAnalyses::Instantiate<Analysis *>(graph_->GetAllocator(), graph_)), in PassManager()
34 stats_((parent_pm == nullptr) ? graph->GetAllocator()->New<PassManagerStatistics>(graph) in PassManager()
35 : parent_pm->GetStatistics()) in PassManager()
42 std::string delimiters = "~`@#$%^&*()-+=\\|/\"<>;,.[]"; in ClearFileName()
46 return str.substr(0, NAME_MAX - suffix.size()); in ClearFileName()
[all …]
Dpass.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
27 explicit Pass(Graph *graph) : graph_(graph) {} in Pass()
49 return graph_; in GetGraph()
88 Graph *graph_ {nullptr};
/arkcompiler/runtime_core/static_core/compiler/optimizer/
Dpass_manager_statistics.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
25 : graph_(graph), in PassManagerStatistics()
26 passStatList_(graph->GetAllocator()->Adapter()), in PassManagerStatistics()
27 passStatStack_(graph->GetAllocator()->Adapter()), in PassManagerStatistics()
34 // clang-format off in PrintStatistics()
52 out << "-----------------------------------------------------------------------------\n"; in PrintStatistics()
58 << std::left << std::setw(OFFSET_PASS_NAME - indent) << stat.passName << ": " in PrintStatistics()
65 out << "-----------------------------------------------------------------------------\n"; in PrintStatistics()
67 << std::right << std::setw(OFFSET_DEFAULT) << graph_->GetAllocator()->GetAllocatedSize() in PrintStatistics()
[all …]
Dpipeline.h2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
33 explicit Pipeline(Graph *graph) : graph_(graph) {} in Pipeline()
43 return graph_; in GetGraph()
55 Graph *graph_ {nullptr};
Dpass_manager.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
40 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
52 : graph_(graph), in PassManager()
53 optimizations_(graph->GetAllocator()->Adapter()), in PassManager()
54 … analyses_(details::PredefinedAnalyses::Instantiate<Analysis *>(graph_->GetAllocator(), graph_)), in PassManager()
55 stats_((parentPm == nullptr) ? graph->GetAllocator()->New<PassManagerStatistics>(graph) in PassManager()
56 : parentPm->GetStatistics()) in PassManager()
63 std::string delimiters = "~`@#$%^&*()-+=\\|/\"<>;,.[]"; in ClearFileName()
67 return str.substr(0, NAME_MAX - suffix.size()); in ClearFileName()
[all …]
Dpass.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
27 explicit Pass(Graph *graph) : graph_(graph) {} in Pass()
49 return graph_; in GetGraph()
88 Graph *graph_ {nullptr};
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 binop: |-
20 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres…
21 <%=template('operands', inst, '')-%>
23 binop_z: |-
25 auto inst_save_state = CreateSaveState(Opcode::SaveState, GetPc(instruction->GetAddress()));
26 …auto inst_check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetA…
28 if (graph_->IsBytecodeOptimizer()) {
29 …inst_check->SetInput(0, FindOrCreate32BitConstant(instruction->GetImm<<%= inst.get_format %>, 0>()…
[all …]
Dphi_resolver.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
25 * - remove phi if it has only SafePoint in users
26 * - if phi has no type, then set type determined from its inputs
31 : graph_(graph), in PhiResolver()
32 real_inputs_(graph->GetLocalAllocator()->Adapter()), in PhiResolver()
33 phi_users_(graph->GetLocalAllocator()->Adapter()), in PhiResolver()
34 real_users_(graph->GetLocalAllocator()->Adapter()) in PhiResolver()
44 dead_marker_ = graph_->NewMarker(); in Run()
45 for (auto bb : graph_->GetBlocksRPO()) { in Run()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 binop: |-
20 …auto inst = graph_->CreateInst<%= opc %>(<%= get_type(inst.dtype) %>, GetPc(instruction->GetAddres…
21 <%=template('operands', inst, '')-%>
23 binop_z: |-
25 auto inst_save_state = CreateSaveState(Opcode::SaveState, GetPc(instruction->GetAddress()));
26 …auto inst_check = graph_->CreateInstZeroCheck(<%= get_type(inst.dtype) %>, GetPc(instruction->GetA…
28 if (graph_->IsBytecodeOptimizer()) {
29 …inst_check->SetInput(0, FindOrCreate32BitConstant(instruction->GetImm<<%= inst.get_format %>, 0>()…
[all …]
Dinst_builder-inl.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
23 // NOLINTNEXTLINE(misc-definitions-in-headers,readability-function-size)
29 … methodId_ = GetRuntime()->ResolveMethodIndex(Builder()->GetMethod(), bcInst->GetId(0).AsIndex()); in BuildCallHelper()
30 pc_ = Builder()->GetPc(bcInst->GetAddress()); in BuildCallHelper()
31 hasImplicitArg_ = !GetRuntime()->IsMethodStatic(Builder()->GetMethod(), methodId_); in BuildCallHelper()
32 method_ = GetRuntime()->GetMethodById(Builder()->GetMethod(), methodId_); in BuildCallHelper()
34 if (GetRuntime()->IsMethodIntrinsic(Builder()->GetMethod(), methodId_)) { in BuildCallHelper()
38 saveState_ = Builder()->CreateSaveState(Opcode::SaveState, pc_); in BuildCallHelper()
42 nullCheck_ = GetGraph()->CreateInstNullCheck(DataType::REFERENCE, pc_, in BuildCallHelper()
[all …]
Dphi_resolver.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
24 * - remove phi if it has only SafePoint in users
25 * - if phi has no type, then set type determined from its inputs
30 : graph_(graph), in PhiResolver()
31 realInputs_(graph->GetLocalAllocator()->Adapter()), in PhiResolver()
32 phiUsers_(graph->GetLocalAllocator()->Adapter()), in PhiResolver()
33 realUsers_(graph->GetLocalAllocator()->Adapter()) in PhiResolver()
43 MarkerHolder markerHolder {graph_}; in Run()
45 for (auto bb : graph_->GetBlocksRPO()) { in Run()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dvisualizer_printer.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
25 PrintProperty("name", ArenaString(passName_, graph_->GetLocalAllocator()->Adapter())); in Print()
26 for (const auto &block : graph_->GetBlocksRPO()) { in Print()
40 --offset_; in PrintEndTag()
68 (*output_) << "\"B" << BBId(block, graph_->GetLocalAllocator()) << "\" "; in PrintDependences()
76 PrintProperty("name", "B" + BBId(block, graph_->GetLocalAllocator())); in PrintBasicBlock()
77 PrintProperty("from_bci", -1); in PrintBasicBlock()
78 PrintProperty("to_bci", -1); in PrintBasicBlock()
79 PrintDependences("predecessors", block->GetPredsBlocks()); in PrintBasicBlock()
[all …]
Dir_constructor.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
47 * BASIC_BLOCK(2, -1) {
52 * g->Dump(cerr);
59 …* All remaining arguments are IDs of successors blocks. '-1' value means that there is no…
79 graph_ = graph; in SetGraph()
80 if (graph_->GetStartBlock() == nullptr) { in SetGraph()
81 graph_->CreateStartBlock(); in SetGraph()
83 if (graph_->GetEndBlock() == nullptr) { in SetGraph()
84 graph_->CreateEndBlock(0U); in SetGraph()
[all …]
Daot_data.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
22 …return -(static_cast<size_t>(RuntimeInterface::IntrinsicId::COUNT) * PointerSize(graph_->GetArch()… in GetEpTableOffset()
27 auto offset = slowPathData_->GetSharedSlowPathOffset(id); in GetSharedSlowPathOffset()
31 return offset - (codeAddress_ + pc + CodeInfo::GetCodeOffset(graph_->GetArch())); in GetSharedSlowPathOffset()
36 …slowPathData_->SetSharedSlowPathOffset(id, codeAddress_ + pc + CodeInfo::GetCodeOffset(graph_->Get… in SetSharedSlowPathOffset()
44 offset += slotId * static_cast<intptr_t>(PointerSize(graph_->GetArch())); in GetEntrypointOffset()
46 offset -= static_cast<intptr_t>(codeAddress_ + pc); in GetEntrypointOffset()
48 offset -= static_cast<intptr_t>(CodeInfo::GetCodeOffset(graph_->GetArch())); in GetEntrypointOffset()
61 auto slot = gotPlt_->find({pfile_, methodId}); in GetPltSlotId()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_resolver.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
27 …explicit RegAllocResolver(Graph *graph) : graph_(graph), liveness_(&graph->GetAnalysis<LivenessAna… in RegAllocResolver()
53 return graph_->IsBytecodeOptimizer() && inst->GetDstReg() == ACC_REG_ID; in CanStoreToAccumulator()
57 return graph_->IsBytecodeOptimizer() && inst->GetSrcReg(input_number) == ACC_REG_ID; in CanReadFromAccumulator()
69 save_state->GetRootsRegsMask().set(location.GetValue()); in AddLocationToRoots()
71 save_state->GetRootsStackMask()->SetBit(location.GetValue()); in AddLocationToRoots()
74 auto slot_offset = graph->GetStackSlotsCount(); in AddLocationToRoots()
75 save_state->GetRootsStackMask()->SetBit(location.GetValue() + slot_offset); in AddLocationToRoots()
81 return graph_; in GetGraph()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dir_constructor.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
42 * BASIC_BLOCK(2, -1) {
47 * g->Dump(cerr);
54 …* All remaining arguments are IDs of successors blocks. '-1' value means that there is no…
74 graph_ = graph; in SetGraph()
75 if (graph_->GetStartBlock() == nullptr) { in SetGraph()
76 graph_->CreateStartBlock(); in SetGraph()
78 if (graph_->GetEndBlock() == nullptr) { in SetGraph()
79 graph_->CreateEndBlock(0U); in SetGraph()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/
Dets_inst_templates.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 ets: |-
27 UpdateDefinitionAcc(graph_->GetOrCreateUndefinedInst());
29 …UpdateDefinition(instruction->GetVReg<<%=inst.get_format%>, 0>(), graph_->GetOrCreateUndefinedInst…
31 auto undef_inst = graph_->GetOrCreateUndefinedInst();
32 …auto cmp_inst = graph_->CreateInstCompare(DataType::BOOL, GetPc(instruction->GetAddress()), GetDef…
/arkcompiler/runtime_core/static_core/compiler/tests/
Dunit_test.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
69 if (argTypes_ == nullptr || index >= argTypes_->size()) { in GetMethodTotalArgumentType()
72 return argTypes_->at(index); in GetMethodTotalArgumentType()
80 return argTypes_->size(); in GetMethodTotalArgumentsCount()
125 // We have issue with QEMU - so reduce memory heap in CommonTest()
126 …em::MemConfig::Initialize(32_MB, 64_MB, 200_MB, 32_MB, 0, 0); // NOLINT(readability-magic-numbers) in CommonTest()
128 …em::MemConfig::Initialize(32_MB, 64_MB, 256_MB, 32_MB, 0, 0); // NOLINT(readability-magic-numbers) in CommonTest()
163 return GetAllocator()->New<Graph>(GetAllocator(), GetLocalAllocator(), arch_, isOsr);
168 return GetAllocator()->New<Graph>(GetAllocator(), GetLocalAllocator(), arch, false); in CreateEmptyGraph()
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_resolver.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
28 : graph_(graph), in RegAllocResolver()
29 liveness_(&graph->GetAnalysis<LivenessAnalyzer>()), in RegAllocResolver()
30 inputLocations_(graph->GetLocalAllocator()->Adapter()) in RegAllocResolver()
60 return graph_->IsBytecodeOptimizer() && inst->GetDstReg() == ACC_REG_ID; in CanStoreToAccumulator()
64 return graph_->IsBytecodeOptimizer() && inst->GetSrcReg(inputNumber) == ACC_REG_ID; in CanReadFromAccumulator()
76 saveState->GetRootsRegsMask().set(location.GetValue()); in AddLocationToRoots()
78 saveState->GetRootsStackMask()->SetBit(location.GetValue()); in AddLocationToRoots()
81 auto slotOffset = graph->GetStackSlotsCount(); in AddLocationToRoots()
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dunit_test.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
39 if (arg_types == nullptr || index >= arg_types->size()) { in GetMethodTotalArgumentType()
42 return arg_types->at(index); in GetMethodTotalArgumentType()
50 return arg_types->size(); in GetMethodTotalArgumentsCount()
73 // We have issue with QEMU - so reduce memory heap in CommonTest()
108 return GetAllocator()->New<Graph>(GetAllocator(), GetLocalAllocator(), arch_, is_osr);
113 return GetAllocator()->New<Graph>(GetAllocator(), GetLocalAllocator(), arch, false); in CreateEmptyGraph()
118 …auto graph = GetAllocator()->New<Graph>(GetAllocator(), GetLocalAllocator(), arch_, is_dynamic, fa…
119 graph->CreateStartBlock();
[all …]
/arkcompiler/runtime_core/static_core/compiler/
Dinplace_task_runner.h2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
69 graph_ = graph; in SetGraph()
114 return graph_; in GetGraph()
134 Graph *graph_ {nullptr};
148 * @brief Starts task in-place
149 * @param task_runner - Current TaskRunner containing context and callbacks
150 * @param task_func - task which will be executed with @param task_runner
152 // NOLINTNEXTLINE(performance-unnecessary-value-param)
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dinst_checker_gen.h.erb2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
23 explicit InstChecker(const Graph *graph) : graph_(graph) {}
27 return graph_->GetBlocksRPO();
37 return inst->GetInput(input).GetInst()->GetType();
49 ASSERT(!inst->HasUsers());
51 …ASSERT_DO(CheckType(inst->GetType(), <%= inst.dst.types.map { |x| Operand::cpp_type(x) }.join(', '…
52 …std::cerr << "Wrong dst type '" << DataType::ToString(inst->GetType()) << "' for inst:\n" << *inst…
58 CHECK_EQ(inst->GetInputsCount(), <%= inst.inputs.size %>U);
61 ASSERT(inst->GetInput(<%= i %>).GetInst()->IsSaveState());
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/
Dinst_checker_gen.h.erb2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
23 explicit InstChecker(const Graph *graph) : graph_(graph) {}
27 return graph_->GetBlocksRPO();
37 return inst->GetInput(input).GetInst()->GetType();
49 ASSERT(!inst->HasUsers());
51 …ASSERT_DO(CheckType(inst->GetType(), <%= inst.dst.types.map { |x| Operand::cpp_type(x) }.join(', '…
52 …std::cerr << "Wrong dst type '" << DataType::ToString(inst->GetType()) << "' for inst:\n" << *inst…
58 CHECK_EQ(inst->GetInputsCount(), <%= inst.inputs.size %>U);
61 ASSERT(inst->GetInput(<%= i %>).GetInst()->IsSaveState());
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Descape.cpp2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
33 : inst_(inst), id_(id), fields_(alloc->Adapter()), aliases_(alloc->Adapter()) in VirtualState()
38 … inst->GetBasicBlock()->GetGraph()->GetRuntime()->GetArrayComponentType(GetArrayComponentClass()); in VirtualState()
48 ASSERT(inst_->GetOpcode() == Opcode::NewObject || inst_->GetOpcode() == Opcode::NewArray); in IsNewObject()
49 return inst_->GetOpcode() == Opcode::NewObject; in IsNewObject()
60 return GetClass(inst_->GetDataFlowInput(0)); in GetArrayComponentClass()
81 return it->second; in GetFieldOrDefault()
96 auto copy = alloc->New<VirtualState>(inst_, id_, alloc); in Copy()
101 copy->SetField(ptr, id); in Copy()
[all …]

1234