Home
last modified time | relevance | path

Searched refs:GetInput (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dlowering.cpp42 auto in0 = cmp->GetInput(0).GetInst(); in BetterToSwapCompareInputs()
43 auto in1 = cmp->GetInput(1).GetInst(); in BetterToSwapCompareInputs()
64 compiler::Inst *input_0 = if_inst->GetInput(0).GetInst(); in OptimizeIfInput()
65 compiler::Inst *input_1 = if_inst->GetInput(1).GetInst(); in OptimizeIfInput()
86 auto input = inst->GetInput(0).GetInst(); in LowerIf()
99 auto in0 = input->GetInput(0).GetInst(); in LowerIf()
100 auto in1 = input->GetInput(1).GetInst(); in LowerIf()
108 auto cst = input->GetInput(1).GetInst(); in LowerIf()
125 replace->SetInput(0, input->GetInput(0).GetInst()); in LowerIf()
126 replace->SetInput(1, input->GetInput(1).GetInst()); in LowerIf()
[all …]
Dcleanup.cpp157 auto inst_pred = phi->GetInput(index_pred).GetInst(); in CheckSpecialTriangle()
158 auto inst_bb = phi->GetInput(index_bb).GetInst(); in CheckSpecialTriangle()
162 inst_bb = inst_bb->CastToPhi()->GetInput(i).GetInst(); in CheckSpecialTriangle()
255 inst = inst->GetInput(0).GetInst(); in MarkLiveRec()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph_cloner.cpp217 auto compare = ifimm->GetInput(0).GetInst(); in SplitBackEdge()
222 new_cmp->SetInput(0, compare->GetInput(0).GetInst()); in SplitBackEdge()
223 new_cmp->SetInput(1, compare->GetInput(1).GetInst()); in SplitBackEdge()
306 auto input = compare->GetInput(i).GetInst(); in UpdateUsersAfterNoSideExitsUnroll()
454 auto inst = phi->GetInput(0).GetInst(); in BuildLoopUnrollDataFlow()
488 … unroll_data->phi_replaced_inputs->emplace(phi, phi->GetInput(phi_update_input_idx).GetInst()); in BuildLoopUnrollDataFlow()
519 auto remaining_inst = phi->GetInput(0).GetInst(); in RemoveLoopBackEdge()
780 auto compare = ifimm->GetInput(0).GetInst(); in PrepareLoopToClone()
784 new_cmp->SetInput(0, compare->GetInput(0).GetInst()); in PrepareLoopToClone()
785 new_cmp->SetInput(1, compare->GetInput(1).GetInst()); in PrepareLoopToClone()
[all …]
Dinst.cpp121 auto *curr_input = GetInput(index)->GetInst(); in Remove()
130 auto *last_input = GetInput(size_)->GetInst(); in Remove()
135 SetInput(index, *GetInput(size_)); in Remove()
189 return GetInput(index).GetInst(); in GetPhiInput()
214 input_inst = input_inst->GetInput(input_idx).GetInst(); in SkipInstructions()
Dinst.h387 Inst *GetInput();
388 const Inst *GetInput() const;
612 Input *GetInput(unsigned index) in GetInput() function
910 return GetDataFlowInput(GetInput(index).GetInst()); in GetDataFlowInput()
933 auto ss = GetInput(GetInputsCount() - 1).GetInst(); in GetSaveState()
1153 Input GetInput(unsigned index) in GetInput() function
1159 Input GetInput(unsigned index) const in GetInput() function
1918 return GetInput(index).GetInst()->GetType(); in GetInputType()
1948 return GetInput(index).GetInst()->GetType(); in GetInputType()
1981 return GetInput(index).GetInst()->GetType(); in GetInputType()
[all …]
Ddump.cpp206 (*out) << sep << std::dec << InstId(GetInput(i).GetInst(), allocator); in DumpInputs()
240 Inst *input = GetInput(idx).GetInst(); in DumpInputs()
Dgraph_cloner.h281 auto input = inst->GetInput(i).GetInst();
Dgraph.cpp198 auto remaining_inst = phi->GetInput(1 - rm_index).GetInst(); in RemovePredecessorUpdateDF()
Dbasicblock.cpp142 auto inst = phi->GetInput(index).GetInst(); in RemovePhiProcessing()
Dgraph_checker.cpp802 [[maybe_unused]] auto op1 = inst->GetInput(0).GetInst(); in VisitIfImm()
/arkcompiler/runtime_core/bytecode_optimizer/
Dcodegen.cpp362 if (!cvat_inst->GetInput(0).GetInst()->IsConst()) { in IsEcmaConstTemplate()
365 auto const_inst = cvat_inst->GetInput(0).GetInst()->CastToConstant(); in IsEcmaConstTemplate()
391 auto test_lhs = IsEcmaConstTemplate(inst->GetInput(0).GetInst()); in IfEcma()
392 auto test_rhs = IsEcmaConstTemplate(inst->GetInput(1).GetInst()); in IfEcma()
491 auto test_arg = IsEcmaConstTemplate(inst->GetInput(0).GetInst()); in VisitReturn()
526 ASSERT(cvat->GetInput(0).GetInst()->IsConst()); in VisitCastValueToAnyType()
527 auto input = cvat->GetInput(0).GetInst()->CastToConstant(); in VisitCastValueToAnyType()
532 ASSERT(cvat->GetInput(0).GetInst()->IsConst()); in VisitCastValueToAnyType()
533 auto input = cvat->GetInput(0).GetInst()->CastToConstant(); in VisitCastValueToAnyType()
538 ASSERT(cvat->GetInput(0).GetInst()->IsBoolConst()); in VisitCastValueToAnyType()
[all …]
Dreg_acc_alloc.cpp60 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in IsAccWriteBetween()
137 return user->GetInput(AccReadIndex(user)).GetInst() == inst || user->IsCommutative(); in CanUserReadAcc()
270 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in RunImpl()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_resolver.cpp294 auto first_input = catch_phi->GetInput(0).GetInst(); in SqueezeCatchPhiInputs()
296 if (catch_phi->GetInput(i).GetInst() != first_input) { in SqueezeCatchPhiInputs()
310 auto input_inst = catch_phi->GetInput(i).GetInst(); in SqueezeCatchPhiInputs()
315 auto saved_inst = new_catch_phi->GetInput(j).GetInst(); in SqueezeCatchPhiInputs()
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dinst_checker_gen.h.erb37 return inst->GetInput(input).GetInst()->GetType();
61 ASSERT(inst->GetInput(<%= i %>).GetInst()->IsSaveState());
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dphi_resolver.h63 auto input_inst = save_state->GetInput(idx).GetInst(); in Run()
164 auto input_bb = phi_inst->GetInput(index).GetInst()->GetBasicBlock(); in CheckPhiInputs()
Dinst_builder.cpp201 auto input_inst = save_state->GetInput(idx).GetInst(); in RemoveNotDominateInputs()
/arkcompiler/runtime_core/compiler/tests/
Dinst_test.cpp106 ASSERT_EQ(inst, user.GetInput()); in TEST_F()
118 INS(3).ReplaceUsers(INS(3).GetInput(0).GetInst()); in TEST_F()
120 ASSERT_TRUE(INS(6).GetInput(0).GetInst() == &INS(0)); in TEST_F()
121 ASSERT_TRUE(INS(3).GetInput(0).GetInst() == nullptr); in TEST_F()
Dgraph_comparator.h103 auto input1 = inst1->GetInput(index1).GetInst(); in Compare()
239 … if (inst1->GetOpcode() == Opcode::Cmp && IsFloatType(inst1->GetInput(0).GetInst()->GetType())) { in Compare()
Dbranch_elimination_test.cpp231 EXPECT_EQ(INS(18).GetInput(0).GetInst(), &INS(6)); in TEST_F()
290 EXPECT_EQ(INS(18).GetInput(0).GetInst(), &INS(6)); in TEST_F()
600 EXPECT_EQ(INS(11).GetInput(0).GetInst(), &INS(1)); in TEST_F()
649 EXPECT_EQ(INS(8).GetInput(0).GetInst(), &INS(1)); in TEST_F()
715 EXPECT_EQ(INS(8).GetInput(0).GetInst(), &INS(1)); in TEST_F()
Dunit_test.h174 EXPECT_EQ(user.GetInst()->GetInput(user.GetIndex()).GetInst(), &inst); in CheckUsers()
Dcompiler_inst_test.cpp828 inst->ReplaceInput(inst->GetInput(0).GetInst(), inst1); in __anon1be7da801102()
/arkcompiler/runtime_core/compiler/docs/
Dlowering_doc.md32 if (!inst->GetInput(1)->IsConst()) {
35 uint64_t val = inst->GetInput(1)->GetConst();
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Dloop_analyzer.cpp145 new_phi->AppendInput(phi->GetInput(phi_idx).GetInst()); in MovePhiInputsToPreHeader()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dcommon.h401 … if (inst1->GetOpcode() == Opcode::Cmp && IsFloatType(inst1->GetInput(0).GetInst()->GetType())) { in Compare()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcircuit_builder-inl.h1330 GateRef Environment::GetInput(size_t index) const in GetInput() function

12