/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
H A D | constantfold.cpp | 114 if (old->GetOpCode() == op && old->GetPrimType() == primType && old->Opnd(0) == lhs && old->Opnd(1) == rhs) { in NewBinaryNode() 126 if (old->GetOpCode() == op && old->GetPrimType() == primType && old->Opnd(0) == expr) { in NewUnaryNode() 174 if (GetPrimTypeSize(node->GetPrimType()) > k8ByteSize) { in DispatchFold() 227 return mirModule->CurFuncCodeMemPool()->New<UnaryNode>(OP_neg, PrimType(node->GetPrimType()), node); in Negate() 238 result = NewUnaryNode(node, OP_neg, node->GetPrimType(), n); in Negate() 314 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(resultType); in FoldIntConstComparisonMIRConst() 400 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(resultType); in FoldIntConstBinaryMIRConst() 425 DEBUG_ASSERT(const0.GetPrimType() == const1.GetPrimType(), "The types of the operands must match"); in FoldFPConstBinary() 430 bool useDouble = (const0.GetPrimType() in FoldFPConstBinary() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/ |
H A D | aarch64_call_conv.cpp | 40 PrimType primType = retType.GetPrimType(); in LocateRetVal() 61 if (IsPrimitiveInteger(mirType.GetPrimType()) && size <= k8ByteSize) { in AllocateGPRegister() 67 pLoc.primTypeOfReg0 = mirType.GetPrimType(); in AllocateGPRegister() 137 if (IsPrimitiveFloat(mirType.GetPrimType())) { in LocateNextParm() 140 pLoc.primTypeOfReg0 = mirType.GetPrimType(); in LocateNextParm() 141 } else if (IsPrimitiveInteger(mirType.GetPrimType())) { in LocateNextParm() 216 switch (mirType.GetPrimType()) { in ClassificationRet() 246 switch (mirType.GetPrimType()) { in ClassificationArg()
|
H A D | aarch64_cgfunc.cpp | 682 SelectDassign(stmt.GetStIdx(), stmt.GetFieldID(), stmt.GetRHS()->GetPrimType(), opnd0); in SelectDassign() 702 regSize, IsSignedInteger(type->GetPrimType())); in SelectDassign() 705 uint32 dataSize = GetPrimTypeBitSize(type->GetPrimType()); in SelectDassign() 720 PrimType ptyp = type->GetPrimType(); in SelectDassign() 732 regOpnd = &GetOrCreateSpecialRegisterOperand(-pregIdx, stmt.GetPrimType()); in SelectRegassign() 737 PrimType rhsType = stmt.Opnd(0)->GetPrimType(); in SelectRegassign() 740 if (GetPrimTypeSize(stmt.GetPrimType()) > GetPrimTypeSize(rhsType) && IsPrimitiveInteger(rhsType)) { in SelectRegassign() 741 CHECK_FATAL(IsPrimitiveInteger(stmt.GetPrimType()), "NIY"); in SelectRegassign() 742 srcOpnd = &CreateRegisterOperandOfType(stmt.GetPrimType()); in SelectRegassign() 743 SelectCvtInt2Int(nullptr, srcOpnd, &opnd0, rhsType, stmt.GetPrimType()); in SelectRegassign() [all...] |
H A D | aarch64_args.cpp | 91 PrimType stype = mirSym.GetType()->GetPrimType(); in MoveLocalRefVarToRefLocals() 115 PrimType stype = mirSym.GetType()->GetPrimType(); in LoadStackArgsToVReg() 142 PrimType sType = mirSym.GetType()->GetPrimType(); in MoveArgsToVReg()
|
H A D | aarch64_live.cpp | 22 PrimType returnType = cgFunc->GetFunction().GetReturnType()->GetPrimType(); in GenerateReturnBBDefUse()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
H A D | lmir_builder.cpp | 25 return GlobalTables::GetTypeTable().GetPrimType(type); in GetPrimitiveType() 144 return mirType->GetPrimType() == PTY_ref; in IsHeapPointerType() 244 if (!oldSym || !IsPrimitiveScalar(oldSym->GetType()->GetPrimType())) { in RenameFormal2Preg() 538 if ((mtype->GetPrimType() != PTY_ptr) && (mtype->GetPrimType() != PTY_ref)) { in CreatePreg() 540 return GetCurFunction().GetPregTab()->CreatePreg(mtype->GetPrimType()); in CreatePreg() 542 return GetCurFunction().GetPregTab()->CreatePreg(mtype->GetPrimType(), mtype); in CreatePreg() 547 return *(mirBuilder.CreateStmtRegassign(src.GetType()->GetPrimType(), pregIdx, src.GetNode())); in Regassign() 558 return Expr(mirBuilder.CreateExprRegread(preg->GetPrimType(), pregIdx), preg->GetMIRType()); in Regread() 561 Type *type = GetPrimitiveType(preg->GetPrimType()); in Regread() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
H A D | isel.cpp | 354 return iSel.SelectIntConst(*mirIntConst, constValNode.GetPrimType()); in HandleConstVal() 357 return iSel.SelectFloatingConst(*mirDoubleConst, constValNode.GetPrimType()); in HandleConstVal() 361 return iSel.SelectFloatingConst(*mirFloatConst, constValNode.GetPrimType()); in HandleConstVal() 374 return &iSel.ProcessReturnReg(regReadNode.GetPrimType(), -(regReadNode.GetRegIdx())); in HandleRegread() 398 PrimType targetPtyp = parent.GetPrimType(); in HandleCmp() 404 if ((IsPrimitiveInteger(targetPtyp) || IsPrimitiveFloat(targetPtyp)) && targetPtyp != expr.GetPrimType()) { in HandleCmp() 605 mirTypeInfo.primType = mirType->GetPrimType(); in GetMirTypeInfoFormFieldIdAndMirType() 624 PrimType rhsType = stmt.GetRHS()->GetPrimType(); in SelectDassign() 641 RegOperand &lhsBaseOpnd = SelectCopy2Reg(opndAddr, stmt.Opnd(0)->GetPrimType()); in SelectIassign() 645 PrimType rhsType = stmt.GetRHS()->GetPrimType(); in SelectIassign() [all...] |
H A D | cgfunc.cpp | 142 GetPrimTypeBitSize(node.GetPrimType()) != k64BitSize && in HandleExtractBits() 207 PrimType targetPtyp = parent.GetPrimType(); in HandleCmp() 213 if (IsPrimitiveInteger(targetPtyp) && targetPtyp != expr.GetPrimType()) { in HandleCmp() 322 PrimType primType = condNode->GetPrimType(); in HandleCondbr() 526 PrimType primType = func.GetPregTab()->PregFromPregIdx(i)->GetPrimType(); in CGFunc()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/ |
H A D | x64_call_conv.cpp | 27 switch (mirType.GetPrimType()) { in Classification() 60 switch (mirType.GetPrimType()) { in Classification() 97 switch (mirType.GetPrimType()) { in Classification() 172 pLoc.primTypeOfReg0 = retType.GetPrimType(); in LocateRetVal() 181 pLoc.primTypeOfReg0 = retType.GetPrimType(); in LocateRetVal()
|
H A D | x64_MPIsel.cpp | 30 symType = symbol.GetType()->GetPrimType(); in GetOrCreateMemOpndFromSymbol() 81 SelectCopy(retOpnd, opnd, oriPrimType, retNode.Opnd(0)->GetPrimType()); in SelectReturn() 137 PrimType primType = argExpr->GetPrimType(); in SelectParmList() 257 callInsn.SetIsCallReturnUnsigned(IsUnsignedInteger(retType->GetPrimType())); in SelectCall() 279 RegOperand &targetOpnd = SelectCopy2Reg(*opnd0, iCallNode.Opnd(0)->GetPrimType()); in SelectIcall() 296 callInsn.SetIsCallReturnUnsigned(IsUnsignedInteger(retType->GetPrimType())); in SelectIcall() 337 PrimType type = intrnNode.Opnd(0)->GetPrimType(); in SelectOverFlowCall() 338 PrimType type2 = intrnNode.Opnd(1)->GetPrimType(); in SelectOverFlowCall() 342 intrnNode.Opnd(0)->GetPrimType()); /* first argument of intrinsic */ in SelectOverFlowCall() 344 intrnNode.Opnd(1)->GetPrimType()); /* firs in SelectOverFlowCall() [all...] |
H A D | x64_memlayout.cpp | 41 ty = GlobalTables::GetTypeTable().GetTypeTable()[static_cast<uint32>(opnd->GetPrimType())]; in ComputeStackSpaceRequirementForCall() 135 PrimType pType = pregTab->PregFromPregIdx(i)->GetPrimType(); in AssignSpillLocationsToPseudoRegisters()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | mir_builder.cpp | 172 return NewNode<ConstvalNode>(mirConst->GetType().GetPrimType(), mirConst); in CreateConstval() 178 GlobalTables::GetIntConstTable().GetOrCreateIntConst(val, *GlobalTables::GetTypeTable().GetPrimType(pty)); in CreateIntConst() 199 return CreateExprDread(type.GetPrimType(), fieldID, symbol); in CreateExprDread() 226 PrimType type = GetRegPrimType(returnType.GetPrimType()); in CreateExprIread() 232 return NewNode<UnaryNode>(opcode, type.GetPrimType(), opnd); 242 return CreateExprTypeCvt(o, type.GetPrimType(), fromType.GetPrimType(), *opnd); 253 return CreateExprRetype(type, fromType.GetPrimType(), opnd); 258 return NewNode<RetypeNode>(type.GetPrimType(), fromType, type.GetTypeIndex(), opnd); 263 return NewNode<BinaryNode>(opcode, type.GetPrimType(), opnd [all...] |
H A D | global_tables.cpp | 91 if (pty.GetPrimType() != PTY_ref) { in CreateAndUpdateMirTypeNode() 110 auto *pMap = (type.GetPrimType() != PTY_ref ? &ptrTypeMap : &refTypeMap); in GetOrCreateMIRTypeNode() 111 auto *otherPMap = (type.GetPrimType() == PTY_ref ? &ptrTypeMap : &refTypeMap); in GetOrCreateMIRTypeNode() 120 CHECK_FATAL(!(type.GetPointedTyIdx().GetIdx() >= kPtyDerived && type.GetPrimType() == PTY_ref && in GetOrCreateMIRTypeNode() 169 MIRType &typeFloat = *GlobalTables::GetTypeTable().GetPrimType(PTY_f32); 174 MIRType &typeDouble = *GlobalTables::GetTypeTable().GetPrimType(PTY_f64);
|
H A D | mir_nodes.cpp | 105 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in DumpBase() 131 LogInfo::MapleLogger() << GetPrimTypeName(GetPrimType()) << " " << GetPrimTypeName(FromType()); in Dump() 138 LogInfo::MapleLogger() << GetPrimTypeName(GetPrimType()) << " "; in Dump() 152 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in Dump() 196 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in Dump() 275 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in Dump() 291 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in Dump() 304 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in Dump() 314 LogInfo::MapleLogger() << kOpcodeInfo.GetTableItemAt(GetOpCode()).name << " " << GetPrimTypeName(GetPrimType()); in Dump() 369 LogInfo::MapleLogger() << " " << GetPrimTypeName(GetPrimType()); in Dump() [all...] |
H A D | mir_lower.cpp | 294 ConstvalNode *minCaseNode = builder->CreateIntConst(minCaseVal, switchOpnd->GetPrimType()); in LowerSwitchStmt() 295 ConstvalNode *maxCaseNode = builder->CreateIntConst(maxCaseVal, switchOpnd->GetPrimType()); in LowerSwitchStmt() 301 *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(switchOpnd->GetPrimType())), switchOpnd, minCaseNode); in LowerSwitchStmt() 312 *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(switchOpnd->GetPrimType())), switchOpnd, minCaseNode); in LowerSwitchStmt() 317 *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(switchOpnd->GetPrimType())), switchOpnd, maxCaseNode); in LowerSwitchStmt()
|
H A D | mir_const.cpp | 241 LogInfo::MapleLogger() << "conststr " << GetPrimTypeName(GetType().GetPrimType()); in Dump() 267 LogInfo::MapleLogger() << "conststr16 " << GetPrimTypeName(GetType().GetPrimType()); in Dump()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | mir_preg.h | 62 PrimType GetPrimType() const in GetPrimType() function in maple::MIRPreg 138 DEBUG_ASSERT(!mtype || mtype->GetPrimType() == PTY_ref || mtype->GetPrimType() == PTY_ptr, "ref or ptr type"); in CreatePreg() 146 PregIdx idx = CreatePreg(rfpreg.GetPrimType(), rfpreg.GetMIRType()); in ClonePreg()
|
H A D | mir_const.h | 124 MIRIntConst(uint64 val, MIRType &type) : MIRConst(type, kConstInt), value(val, type.GetPrimType()) {} in MIRIntConst() 128 [[maybe_unused]] PrimType pType = type.GetPrimType(); in MIRIntConst() 336 static PrimType GetPrimType() in GetPrimType() function in maple::MIRStrConst 353 static PrimType GetPrimType() in GetPrimType() function in maple::MIRStr16Const 397 static PrimType GetPrimType() in GetPrimType() function in maple::MIRFloatConst 489 static PrimType GetPrimType() in GetPrimType() function in maple::MIRDoubleConst
|
H A D | cmpl.h | 207 virtual PrimType GetPrimType() const in GetPrimType() function 291 inline PrimType GetPrimType(const BaseNodeT &nodePtr) in GetPrimType() function
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
H A D | becommon.cpp | 63 if ((ty.GetPrimType() == PTY_ptr) || (ty.GetPrimType() == PTY_ref)) { in ComputeTypeSizesAligns() 71 SetTypeSize(tyIdx, GetPrimTypeSize(ty.GetPrimType())); in ComputeTypeSizesAligns()
|
H A D | lower.cpp | 136 pType = GlobalTables::GetTypeTable().GetTypeTable().at(var->GetTyIdx())->GetPrimType(); in SaveReturnValueInLocal() 278 PrimType pType = mirPreg->GetPrimType(); in GenBlockNode() 283 mirPreg->GetPrimType(), regFieldPair.GetPregIdx(), regNode); in GenBlockNode() 323 auto primType = mirModule.CurFunction()->GetPregItem(static_cast<PregIdx>(regIdx))->GetPrimType(); in LowerIntrinsiccallAassignedToAssignStmt() 402 PrimType ptyp = stmt.Opnd(0)->GetPrimType(); in LowerSwitchOpnd() 522 if ((node.GetPrimType() == PTY_ptr) || (node.GetPrimType() == PTY_ref)) { in LowerTypePtr() 541 if (func.IsFirstArgReturn() && func.GetReturnType()->GetPrimType() != PTY_void) { in LowerEntry() 567 beCommon.AddTypeSizeAndAlign(funcType->GetTypeIndex(), GetPrimTypeSize(funcType->GetPrimType())); in LowerEntry() 695 bool isCvtU1Expr = (expr.GetOpCode() == OP_cvt && expr.GetPrimType() in LowerExpr() [all...] |
H A D | switch_lowerer.cpp | 139 binaryExpr->SetOpndType(stmt->GetSwitchOpnd()->GetPrimType()); in BuildCmpNode() 141 MIRType &type = *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(stmt->GetSwitchOpnd()->GetPrimType())); in BuildCmpNode() 144 exprConst->SetPrimType(stmt->GetSwitchOpnd()->GetPrimType()); in BuildCmpNode() 201 if (!(IsUnsignedInteger(stmt->GetSwitchOpnd()->GetPrimType()) && in BuildCodeForSwitchItems()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/ |
H A D | intrinsics_test.cpp | 37 mirtype_ptr->GetPrimType(); in TEST()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | isel.h | 107 PrimType primType = c.GetType().GetPrimType(); in SelectLiteral() 112 if ((T::GetPrimType() == PTY_f32 || T::GetPrimType() == PTY_f64)) { in SelectLiteral()
|
H A D | call_conv.h | 132 PrimType GetPrimType() const in GetPrimType() function in maplebe::LmbcFormalParamInfo
|