LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/sync - ccu_rep_loc_wait_notify.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 83.3 % 6 5
Test Date: 2026-07-28 12:11:00 Functions: 75.0 % 4 3

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #ifndef HCOMM_CCU_REPRESENTATION_LOC_WAIT_NOTIFY_H
      12              : #define HCOMM_CCU_REPRESENTATION_LOC_WAIT_NOTIFY_H
      13              : #include "ccu_datatype_v1.h"
      14              : #include "ccu_rep_base_v1.h"
      15              : 
      16              : namespace hcomm {
      17              : namespace CcuRep {
      18              : 
      19              : class CcuRepLocWaitNotify : public CcuRepBase {
      20              : public:
      21              :     CcuRepLocWaitNotify(CcuInsGeneraterBase* insGenPtr, const LocalNotify &notify, const uint32_t mask, bool isProfiling=true);
      22              :     bool Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
      23              :     std::string Describe() override;
      24            3 :     uint32_t GetMask() { return mask_; };
      25            0 :     uint16_t GetNotifyId() { return notify_.Id(); };
      26              : 
      27            2 :     LocalNotify GetNotify()
      28              :     {
      29            2 :         return notify_;
      30              :     }
      31              : 
      32            2 :     bool GetIsProfiling()
      33              :     {
      34            2 :         return isProfiling_;
      35              :     }
      36              : 
      37              : private:
      38              :     CcuInsGeneraterBase* insGenPtr{nullptr};
      39              :     LocalNotify notify_{};
      40              :     uint32_t mask_{0};
      41              :     bool isProfiling_{true};
      42              : };
      43              : 
      44              : }; // namespace CcuRep
      45              : }; // namespace hcomm
      46              : #endif // HCOMM_CCU_REPRESENTATION_LOC_WAIT_NOTIFY_H
        

Generated by: LCOV version 2.0-1