/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/ |
H A D | mir_const_test.cpp | 29 { // MIRIntConst::operator== in TEST() 30 MIRIntConst *mirConst_int_ptr1 = GlobalTables::GetIntConstTable().GetOrCreateIntConst( in TEST() 32 MIRIntConst *mirConst_int_ptr2 = GlobalTables::GetIntConstTable().GetOrCreateIntConst( in TEST() 34 MIRIntConst *mirConst_int_ptr3 = GlobalTables::GetIntConstTable().GetOrCreateIntConst( in TEST() 53 MIRIntConst *mirConst_int_ptr1 = GlobalTables::GetIntConstTable().GetOrCreateIntConst( in TEST() 70 MIRIntConst *mirConst_int_ptr1 = GlobalTables::GetIntConstTable().GetOrCreateIntConst( in TEST()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/ |
H A D | constantfold.h | 51 static MIRConst *FoldIntConstBinaryMIRConst(Opcode opcode, PrimType resultType, const MIRIntConst &intConst0, 52 const MIRIntConst &intConst1); 56 static MIRIntConst *FoldIntConstUnaryMIRConst(Opcode opcode, PrimType resultType, const MIRIntConst *constNode); 78 MIRIntConst *FoldIntConstComparisonMIRConst(Opcode opcode, PrimType resultType, PrimType opndType, 79 const MIRIntConst &intConst0, const MIRIntConst &intConst1) const; 91 MIRIntConst *FoldFPConstComparisonMIRConst(Opcode opcode, PrimType resultType, PrimType opndType,
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
H A D | constantfold.cpp | 264 MIRIntConst *ConstantFold::FoldIntConstComparisonMIRConst(Opcode opcode, PrimType resultType, PrimType opndType, in FoldIntConstComparisonMIRConst() 265 const MIRIntConst &intConst0, in FoldIntConstComparisonMIRConst() 266 const MIRIntConst &intConst1) const in FoldIntConstComparisonMIRConst() 316 MIRIntConst *constValue = GlobalTables::GetIntConstTable().GetOrCreateIntConst(result, type); in FoldIntConstComparisonMIRConst() 323 const MIRIntConst *intConst0 = safe_cast<MIRIntConst>(const0.GetConstVal()); in FoldIntConstComparison() 324 const MIRIntConst *intConst1 = safe_cast<MIRIntConst>(const1.GetConstVal()); in FoldIntConstComparison() 327 MIRIntConst *constValue = FoldIntConstComparisonMIRConst(opcode, resultType, opndType, *intConst0, *intConst1); in FoldIntConstComparison() 335 MIRConst *ConstantFold::FoldIntConstBinaryMIRConst(Opcode opcode, PrimType resultType, const MIRIntConst [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | mir_const.cpp | 26 void MIRIntConst::Dump(const MIRSymbolTable *) const in Dump() 32 bool MIRIntConst::operator==(const MIRConst &rhs) const in operator ==() 40 const auto &intConst = static_cast<const MIRIntConst &>(rhs); in operator ==() 45 uint8 MIRIntConst::GetActualBitWidth() const in GetActualBitWidth() 288 bool IsDivSafe(const MIRIntConst ÷nd, const MIRIntConst &divisor, PrimType pType) in IsDivSafe()
|
H A D | global_tables.cpp | 181 MIRIntConst *IntConstTable::GetOrCreateIntConst(uint64 val, MIRType &type) 186 MIRIntConst *IntConstTable::DoGetOrCreateIntConst(uint64 val, MIRType &type) 192 intConstTable[key] = new MIRIntConst(val, type);
|
H A D | mir_lower.cpp | 43 if (constVal->GetKind() == kConstInt && static_cast<MIRIntConst *>(constVal)->GetValue() == 0) { in LowerCondGotoStmtWithBuiltinExpect() 76 if (constVal->GetKind() != kConstInt || static_cast<MIRIntConst *>(constVal)->GetValue() != 0) { in LowerCondGotoStmtWithBuiltinExpect() 94 auto expectedVal = static_cast<MIRIntConst *>(expectedConstNode)->GetValue(); in LowerCondGotoStmtWithBuiltinExpect()
|
H A D | mir_nodes.cpp | 259 LogInfo::MapleLogger() << static_cast<const MIRIntConst &>(elem.second.GetConstValue()).GetValue() << " "; in Dump()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | mir_const.h | 122 class MIRIntConst : public MIRConst { class 124 MIRIntConst(uint64 val, MIRType &type) : MIRConst(type, kConstInt), value(val, type.GetPrimType()) {} in MIRIntConst() function in maple::MIRIntConst 126 MIRIntConst(const IntVal &val, MIRType &type) : MIRConst(type, kConstInt), value(val) in MIRIntConst() function in maple::MIRIntConst 199 MIRIntConst *Clone([[maybe_unused]] MemPool &memPool) const override 687 bool IsDivSafe(const MIRIntConst ÷nd, const MIRIntConst &divisor, PrimType pType);
|
H A D | global_tables.h | 515 MIRIntConst *GetOrCreateIntConst(uint64 val, MIRType &type); 525 MIRIntConst *DoGetOrCreateIntConst(uint64 val, MIRType &type); 527 std::unordered_map<IntConstKey, MIRIntConst *, IntConstHash, IntConstCmp> intConstTable;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mpl2mpl/ |
H A D | constantfold_test.cpp | 36 MIRIntConst *mc_int_ptr1, *mc_int_ptr2; in TEST() 51 EXPECT_EQ(((MIRIntConst *)ans)->GetExtValue(), output_ls[i]); in TEST() 101 MIRIntConst *mc_int_ptr0, *mc_int_ptr1; in TEST()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | emit.cpp | 493 MIRIntConst *intConst = safe_cast<MIRIntConst>(st->GetKonst()); in EmitAsmLabel() 655 MIRIntConst &intCt = static_cast<MIRIntConst &>(mirConst); in EmitAsmLabel() 1189 MIRIntConst *funcAddrIndexConst = safe_cast<MIRIntConst>(funcAddrConst); in EmitAsmLabel() 1206 int64 Emitter::GetFieldOffsetValue(const std::string &className, const MIRIntConst &intConst, in EmitAsmLabel() 1253 MIRIntConst *intConst = safe_cast<MIRIntConst>(elemConst); in EmitAsmLabel() 1299 uint32 index = static_cast<uint32>((safe_cast<MIRIntConst>(elemCons in EmitAsmLabel() [all...] |
H A D | obj_emit.cpp | 240 MIRIntConst *intConst = safe_cast<MIRIntConst>(st->GetKonst()); in EmitFunctionSymbolTable()
|
H A D | isel.cpp | 353 auto *mirIntConst = safe_cast<MIRIntConst>(mirConst); in HandleConstVal() 650 ImmOperand *MPISel::SelectIntConst(const MIRIntConst &intConst, PrimType primType) in SelectIntConst()
|
H A D | cgfunc.cpp | 51 auto *mirIntConst = safe_cast<MIRIntConst>(mirConst); in HandleConstVal()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | emit.h | 230 int64 GetFieldOffsetValue(const std::string &className, const MIRIntConst &intConst,
|
H A D | isel.h | 59 ImmOperand *SelectIntConst(const MIRIntConst &intConst, PrimType primType);
|
H A D | cgfunc.h | 195 virtual Operand *SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) = 0;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
H A D | x64_cgfunc.h | 60 Operand *SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) override;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_cgfunc.cpp | 96 Operand *X64CGFunc::SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) in SelectIntConst()
|
H A D | x64_MPIsel.cpp | 267 auto *opnd = SelectIntConst(static_cast<const MIRIntConst &>(elem.second.GetConstValue()), PTY_i32); in SelectCall() 306 auto *opnd = SelectIntConst(static_cast<const MIRIntConst &>(elem.second.GetConstValue()), PTY_i32); in SelectIcall()
|
H A D | x64_emitter.cpp | 1648 MIRIntConst &intCt = static_cast<MIRIntConst &>(mirConst); in EmitSingleElement()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_cgfunc.cpp | 1017 Operand *AArch64CGFunc::SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) in SelectIntConst() 3580 auto *opnd = SelectIntConst(static_cast<const MIRIntConst &>(elem.second.GetConstValue()), callNode); 3640 auto *opnd = SelectIntConst(static_cast<const MIRIntConst &>(elem.second.GetConstValue()), icallNode); 3979 DEBUG_ASSERT(constOfstNode->GetConstVal()->GetKind() == kConstInt, "expect MIRIntConst"); 3980 MIRIntConst *intOfst = safe_cast<MIRIntConst>(constOfstNode->GetConstVal()); 4038 CHECK_FATAL(constValNode->GetConstVal()->GetKind() == kConstInt, "expect MIRIntConst"); 4039 MIRIntConst *mirIntConst = safe_cast<MIRIntConst>(constValNode->GetConstVal()); 4077 DEBUG_ASSERT(constOfstNode->GetConstVal()->GetKind() == kConstInt, "expect MIRIntConst"); [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
H A D | aarch64_cgfunc.h | 114 Operand *SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) override;
|