AST MemoryType node.
| 681 | |
| 682 | /// AST MemoryType node. |
| 683 | class MemoryType { |
| 684 | public: |
| 685 | /// Constructors. |
| 686 | MemoryType() noexcept = default; |
| 687 | MemoryType(uint64_t MinVal) noexcept : Lim(MinVal) {} |
| 688 | MemoryType(uint64_t MinVal, uint64_t MaxVal, bool Shared = false) noexcept |
| 689 | : Lim(MinVal, MaxVal, false, Shared) {} |
| 690 | MemoryType(const Limit &L) noexcept : Lim(L) {} |
| 691 | |
| 692 | /// Getter for limit. |
| 693 | const Limit &getLimit() const noexcept { return Lim; } |
| 694 | Limit &getLimit() noexcept { return Lim; } |
| 695 | |
| 696 | private: |
| 697 | /// \name Data of MemoryType. |
| 698 | /// @{ |
| 699 | Limit Lim; |
| 700 | /// @} |
| 701 | }; |
| 702 | |
| 703 | /// AST TableType node. |
| 704 | class TableType { |