1 | #pragma once |
---|---|
2 | |
3 | #ifndef _TRITON_IR_METADATA_H_ |
4 | #define _TRITON_IR_METADATA_H_ |
5 | |
6 | #include <vector> |
7 | |
8 | namespace triton{ |
9 | namespace ir{ |
10 | |
11 | |
12 | /* Metadata */ |
13 | class metadata{ |
14 | public: |
15 | enum kind_t{ |
16 | multiple_of, |
17 | max_contiguous |
18 | }; |
19 | |
20 | private: |
21 | metadata(kind_t kind, std::vector<unsigned> value); |
22 | |
23 | public: |
24 | static metadata* get(kind_t kind, std::vector<unsigned> value); |
25 | |
26 | private: |
27 | kind_t kind_; |
28 | std::vector<unsigned> value_; |
29 | }; |
30 | |
31 | } |
32 | } |
33 | |
34 | #endif |
35 |