Home
last modified time | relevance | path

Searched refs:mirModule (Results 1 – 25 of 46) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_lower.cpp140 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 …]
Dintrinsics.cpp23 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()
Dmir_builder.cpp32 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/
Deh_func.cpp28 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
126mirModule->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 …]
Dcg.cpp22 #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/
Dme_function.cpp40 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/
Dswitch_lowerer.cpp106 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 …]
Dlower.cpp48 #define JAVALANG (mirModule.IsJavaModule())
109 var->SetNameStrIdx(mirModule.GetMIRBuilder()->GetOrCreateStringIndex(strBuf)); in CreateNewRetVar()
124mirModule.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 …]
Dbecommon.cpp28 : 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/
Dbin_mplt.h28 explicit BinaryMplt(MIRModule &md) : mirModule(md), binImport(md), binExport(md) {} in BinaryMplt()
45 return mirModule; in GetMod()
69 MIRModule &mirModule;
Dmir_lower.h53 MIRLower(MIRModule &mod, MIRFunction *f) : mirModule(mod), mirFunc(f) {} in MIRLower()
69 mirBuilder = mirModule.GetMemPool()->New<MIRBuilder>(&mirModule); in Init()
173 MIRModule &mirModule;
Dintrinsics.h194 static MIRModule *mirModule; member
195 static void InitMIRModule(MIRModule *mirModule);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
Dmodule_phase_manager.cpp20 #define JAVALANG (mirModule.IsJavaModule())
21 #define CLANG (mirModule.IsCModule())
Dconstantfold.cpp121 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()
159mirModule->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 …]
Dext_constantfold.cpp200 ConstvalNode *lowVal = mirModule->GetMIRBuilder()->CreateIntConst(minVal, nPrimType); in ExtFoldIor()
201 … diffVal = mirModule->CurFuncCodeMemPool()->New<BinaryNode>(OP_sub, nPrimType, lNode, lowVal); in ExtFoldIor()
207mirModule->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/
Dtry_catch.h127 TryCatchBlocksLower(MemPool &memPool, BlockNode &body, MIRModule &mirModule) in TryCatchBlocksLower() argument
131 mirModule(mirModule), in TryCatchBlocksLower()
154 MIRModule &mirModule; variable
Dlower.h48 …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()
Dswitch_lowerer.h27 : 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/
Dext_constantfold.h24 explicit ExtConstantFold(MIRModule *mod) : mirModule(mod) {} in ExtConstantFold()
39 MIRModule *mirModule; variable
Dclone.h66 mirModule(mod), in Clone()
94 MIRModule *mirModule;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dcg.h123 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/
Dlitecg.cpp33 LiteCG::LiteCG(Module &mirModule) : module(mirModule) in LiteCG() argument
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/
Dssa_tab.h32 mirModule(*mod), in SSATab()
203 return mirModule; in GetModule()
242 MIRModule &mirModule;
Dme_function.h175 mirModule(*mod), in MeFunction()
275 return mirModule; in GetMIRModule()
392 return mirModule.CurFunction(); in CurFunction()
463 MIRModule &mirModule; variable
Dirmap.h34 mirModule(ssaTab.GetModule()), in IRMap()
193 return mirModule; in GetMIRModule()
198 return mirModule; in GetMIRModule()
300 MIRModule &mirModule; variable

12