| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | mir_lower.cpp | 140 auto *brStmt = mirModule.CurFuncCodeMemPool()->New<CondGotoNode>(op); in CreateCondGotoStmt() 143 LabelIdx lableIdx = mirModule.CurFunction()->GetLabelTab()->CreateLabel(); in CreateCondGotoStmt() 144 mirModule.CurFunction()->GetLabelTab()->AddToStringLabelMap(lableIdx); in CreateCondGotoStmt() 162 auto *lableStmt = mirModule.CurFuncCodeMemPool()->New<LabelNode>(); in CreateBrFalseStmt() 177 auto *lableStmt = mirModule.CurFuncCodeMemPool()->New<LabelNode>(); in CreateBrTrueStmt() 195 auto *gotoStmt = mirModule.CurFuncCodeMemPool()->New<GotoNode>(OP_goto); in CreateBrFalseAndGotoStmt() 196 gotoLableIdx = mirModule.CurFunction()->GetLabelTab()->CreateLabel(); in CreateBrFalseAndGotoStmt() 197 mirModule.CurFunction()->GetLabelTab()->AddToStringLabelMap(gotoLableIdx); in CreateBrFalseAndGotoStmt() 205 auto *lableStmt = mirModule.CurFuncCodeMemPool()->New<LabelNode>(); in CreateBrFalseAndGotoStmt() 214 lableStmt = mirModule.CurFuncCodeMemPool()->New<LabelNode>(); in CreateBrFalseAndGotoStmt() [all …]
|
| D | intrinsics.cpp | 23 MIRModule *IntrinDesc::mirModule = nullptr; member in maple::IntrinDesc 35 MIRBuilder *jsBuilder = mirModule->GetMIRBuilder(); in GetOrCreateJSValueType() 51 …bles::GetTypeTable().GetOrCreateUnionType("payload_type", payloadFields, parentFields, *mirModule); in GetOrCreateJSValueType() 58 … = GlobalTables::GetTypeTable().GetOrCreateStructType("s_type", sFields, parentFields, *mirModule); in GetOrCreateJSValueType() 73 … parentFields, *mirModule); in GetOrCreateJSValueType() 79 mirModule = mod; in InitMIRModule()
|
| D | mir_builder.cpp | 32 AddrofNode *fieldExpr = CreateExprAddrof(0, fieldSymbol, mirModule->GetMemPool()); in AddAddrofFieldConst() 33 …auto *fieldConst = mirModule->GetMemPool()->New<MIRAddrofConst>(fieldExpr->GetStIdx(), fieldExpr->… in AddAddrofFieldConst() 48 CreateExprAddroffunc(funcSymbol.GetFunction()->GetPuidx(), mirModule->GetMemPool()); in AddAddroffuncFieldConst() 49 fieldConst = mirModule->GetMemPool()->New<MIRAddroffuncConst>(addrofFuncExpr->GetPUIdx(), in AddAddroffuncFieldConst() 239 auto *fn = mirModule->GetMemPool()->New<MIRFunction>(mirModule, funcSt->GetStIdx()); in GetOrCreateFunction() 283 auto *fn = mirModule->GetMemPool()->New<MIRFunction>(mirModule, funcSymbol->GetStIdx()); in CreateFunction() 313 auto *fn = mirModule->GetMemPool()->New<MIRFunction>(mirModule, stIdx); in CreateFunction() 319 auto *funcType = mirModule->GetMemPool()->New<MIRFuncType>(); in CreateFunction() 436 mirModule->AddSymbol(st); in GetOrCreateGlobalDecl() 521 MIRAggConst *val = mirModule->GetMemPool()->New<MIRAggConst>(*mirModule, *arrayTypeWithSize); in CreateConstStringSymbol() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/ |
| D | eh_func.cpp | 28 MIRModule *mirModule = mirFunc.GetModule(); in CollectEHInformation() local 29 CHECK_FATAL(mirModule != nullptr, "mirModule is nullptr in CGFunc::BuildEHFunc"); in CollectEHInformation() 72 … DEBUG_ASSERT(mirModule->GetThrowableTyIdx() != 0u, "throwable type id is 0"); in CollectEHInformation() 74 … GlobalTables::GetTypeTable().GetTypeFromTyIdx(mirModule->GetThrowableTyIdx()); in CollectEHInformation() 103 void EHTry::DumpEHTry(const MIRModule &mirModule) in DumpEHTry() argument 124 MIRModule *mirModule = mirFunc.GetModule(); in ConvertThrowToRuntime() local 126 …mirModule->GetMIRBuilder()->GetOrCreateFunction("MCC_ThrowException", static_cast<TyIdx>(PTY_void)… in ConvertThrowToRuntime() 129 …MapleVector<BaseNode *> args(mirModule->GetMIRBuilder()->GetCurrentFuncCodeMpAllocator()->Adapter(… in ConvertThrowToRuntime() 131 CallNode *callAssign = mirModule->GetMIRBuilder()->CreateStmtCall(calleeFunc->GetPuidx(), args); in ConvertThrowToRuntime() 138 MIRModule *mirModule = mirFunc.GetModule(); in ConvertThrowToRethrow() local [all …]
|
| D | cg.cpp | 22 #define JAVALANG (mirModule->IsJavaModule()) 44 mirModule = nullptr; in ~CG() 65 for (const auto &tyId : mirModule->GetClassList()) { in GenExtraTypeMetadata() 88 MIRType *type = GlobalTables::GetTypeTable().GetOrCreateClassType(str, *mirModule); in GenExtraTypeMetadata() 131 for (StIdx stIdx : mirModule->GetSymbolSet()) { in GenPrimordialObjectList()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/src/ |
| D | me_function.cpp | 40 ConstantFold cf(mirModule); in PartialInit() 42 if (mirModule.IsJavaModule() && (!mirFunc->GetInfoVector().empty())) { in PartialInit() 76 label = mirModule.CurFunction()->GetLabelTab()->CreateLabelWithPrefix('m'); in GetOrCreateBBLabel() 77 mirModule.CurFunction()->GetLabelTab()->AddToStringLabelMap(label); in GetOrCreateBBLabel()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/ |
| D | switch_lowerer.cpp | 106 RangeGotoNode *node = mirModule.CurFuncCodeMemPool()->New<RangeGotoNode>(mirModule); in BuildRangeGotoNode() 109 node->SetRangeGotoTable(SmallCaseVector(mirModule.CurFuncCodeMemPoolAllocator()->Adapter())); in BuildRangeGotoNode() 137 CompareNode *binaryExpr = mirModule.CurFuncCodeMemPool()->New<CompareNode>(opCode); in BuildCmpNode() 143 ConstvalNode *exprConst = mirModule.CurFuncCodeMemPool()->New<ConstvalNode>(); in BuildCmpNode() 157 GotoNode *gotoStmt = mirModule.CurFuncCodeMemPool()->New<GotoNode>(OP_goto); in BuildGotoNode() 171 CondGotoNode *cGotoStmt = mirModule.CurFuncCodeMemPool()->New<CondGotoNode>(opCode); in BuildCondGotoNode() 187 BlockNode *localBlk = mirModule.CurFuncCodeMemPool()->New<BlockNode>(); in BuildCodeForSwitchItems() 195 MIRLower mirLowerer(mirModule, mirModule.CurFunction()); in BuildCodeForSwitchItems() 214 ifStmt = static_cast<IfStmtNode *>(mirModule.GetMIRBuilder()->CreateStmtIf(cmpNode)); in BuildCodeForSwitchItems() 238 ifStmt = static_cast<IfStmtNode *>(mirModule.GetMIRBuilder()->CreateStmtIf(cmpNode)); in BuildCodeForSwitchItems() [all …]
|
| D | lower.cpp | 48 #define JAVALANG (mirModule.IsJavaModule()) 109 var->SetNameStrIdx(mirModule.GetMIRBuilder()->GetOrCreateStringIndex(strBuf)); in CreateNewRetVar() 124 …mirModule.GetMIRBuilder()->GetOrCreateFunction(extFnDescrs[i].name, TyIdx(extFnDescrs[i].retType)); in RegisterExternalLibraryFunctions() 154 argSt->SetNameStrIdx(mirModule.GetMIRBuilder()->GetOrCreateStringIndex(strBuf)); in RegisterExternalLibraryFunctions() 175 TypeCvtNode *cvtNode = mirModule.CurFuncCodeMemPool()->New<TypeCvtNode>(OP_cvt); in NodeConvert() 200 BaseNode *offsetNode = mirModule.CurFuncCodeMemPool()->New<ConstvalNode>(offsetConst); in LowerIaddrof() 203 BinaryNode *addNode = mirModule.CurFuncCodeMemPool()->New<BinaryNode>(OP_add); in LowerIaddrof() 215 MIRBuilder *mirbuilder = mirModule.GetMIRBuilder(); in SplitBinaryNodeOpnd1() 237 MIRBuilder *mirbuilder = mirModule.GetMIRBuilder(); in SplitTernaryNodeResult() 282 int32 freq = mirModule.CurFunction()->GetFreqFromLastStmt(stmt->GetStmtID()); in FindTheCurrentStmtFreq() [all …]
|
| D | becommon.cpp | 28 : mirModule(mod), in BECommon() 29 …typeSizeTable(GlobalTables::GetTypeTable().GetTypeTable().size(), 0, mirModule.GetMPAllocator().Ad… in BECommon() 30 …able(GlobalTables::GetTypeTable().GetTypeTable().size(), static_cast<uint8>(mirModule.IsCModule()), in BECommon() 31 mirModule.GetMPAllocator().Adapter()), in BECommon() 32 …typeHasFlexibleArray(GlobalTables::GetTypeTable().GetTypeTable().size(), 0, mirModule.GetMPAllocat… in BECommon() 34 mirModule.GetMPAllocator().Adapter()), in BECommon() 35 jClassLayoutTable(mirModule.GetMPAllocator().Adapter()), in BECommon() 36 funcReturnType(mirModule.GetMPAllocator().Adapter()) in BECommon() 44 if (mirModule.IsJavaModule()) { in BECommon() 120 typeAlignTable.emplace_back(static_cast<uint8>(mirModule.IsCModule())); in AddNewTypeAfterBecommon() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | bin_mplt.h | 28 explicit BinaryMplt(MIRModule &md) : mirModule(md), binImport(md), binExport(md) {} in BinaryMplt() 45 return mirModule; in GetMod() 69 MIRModule &mirModule;
|
| D | mir_lower.h | 53 MIRLower(MIRModule &mod, MIRFunction *f) : mirModule(mod), mirFunc(f) {} in MIRLower() 69 mirBuilder = mirModule.GetMemPool()->New<MIRBuilder>(&mirModule); in Init() 173 MIRModule &mirModule;
|
| D | intrinsics.h | 194 static MIRModule *mirModule; member 195 static void InitMIRModule(MIRModule *mirModule);
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/ |
| D | module_phase_manager.cpp | 20 #define JAVALANG (mirModule.IsJavaModule()) 21 #define CLANG (mirModule.IsCModule())
|
| D | constantfold.cpp | 121 result = mirModule->CurFuncCodeMemPool()->New<BinaryNode>(op, primType, lhs, rhs); in NewBinaryNode() 133 result = mirModule->CurFuncCodeMemPool()->New<UnaryNode>(op, primType, expr); in NewUnaryNode() 147 …ConstvalNode *val = mirModule->GetMIRBuilder()->CreateIntConst(pair.second->GetExtValue(), resultT… in PairToExpr() 149 result = mirModule->CurFuncCodeMemPool()->New<BinaryNode>(OP_sub, resultType, val, r); in PairToExpr() 154 …ConstvalNode *val = mirModule->GetMIRBuilder()->CreateIntConst(pair.second->GetExtValue(), resultT… in PairToExpr() 155 … result = mirModule->CurFuncCodeMemPool()->New<BinaryNode>(OP_add, resultType, pair.first, val); in PairToExpr() 159 … mirModule->GetMIRBuilder()->CreateIntConst((-pair.second.value()).GetExtValue(), resultType); in PairToExpr() 160 … result = mirModule->CurFuncCodeMemPool()->New<BinaryNode>(OP_sub, resultType, pair.first, val); in PairToExpr() 316 …return mirModule->CurFuncCodeMemPool()->New<UnaryNode>(OP_neg, PrimType(node->GetPrimType()), node… in Negate() 335 ConstvalNode *copy = node->CloneTree(mirModule->GetCurFuncCodeMPAllocator()); in Negate() [all …]
|
| D | ext_constantfold.cpp | 200 ConstvalNode *lowVal = mirModule->GetMIRBuilder()->CreateIntConst(minVal, nPrimType); in ExtFoldIor() 201 … diffVal = mirModule->CurFuncCodeMemPool()->New<BinaryNode>(OP_sub, nPrimType, lNode, lowVal); in ExtFoldIor() 207 …mirModule->GetMIRBuilder()->CreateIntConst(static_cast<int64>(uniqOperands.size()) - 1, cmpPrimTyp… in ExtFoldIor() 209 …result = mirModule->GetMIRBuilder()->CreateExprCompare(OP_le, *cmpMirType, *cmpMirType, diffVal, d… in ExtFoldIor() 270 …ConstvalNode *mIntConst = mirModule->GetMIRBuilder()->CreateIntConst(static_cast<int64>(mVal), mPr… in ExtFoldXand() 272 …ConstvalNode *cIntConst = mirModule->GetMIRBuilder()->CreateIntConst(static_cast<int64>(cVal), cPr… in ExtFoldXand()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/ |
| D | try_catch.h | 127 TryCatchBlocksLower(MemPool &memPool, BlockNode &body, MIRModule &mirModule) in TryCatchBlocksLower() argument 131 mirModule(mirModule), in TryCatchBlocksLower() 154 MIRModule &mirModule; variable
|
| D | lower.h | 48 …CGLowerer(MIRModule &mod, BECommon &common, MIRFunction *func = nullptr) : mirModule(mod), beCommo… in mirModule() function 55 …CGLowerer(MIRModule &mod, BECommon &common, bool genEh, bool verboseCG) : mirModule(mod), beCommon… in CGLowerer() 102 return mirModule.CurFunction(); in GetCurrentFunc() 136 size_t pos = mirModule.GetFileNameFromFileNum(stmt.GetSrcPos().FileNum()).rfind('/'); in AssertBoundaryGetFileName() 137 return mirModule.GetFileNameFromFileNum(stmt.GetSrcPos().FileNum()).substr(pos + 1); in AssertBoundaryGetFileName() 223 DEBUG_ASSERT(mirModule.CurFunction() != nullptr, "nullptr check"); in ShouldOptarray() 224 return MIRLower::ShouldOptArrayMrt(*mirModule.CurFunction()); in ShouldOptarray() 252 MIRModule &mirModule; variable 284 mirModule.SetCurFunction(func); in SetCurrentFunc()
|
| D | switch_lowerer.h | 27 : mirModule(mod), stmt(&stmt), switchItems(allocator.Adapter()), ownAllocator(&allocator) in SwitchLowerer() 39 maple::MIRModule &mirModule; variable
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/ |
| D | ext_constantfold.h | 24 explicit ExtConstantFold(MIRModule *mod) : mirModule(mod) {} in ExtConstantFold() 39 MIRModule *mirModule; variable
|
| D | clone.h | 66 mirModule(mod), in Clone() 94 MIRModule *mirModule;
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | cg.h | 123 mirModule(&mod), in CG() 134 isLmbc = (mirModule->GetFlavor() == MIRFlavor::kFlavorLmbc); in CG() 270 return mirModule; in GetMIRModule() 285 return mirModule; in GetMIRModule() 458 MIRModule *mirModule;
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
| D | litecg.cpp | 33 LiteCG::LiteCG(Module &mirModule) : module(mirModule) in LiteCG() argument
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/ |
| D | ssa_tab.h | 32 mirModule(*mod), in SSATab() 203 return mirModule; in GetModule() 242 MIRModule &mirModule;
|
| D | me_function.h | 175 mirModule(*mod), in MeFunction() 275 return mirModule; in GetMIRModule() 392 return mirModule.CurFunction(); in CurFunction() 463 MIRModule &mirModule; variable
|
| D | irmap.h | 34 mirModule(ssaTab.GetModule()), in IRMap() 193 return mirModule; in GetMIRModule() 198 return mirModule; in GetMIRModule() 300 MIRModule &mirModule; variable
|