diff options
author | Gunes Bayir <gunes.bayir@arm.com> | 2023-07-12 14:50:56 +0100 |
---|---|---|
committer | Gunes Bayir <gunes.bayir@arm.com> | 2023-07-12 15:23:55 +0000 |
commit | 3c776066a0195f2e99d3503f8b058e468d53b884 (patch) | |
tree | f91268d28eed0a3446330385185898f6d6aa17f6 /compute_kernel_writer/src/KernelWriter.cpp | |
parent | 945b8da90cea5ccacc0294e58131f73f39137367 (diff) | |
download | ComputeLibrary-3c776066a0195f2e99d3503f8b058e468d53b884.tar.gz |
Rename ITileOperand and introduce vector/scalar interfaces in CKW
Partially Resolves: COMPMID-5788
This patch
- renames ITileOperand to TileOperand, which seems to be a more intuitive name for the prospective users of Compute Kernel Writer
- provides IScalarAccess and IVectorAccess interfaces to be used by Tile classes. It replaces the current IScalarTile and IVectorTile, and forms a more intuitive inheritance hierarchy where each subclass "is a" member of the parent class semantically.
Signed-off-by: Gunes Bayir <gunes.bayir@arm.com>
Change-Id: I2b5253b0595e63f8ff3047c608d593b3b364634d
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9910
Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/src/KernelWriter.cpp')
-rw-r--r-- | compute_kernel_writer/src/KernelWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compute_kernel_writer/src/KernelWriter.cpp b/compute_kernel_writer/src/KernelWriter.cpp index ab5ede8c77..347ae5b545 100644 --- a/compute_kernel_writer/src/KernelWriter.cpp +++ b/compute_kernel_writer/src/KernelWriter.cpp @@ -23,7 +23,7 @@ */ #include "ckw/Error.h" -#include "ckw/ITileOperand.h" +#include "ckw/TileOperand.h" #include "ckw/KernelWriter.h" #include "ckw/types/TargetArchitecture.h" #include "ckw/types/TargetLanguage.h" @@ -55,7 +55,7 @@ int32_t KernelWriter::id_space() const return _id_space; } -ITileOperand &KernelWriter::add_operand(std::unique_ptr<ITileOperand> &operand_ptr) +TileOperand &KernelWriter::add_operand(std::unique_ptr<TileOperand> &operand_ptr) { auto it = _operands.insert(std::move(operand_ptr)); return *it.first->get(); |