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(CcuInsGeneraterBase* 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 34 : CcuRep::Variable GetVar() { return var; }
23 33 : uint16_t GetArgId() { return argId; }
24 1 : uint16_t GetVarId() const { return var.Id(); }
25 154 : uint16_t GetFullArgId() const { return fullArgId; }
26 :
27 : private:
28 : CcuInsGeneraterBase* 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
|