From 3c776066a0195f2e99d3503f8b058e468d53b884 Mon Sep 17 00:00:00 2001 From: Gunes Bayir Date: Wed, 12 Jul 2023 14:50:56 +0100 Subject: 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 Change-Id: I2b5253b0595e63f8ff3047c608d593b3b364634d Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9910 Reviewed-by: Jakub Sujak Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- compute_kernel_writer/src/cl/CLKernelWriter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compute_kernel_writer/src/cl/CLKernelWriter.cpp') diff --git a/compute_kernel_writer/src/cl/CLKernelWriter.cpp b/compute_kernel_writer/src/cl/CLKernelWriter.cpp index 7faf2e6d60..2f8b1c95ce 100644 --- a/compute_kernel_writer/src/cl/CLKernelWriter.cpp +++ b/compute_kernel_writer/src/cl/CLKernelWriter.cpp @@ -61,7 +61,7 @@ const std::string &CLKernelWriter::body_source_code() const return _body_source_code; } -ITileOperand &CLKernelWriter::declare_tile(const std::string &name, const TileInfo &tile_info) +TileOperand &CLKernelWriter::declare_tile(const std::string &name, const TileInfo &tile_info) { const std::string fullname = generate_full_name(name); @@ -78,9 +78,9 @@ ITileOperand &CLKernelWriter::declare_tile(const std::string &name, const TileIn return add_operand(fullname, tile_info); } -ITileOperand &CLKernelWriter::add_operand(const std::string &name, const TileInfo &tile_info) +TileOperand &CLKernelWriter::add_operand(const std::string &name, const TileInfo &tile_info) { - std::unique_ptr operand = std::make_unique(name, tile_info); + std::unique_ptr operand = std::make_unique(name, tile_info); return KernelWriter::add_operand(operand); } -- cgit v1.2.1