Home
last modified time | relevance | path

Searched refs:ConstantInst (Results 1 - 25 of 45) sorted by relevance

12

/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dconst_folding.cpp139 ConstantInst *ConstFoldingCreateIntConst(Inst *inst, uint64_t value, bool isLiteralData) in ConstFoldingCreateIntConst()
149 ConstantInst *ConstFoldingCreateConst(Inst *inst, ConstantInst *cnst, bool isLiteralData = false) in ConstFoldingCreateConst()
155 ConstantInst *ConstFoldingCastInt2Int(Inst *inst, ConstantInst *cnst) in ConstFoldingCastInt2Int()
181 ConstantInst *ConstFoldingCastIntConst(Graph *graph, Inst *inst, ConstantInst *cnst, bool isLiteralData = false) in ConstFoldingCastIntConst()
202 ConstantInst *ConstFoldingCastConst(Inst *inst, Inst *input, bool isLiteralData) in ConstFoldingCastConst()
205 auto cnst = static_cast<ConstantInst *>(input); in ConstFoldingCastConst()
255 ConstantInst *nwCns in ConstFoldingCast()
[all...]
H A Dconst_folding.h48 ConstantInst *ConstFoldingCastConst(Inst *inst, Inst *input, bool isLiteralData = false);
50 ConstantInst *ConstFoldingCreateIntConst(Inst *inst, uint64_t value, bool isLiteralData = false);
H A Dpeepholes.h174 static bool TryCombineConst(Inst *inst, ConstantInst *cnst1, T combine, bool *isOsrBlocked);
175 static bool TryCombineAddSubConst(Inst *inst, ConstantInst *cnst1, bool *isOsrBlocked);
176 static bool TryCombineShiftConst(Inst *inst, ConstantInst *cnst1, bool *isOsrBlocked);
177 static bool TryCombineMulConst(Inst *inst, ConstantInst *cnst1, bool *isOsrBlocked);
179 static bool GetInputsOfCompareWithConst(const Inst *inst, Inst **input, ConstantInst **constInput,
213 static InputCode GetInputCode(const ConstantInst *inst, ConditionCode cc) in GetInputCode()
H A Dpeepholes.cpp401 auto constInst = static_cast<ConstantInst *>(input1); in VisitMulOneConst()
459 ConstantInst *power = ConstFoldingCreateIntConst(inst, static_cast<uint64_t>(n)); in VisitMulOneConst()
514 auto constInst = static_cast<ConstantInst *>(input1); in VisitDiv()
725 if (input1->IsConst() && static_cast<ConstantInst *>(input1)->GetIntValue() == static_cast<uint64_t>(-1)) { in VisitAnd()
820 } else if (input1->IsConst() && static_cast<ConstantInst *>(input1)->GetIntValue() == static_cast<uint64_t>(0)) { in VisitOr()
1656 auto cnst = static_cast<ConstantInst *>(input1); in TrySimplifyShifts()
1696 ConstantInst *shift = ConstFoldingCreateIntConst(inst, sizeMask & cnstValue); in TrySimplifyShifts()
2121 ConstantInst *constInput = nullptr; in TrySimplifyCompareWithBoolInput()
2220 ConstantInst *constInput = nullptr; in TrySimplifyCmpCompareWithZero()
2266 ConstantInst *cmpConstInpu in TrySimplifyFloatCmpCompare()
[all...]
/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dgraph.h505 ConstantInst *GetFirstConstInst() in GetFirstConstInst()
509 void SetFirstConstInst(ConstantInst *const_inst) in SetFirstConstInst()
529 ConstantInst *FindConstant(DataType::Type type, uint64_t value);
532 ConstantInst *FindOrCreateConstant(T value);
539 ConstantInst *FindOrAddConstant(ConstantInst *inst);
551 * The function remove the ConstantInst from the graph list
552 * !NOTE ConstantInst isn't removed from BasicBlock list
554 void RemoveConstFromList(ConstantInst *const_inst);
556 ConstantInst *GetSpilledConstan
[all...]
H A Dgraph.cpp70 void Graph::AddConstInStartBlock(ConstantInst *const_inst) in AddConstInStartBlock()
82 void Graph::RemoveConstFromList(ConstantInst *const_inst) in RemoveConstFromList()
373 ConstantInst *Graph::FindConstant(DataType::Type type, uint64_t value) in FindConstant()
389 ConstantInst *Graph::FindOrAddConstant(ConstantInst *inst) in FindOrAddConstant()
H A Dinst.h2000 * ConstantInst represent constant value.
2005 class ConstantInst : public Inst { class in ConditionMixin
2010 explicit ConstantInst(Opcode /* unused */, T value, bool support_int32 = false) : Inst(Opcode::Constant) in ConstantInst() function in ConditionMixin::ConstantInst
2068 ConstantInst *GetNextConst() in GetNextConst()
2072 void SetNextConst(ConstantInst *next_const) in SetNextConst()
2153 ConstantInst *next_const_ {nullptr};
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Dgraph.h643 ConstantInst *GetFirstConstInst() in GetFirstConstInst()
647 void SetFirstConstInst(ConstantInst *constInst) in SetFirstConstInst()
683 ConstantInst *FindConstant(DataType::Type type, uint64_t value);
686 ConstantInst *FindOrCreateConstant(T value);
693 ConstantInst *FindOrAddConstant(ConstantInst *inst);
707 * The function remove the ConstantInst from the graph list
708 * !NOTE ConstantInst isn't removed from BasicBlock list
710 void RemoveConstFromList(ConstantInst *constInst);
712 ConstantInst *GetSpilledConstan
[all...]
H A Dgraph.cpp86 void Graph::AddConstInStartBlock(ConstantInst *constInst) in AddConstInStartBlock()
130 void Graph::RemoveConstFromList(ConstantInst *constInst) in RemoveConstFromList()
426 ConstantInst *Graph::FindConstant(DataType::Type type, uint64_t value) in FindConstant()
442 ConstantInst *Graph::FindOrAddConstant(ConstantInst *inst) in FindOrAddConstant()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
H A Dinst_builder.h80 void SplitConstant(ConstantInst *constInst);
212 ConstantInst *FindOrCreate32BitConstant(uint32_t value);
213 ConstantInst *FindOrCreateConstant(uint64_t value);
214 ConstantInst *FindOrCreateAnyConstant(DataType::Any value);
215 ConstantInst *FindOrCreateDoubleConstant(double value);
216 ConstantInst *FindOrCreateFloatConstant(float value);
H A Dinst_builder.cpp281 ConstantInst *InstBuilder::FindOrCreate32BitConstant(uint32_t value) in FindOrCreate32BitConstant()
290 ConstantInst *InstBuilder::FindOrCreateConstant(uint64_t value) in FindOrCreateConstant()
299 ConstantInst *InstBuilder::FindOrCreateAnyConstant(DataType::Any value) in FindOrCreateAnyConstant()
308 ConstantInst *InstBuilder::FindOrCreateDoubleConstant(double value) in FindOrCreateDoubleConstant()
317 ConstantInst *InstBuilder::FindOrCreateFloatConstant(float value) in FindOrCreateFloatConstant()
643 ConstantInst *currConst = GetGraph()->GetFirstConstInst(); in ResolveConstants()
650 void InstBuilder::SplitConstant(ConstantInst *constInst) in SplitConstant()
664 ConstantInst *newConst = nullptr; in SplitConstant()
H A Dir_builder.h140 void SplitConstant(ConstantInst *constInst);
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
H A Dinst_builder.cpp286 ConstantInst *curr_const = GetGraph()->GetFirstConstInst(); in ResolveConstants()
293 void InstBuilder::SplitConstant(ConstantInst *const_inst) in SplitConstant()
307 ConstantInst *new_const = nullptr; in SplitConstant()
H A Dir_builder.h126 void SplitConstant(ConstantInst *const_inst);
H A Dinst_builder.h101 void SplitConstant(ConstantInst *const_inst);
/arkcompiler/runtime_core/bytecode_optimizer/
H A Dmodule_constant_analyzer.h73 ConstantValue *GetConstantInstConstValue(compiler::ConstantInst *inst);
H A Dmodule_constant_analyzer.cpp90 ConstantValue *ModuleConstantAnalyzer::GetConstantInstConstValue(compiler::ConstantInst *const_inst) in GetConstantInstConstValue()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dspill_fill_encoder.h63 void EncodeImmWithCorrectType(DataType::Type sfType, MemRef dstMem, ConstantInst *constInst);
H A Dspill_fill_encoder.cpp159 void SpillFillEncoder::EncodeImmWithCorrectType(DataType::Type sfType, MemRef dstMem, ConstantInst *constInst) in EncodeImmWithCorrectType()
/arkcompiler/runtime_core/compiler/tests/
H A Ddump_test.cpp197 ConstantInst constant(Opcode::Constant, value, false); in HWTEST_F()
204 ConstantInst first_constant(Opcode::Constant, float_value, false); in HWTEST_F()
211 ConstantInst constant_inst(Opcode::Constant, double_value, false); in HWTEST_F()
219 ConstantInst constant_inst1(Opcode::Constant, integer_value, true); in HWTEST_F()
228 ConstantInst second_constant(Opcode::Constant, num, false); in HWTEST_F()
231 ConstantInst third_constant(Opcode::Constant, num, false); in HWTEST_F()
H A Dreg_alloc_interference_graph_new_test.cpp478 auto inst = allocator.New<ConstantInst>(Opcode::Constant, 0); in HWTEST_F()
598 auto inst = allocator.New<ConstantInst>(Opcode::Constant, i); in HWTEST_F()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
H A Dcodegen_test.cpp193 ConstantInst *const_inst = inst->CastToConstant(); in HWTEST_F()
203 ConstantInst *const_inst1 = inst->CastToConstant(); in HWTEST_F()
212 ConstantInst *const_inst2 = inst->CastToConstant(); in HWTEST_F()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
H A Dconst_array_resolver.cpp60 static std::optional<compiler::ConstantInst *> GetConstantIfPossible(Inst *inst) in GetConstantIfPossible()
277 compiler::ConstantInst *valueInst) in FillPrimitiveLiteral()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dreg_alloc_verifier.h101 void HandleConst(ConstantInst *inst);
H A Dcountable_loop_parser.cpp199 ConstantInst *cnst = nullptr; in IsInstIncOrDec()

Completed in 24 milliseconds

12