Apply clang-format on repository
Code is formatted as per a revised clang format configuration
file(not part of this delivery). Version 14.0.6 is used.
Exclusion List:
- files with .cl extension
- files that are not strictly C/C++ (e.g. Android.bp, Sconscript ...)
And the following directories
- compute_kernel_writer/validation/
- tests/
- include/
- src/core/NEON/kernels/convolution/
- src/core/NEON/kernels/arm_gemm/
- src/core/NEON/kernels/arm_conv/
- data/
There will be a follow up for formatting of .cl files and the
files under tests/ and compute_kernel_writer/validation/.
Signed-off-by: Felix Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com>
Change-Id: Ib7eb1fcf4e7537b9feaefcfc15098a804a3fde0a
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10391
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
diff --git a/compute_kernel_writer/prototype/src/TileOperand.cpp b/compute_kernel_writer/prototype/src/TileOperand.cpp
index 0eb2ca6..e09c833 100644
--- a/compute_kernel_writer/prototype/src/TileOperand.cpp
+++ b/compute_kernel_writer/prototype/src/TileOperand.cpp
@@ -23,47 +23,43 @@
*/
#include "ckw/TileOperand.h"
+
#include "ckw/Error.h"
+
#include "src/Prototype.h"
namespace ckw
{
TileOperand::TileOperand(const std::string &name, const TileInfo &info)
- : OperandBase(name),
- _info(info),
- _value{ std::vector<std::string>{ "0" } },
- _constant(false)
+ : OperandBase(name), _info(info), _value{std::vector<std::string>{"0"}}, _constant(false)
{
}
TileOperand::TileOperand(const std::string &name, DataType data_type)
- : OperandBase(name),
- _info(TileInfo{ data_type }),
- _value{ std::vector<std::string>{ "0" } },
- _constant(false)
+ : OperandBase(name), _info(TileInfo{data_type}), _value{std::vector<std::string>{"0"}}, _constant(false)
{
}
TileOperand::TileOperand(const std::string &name, int32_t value)
: OperandBase(name),
- _info(TileInfo{ DataType::Int32 }),
- _value{ std::vector<std::string>{ std::to_string(value) } },
+ _info(TileInfo{DataType::Int32}),
+ _value{std::vector<std::string>{std::to_string(value)}},
_constant(true)
{
}
TileOperand::TileOperand(const std::string &name, float value)
: OperandBase(name),
- _info(TileInfo{ DataType::Fp32 }),
- _value{ std::vector<std::string>{ std::to_string(value) } },
+ _info(TileInfo{DataType::Fp32}),
+ _value{std::vector<std::string>{std::to_string(value)}},
_constant(true)
{
}
TileOperand::TileOperand(const std::string &name, const TileContainer &vals, DataType dt)
: OperandBase(name),
- _info(TileInfo{ dt, static_cast<int32_t>(vals.size()), static_cast<int32_t>(vals[0].size()) }),
+ _info(TileInfo{dt, static_cast<int32_t>(vals.size()), static_cast<int32_t>(vals[0].size())}),
_value(vals),
_constant(true)
{
@@ -73,11 +69,11 @@
{
CKW_UNUSED(writer);
- if(_constant)
+ if (_constant)
{
- if(is_scalar())
+ if (is_scalar())
{
- switch(_info.data_type())
+ switch (_info.data_type())
{
case DataType::Int32:
return prototype::Operand(_value[0][0], prototype::OperandType::ScalarInt32);