Skip to content

Commit 6726f1d

Browse files
committed
clean up 2
1 parent 1836e43 commit 6726f1d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,16 @@ struct Binding {
113113
Cookie(Cookie) {}
114114

115115
bool isUnbounded() const { return UpperBound == ~0U; }
116-
117116
bool operator==(const Binding &RHS) const {
118117
return std::tie(RC, Space, LowerBound, UpperBound, Cookie) ==
119-
std::tie(RHS.RC, RHS.Space, RHS.LowerBound, RHS.UpperBound,
118+
std::tie(RHS.RC, RHS.Space, RHS.LowerBound, RHS.UpperBound,
120119
RHS.Cookie);
121120
}
122121
bool operator!=(const Binding &RHS) const { return !(*this == RHS); }
123122

124123
bool operator<(const Binding &RHS) const {
125124
return std::tie(RC, Space, LowerBound) <
126-
std::tie(RHS.RC, RHS.Space, RHS.LowerBound);
125+
std::tie(RHS.RC, RHS.Space, RHS.LowerBound);
127126
}
128127
};
129128
class BoundRegs {

llvm/lib/Frontend/HLSL/HLSLBinding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ BindingInfo BindingInfoBuilder::calculateBindingInfo(
131131
return Info;
132132
}
133133

134-
const Binding &
135-
BindingInfoBuilder::findOverlapping(const Binding &ReportedBinding) const {
134+
const Binding &BindingInfoBuilder::findOverlapping(
135+
const Binding &ReportedBinding) const {
136136
for (const Binding &Other : Bindings)
137137
if (ReportedBinding.LowerBound <= Other.UpperBound &&
138138
Other.LowerBound <= ReportedBinding.UpperBound)

llvm/lib/Target/DirectX/DXILPostOptimizationValidation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ static void reportOverlappingBinding(Module &M, DXILResourceMap &DRM) {
118118
"true, yet no overlapping binding was found");
119119
}
120120

121-
static void reportOverlappingRegisters(Module &M, const llvm::hlsl::Binding &R1,
122-
const llvm::hlsl::Binding &R2) {
121+
static void
122+
reportOverlappingRegisters(Module &M,
123+
const llvm::hlsl::Binding &R1,
124+
const llvm::hlsl::Binding &R2) {
123125
SmallString<128> Message;
124126

125127
raw_svector_ostream OS(Message);

0 commit comments

Comments
 (0)