Skip to content

Commit 239bf83

Browse files
committed
clean up 5
1 parent c87c1c0 commit 239bf83

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

llvm/include/llvm/Frontend/HLSL/HLSLBinding.h

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,24 @@ struct Binding {
107107
uint32_t UpperBound;
108108
const void *Cookie;
109109

110-
Binding(dxil::ResourceClass RC, uint32_t Space, uint32_t LowerBound,
111-
uint32_t UpperBound, const void *Cookie)
112-
: RC(RC), Space(Space), LowerBound(LowerBound), UpperBound(UpperBound),
113-
Cookie(Cookie) {}
114-
115-
bool isUnbounded() const { return UpperBound == ~0U; }
116-
117-
bool operator==(const Binding &RHS) const {
118-
return std::tie(RC, Space, LowerBound, UpperBound, Cookie) ==
119-
std::tie(RHS.RC, RHS.Space, RHS.LowerBound, RHS.UpperBound,
120-
RHS.Cookie);
121-
}
122-
123-
bool operator!=(const Binding &RHS) const { return !(*this == RHS); }
110+
Binding(dxil::ResourceClass RC, uint32_t Space, uint32_t LowerBound,
111+
uint32_t UpperBound, const void *Cookie)
112+
: RC(RC), Space(Space), LowerBound(LowerBound), UpperBound(UpperBound),
113+
Cookie(Cookie) {}
114+
115+
bool isUnbounded() const { return UpperBound == ~0U; }
116+
bool operator==(const Binding &RHS) const {
117+
return std::tie(RC, Space, LowerBound, UpperBound, Cookie) ==
118+
std::tie(RHS.RC, RHS.Space, RHS.LowerBound, RHS.UpperBound,
119+
RHS.Cookie);
120+
}
121+
bool operator!=(const Binding &RHS) const { return !(*this == RHS); }
124122

125-
bool operator<(const Binding &RHS) const {
126-
return std::tie(RC, Space, LowerBound) <
127-
std::tie(RHS.RC, RHS.Space, RHS.LowerBound);
128-
}
129-
};
123+
bool operator<(const Binding &RHS) const {
124+
return std::tie(RC, Space, LowerBound) <
125+
std::tie(RHS.RC, RHS.Space, RHS.LowerBound);
126+
}
127+
};
130128
class BoundRegs {
131129
SmallVector<Binding> Bindings;
132130

0 commit comments

Comments
 (0)