diff --git a/src/mapleall/maple_ir/src/bin_mpl_import.cpp b/src/mapleall/maple_ir/src/bin_mpl_import.cpp index 2294e72594ce9438271e4613b97483cffb4b74a5..73a4873086998f8909d9633b8c87b55c1f03157a 100644 --- a/src/mapleall/maple_ir/src/bin_mpl_import.cpp +++ b/src/mapleall/maple_ir/src/bin_mpl_import.cpp @@ -1206,7 +1206,7 @@ CallInfo *BinaryMplImport::ImportCallInfo() { bool argLocal = Read() == 1; MIRSymbol *funcSym = InSymbol(nullptr); CHECK_FATAL(funcSym != nullptr, "func_sym is null in BinaryMplImport::InCallInfo"); - CallInfo *ret = mod.GetMemPool()->New(ctype, *funcSym->GetFunction(), + CallInfo *ret = mod.GetMemPool()->New(ctype, funcSym->GetFunction(), static_cast(nullptr), loopDepth, id, argLocal); callInfoTab.push_back(ret); return ret; diff --git a/src/mapleall/maple_me/include/lfo_loop_vec.h b/src/mapleall/maple_me/include/lfo_loop_vec.h index d5bf7a5e7599c5c27dd6ea48ca5adfc4926fd1e6..484c7bedb3f50d9d7fdf362a01c49be76c7f81fa 100644 --- a/src/mapleall/maple_me/include/lfo_loop_vec.h +++ b/src/mapleall/maple_me/include/lfo_loop_vec.h @@ -1,5 +1,5 @@ /* - * Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2021] Futurewei 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/seqvec.h b/src/mapleall/maple_me/include/seqvec.h index 8d76f5bce3357ed63e08e2f9ea8884f3cb747c1b..319da2750f5fb4d7ee18efd0355328703b6be916 100644 --- a/src/mapleall/maple_me/include/seqvec.h +++ b/src/mapleall/maple_me/include/seqvec.h @@ -1,5 +1,5 @@ /* - * Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2021] Futurewei 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/lfo_loop_vec.cpp b/src/mapleall/maple_me/src/lfo_loop_vec.cpp index 9013a645fe227a1d28fde7c2d7739b8be065780a..6f43c8e748ff9b4719fce6f4cfa6adc0d411af69 100644 --- a/src/mapleall/maple_me/src/lfo_loop_vec.cpp +++ b/src/mapleall/maple_me/src/lfo_loop_vec.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2022] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2021] Futurewei 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_autovec.cpp b/src/mapleall/maple_me/src/me_autovec.cpp index a4b048049061ee1b7baf1eec45c9d07935136e3f..c6f5c25ec749358f9ce8ee0b8aaa35f358adf498 100644 --- a/src/mapleall/maple_me/src/me_autovec.cpp +++ b/src/mapleall/maple_me/src/me_autovec.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2021] Futurewei 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/seqvec.cpp b/src/mapleall/maple_me/src/seqvec.cpp index 2282453d899d0510190a5736b01ade8c6ad0b828..8c653d72e5dbb9114cc3bcbd4cea4037ad416416 100644 --- a/src/mapleall/maple_me/src/seqvec.cpp +++ b/src/mapleall/maple_me/src/seqvec.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2021] Futurewei 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_util/include/gcov_profile.h b/src/mapleall/maple_util/include/gcov_profile.h index f7b9a8add297fa0decd3e9e727c514895ac5d542..b2f76758e167de583e8081dd683fe8a1732cda7d 100644 --- a/src/mapleall/maple_util/include/gcov_profile.h +++ b/src/mapleall/maple_util/include/gcov_profile.h @@ -1,3 +1,18 @@ +/* + * Copyright (c) [2022] Futurewei 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: + * + * https://opensource.org/licenses/MulanPSL-2.0 + * + * 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. + */ + #ifndef MAPLE_UTIL_INCLUDE_GCOV_PROFILE_H #define MAPLE_UTIL_INCLUDE_GCOV_PROFILE_H diff --git a/src/mapleall/mpl2mpl/include/call_graph.h b/src/mapleall/mpl2mpl/include/call_graph.h index 594d7551feb461a8a4ffe1064d6732dbf7c68af4..b81fbd700518d7dcee61d6871e9385568c709046 100644 --- a/src/mapleall/mpl2mpl/include/call_graph.h +++ b/src/mapleall/mpl2mpl/include/call_graph.h @@ -50,8 +50,8 @@ struct Comparator { // Information description of each callsite class CallInfo { public: - CallInfo(CallType type, MIRFunction &call, StmtNode *node, uint32 ld, uint32 stmtId, bool local = false) - : areAllArgsLocal(local), cType(type), mirFunc(&call), callStmt(node), loopDepth(ld), id(stmtId) {} + CallInfo(CallType type, MIRFunction *call, StmtNode *node, uint32 ld, uint32 stmtId, bool local = false) + : areAllArgsLocal(local), cType(type), mirFunc(call), callStmt(node), loopDepth(ld), id(stmtId) {} // For fake callInfo, only id needed explicit CallInfo(uint32 stmtId) : id(stmtId) {} ~CallInfo() = default; @@ -483,8 +483,7 @@ class CallGraph : public AnalysisResult { void IncrNodesCount(CGNode *cgNode, BaseNode *bn); CallInfo *GenCallInfo(CallType type, MIRFunction *call, StmtNode *s, uint32 loopDepth, uint32 callsiteID) { - ASSERT_NOT_NULL(call); - return cgAlloc.GetMemPool()->New(type, *call, s, loopDepth, callsiteID); + return cgAlloc.GetMemPool()->New(type, call, s, loopDepth, callsiteID); } bool debugFlag = false; diff --git a/src/mapleall/mpl2mpl/include/gcov_parser.h b/src/mapleall/mpl2mpl/include/gcov_parser.h index 3c74e913958c8e3edcb441a8ec5d59feac54fd38..a89b7ccb789fd98824c9118c0aba1f09d45fe1ab 100644 --- a/src/mapleall/mpl2mpl/include/gcov_parser.h +++ b/src/mapleall/mpl2mpl/include/gcov_parser.h @@ -1,17 +1,18 @@ /* - * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2022] Futurewei 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. - * You may obtain a copy of Mulan PSL v2 at: + * 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: * - * http://license.coscl.org.cn/MulanPSL2 + * https://opensource.org/licenses/MulanPSL-2.0 * * 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 Mulan PSL v2 for more details. + * See the MulanPSL - 2.0 for more details. */ + #ifndef MAPLE_MPL2MPL_INCLUDE_GCOVPROFUSE_H #define MAPLE_MPL2MPL_INCLUDE_GCOVPROFUSE_H #include "mempool.h" diff --git a/src/mapleall/mpl2mpl/src/gcov_parser.cpp b/src/mapleall/mpl2mpl/src/gcov_parser.cpp index ad4cdae6b31d593c7c132ae11a59493a3dc89758..d2444529994a7ac2a83202134bb4ba5418909fc6 100644 --- a/src/mapleall/mpl2mpl/src/gcov_parser.cpp +++ b/src/mapleall/mpl2mpl/src/gcov_parser.cpp @@ -1,16 +1,16 @@ /* - * Copyright (c) [2019-2021] Huawei Technologies Co.,Ltd.All rights reserved. + * Copyright (c) [2022] Futurewei 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. - * You may obtain a copy of Mulan PSL v2 at: + * 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: * - * http://license.coscl.org.cn/MulanPSL2 + * https://opensource.org/licenses/MulanPSL-2.0 * * 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 Mulan PSL v2 for more details. + * See the MulanPSL - 2.0 for more details. */ #include