LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/common - ccu_rep_load_var_v1.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 4 4
Test Date: 2026-07-28 12:11:00 Functions: 100.0 % 4 4

            Line data    Source code
       1              : /*
       2              :  * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
       3              :  * Description: ccu representation load var header file
       4              :  * Create: 2025-04-22
       5              :  */
       6              : 
       7              : #ifndef HCOMM_CCU_REP_LOAD_VAR_H
       8              : #define HCOMM_CCU_REP_LOAD_VAR_H
       9              : 
      10              : #include "ccu_rep_base_v1.h"
      11              : #include "ccu_datatype_v1.h"
      12              : 
      13              : namespace hcomm {
      14              : namespace CcuRep {
      15              : 
      16              : class CcuRepLoadVar : public CcuRepBase {
      17              : public:
      18              :     CcuRepLoadVar(CcuInsGeneraterBase* insGenPtr, const Variable &src, const Variable &var, uint32_t num = 1);
      19              :     bool        Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
      20              :     std::string Describe() override;
      21              : 
      22            3 :     CcuRep::Variable GetVar() { return var; }
      23            3 :     CcuRep::Variable GetSrc() { return src; }
      24            3 :     uint32_t GetNum() { return num; }
      25            6 :     uint16_t GetMask() { return mask; }
      26              : 
      27              : private:
      28              :     CcuInsGeneraterBase* insGeneratorPtr_{nullptr};
      29              :     Variable src;
      30              :     Variable var;
      31              :     uint32_t num;
      32              :     uint16_t mask{1};
      33              : };
      34              : 
      35              : }; // namespace CcuRep
      36              : }; // namespace hcomm
      37              : #endif // HCCL_CCU_REP_LOAD_VAR_H
        

Generated by: LCOV version 2.0-1