Skip to content

Commit 5fe6b77

Browse files
committed
clang-format
1 parent 099aa52 commit 5fe6b77

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

include/glow/Support/ADT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include <vector>
1212

1313
#include "llvm/ADT/ArrayRef.h"
14-
#include "llvm/ADT/iterator_range.h"
1514
#include "llvm/ADT/StringRef.h"
15+
#include "llvm/ADT/iterator_range.h"
1616

1717
namespace glow {
1818
using llvm::iterator_range;

src/glow/IR/Instrs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ void CopyInst::verify() const {
111111
checkSameType(getOperand(0), getOperand(1));
112112
auto *op0 = getOperand(0).first;
113113
auto *op1 = getOperand(1).first;
114-
(void) op0;
115-
(void) op1;
114+
(void)op0;
115+
(void)op1;
116116
// The operands of the copy instruction must be variables.
117117
assert(isa<AllocActivationInst>(op0) || isa<WeightVar>(op0));
118118
assert(isa<AllocActivationInst>(op1) || isa<WeightVar>(op1));

src/glow/IR/Type.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ std::string to_string(const glow::Type &type) {
2222

2323
return os.str();
2424
}
25-
}
26-
25+
} // namespace std

src/glow/Interpreter/Interpreter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ Interpreter::~Interpreter() {
1919
}
2020
}
2121

22-
void Interpreter::optimize() {
23-
::glow::optimize(M_);
24-
}
22+
void Interpreter::optimize() { ::glow::optimize(M_); }
2523

2624
void Interpreter::registerTensor(Value *v, Tensor *t) {
2725
assert(t->getType().isEqual(v->getType()) &&

src/glow/Optimizer/Optimizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ static void hoistDealloc(Module &M) {
2828
}
2929

3030
// Now that we've found the last user we can hoist the instruction.
31-
for (auto it = instrs.begin(), e = instrs.end(); it != e; /* increment below */) {
31+
for (auto it = instrs.begin(), e = instrs.end(); it != e;
32+
/* increment below */) {
3233
iterator curr = it;
3334
auto *da = dyn_cast<DeallocActivationInst>(*curr);
3435
if (!da) {

0 commit comments

Comments
 (0)