Line data Source code
1 : /*
2 : * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
3 : * Description: ccu representation load header file
4 : * Create: 2025-02-21
5 : */
6 :
7 : #ifndef HCOMM_CCU_REPRESENTATION_LOAD_H
8 : #define HCOMM_CCU_REPRESENTATION_LOAD_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 CcuRepLoad : public CcuRepBase {
17 : public:
18 : CcuRepLoad(CcuInsGeneraterBase* insGenPtr, uint64_t addr, 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 : uint64_t GetAddr() { return addr; }
24 3 : uint32_t GetNum() { return num; }
25 6 : uint16_t GetMask() { return mask; }
26 :
27 : private:
28 : CcuInsGeneraterBase* insGeneratorPtr_{nullptr};
29 : Variable var;
30 : uint64_t addr;
31 : uint32_t num;
32 : uint16_t mask{1};
33 : };
34 :
35 : }; // namespace CcuRep
36 : }; // namespace hcomm
37 : #endif // HCCL_CCU_REPRESENTATION_LOAD_H
|