| 112 | }; |
| 113 | |
| 114 | class DTRCommand final : public OperatorImpl<DTRCommand, Operator::GetAttrLike> { |
| 115 | public: |
| 116 | enum Kind { |
| 117 | None, |
| 118 | Drop, |
| 119 | }; |
| 120 | |
| 121 | private: |
| 122 | Kind m_kind = None; |
| 123 | |
| 124 | public: |
| 125 | DTRCommand(Kind kind) : m_kind(kind) {} |
| 126 | |
| 127 | Kind kind() const { return m_kind; } |
| 128 | std::string raw_type() const { return "DTRCommand"; } |
| 129 | |
| 130 | std::string to_string() const override; |
| 131 | |
| 132 | ValueRefList fallback(Span<ValueRef> inputs) const override { return {}; } |
| 133 | }; |
| 134 | |
| 135 | // deprecated |
| 136 | class GetName final : public OperatorImpl<GetName, Operator::GetAttrLike> { |