/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/ |
H A D | mir_const_test.cpp | 64 { // 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 D | global_tables.cpp | 170 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 D | mir_const.cpp | 141 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 D | global_tables.h | 479 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 D | mir_const.h | 377 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 D | mir_module.h | 135 class MIRFloatConst; // circular dependency exists, no other choice
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
H A D | constantfold.cpp | 428 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 D | obj_emit.cpp | 247 MIRFloatConst *floatConst = safe_cast<MIRFloatConst>(st->GetKonst()); in EmitFunctionSymbolTable()
|
H A D | emit.cpp | 500 MIRFloatConst *floatConst = safe_cast<MIRFloatConst>(st->GetKonst()); in EmitAsmLabel() 672 MIRFloatConst &floatCt = static_cast<MIRFloatConst &>(mirConst); in EmitAsmLabel()
|
H A D | cgfunc.cpp | 54 auto *mirFloatConst = safe_cast<MIRFloatConst>(mirConst); in HandleConstVal()
|
H A D | isel.cpp | 359 auto *mirFloatConst = safe_cast<MIRFloatConst>(mirConst); in HandleConstVal()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mpl2mpl/ |
H A D | constantfold_test.cpp | 69 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 D | x64_cgfunc.h | 61 Operand *SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) override;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_cgfunc.cpp | 101 Operand *X64CGFunc::SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) in SelectFloatConst()
|
H A D | x64_emitter.cpp | 1742 MIRFloatConst &fCt = static_cast<MIRFloatConst&>(*ct); in EmitLocalVariable()
|
H A D | x64_MPIsel.cpp | 202 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 D | aarch64_cgfunc.h | 116 Operand *SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) override;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | cgfunc.h | 196 virtual Operand *SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) = 0;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cgfunc.cpp | 1055 Operand *AArch64CGFunc::SelectFloatConst(MIRFloatConst &floatConst, const BaseNode &parent) in SelectFloatConst()
|