diff options
author | Viet-Hoa Do <viet-hoa.do@arm.com> | 2023-07-20 17:31:47 +0100 |
---|---|---|
committer | Viet-Hoa Do <viet-hoa.do@arm.com> | 2023-07-21 13:33:12 +0000 |
commit | 25d26f4d86042e0ca52ac1bef4039b187f77b5b3 (patch) | |
tree | 9a4ee7d5173883a2c67a68689d591efd746f2b5f /compute_kernel_writer/src/cl/CLTile.h | |
parent | 8dfb8820d5fe0f72a923eccc3bb73ee0b87d5511 (diff) | |
download | ComputeLibrary-25d26f4d86042e0ca52ac1bef4039b187f77b5b3.tar.gz |
Change TileOperand to a view of a tile object
* TileOperand instead of being the tile object now is only a view
of a tile object.
- declare_tile now returns a TileOperand object, not a reference
to a TileOperand object.
- This is to prepare for the posibility that the users need
to perform operations on part of a tile (e.g. a scalar value,
a vector, a sub-tile).
Partially resolves: COMPMID-6391
Signed-off-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Change-Id: I35c08b22a384a756d99dcd04cbe66fc57bd548d2
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9958
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/src/cl/CLTile.h')
-rw-r--r-- | compute_kernel_writer/src/cl/CLTile.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/compute_kernel_writer/src/cl/CLTile.h b/compute_kernel_writer/src/cl/CLTile.h index b9d4bbaf84..f06bb449c0 100644 --- a/compute_kernel_writer/src/cl/CLTile.h +++ b/compute_kernel_writer/src/cl/CLTile.h @@ -24,10 +24,7 @@ #ifndef COMPUTE_KERNEL_WRITER_SRC_CL_CLTILE_H #define COMPUTE_KERNEL_WRITER_SRC_CL_CLTILE_H -#include "src/ITile.h" #include "src/cl/ICLTile.h" -#include "ckw/TileOperand.h" - #include <string> namespace ckw @@ -36,7 +33,7 @@ namespace ckw class TileInfo; /** OpenCL specific tile */ -class CLTile : public ICLTile, public TileOperand +class CLTile : public ICLTile { public: /** Constructor @@ -47,15 +44,15 @@ public: CLTile(const std::string &name, const TileInfo &info); // Inherited method overridden - TileVariable scalar(int32_t row, int32_t col) const override; + TileVariable scalar(int32_t row, int32_t col) const override; - TileVariable vector(int32_t row) const override; + TileVariable vector(int32_t row) const override; - TileVariable vector(int32_t row, int32_t col_start, int32_t width) const override; + TileVariable vector(int32_t row, int32_t col_start, int32_t width) const override; std::vector<TileVariable> all() const override; - bool is_assignable() const override; + bool is_assignable() const override; private: std::string create_var_name(int32_t row) const; |