File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -27,28 +27,6 @@ namespace spvtools {
27
27
namespace opt {
28
28
namespace analysis {
29
29
30
- // Class for representing a use of id. Note that:
31
- // * Result type id is a use.
32
- // * Ids referenced in OpSectionMerge & OpLoopMerge are considered as use.
33
- // * Ids referenced in OpPhi's in operands are considered as use.
34
- struct Use {
35
- Instruction* inst; // Instruction using the id.
36
- uint32_t operand_index; // logical operand index of the id use. This can be
37
- // the index of result type id.
38
- };
39
-
40
- inline bool operator ==(const Use& lhs, const Use& rhs) {
41
- return lhs.inst == rhs.inst && lhs.operand_index == rhs.operand_index ;
42
- }
43
-
44
- inline bool operator !=(const Use& lhs, const Use& rhs) { return !(lhs == rhs); }
45
-
46
- inline bool operator <(const Use& lhs, const Use& rhs) {
47
- if (lhs.inst < rhs.inst ) return true ;
48
- if (lhs.inst > rhs.inst ) return false ;
49
- return lhs.operand_index < rhs.operand_index ;
50
- }
51
-
52
30
// Definition should never be null. User can be null, however, such an entry
53
31
// should be used only for searching (e.g. all users of a particular definition)
54
32
// and never stored in a container.
You can’t perform that action at this time.
0 commit comments