Home
last modified time | relevance | path

Searched refs:MIRIntConst (Results 1 - 23 of 23) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/
H A Dmir_const_test.cpp29 { // 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 Dconstantfold.h51 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 Dconstantfold.cpp264 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 Dmir_const.cpp26 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 &dividend, const MIRIntConst &divisor, PrimType pType) in IsDivSafe()
H A Dglobal_tables.cpp181 MIRIntConst *IntConstTable::GetOrCreateIntConst(uint64 val, MIRType &type)
186 MIRIntConst *IntConstTable::DoGetOrCreateIntConst(uint64 val, MIRType &type)
192 intConstTable[key] = new MIRIntConst(val, type);
H A Dmir_lower.cpp43 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 Dmir_nodes.cpp259 LogInfo::MapleLogger() << static_cast<const MIRIntConst &>(elem.second.GetConstValue()).GetValue() << " "; in Dump()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dmir_const.h122 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 &dividend, const MIRIntConst &divisor, PrimType pType);
H A Dglobal_tables.h515 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 Dconstantfold_test.cpp36 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 Demit.cpp493 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 Dobj_emit.cpp240 MIRIntConst *intConst = safe_cast<MIRIntConst>(st->GetKonst()); in EmitFunctionSymbolTable()
H A Disel.cpp353 auto *mirIntConst = safe_cast<MIRIntConst>(mirConst); in HandleConstVal()
650 ImmOperand *MPISel::SelectIntConst(const MIRIntConst &intConst, PrimType primType) in SelectIntConst()
H A Dcgfunc.cpp51 auto *mirIntConst = safe_cast<MIRIntConst>(mirConst); in HandleConstVal()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Demit.h230 int64 GetFieldOffsetValue(const std::string &className, const MIRIntConst &intConst,
H A Disel.h59 ImmOperand *SelectIntConst(const MIRIntConst &intConst, PrimType primType);
H A Dcgfunc.h195 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 Dx64_cgfunc.h60 Operand *SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) override;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_cgfunc.cpp96 Operand *X64CGFunc::SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) in SelectIntConst()
H A Dx64_MPIsel.cpp267 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 Dx64_emitter.cpp1648 MIRIntConst &intCt = static_cast<MIRIntConst &>(mirConst); in EmitSingleElement()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_cgfunc.cpp1017 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 Daarch64_cgfunc.h114 Operand *SelectIntConst(const MIRIntConst &intConst, const BaseNode &parent) override;

Completed in 57 milliseconds