Home
last modified time | relevance | path

Searched refs:GetTypeTable (Results 1 - 25 of 27) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
H A Dintrinsics.cpp40 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_void)); in GetTypeFromArgTy()
42 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_i8)); in GetTypeFromArgTy()
44 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_i16)); in GetTypeFromArgTy()
46 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_i32)); in GetTypeFromArgTy()
48 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_i64)); in GetTypeFromArgTy()
50 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_u8)); in GetTypeFromArgTy()
52 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_u16)); in GetTypeFromArgTy()
54 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_u32)); in GetTypeFromArgTy()
56 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_u64)); in GetTypeFromArgTy()
58 return GlobalTables::GetTypeTable() in GetTypeFromArgTy()
[all...]
H A Dmir_symbol.cpp56 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in GetType()
62 MIRType *origType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in PointsToConstString()
267 if (GetTyIdx() >= GlobalTables::GetTypeTable().GetTypeTable().size()) { in Dump()
291 GlobalTables::GetTypeTable().GetTypeFromTyIdx(GetTyIdx())->Dump(indent + 1); in Dump()
H A Dmir_type.cpp345 GlobalTables::GetTypeTable().GetTypeFromTyIdx(paramTypeList[i])->Dump(indent + 1); in Dump()
357 GlobalTables::GetTypeTable().GetTypeFromTyIdx(retTyIdx)->Dump(indent + 1); in Dump()
417 GlobalTables::GetTypeTable().GetTypeFromTyIdx(eTyIdx)->Dump(indent + 1); in Dump()
425 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(pointedTyIdx); in GetPointedType()
450 MIRType *pointedType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(pointedTyIdx); in Dump()
503 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(eTyIdx); in GetElemType()
537 MIRType *pointedTy = GlobalTables::GetTypeTable().GetTypeFromTyIdx(GetPointedTyIdx()); in IsPointedTypeVolatile()
H A Dmir_nodes.cpp49 MIRPtrType *ptrtype = static_cast<MIRPtrType *>(GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)); in GetType()
139 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in Dump()
165 GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->Dump(0); in Dump()
399 GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->Dump(0); in Dump()
581 GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->Dump(indent + 1); in Dump()
600 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(retTyIdx);
603 MIRFuncType *funcType = static_cast<MIRFuncType *>(GlobalTables::GetTypeTable().GetTypeFromTyIdx(retTyIdx));
604 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(funcType->GetRetTyIdx());
614 GlobalTables::GetTypeTable().GetTypeFromTyIdx(retTyIdx)->Dump(indent + 1);
630 GlobalTables::GetTypeTable()
[all...]
H A Dmir_function.cpp76 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(funcType->GetRetTyIdx()); in GetReturnType()
87 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(funcType->GetParamTypeList()[i]); in GetNthParamType()
117 auto newFuncTypeIdx = GlobalTables::GetTypeTable().GetOrCreateMIRType(newFuncType); in UpdateFuncTypeAndFormalsAndReturnType()
118 funcType = static_cast<MIRFuncType *>(GlobalTables::GetTypeTable().GetTypeFromTyIdx(newFuncTypeIdx)); in UpdateFuncTypeAndFormalsAndReturnType()
216 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(formalDefVec[i].formalTyIdx); in DumpFlavorLoweredThanMmpl()
453 MIRType *mirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(formalDef.formalTyIdx); in EnterFormals()
H A Dglobal_tables.cpp169 MIRType &typeFloat = *GlobalTables::GetTypeTable().GetPrimType(PTY_f32);
174 MIRType &typeDouble = *GlobalTables::GetTypeTable().GetPrimType(PTY_f64);
224 auto *floatConst = new MIRFloatConst(floatVal, *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx {PTY_f32}));
251 new MIRDoubleConst(doubleVal, *GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_f64)));
H A Dmir_lower.cpp300 OP_eq, *GlobalTables::GetTypeTable().GetInt32(), in LowerSwitchStmt()
301 *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(switchOpnd->GetPrimType())), switchOpnd, minCaseNode); in LowerSwitchStmt()
311 OP_lt, *GlobalTables::GetTypeTable().GetInt32(), in LowerSwitchStmt()
312 *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(switchOpnd->GetPrimType())), switchOpnd, minCaseNode); in LowerSwitchStmt()
316 OP_gt, *GlobalTables::GetTypeTable().GetInt32(), in LowerSwitchStmt()
317 *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(switchOpnd->GetPrimType())), switchOpnd, maxCaseNode); in LowerSwitchStmt()
473 MIRType *mirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<RetypeNode *>(x)->GetTyIdx()); in FuncTypeFromFuncPtrExpr()
H A Dmir_builder.cpp41 auto funcTyIdx = GlobalTables::GetTypeTable().GetOrCreateMIRType(&funcType); in GetOrCreateFunction()
42 auto *funcTypeInTypeTable = static_cast<MIRFuncType *>(GlobalTables::GetTypeTable().GetTypeFromTyIdx(funcTyIdx)); in GetOrCreateFunction()
91 funcSymbol->SetTyIdx(GlobalTables::GetTypeTable() in CreateFunction()
178 GlobalTables::GetIntConstTable().GetOrCreateIntConst(val, *GlobalTables::GetTypeTable().GetPrimType(pty)); in CreateIntConst()
224 CHECK(returnTypeIdx < GlobalTables::GetTypeTable().GetTypeTable().size(), in CreateExprIread()
H A Dmir_module.cpp247 MIRType *type = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in DumpGlobals()
291 MIRType *symbolType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(symbol->GetTyIdx()); in DumpGlobalArraySymbol()
384 MIRType *type = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in DumpDefType()
454 MIRType *type = GlobalTables::GetTypeTable().GetTypeFromTyIdx(it.second); in DumpClassToFile()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
H A Dbecommon.cpp29 typeSizeTable(GlobalTables::GetTypeTable().GetTypeTable().size(), 0, mirModule.GetMPAllocator().Adapter()), in BECommon()
30 typeAlignTable(GlobalTables::GetTypeTable().GetTypeTable().size(), static_cast<uint8>(mirModule.IsCModule()), in BECommon()
32 typeHasFlexibleArray(GlobalTables::GetTypeTable().GetTypeTable().size(), 0, mirModule.GetMPAllocator().Adapter()), in BECommon()
33 structFieldCountTable(GlobalTables::GetTypeTable().GetTypeTable().size(), 0, in BECommon()
37 for (uint32 i = 1; i < GlobalTables::GetTypeTable().GetTypeTable() in BECommon()
[all...]
H A Dlower.cpp136 pType = GlobalTables::GetTypeTable().GetTypeTable().at(var->GetTyIdx())->GetPrimType(); in SaveReturnValueInLocal()
259 retType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(sym->GetTyIdx()); in GenBlockNode()
512 CHECK_FATAL(beCommon.GetSizeOfTypeSizeTable() == GlobalTables::GetTypeTable().GetTypeTableSize(), "Error!"); in LowerBlock()
711 auto *fromMIRType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(fromType)); in LowerExpr()
713 auto *toMIRType = GlobalTables::GetTypeTable().GetUInt8(); in LowerExpr()
768 uint32 oldTypeTableSize = GlobalTables::GetTypeTable().GetTypeTableSize(); in LowerDreadToThreadLocal()
780 auto ptrType = GlobalTables::GetTypeTable().GetOrCreatePointerType(*symbol->GetType()); in LowerDreadToThreadLocal()
784 uint32 newTypeTableSize = GlobalTables::GetTypeTable().GetTypeTableSize(); in LowerDreadToThreadLocal()
797 uint32 oldTypeTableSize = GlobalTables::GetTypeTable() in LowerDassignToThreadLocal()
[all...]
H A Dswitch_lowerer.cpp141 MIRType &type = *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(stmt->GetSwitchOpnd()->GetPrimType())); in BuildCmpNode()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_memlayout.cpp41 ty = GlobalTables::GetTypeTable().GetTypeTable()[static_cast<uint32>(opnd->GetPrimType())]; in ComputeStackSpaceRequirementForCall()
55 align = GlobalTables::GetTypeTable().GetTypeFromTyIdx(typeIdx)->GetAlign(); in SetSizeAlignForTypeIdx()
56 size = GlobalTables::GetTypeTable().GetTypeFromTyIdx(typeIdx)->GetSize(); in SetSizeAlignForTypeIdx()
119 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in LayoutLocalVariables()
123 segLocals.SetSize(segLocals.GetSize() + GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->GetSize()); in LayoutLocalVariables()
140 MIRType *mirTy = GlobalTables::GetTypeTable().GetTypeTable()[pType]; in AssignSpillLocationsToPseudoRegisters()
H A Dx64_MPIsel.cpp143 MIRType *mirType = GlobalTables::GetTypeTable().GetTypeTable()[static_cast<uint32>(primType)]; in SelectParmList()
284 MIRType *retType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(iCallNode.GetRetTyIdx()); in SelectIcall()
288 retType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(calleeType->GetRetTyIdx()); in SelectIcall()
395 MIRType *etype = GlobalTables::GetTypeTable().GetTypeFromTyIdx((TyIdx)PTY_a64); in SelectRangeGoto()
H A Dx64_args.cpp44 if (GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->GetSize() <= k16ByteSize) { in CollectRegisterArgs()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/
H A Dmir_const_test.cpp31 1, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
33 1, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
35 2, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
54 0, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
71 1, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_memlayout.cpp51 ty = GlobalTables::GetTypeTable().GetTypeTable()[static_cast<uint32>(opnd->GetPrimType())]; in ComputeStackSpaceRequirementForCall()
65 auto *mirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(typeIdx); in SetSizeAlignForTypeIdx()
80 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(mirFunction->GetFormalDefVec()[i].formalTyIdx); in LayoutFormalParams()
155 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx); in LayoutLocalVariables()
160 static_cast<uint32>(GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->GetSize())); in LayoutLocalVariables()
200 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(mirFunction->GetFormalDefVec()[i].formalTyIdx); in LayoutActualParams()
203 *sym, 0, GlobalTables::GetTypeTable().GetTypeFromTyIdx(ptyIdx)->GetAlign() * kBitsPerByte); in LayoutActualParams()
H A Daarch64_cgfunc.cpp810 MIRType *aType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(pointerType.GetPointedTyIdx()); in GetPointedToType()
813 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(arrayType->GetElemTyIdx()); in GetPointedToType()
821 MIRPtrType *pointerType = static_cast<MIRPtrType *>(GlobalTables::GetTypeTable().GetTypeFromTyIdx(stmt.GetTyIdx())); in SelectIassign()
922 MIRType *type = GlobalTables::GetTypeTable().GetTypeFromTyIdx(expr.GetTyIdx()); in SelectIread()
3049 MIRType *etype = GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(PTY_a64));
3314 auto *mirType = GlobalTables::GetTypeTable().GetPrimType(primType);
3330 MIRType *protoType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(iCallNode->GetRetTyIdx());
3500 ty = GlobalTables::GetTypeTable().GetTypeTable()[static_cast<uint32>(primType)];
3657 MIRType *floatType = GlobalTables::GetTypeTable()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mpl2mpl/
H A Dconstantfold_test.cpp37 mc_int_ptr1 = GlobalTables::GetIntConstTable().GetOrCreateIntConst(2, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
38 mc_int_ptr2 = GlobalTables::GetIntConstTable().GetOrCreateIntConst(1, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
102 mc_int_ptr0 = GlobalTables::GetIntConstTable().GetOrCreateIntConst(0, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
103 mc_int_ptr1 = GlobalTables::GetIntConstTable().GetOrCreateIntConst(1, *GlobalTables::GetTypeTable().GetInt64()); in TEST()
170 GlobalTables::GetIntConstTable().GetOrCreateIntConst(0, *GlobalTables::GetTypeTable().GetInt64()), in TEST()
227 *GlobalTables::GetTypeTable().GetUInt64())}, in TEST()
230 *GlobalTables::GetTypeTable().GetInt64())}, in TEST()
232 *GlobalTables::GetTypeTable().GetUInt1())}, in TEST()
234 *GlobalTables::GetTypeTable().GetUInt8())}}; in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
H A Dlmir_builder.cpp25 return GlobalTables::GetTypeTable().GetPrimType(type); in GetPrimitiveType()
132 auto type = GlobalTables::GetTypeTable().GetOrCreatePointerType(*mirType, PTY_ptr); in CreatePtrType()
138 auto type = GlobalTables::GetTypeTable().GetOrCreatePointerType(*mirType, PTY_ref); in CreateRefType()
157 auto type = GlobalTables::GetTypeTable().GetOrCreateFunctionType(retType->GetTypeIndex(), params, attrs, isVarg); in CreateFuncType()
175 paramTypes.push_back(GlobalTables::GetTypeTable().GetTypeFromTyIdx(paramType)); in LiteCGGetFuncParamTypes()
186 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(retTypeIndex); in LiteCGGetFuncReturnType()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp314 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(resultType); in FoldIntConstComparisonMIRConst()
400 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(resultType); in FoldIntConstBinaryMIRConst()
612 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(resultType); in FoldFPConstComparisonMIRConst()
748 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(resultType); in FoldIntConstUnaryMIRConst()
928 MIRType &resultType = *GlobalTables::GetTypeTable().GetPrimType(toType); in FoldCeil()
978 MIRType &resultType = *GlobalTables::GetTypeTable().GetPrimType(toType); in FoldFloorMIRConst()
1021 MIRType &resultType = *GlobalTables::GetTypeTable().GetPrimType(toType); in FoldRoundMIRConst()
1083 MIRType &resultType = *GlobalTables::GetTypeTable().GetPrimType(toType); in FoldTrunc()
1137 MIRType &type = *GlobalTables::GetTypeTable().GetPrimType(toType); in FoldTypeCvtMIRConst()
1318 MIRType &type = *GlobalTables::GetTypeTable() in FoldSignExtendMIRConst()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
H A Dglobal_tables.h107 std::vector<MIRType *> &GetTypeTable() in GetTypeTable() function in maple::TypeTable
112 const std::vector<MIRType *> &GetTypeTable() const in GetTypeTable() function in maple::TypeTable
751 static TypeTable &GetTypeTable()
829 return *(GlobalTables::GetTypeTable().GetTypeFromTyIdx(idx));
H A Dmir_builder.h175 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(pty));
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/
H A Dorig_symbol.h275 MIRType *mirtype = GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx);
289 return GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Disel.cpp567 MIRType *type = GlobalTables::GetTypeTable().GetTypeFromTyIdx(iread.GetTyIdx()); in GetFieldIdAndMirTypeFromMirNode()
570 mirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(pointerType->GetPointedTyIdx()); in GetFieldIdAndMirTypeFromMirNode()
573 mirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(arrayType->GetElemTyIdx()); in GetFieldIdAndMirTypeFromMirNode()
590 MIRType *iassignMirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(iassign.GetTyIdx()); in GetFieldIdAndMirTypeFromMirNode()
594 mirType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(pointerType->GetPointedTyIdx()); in GetFieldIdAndMirTypeFromMirNode()
1114 mask, *GlobalTables::GetTypeTable().GetTypeTable().at(PTY_f64)); in SelectAbs()

Completed in 29 milliseconds

12