diff --git a/src/mapleall/maple_me/BUILD.gn b/src/mapleall/maple_me/BUILD.gn index 9f6172140182799d2f7b31e3380eb4b8a18de4b1..c0eef6269fb0f6e0b5951c7a107cc0aaba418f6a 100644 --- a/src/mapleall/maple_me/BUILD.gn +++ b/src/mapleall/maple_me/BUILD.gn @@ -1,5 +1,5 @@ # -# Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. +# Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. # # OpenArkCompiler is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/include/bb.h b/src/mapleall/maple_me/include/bb.h index 4572e415c5e14869267ef088506dce61140b64e3..4b1ce8df7b57a1c413f0c4b007e83b82a4ab37d1 100755 --- a/src/mapleall/maple_me/include/bb.h +++ b/src/mapleall/maple_me/include/bb.h @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/include/irmap.h b/src/mapleall/maple_me/include/irmap.h index 5520489aa69a1bc668094fe13e968124f23f2525..7932e47e8a42b2115e8245e0ee3118e478bd23c9 100755 --- a/src/mapleall/maple_me/include/irmap.h +++ b/src/mapleall/maple_me/include/irmap.h @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. @@ -21,7 +21,7 @@ #include "me_builder.h" namespace maple { -class IRMapBuild; +class IRMapBuild; // circular dependency exists, no other choice class IRMap : public AnalysisResult { friend IRMapBuild; @@ -93,6 +93,7 @@ class IRMap : public AnalysisResult { meStmt.Dump(this); } } + virtual void Dump() = 0; virtual void SetCurFunction(const BB&) {} @@ -135,6 +136,7 @@ class IRMap : public AnalysisResult { MapleAllocator &GetIRMapAlloc() { return irMapAlloc; } + int32 GetExprID() const { return exprID; } diff --git a/src/mapleall/maple_me/include/irmap_build.h b/src/mapleall/maple_me/include/irmap_build.h index 6b1c39f19feeb05f4436fcbc9c980fb70bcd245c..e478927df5c3d92f7aa2805cc507dfdf3d42d05e 100644 --- a/src/mapleall/maple_me/include/irmap_build.h +++ b/src/mapleall/maple_me/include/irmap_build.h @@ -1,16 +1,16 @@ /* - * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * - * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. - * You can use this software according to the terms and conditions of the MulanPSL - 2.0. - * You may obtain a copy of MulanPSL - 2.0 at: + * OpenArkCompiler is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: * - * https://opensource.org/licenses/MulanPSL-2.0 + * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. - * See the MulanPSL - 2.0 for more details. + * See the Mulan PSL v2 for more details. */ #ifndef MAPLE_ME_INCLUDE_IRMAP_BUILD_H @@ -19,13 +19,16 @@ #include "dominance.h" namespace maple { - // This class contains methods to convert Maple IR to MeIR. class IRMapBuild { public: - IRMapBuild(IRMap *hmap, Dominance *dom) : irMap(hmap), - mirModule(hmap->GetMIRModule()), ssaTab(irMap->GetSSATab()), dominance(*dom), curBB(nullptr) { - static auto stmtBuildPolicyLoader = InitMeStmtFactory(); + IRMapBuild(IRMap *hmap, Dominance *dom) + : irMap(hmap), + mirModule(hmap->GetMIRModule()), + ssaTab(irMap->GetSSATab()), + dominance(*dom), + curBB(nullptr) { + static const auto stmtBuildPolicyLoader = InitMeStmtFactory(); (void)stmtBuildPolicyLoader; } ~IRMapBuild() {} @@ -58,13 +61,11 @@ class IRMapBuild { MeStmt *BuildMeStmt(StmtNode&); MeExpr *BuildExpr(BaseNode&); - private: IRMap *irMap; MIRModule &mirModule; SSATab &ssaTab; Dominance &dominance; BB *curBB; // current mapleme::BB being visited }; - } // namespace maple #endif // MAPLE_ME_INCLUDE_IRMAP_BUILD_H diff --git a/src/mapleall/maple_me/include/me_irmap.h b/src/mapleall/maple_me/include/me_irmap.h index df297f7c0e14e07c01db4f423162ba4db9aca775..eef5b97f8458dcf28d75bfe967e303d4720e9dbb 100644 --- a/src/mapleall/maple_me/include/me_irmap.h +++ b/src/mapleall/maple_me/include/me_irmap.h @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. @@ -46,6 +46,5 @@ class MeIRMap : public IRMap { private: MeFunction &func; }; - } // namespace maple #endif // MAPLE_ME_INCLUDE_ME_IRMAP_H diff --git a/src/mapleall/maple_me/include/me_irmap_build.h b/src/mapleall/maple_me/include/me_irmap_build.h index 1f19446fe18dd86e2fc8eaa403520c82683541b3..094adeabbe190d69220a58f5edcfb8399ed9d867 100644 --- a/src/mapleall/maple_me/include/me_irmap_build.h +++ b/src/mapleall/maple_me/include/me_irmap_build.h @@ -1,16 +1,16 @@ /* - * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * - * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. - * You can use this software according to the terms and conditions of the MulanPSL - 2.0. - * You may obtain a copy of MulanPSL - 2.0 at: + * OpenArkCompiler is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: * - * https://opensource.org/licenses/MulanPSL-2.0 + * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. - * See the MulanPSL - 2.0 for more details. + * See the Mulan PSL v2 for more details. */ #ifndef MAPLE_ME_INCLUDE_ME_IRMAP_BUILD_H @@ -20,7 +20,6 @@ #include "irmap_build.h" namespace maple { - class MeDoIRMapBuild : public MeFuncPhase { public: explicit MeDoIRMapBuild(MePhaseID id) : MeFuncPhase(id) {} diff --git a/src/mapleall/maple_me/include/me_phases.def b/src/mapleall/maple_me/include/me_phases.def index a8490395d9a6449f5255604c078ef947ac636283..a471fb26f26e0a14c221bd14fc864254933243cc 100644 --- a/src/mapleall/maple_me/include/me_phases.def +++ b/src/mapleall/maple_me/include/me_phases.def @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. diff --git a/src/mapleall/maple_me/src/irmap.cpp b/src/mapleall/maple_me/src/irmap.cpp index f0ccc0bb0993d7504d5ee4de02c553102665ecbb..e729d42a52c4fb0423eff4171dab680afcbe4547 100755 --- a/src/mapleall/maple_me/src/irmap.cpp +++ b/src/mapleall/maple_me/src/irmap.cpp @@ -18,7 +18,6 @@ #include "mir_builder.h" namespace maple { - VarMeExpr *IRMap::CreateVarMeExprVersion(const VarMeExpr &origExpr) { auto *varMeExpr = New(&irMapAlloc, exprID++, origExpr.GetOStIdx(), vst2MeExprTable.size()); vst2MeExprTable.push_back(varMeExpr); @@ -539,5 +538,4 @@ MeExpr *IRMap::CreateAddrofMeExprFromSymbol(MIRSymbol &st, PUIdx puIdx) { addrOfMe.SetPtyp(PTY_ptr); return HashMeExpr(addrOfMe); } - } // namespace maple diff --git a/src/mapleall/maple_me/src/irmap_build.cpp b/src/mapleall/maple_me/src/irmap_build.cpp index dc628a4d8e7bfb301245ed0607b2a7f8591e772a..70eb616c6b1008854409e6dbadd8fd57ecf071d2 100644 --- a/src/mapleall/maple_me/src/irmap_build.cpp +++ b/src/mapleall/maple_me/src/irmap_build.cpp @@ -1,16 +1,16 @@ /* - * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * - * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. - * You can use this software according to the terms and conditions of the MulanPSL - 2.0. - * You may obtain a copy of MulanPSL - 2.0 at: + * OpenArkCompiler is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: * - * https://opensource.org/licenses/MulanPSL-2.0 + * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. - * See the MulanPSL - 2.0 for more details. + * See the Mulan PSL v2 for more details. */ #include "factory.h" @@ -48,7 +48,8 @@ RegMeExpr *IRMapBuild::GetOrCreateRegFromVerSt(const VersionSt &vst) { const OriginalSt *ost = vst.GetOrigSt(); ASSERT(ost->IsPregOst(), "GetOrCreateRegFromVerSt: PregOST expected"); auto *regx = - irMap->NewInPool(irMap->exprID++, ost->GetPregIdx(), mirModule.CurFunction()->GetPuidx(), ost->GetIndex(), vindex); + irMap->NewInPool(irMap->exprID++, ost->GetPregIdx(), mirModule.CurFunction()->GetPuidx(), + ost->GetIndex(), vindex); regx->InitBase(OP_regread, ost->GetMIRPreg()->GetPrimType(), 0); irMap->regMeExprTable.push_back(regx); irMap->vst2MeExprTable[vindex] = regx; @@ -74,7 +75,7 @@ MeExpr *IRMapBuild::BuildLHSReg(const VersionSt &vst, RegassignMeStmt &defMeStmt // build Me chilist from MayDefNode list void IRMapBuild::BuildChiList(MeStmt &meStmt, TypeOfMayDefList &mayDefNodes, - MapleMap &outList) { + MapleMap &outList) { for (auto &mayDefNode : mayDefNodes) { VersionSt *opndSt = mayDefNode.GetOpnd(); VersionSt *resSt = mayDefNode.GetResult(); @@ -84,17 +85,17 @@ void IRMapBuild::BuildChiList(MeStmt &meStmt, TypeOfMayDefList &mayDefNodes, lhs->SetDefBy(kDefByChi); lhs->SetDefChi(*chiMeStmt); chiMeStmt->SetLHS(lhs); - outList.insert(std::make_pair(lhs->GetOStIdx(), chiMeStmt)); + (void)outList.insert(std::make_pair(lhs->GetOStIdx(), chiMeStmt)); } } void IRMapBuild::BuildMustDefList(MeStmt &meStmt, TypeOfMustDefList &mustDefList, - MapleVector &mustDefMeList) { + MapleVector &mustDefMeList) { for (auto &mustDefNode : mustDefList) { VersionSt *vst = mustDefNode.GetResult(); VarMeExpr *lhs = GetOrCreateVarFromVerSt(*vst); ASSERT(lhs->GetMeOp() == kMeOpReg || lhs->GetMeOp() == kMeOpVar, "unexpected opcode"); - mustDefMeList.push_back(MustDefMeNode(lhs, &meStmt)); + mustDefMeList.emplace_back(MustDefMeNode(lhs, &meStmt)); } } @@ -128,7 +129,7 @@ void IRMapBuild::BuildMuList(TypeOfMayUseList &mayUseList, MapleMapGetOStIdx(), varMeExpr)); + (void)muList.insert(std::make_pair(varMeExpr->GetOStIdx(), varMeExpr)); } } @@ -161,7 +162,7 @@ void IRMapBuild::SetMeExprOpnds(MeExpr &meExpr, BaseNode &mirNode) { MeExpr *IRMapBuild::BuildExpr(BaseNode &mirNode) { Opcode op = mirNode.GetOpCode(); if (op == OP_dread) { - auto &addrOfNode = static_cast(mirNode); + auto &addrOfNode = static_cast(mirNode); VersionSt *vst = addrOfNode.GetSSAVar(); VarMeExpr *varMeExpr = GetOrCreateVarFromVerSt(*vst); varMeExpr->InitBase(mirNode.GetOpCode(), mirNode.GetPrimType(), mirNode.GetNumOpnds()); @@ -174,7 +175,7 @@ MeExpr *IRMapBuild::BuildExpr(BaseNode &mirNode) { } if (op == OP_regread) { - auto ®Node = static_cast(mirNode); + auto ®Node = static_cast(mirNode); VersionSt *vst = regNode.GetSSAVar(); RegMeExpr *regMeExpr = GetOrCreateRegFromVerSt(*vst); regMeExpr->InitBase(mirNode.GetOpCode(), mirNode.GetPrimType(), mirNode.GetNumOpnds()); @@ -244,8 +245,8 @@ MeStmt *IRMapBuild::BuildMeStmtWithNoSSAPart(StmtNode &stmt) { case OP_free: case OP_switch: { auto &unaryStmt = static_cast(stmt); - auto *unMeStmt = - static_cast((op == OP_switch) ? irMap->NewInPool(&stmt) : irMap->New(&stmt)); + auto *unMeStmt = static_cast((op == OP_switch) ? irMap->NewInPool(&stmt) + : irMap->New(&stmt)); unMeStmt->SetOpnd(0, BuildExpr(*unaryStmt.Opnd(0))); return unMeStmt; } @@ -441,5 +442,4 @@ void IRMapBuild::BuildBB(BB &bb, std::vector &bbIRMapProcessed) { BuildBB(*irMap->GetBB(childBBId), bbIRMapProcessed); } } - } // namespace maple diff --git a/src/mapleall/maple_me/src/irmap_emit.cpp b/src/mapleall/maple_me/src/irmap_emit.cpp index 830e3322dc42c8825e3abd3dbfa15702a4d75b6b..5804bdd17ef3107a1e3fd78a247dc8c5b335f0c2 100755 --- a/src/mapleall/maple_me/src/irmap_emit.cpp +++ b/src/mapleall/maple_me/src/irmap_emit.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. @@ -591,5 +591,4 @@ void BB::EmitBB(SSATab &ssaTab, BlockNode &curblk, bool needAnotherPass) { curblk.AddStatement(endtry); } } - } // namespace maple diff --git a/src/mapleall/maple_me/src/me_abco.cpp b/src/mapleall/maple_me/src/me_abco.cpp index e293b9c1a3b8fc4530f5f10628d2d7ec15d55e5d..2b3f20950ae9280c9b070e5a1598428fefa5bbe4 100755 --- a/src/mapleall/maple_me/src/me_abco.cpp +++ b/src/mapleall/maple_me/src/me_abco.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_analyze_rc.cpp b/src/mapleall/maple_me/src/me_analyze_rc.cpp index 894521f05664db5e2e5bcae3466700fb7caf7cc4..25c744721aab932304ca79c85a6b037107331ca7 100755 --- a/src/mapleall/maple_me/src/me_analyze_rc.cpp +++ b/src/mapleall/maple_me/src/me_analyze_rc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_analyzector.cpp b/src/mapleall/maple_me/src/me_analyzector.cpp index bf1407f4ebd84cc4a7203f801837282b3c29e479..bdcb5df99a22bfc811424afb54c4251576a6dac9 100644 --- a/src/mapleall/maple_me/src/me_analyzector.cpp +++ b/src/mapleall/maple_me/src/me_analyzector.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_emit.cpp b/src/mapleall/maple_me/src/me_emit.cpp index e47871b9540dcd0a31988b0f15dfd11f36d99c75..8aa69c97a64c3e687f671f3c372588ef25a6121e 100644 --- a/src/mapleall/maple_me/src/me_emit.cpp +++ b/src/mapleall/maple_me/src/me_emit.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_hdse.cpp b/src/mapleall/maple_me/src/me_hdse.cpp index 2eada8ff53b69cf6ce67c223a598cf6f46c46628..63f22a2397567f47a3267e4e2ded812d4d13c74c 100755 --- a/src/mapleall/maple_me/src/me_hdse.cpp +++ b/src/mapleall/maple_me/src/me_hdse.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_irmap.cpp b/src/mapleall/maple_me/src/me_irmap.cpp index ef0205420de458f312bb8f71721807f96c776691..65e4de3baf7add323c8445c432b4b241ff262539 100755 --- a/src/mapleall/maple_me/src/me_irmap.cpp +++ b/src/mapleall/maple_me/src/me_irmap.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. @@ -15,7 +15,6 @@ #include "me_irmap.h" namespace maple { - void MeIRMap::Dump() { // back up mempool and use a new mempool every time // we dump IRMap, restore the mempool afterwards @@ -44,5 +43,4 @@ void MeIRMap::Dump() { memPoolCtrler.DeleteMemPool(mirFunction->GetCodeMempool()); mirFunction->SetMemPool(backup); } - } // namespace maple diff --git a/src/mapleall/maple_me/src/me_irmap_build.cpp b/src/mapleall/maple_me/src/me_irmap_build.cpp index 2050e3077655c7189671b52ff1d7af5823f6e820..1972185c42f3311a892e2faa22ad85af7abf7cc8 100644 --- a/src/mapleall/maple_me/src/me_irmap_build.cpp +++ b/src/mapleall/maple_me/src/me_irmap_build.cpp @@ -1,16 +1,16 @@ /* - * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. + * Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. * - * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. - * You can use this software according to the terms and conditions of the MulanPSL - 2.0. - * You may obtain a copy of MulanPSL - 2.0 at: + * OpenArkCompiler is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: * - * https://opensource.org/licenses/MulanPSL-2.0 + * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR * FIT FOR A PARTICULAR PURPOSE. - * See the MulanPSL - 2.0 for more details. + * See the Mulan PSL v2 for more details. */ #include "me_irmap_build.h" @@ -22,10 +22,10 @@ // This phase converts Maple IR to MeIR. namespace maple { - AnalysisResult *MeDoIRMapBuild::Run(MeFunction *func, MeFuncResultMgr *funcResMgr, ModuleResultMgr *moduleResMgr) { - Dominance *dom = static_cast(funcResMgr->GetAnalysisResult(MeFuncPhase_DOMINANCE, func)); - CHECK_FATAL(dom, "dominance phase has problem"); + (void)moduleResMgr; + Dominance *dom = static_cast(funcResMgr->GetAnalysisResult(MeFuncPhase_DOMINANCE, func)); + CHECK_FATAL(dom != nullptr, "dominance phase has problem"); MemPool *irmapmp = NewMemPool(); @@ -63,5 +63,4 @@ AnalysisResult *MeDoIRMapBuild::Run(MeFunction *func, MeFuncResultMgr *funcResMg func->GetMeSSATab()->GetVersionStTable().GetVSTAlloc().GetMemPool()->Release(); return irMap; } - -} // namespace maple +} // namespace maple \ No newline at end of file diff --git a/src/mapleall/maple_me/src/me_profile_gen.cpp b/src/mapleall/maple_me/src/me_profile_gen.cpp index 8b2616ff8fe7787c617b7f5a8c0a2dd4f70d08ad..77bc04253dda9addd4755b1aa15f456aa9a4255f 100644 --- a/src/mapleall/maple_me/src/me_profile_gen.cpp +++ b/src/mapleall/maple_me/src/me_profile_gen.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_prop.cpp b/src/mapleall/maple_me/src/me_prop.cpp index e81d8c4b19409e9f34b78b5a06fb85ac4f21ea22..01a24643b3baa351b1022775c714d1524d5288bc 100644 --- a/src/mapleall/maple_me/src/me_prop.cpp +++ b/src/mapleall/maple_me/src/me_prop.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_rc_lowering.cpp b/src/mapleall/maple_me/src/me_rc_lowering.cpp index 93fd13ee1151f58a01629a569aeaeaa99e8b1c40..e1a00fbee0c7d1561e92370aee2a7ae96ee00f59 100644 --- a/src/mapleall/maple_me/src/me_rc_lowering.cpp +++ b/src/mapleall/maple_me/src/me_rc_lowering.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_ssa_devirtual.cpp b/src/mapleall/maple_me/src/me_ssa_devirtual.cpp index 1a064301ace3c17a9a4ee2be88b211983825324c..d03f480ada932f34227d88ecfdf17997e0ef846b 100644 --- a/src/mapleall/maple_me/src/me_ssa_devirtual.cpp +++ b/src/mapleall/maple_me/src/me_ssa_devirtual.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_ssa_epre.cpp b/src/mapleall/maple_me/src/me_ssa_epre.cpp index e5f2ce56ea01132819dad218073e7f6c1e945fc6..7eac26662ed35cf8537878ada27cf704c5b37341 100644 --- a/src/mapleall/maple_me/src/me_ssa_epre.cpp +++ b/src/mapleall/maple_me/src/me_ssa_epre.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_stmt_pre.cpp b/src/mapleall/maple_me/src/me_stmt_pre.cpp index 5ad849d27fa92609039ae00364a992f866300aaa..bc5af520f8539a821f51db60d21aa81362efd7f8 100755 --- a/src/mapleall/maple_me/src/me_stmt_pre.cpp +++ b/src/mapleall/maple_me/src/me_stmt_pre.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. diff --git a/src/mapleall/maple_me/src/me_store_pre.cpp b/src/mapleall/maple_me/src/me_store_pre.cpp index 2644fc151f7569dfb38a8a532c2475e007f13ee3..ddfd0d1da3471076514155832c6b471a0bdfcb67 100755 --- a/src/mapleall/maple_me/src/me_store_pre.cpp +++ b/src/mapleall/maple_me/src/me_store_pre.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2.