/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
D | reg_alloc_resolver.h | 60 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()
|
D | reg_alloc_resolver.cpp | 180 void RegAllocResolver::PropagateCallerMasks(SaveStateInst *save_state) in PropagateCallerMasks() argument 182 save_state->CreateRootsStackMask(GetGraph()->GetAllocator()); in PropagateCallerMasks() 183 auto user = GetExplicitUser(GetFirstUserOrInst(save_state)); in PropagateCallerMasks() 186 FillSaveStateRootsMask(save_state, user, save_state); in PropagateCallerMasks() 189 void RegAllocResolver::FillSaveStateRootsMask(SaveStateInst *save_state, Inst *user, SaveStateInst … in FillSaveStateRootsMask() argument 193 for (size_t i = 0; i < save_state->GetInputsCount(); ++i) { in FillSaveStateRootsMask() 194 auto input_inst = save_state->GetDataFlowInput(i); in FillSaveStateRootsMask()
|
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
D | inst_builder-inl.h | 30 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()
|
D | inst_builder.cpp | 196 void InstBuilder::RemoveNotDominateInputs(SaveStateInst *save_state) in RemoveNotDominateInputs() argument 199 size_t inputs_count = save_state->GetInputsCount(); in RemoveNotDominateInputs() 201 auto input_inst = save_state->GetInput(idx).GetInst(); in RemoveNotDominateInputs() 204 if (!input_inst->InSameBlockOrDominate(save_state)) { in RemoveNotDominateInputs() 205 save_state->RemoveInput(idx); in RemoveNotDominateInputs() 208 …ASSERT(input_inst->GetBasicBlock() != save_state->GetBasicBlock() || input_inst->IsDominate(save_s… in RemoveNotDominateInputs()
|
D | phi_resolver.h | 59 auto save_state = static_cast<SaveStateInst *>(user); in Run() local 61 size_t inputs_count = save_state->GetInputsCount(); in Run() 63 auto input_inst = save_state->GetInput(idx).GetInst(); in Run() 65 save_state->RemoveInput(idx); in Run()
|
D | inst_builder.h | 104 static void RemoveNotDominateInputs(SaveStateInst *save_state);
|
/arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/ |
D | generate_operations_intrinsic_graph.inl.erb | 38 auto save_state = graph->CreateInstSaveState(); 39 block->AppendInst(save_state); 40 inst->AppendInput(save_state);
|
D | intrinsics_flags.inl.erb | 30 …:inst_flags::REQUIRE_STATE) == 0, "<%= intrinsic.enum_name %> requires save_state because virtual …
|
/arkcompiler/runtime_core/compiler/tests/ |
D | reg_alloc_common_test.cpp | 224 auto save_state = null_check->GetSaveState(); in TEST_F() local 226 auto roots = save_state->GetRootsRegsMask(); in TEST_F() 227 for (auto input : save_state->GetInputs()) { in TEST_F()
|
D | inst_test.cpp | 543 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()
|
D | compiler_inst_test.cpp | 489 auto save_state = inst->CastToSaveState(); in __anon1be7da800b02() local 490 EXPECT_EQ(save_state->Clone(graph)->GetOpcode(), Opcode::SaveState); in __anon1be7da800b02()
|
/arkcompiler/runtime_core/compiler/optimizer/analysis/ |
D | liveness_analyzer.cpp | 369 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/compiler/optimizer/templates/ |
D | inst_checker_gen.h.erb | 60 % if operand.has('save_state')
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | ir_constructor.h | 1021 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()
|