LCOV - code coverage report
Current view: top level - base_comm/resources/ccu/ccu_representation/reps/common - ccu_rep_store_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) 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              :  * Description: ccu representation store var header file
      10              :  */
      11              :  
      12              : #ifndef HCOMM_CCU_REPRESENTATION_STORE_VAR_H_V1
      13              : #define HCOMM_CCU_REPRESENTATION_STORE_VAR_H_V1
      14              :  
      15              : #include "ccu_rep_base_v1.h"
      16              : #include "ccu_datatype_v1.h"
      17              :  
      18              : namespace hcomm {
      19              : namespace CcuRep {
      20              :  
      21              : class CcuRepStoreVar : public CcuRepBase {
      22              : public:
      23              :     CcuRepStoreVar(CcuInsGeneraterBase* insGeneratorPtr, const Variable &var, const Variable &dst, uint32_t num = 1, bool hscbFlag = false);
      24              :     bool Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
      25              :     std::string Describe() override;
      26              :  
      27            3 :     Variable GetVar() { return var; }
      28            3 :     Variable GetDst() { return dst; }
      29            3 :     uint32_t GetNum() { return num; }
      30            6 :     uint16_t GetMask() { return mask; }
      31              :     bool GetHscbFlag() { return hscbFlag; }
      32              :  
      33              : private:
      34              :     CcuInsGeneraterBase* insGeneratorPtr_{nullptr};
      35              :     Variable var;
      36              :     Variable dst;
      37              :     uint32_t num;
      38              :     uint16_t mask{1};
      39              :     bool     hscbFlag{false};
      40              : };
      41              :  
      42              : }; // namespace CcuRep
      43              : }; // namespace Hccl
      44              : #endif // HCCL_CCU_REPRESENTATION_STORE_VAR_H
        

Generated by: LCOV version 2.0-1