Searched refs:const_inst (Results 1 – 8 of 8) sorted by relevance
/arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
D | move_constants.cpp | 35 for (auto const_inst = GetGraph()->GetFirstConstInst(); const_inst != nullptr;) { in RunImpl() local 37 auto next_const = const_inst->GetNextConst(); in RunImpl() 38 if (const_inst->HasUsers()) { in RunImpl() 39 MoveFromStartBlock(const_inst); in RunImpl() 41 const_inst = next_const; in RunImpl()
|
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
D | inst_builder.cpp | 294 void InstBuilder::SplitConstant(ConstantInst *const_inst) in SplitConstant() argument 296 if (const_inst->GetType() != DataType::INT64 || !const_inst->HasUsers()) { in SplitConstant() 299 auto users = const_inst->GetUsers(); in SplitConstant() 310 auto val = bit_cast<float>(static_cast<uint32_t>(const_inst->GetIntValue())); in SplitConstant() 313 auto val = bit_cast<double, uint64_t>(const_inst->GetIntValue()); in SplitConstant() 316 user->ReplaceInput(const_inst, new_const); in SplitConstant()
|
D | ir_builder.h | 126 void SplitConstant(ConstantInst *const_inst);
|
D | inst_builder.h | 101 void SplitConstant(ConstantInst *const_inst);
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | codegen_test.cpp | 189 ConstantInst *const_inst = inst->CastToConstant(); in __anon0774c0120302() local 190 const_inst->SetType(DataType::Type::INT64); in __anon0774c0120302() 191 EXPECT_EQ(const_inst->GetType(), DataType::Type::INT64); in __anon0774c0120302() 193 const_inst->SetDstReg(reg); in __anon0774c0120302() 194 EXPECT_EQ(const_inst->GetDstReg(), reg); in __anon0774c0120302() 195 BytecodeGen::VisitConstant(&graph_visitor, const_inst); in __anon0774c0120302() 201 EXPECT_EQ(const_inst->GetType(), DataType::Type::FLOAT64); in __anon0774c0120302() 203 EXPECT_EQ(const_inst->GetDstReg(), reg); in __anon0774c0120302() 210 EXPECT_EQ(const_inst->GetType(), DataType::Type::INT32); in __anon0774c0120302() 212 EXPECT_EQ(const_inst->GetDstReg(), reg); in __anon0774c0120302()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | graph.cpp | 71 void Graph::AddConstInStartBlock(ConstantInst *const_inst) in AddConstInStartBlock() argument 73 GetStartBlock()->AppendInst(const_inst); in AddConstInStartBlock() 83 void Graph::RemoveConstFromList(ConstantInst *const_inst) in RemoveConstFromList() argument 85 if (const_inst == first_const_inst_) { in RemoveConstFromList() 86 first_const_inst_ = const_inst->GetNextConst(); in RemoveConstFromList() 87 const_inst->SetNextConst(nullptr); in RemoveConstFromList() 92 while (next != nullptr && next != const_inst) { in RemoveConstFromList() 97 ASSERT(next == const_inst); in RemoveConstFromList() 98 current->SetNextConst(const_inst->GetNextConst()); in RemoveConstFromList() 99 const_inst->SetNextConst(nullptr); in RemoveConstFromList()
|
D | graph.h | 507 void SetFirstConstInst(ConstantInst *const_inst) in SetFirstConstInst() argument 509 first_const_inst_ = const_inst; in SetFirstConstInst() 552 void RemoveConstFromList(ConstantInst *const_inst); 560 ImmTableSlot AddSpilledConstant(ConstantInst *const_inst) in AddSpilledConstant() argument 563 auto current_slot = const_inst->GetImmTableSlot(); in AddSpilledConstant() 565 ASSERT(spilled_constants_[current_slot] == const_inst); in AddSpilledConstant() 573 spilled_constants_.push_back(const_inst); in AddSpilledConstant() 574 const_inst->SetImmTableSlot(count); in AddSpilledConstant() 578 ImmTableSlot FindSpilledConstantSlot(ConstantInst *const_inst) const in FindSpilledConstantSlot() argument 580 auto slot = std::find(spilled_constants_.begin(), spilled_constants_.end(), const_inst); in FindSpilledConstantSlot() [all …]
|
/arkcompiler/runtime_core/bytecode_optimizer/ |
D | codegen.cpp | 365 auto const_inst = cvat_inst->GetInput(0).GetInst()->CastToConstant(); in IsEcmaConstTemplate() local 371 return coretypes::TaggedValue(static_cast<int32_t>(const_inst->GetIntValue())); in IsEcmaConstTemplate() 373 return coretypes::TaggedValue(const_inst->GetDoubleValue()); in IsEcmaConstTemplate() 375 return coretypes::TaggedValue(static_cast<bool>(const_inst->GetInt64Value() != 0)); in IsEcmaConstTemplate()
|