LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/data - ccu_rep_buflocread_v1.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 50.0 % 10 5
Test Date: 2026-08-18 17:47:01 Functions: 50.0 % 10 5

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2026 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_BUFLOCREAD_H
      12              : #define HCOMM_CCU_REPRESENTATION_BUFLOCREAD_H
      13              : 
      14              : #include "ccu_rep_base_v1.h"
      15              : #include "ccu_datatype_v1.h"
      16              : 
      17              : namespace hcomm {
      18              : namespace CcuRep {
      19              : 
      20              :     class CcuRepBufLocRead : public CcuRepBase {
      21              :     public:
      22              :         CcuRepBufLocRead(
      23              :             CcuInsGeneratorBase* insGenPtr, LocalAddr src, CcuBuf dst, Variable len, CompletedEvent sem, uint16_t mask);
      24              :         bool Translate(CcuKernel* ccuKernel, CcuInstr*& instr, uint16_t& instrId, const TransDep& dep) override;
      25              :         std::string Describe() override;
      26            0 :         uint16_t GetSrcAddrId() { return src.addr.Id(); }
      27            0 :         uint16_t GetSrcTokenId() { return src.token.Id(); }
      28            0 :         uint16_t GetDstId() { return dst.Id(); }
      29            0 :         uint16_t GetLenId() { return len.Id(); }
      30            0 :         uint16_t GetSemId() { return sem.Id(); }
      31              : 
      32           26 :         LocalAddr GetSrc() { return src; }
      33           13 :         CcuBuf GetDst() { return dst; }
      34           13 :         Variable GetLen() { return len; }
      35           13 :         CompletedEvent GetSem() { return sem; }
      36           14 :         uint16_t GetMask() { return mask; }
      37              : 
      38              :     private:
      39              :         CcuInsGeneratorBase* insGenPtr{nullptr};
      40              :         LocalAddr src;
      41              :         CcuBuf dst;
      42              :         Variable len;
      43              : 
      44              :         CompletedEvent sem;
      45              :         uint16_t mask{0};
      46              :     };
      47              : 
      48              : }; // namespace CcuRep
      49              : }; // namespace hcomm
      50              : #endif // HCOMM_CCU_REPRESENTATION_BUFLOCREAD_H
        

Generated by: LCOV version 2.0-1