LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/common - ccu_rep_loadarg_v1.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 4 4
Test Date: 2026-08-04 10:52:23 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 base header file
       4              :  * Create: 2025-02-18
       5              :  */
       6              : 
       7              : #ifndef HCOMM_CCU_REPRESENTATION_LOADARG_H
       8              : #define HCOMM_CCU_REPRESENTATION_LOADARG_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 CcuRepLoadArg : public CcuRepBase {
      17              : public:
      18              :     CcuRepLoadArg(CcuInsGeneratorBase* insGenPtr, const Variable &var, uint16_t argId, uint16_t fullArgId);
      19              :     bool        Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
      20              :     std::string Describe() override;
      21              : 
      22           49 :     CcuRep::Variable GetVar() { return var; }
      23           48 :     uint16_t GetArgId() { return argId; }
      24            1 :     uint16_t GetVarId() const { return var.Id(); }
      25          230 :     uint16_t GetFullArgId() const { return fullArgId; }
      26              : 
      27              : private:
      28              :     CcuInsGeneratorBase* insGeneratorPtr_{nullptr};
      29              :     Variable var;
      30              :     uint16_t argId{0};
      31              :     uint16_t fullArgId{0};
      32              : };
      33              : 
      34              : }; // namespace CcuRep
      35              : }; // namespace hcomm
      36              : #endif // HCCL_CCU_REPRESENTATION_LOADARG_H
        

Generated by: LCOV version 2.0-1