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_REMPOSTVAR_H
8 : #define HCOMM_CCU_REPRESENTATION_REMPOSTVAR_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 CcuRepRemPostVar : public CcuRepBase {
17 : public:
18 : CcuRepRemPostVar(CcuInsGeneraterBase* insGenPtr, Variable param, const ChannelHandle channel, uint16_t paramIndex, uint16_t semIndex,
19 : uint16_t mask);
20 : bool Translate(CcuKernel* ccuKernel, CcuInstr *&instr, uint16_t &instrId, const TransDep &dep) override;
21 : std::string Describe() override;
22 0 : uint32_t GetRmtXnId() { return rmtXnId; }
23 0 : uint32_t GetRmtCkeId() { return rmtCkeId; }
24 5 : uint16_t GetParamIndex() { return paramIndex; }
25 5 : Variable GetParam() { return param; }
26 0 : uint32_t GetChannelId() { return channelId; }
27 :
28 5 : ChannelHandle GetChannel() { return channel; }
29 5 : uint16_t GetSemIndex() { return semIndex; }
30 5 : uint16_t GetMask() { return mask; }
31 : private:
32 : CcuInsGeneraterBase* insGenPtr{nullptr};
33 : Variable param;
34 : ChannelHandle channel;
35 : uint16_t paramIndex{0};
36 : uint16_t semIndex{0};
37 : uint16_t mask{0};
38 : uint32_t rmtXnId{0};
39 : uint32_t rmtCkeId{0};
40 : uint32_t channelId{0};
41 : };
42 :
43 : }; // namespace CcuRep
44 : }; // namespace hcomm
45 : #endif // HCOMM_CCU_REPRESENTATION_REMPOSTVAR_H
|