diff options
Diffstat (limited to 'compute_kernel_writer/src/ITile.h')
-rw-r--r-- | compute_kernel_writer/src/ITile.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/compute_kernel_writer/src/ITile.h b/compute_kernel_writer/src/ITile.h index b5585abcdf..73b7315fb5 100644 --- a/compute_kernel_writer/src/ITile.h +++ b/compute_kernel_writer/src/ITile.h @@ -21,8 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef CKW_SRC_ITILE -#define CKW_SRC_ITILE +#ifndef CKW_SRC_ITILE_H +#define CKW_SRC_ITILE_H #include "ckw/TileInfo.h" @@ -100,7 +100,7 @@ public: /** Tile base class. * A Tile is a collection of variables (either program variables or constants) used to express a 2D data. */ -class ITile: public IScalarAccess +class ITile : public IScalarAccess { public: virtual ~ITile() = default; @@ -129,7 +129,13 @@ public: * @return true if the tile is assignable */ virtual bool is_assignable() const = 0; + + /** Get whether the tile is scalar, i.e. the width and height are both 1. + * + * @return true if the tile is scalar. + */ + bool is_scalar() const; }; } // namespace ckw -#endif /* CKW_SRC_ITILE */ +#endif // CKW_SRC_ITILE_H |