Home
last modified time | relevance | path

Searched refs:GetPrimType (Results 1 - 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp114 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 Daarch64_call_conv.cpp40 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 Daarch64_cgfunc.cpp682 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 Daarch64_args.cpp91 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 Daarch64_live.cpp22 PrimType returnType = cgFunc->GetFunction().GetReturnType()->GetPrimType(); in GenerateReturnBBDefUse()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
H A Dlmir_builder.cpp25 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 Disel.cpp354 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 Dcgfunc.cpp142 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 Dx64_call_conv.cpp27 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 Dx64_MPIsel.cpp30 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 Dx64_memlayout.cpp41 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 Dmir_builder.cpp172 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 Dglobal_tables.cpp91 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 Dmir_nodes.cpp105 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 Dmir_lower.cpp294 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 Dmir_const.cpp241 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 Dmir_preg.h62 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 Dmir_const.h124 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 Dcmpl.h207 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 Dbecommon.cpp63 if ((ty.GetPrimType() == PTY_ptr) || (ty.GetPrimType() == PTY_ref)) { in ComputeTypeSizesAligns()
71 SetTypeSize(tyIdx, GetPrimTypeSize(ty.GetPrimType())); in ComputeTypeSizesAligns()
H A Dlower.cpp136 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 Dswitch_lowerer.cpp139 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 Dintrinsics_test.cpp37 mirtype_ptr->GetPrimType(); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
H A Disel.h107 PrimType primType = c.GetType().GetPrimType(); in SelectLiteral()
112 if ((T::GetPrimType() == PTY_f32 || T::GetPrimType() == PTY_f64)) { in SelectLiteral()
H A Dcall_conv.h132 PrimType GetPrimType() const in GetPrimType() function in maplebe::LmbcFormalParamInfo

Completed in 23 milliseconds

12