/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
H A D | intrinsics.cpp | 40 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 D | mir_symbol.cpp | 56 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 D | mir_type.cpp | 345 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 D | mir_nodes.cpp | 49 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 D | mir_function.cpp | 76 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 D | global_tables.cpp | 169 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 D | mir_lower.cpp | 300 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 D | mir_builder.cpp | 41 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 D | mir_module.cpp | 247 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 D | becommon.cpp | 29 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 D | lower.cpp | 136 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 D | switch_lowerer.cpp | 141 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 D | x64_memlayout.cpp | 41 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 D | x64_MPIsel.cpp | 143 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 D | x64_args.cpp | 44 if (GlobalTables::GetTypeTable().GetTypeFromTyIdx(tyIdx)->GetSize() <= k16ByteSize) { in CollectRegisterArgs()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_ir/ |
H A D | mir_const_test.cpp | 31 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 D | aarch64_memlayout.cpp | 51 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 D | aarch64_cgfunc.cpp | 810 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 D | constantfold_test.cpp | 37 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 D | lmir_builder.cpp | 25 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 D | constantfold.cpp | 314 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 D | global_tables.h | 107 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 D | mir_builder.h | 175 MIRType *ty = GlobalTables::GetTypeTable().GetTypeFromTyIdx(static_cast<TyIdx>(pty));
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/ |
H A D | orig_symbol.h | 275 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 D | isel.cpp | 567 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()
|