[mir] Pass aggregate arguments by const reference (#7143)
authorСергей Баранников/AI Tools Lab /SRR/Engineer/삼성전자 <s.barannikov@samsung.com>
Tue, 3 Sep 2019 18:38:46 +0000 (21:38 +0300)
committerAlexander Efimov/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Tue, 3 Sep 2019 18:38:46 +0000 (21:38 +0300)
commit6a3dbdfc574dcd4266bb31d7a57ecbaf9b0a4888
tree04a83c7aa2a4ea049506108705f473d603981f6a
parentdbcf57f6bcebfa3b047f891c893dac4db1366075
[mir] Pass aggregate arguments by const reference (#7143)

clang-tidy suggests to pass by value and use `std::move`, but it is easy to forget and does not give significant benefits.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
13 files changed:
compiler/mir/include/mir/Shape.h
compiler/mir/include/mir/ops/AvgPool2DOp.h
compiler/mir/include/mir/ops/Conv2DOp.h
compiler/mir/include/mir/ops/DepthwiseConv2DOp.h
compiler/mir/include/mir/ops/MaxPool2DOp.h
compiler/mir/include/mir/ops/PadOp.h
compiler/mir/include/mir/ops/ReduceMeanOp.h
compiler/mir/include/mir/ops/ReduceOp.h
compiler/mir/include/mir/ops/ResizeOp.h
compiler/mir/include/mir/ops/SqueezeOp.h
compiler/mir/include/mir/ops/TransposeOp.h
compiler/mir/src/ops/TransposeOp.cpp
compiler/mir/unittests/ShapeRange.cpp