Home
last modified time | relevance | path

Searched refs:MIRFloatConst (Results 1 - 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/
H A Dmir_const_test.cpp64 { // MIRFloatConst::operator== in TEST()
65 MIRFloatConst *mirConst_float_ptr1 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst(0.0); in TEST()
66 MIRFloatConst *mirConst_float_ptr2 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst(0.0); in TEST()
67 MIRFloatConst *mirConst_float_ptr3 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst( in TEST()
69 MIRFloatConst *mirConst_float_ptr4 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst(0.1); in TEST()
97 MIRFloatConst *mirConst_float_ptr1 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst(0.0); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dglobal_tables.cpp170 nanFloatConst = new MIRFloatConst(NAN, typeFloat);
171 infFloatConst = new MIRFloatConst(INFINITY, typeFloat);
172 minusInfFloatConst = new MIRFloatConst(-INFINITY, typeFloat);
173 minusZeroFloatConst = new MIRFloatConst(-0.0, typeFloat);
203 MIRFloatConst *FPConstTable::GetOrCreateFloatConst(float floatVal)
217 MIRFloatConst *FPConstTable::DoGetOrCreateFloatConst(float floatVal)
224 auto *floatConst = new MIRFloatConst(floatVal, *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx {PTY_f32}));
H A Dmir_const.cpp141 bool MIRFloatConst::operator==(const MIRConst &rhs) const in operator ==()
149 const auto &floatConst = static_cast<const MIRFloatConst &>(rhs); in operator ==()
206 void MIRFloatConst::Dump(const MIRSymbolTable *) const in Dump()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dglobal_tables.h479 MIRFloatConst *GetOrCreateFloatConst(float fval);
493 MIRFloatConst *DoGetOrCreateFloatConst(float);
497 std::unordered_map<float, MIRFloatConst *> floatConstTable; // map float const value to the table;
499 MIRFloatConst *nanFloatConst = nullptr;
500 MIRFloatConst *infFloatConst = nullptr;
501 MIRFloatConst *minusInfFloatConst = nullptr;
502 MIRFloatConst *minusZeroFloatConst = nullptr;
H A Dmir_const.h377 class MIRFloatConst : public MIRConst { class
380 MIRFloatConst(float val, MIRType &type) : MIRConst(type, kConstFloatConst) in MIRFloatConst() function in maple::MIRFloatConst
385 ~MIRFloatConst() = default;
444 MIRFloatConst *Clone(MemPool &memPool) const override
446 return memPool.New<MIRFloatConst>(*this);
H A Dmir_module.h135 class MIRFloatConst; // circular dependency exists, no other choice
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp428 const MIRFloatConst *floatConst0 = nullptr; in FoldFPConstBinary()
429 const MIRFloatConst *floatConst1 = nullptr; in FoldFPConstBinary()
439 floatConst0 = safe_cast<MIRFloatConst>(const0.GetConstVal()); in FoldFPConstBinary()
440 floatConst1 = safe_cast<MIRFloatConst>(const1.GetConstVal()); in FoldFPConstBinary()
610 result = ComparisonResult(opcode, safe_cast<MIRFloatConst>(&leftConst), safe_cast<MIRFloatConst>(&rightConst)); in FoldFPConstComparisonMIRConst()
793 CHECK_FATAL(false, "PrimType for MIRFloatConst / MIRDoubleConst should be PTY_f32 / PTY_f64"); in FoldFPConstUnary()
808 returnValue = FoldFPConstUnary<MIRFloatConst>(opcode, resultType, &constNode); in FoldConstUnary()
930 const MIRFloatConst *constValue = safe_cast<MIRFloatConst>(cs in FoldCeil()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dobj_emit.cpp247 MIRFloatConst *floatConst = safe_cast<MIRFloatConst>(st->GetKonst()); in EmitFunctionSymbolTable()
H A Demit.cpp500 MIRFloatConst *floatConst = safe_cast<MIRFloatConst>(st->GetKonst()); in EmitAsmLabel()
672 MIRFloatConst &floatCt = static_cast<MIRFloatConst &>(mirConst); in EmitAsmLabel()
H A Dcgfunc.cpp54 auto *mirFloatConst = safe_cast<MIRFloatConst>(mirConst); in HandleConstVal()
H A Disel.cpp359 auto *mirFloatConst = safe_cast<MIRFloatConst>(mirConst); in HandleConstVal()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mpl2mpl/
H A Dconstantfold_test.cpp69 MIRFloatConst *mirConst_float_ptr1 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst(1.0); in TEST()
70 MIRFloatConst *mirConst_float_ptr2 = GlobalTables::GetFpConstTable().GetOrCreateFloatConst(2.0); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
H A Dx64_cgfunc.h61 Operand *SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) override;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_cgfunc.cpp101 Operand *X64CGFunc::SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) in SelectFloatConst()
H A Dx64_emitter.cpp1742 MIRFloatConst &fCt = static_cast<MIRFloatConst&>(*ct); in EmitLocalVariable()
H A Dx64_MPIsel.cpp202 result = SelectLiteral(static_cast<MIRFloatConst &>(floatingConst), cgFunc->GetFunction(), labelIdxTmp++); in SelectFloatingConst()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
H A Daarch64_cgfunc.h116 Operand *SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) override;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Dcgfunc.h196 virtual Operand *SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) = 0;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_cgfunc.cpp1055 Operand *AArch64CGFunc::SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) in SelectFloatConst()

Completed in 35 milliseconds