aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/include/ckw/TileOperand.h
diff options
context:
space:
mode:
Diffstat (limited to 'compute_kernel_writer/include/ckw/TileOperand.h')
-rw-r--r--compute_kernel_writer/include/ckw/TileOperand.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/compute_kernel_writer/include/ckw/TileOperand.h b/compute_kernel_writer/include/ckw/TileOperand.h
index 56dc5e7b2b..556d589bc0 100644
--- a/compute_kernel_writer/include/ckw/TileOperand.h
+++ b/compute_kernel_writer/include/ckw/TileOperand.h
@@ -33,6 +33,7 @@ namespace ckw
class KernelWriter;
class TensorOperand;
class ITile;
+class TileInfo;
/** A tile operand refers to a tile object that can be used for kernel writing. */
class TileOperand
@@ -43,6 +44,18 @@ public:
friend class KernelWriter;
friend class TensorOperand;
+ /** Create an empty tile operand.
+ *
+ * The new tile operand doesn't refer to any tile therefore it is not useable.
+ */
+ TileOperand();
+
+ /** Check if the tile operand contains a tile and therefore useable. */
+ bool is_valid() const;
+
+ /** Get the tile info. */
+ const TileInfo &tile_info() const;
+
/** Get a row vector of the current tile operand.
*
* @param[in] row The index of the row to be accessed in the current tile operand.