File tree 5 files changed +7
-9
lines changed 5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11
11
#include < vector>
12
12
13
13
#include " llvm/ADT/ArrayRef.h"
14
- #include " llvm/ADT/iterator_range.h"
15
14
#include " llvm/ADT/StringRef.h"
15
+ #include " llvm/ADT/iterator_range.h"
16
16
17
17
namespace glow {
18
18
using llvm::iterator_range;
Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ void CopyInst::verify() const {
111
111
checkSameType (getOperand (0 ), getOperand (1 ));
112
112
auto *op0 = getOperand (0 ).first ;
113
113
auto *op1 = getOperand (1 ).first ;
114
- (void ) op0;
115
- (void ) op1;
114
+ (void )op0;
115
+ (void )op1;
116
116
// The operands of the copy instruction must be variables.
117
117
assert (isa<AllocActivationInst>(op0) || isa<WeightVar>(op0));
118
118
assert (isa<AllocActivationInst>(op1) || isa<WeightVar>(op1));
Original file line number Diff line number Diff line change @@ -22,5 +22,4 @@ std::string to_string(const glow::Type &type) {
22
22
23
23
return os.str ();
24
24
}
25
- }
26
-
25
+ } // namespace std
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ Interpreter::~Interpreter() {
19
19
}
20
20
}
21
21
22
- void Interpreter::optimize () {
23
- ::glow::optimize (M_);
24
- }
22
+ void Interpreter::optimize () { ::glow::optimize (M_); }
25
23
26
24
void Interpreter::registerTensor (Value *v, Tensor *t) {
27
25
assert (t->getType ().isEqual (v->getType ()) &&
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ static void hoistDealloc(Module &M) {
28
28
}
29
29
30
30
// 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 */ ) {
32
33
iterator curr = it;
33
34
auto *da = dyn_cast<DeallocActivationInst>(*curr);
34
35
if (!da) {
You can’t perform that action at this time.
0 commit comments