Home
last modified time | relevance | path

Searched full:save_state (Results 1 – 25 of 29) sorted by relevance

12

/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_resolver.h60 void PropagateCallerMasks(SaveStateInst *save_state);
62 void FillSaveStateRootsMask(SaveStateInst *save_state, Inst *user, SaveStateInst *target_ss);
66 …static inline void AddLocationToRoots(Location location, SaveStateInst *save_state, const Graph *g… in AddLocationToRoots() argument
69 save_state->GetRootsRegsMask().set(location.GetValue()); in AddLocationToRoots()
71 save_state->GetRootsStackMask()->SetBit(location.GetValue()); in AddLocationToRoots()
75 save_state->GetRootsStackMask()->SetBit(location.GetValue() + slot_offset); in AddLocationToRoots()
Dreg_alloc_resolver.cpp175 void RegAllocResolver::PropagateCallerMasks(SaveStateInst *save_state) in PropagateCallerMasks() argument
177 save_state->CreateRootsStackMask(GetGraph()->GetAllocator()); in PropagateCallerMasks()
178 auto user = GetExplicitUser(GetFirstUserOrInst(save_state)); in PropagateCallerMasks()
181 FillSaveStateRootsMask(save_state, user, save_state); in PropagateCallerMasks()
184 void RegAllocResolver::FillSaveStateRootsMask(SaveStateInst *save_state, Inst *user, SaveStateInst … in FillSaveStateRootsMask() argument
188 for (size_t i = 0; i < save_state->GetInputsCount(); ++i) { in FillSaveStateRootsMask()
189 auto input_inst = save_state->GetDataFlowInput(i); in FillSaveStateRootsMask()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dinstructions.yaml112 signature: [d-int, int, int, save_state]
281 signature: [d-ref, ref, int-ngc, save_state]
289 signature: [d-ref, ref, save_state]
297 signature: [d-ref, real-dyn, save_state]
306 signature: [d-ref, save_state]
312 signature: [d-ref, ref, save_state]
390 signature: [d-u32, save_state]
437 signature: [d-ref, save_state]
462 signature: [real, save_state]
486 signature: [d-ref, save_state]
[all …]
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/
Dgenerate_operations_intrinsic_graph.inl.erb38 auto save_state = graph->CreateInstSaveState();
39 block->AppendInst(save_state);
40 inst->AppendInput(save_state);
Dintrinsics_flags.inl.erb30 …:inst_flags::REQUIRE_STATE) == 0, "<%= intrinsic.enum_name %> requires save_state because virtual …
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h30 auto save_state = CreateSaveState(Opcode::SaveState, GetPc(bc_inst->GetAddress())); in BuildLoadFromPool() local
38 inst->SetInput(0, save_state); in BuildLoadFromPool()
40 AddInstruction(save_state); in BuildLoadFromPool()
Dinst_builder.cpp195 void InstBuilder::RemoveNotDominateInputs(SaveStateInst *save_state) in RemoveNotDominateInputs() argument
198 size_t inputs_count = save_state->GetInputsCount(); in RemoveNotDominateInputs()
200 auto input_inst = save_state->GetInput(idx).GetInst(); in RemoveNotDominateInputs()
201 // We can don't call IsDominate, if save_state and input_inst in one basic block. in RemoveNotDominateInputs()
203 if (!input_inst->InSameBlockOrDominate(save_state)) { in RemoveNotDominateInputs()
204 save_state->RemoveInput(idx); in RemoveNotDominateInputs()
207 …ASSERT(input_inst->GetBasicBlock() != save_state->GetBasicBlock() || input_inst->IsDominate(save_s… in RemoveNotDominateInputs()
Dphi_resolver.h63 auto save_state = static_cast<SaveStateInst *>(user); in Run() local
65 size_t inputs_count = save_state->GetInputsCount(); in Run()
67 auto input_inst = save_state->GetInput(idx).GetInst(); in Run()
69 save_state->RemoveInput(idx); in Run()
Dinst_builder.h104 static void RemoveNotDominateInputs(SaveStateInst *save_state);
/arkcompiler/runtime_core/compiler/tests/
Dreg_alloc_common_test.cpp224 auto save_state = null_check->GetSaveState(); in TEST_F() local
225 // Check that save_state's inputs are added to the roots in TEST_F()
226 auto roots = save_state->GetRootsRegsMask(); in TEST_F()
227 for (auto input : save_state->GetInputs()) { in TEST_F()
Dinst_test.cpp543 auto save_state = graph->CreateInstSaveState(); in TEST_F() local
546 save_state->AppendInput(graph->FindOrCreateConstant(i)); in TEST_F()
547 save_state->SetVirtualRegister(i, VirtualRegister(i, false)); in TEST_F()
552 ASSERT_EQ(user, save_state); in TEST_F()
Dcompiler_inst_test.cpp502 auto save_state = inst->CastToSaveState(); in __anon3cee0cc20b02() local
503 EXPECT_EQ(save_state->Clone(graph)->GetOpcode(), Opcode::SaveState); in __anon3cee0cc20b02()
/arkcompiler/runtime_core/static_core/irtoc/lang/
Dir_generator.rb31 Output << "[[maybe_unused]] auto save_state = source_inst->GetSaveState();"
130 Output << "#{var_name}->SetSaveState(save_state);"
133 Output << "#{var_name}->SetSaveState(save_state);"
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/
Dinstructions.rb45 SAVE_STATE = 'save_state' constant
Dinst_checker_gen.h.erb81 % if operand.has('save_state')
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dinstructions.rb45 SAVE_STATE = 'save_state' constant
Dinst_checker_gen.h.erb60 % if operand.has('save_state')
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dinstructions.yaml99 signature: [d-ref, save_state]
229 save_state: definition of the given input must be SaveState instruction
Dir_constructor.h1021 auto save_state = graph_->CreateInstSaveState(); in CreateSaveStates() local
1022 save_state->SetId(static_cast<int>(graph_->GetCurrentInstructionId()) + 1); in CreateSaveStates()
1023 graph_->SetCurrentInstructionId(save_state->GetId() + 1); in CreateSaveStates()
1024 inst->GetBasicBlock()->InsertBefore(save_state, inst); in CreateSaveStates()
1025 inst->SetSaveState(save_state); in CreateSaveStates()
/arkcompiler/runtime_core/bytecode_optimizer/constant_propagation/
Dconstant_propagation.h125 void InsertSaveState(Inst *base_inst, Inst *save_state);
Dconstant_propagation.cpp647 void ConstantPropagation::InsertSaveState(Inst *base_inst, Inst *save_state) in InsertSaveState() argument
651 bb->InsertAfter(save_state, base_inst); in InsertSaveState()
656 bb->InsertBefore(save_state, *first_inst); in InsertSaveState()
658 bb->AppendInst(save_state); in InsertSaveState()
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Dliveness_analyzer.cpp369 auto save_state = inst->GetSaveState(); in AdjustInputsLifetime() local
370 ASSERT(save_state != nullptr); in AdjustInputsLifetime()
372 for (auto ss_input : save_state->GetInputs()) { in AdjustInputsLifetime()
373 auto input_inst = save_state->GetDataFlowInput(ss_input.GetInst()); in AdjustInputsLifetime()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dstring_builder_utils.cpp528 v9 NewArray class, v3, save_state in CollectArrayElements()
532 v20 CallStatic String::concat str, v9, save_state in CollectArrayElements()
/arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/
Dinst_builder_dyn.cpp207 // We can don't call IsDominate, if save_state and input_inst in one basic block. in RemoveNotDominateInputs()
/arkcompiler/runtime_core/static_core/compiler/tests/
Dreg_alloc_common_test.cpp265 // Check that save_state's inputs are added to the roots in TEST_F()

12