diff options
Diffstat (limited to 'compute_kernel_writer/src/cl/CLKernelWriter.h')
-rw-r--r-- | compute_kernel_writer/src/cl/CLKernelWriter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compute_kernel_writer/src/cl/CLKernelWriter.h b/compute_kernel_writer/src/cl/CLKernelWriter.h index e6f0641538..d0c4b7c9d4 100644 --- a/compute_kernel_writer/src/cl/CLKernelWriter.h +++ b/compute_kernel_writer/src/cl/CLKernelWriter.h @@ -57,6 +57,13 @@ public: std::unique_ptr<Kernel> emit_kernel(const std::string &name) override; + /** Declare a tile given name and tile information + * + * Similar to @ref KernelWriter::declare_tile() + */ + ITileOperand &declare_tile(const ::std::string &name, const TileInfo &tile_info) override; + + protected: /** Append the specified code to the kernel body source code. */ template <typename T, typename... TArgs> @@ -76,6 +83,9 @@ protected: /** Get the current kernel body source code. */ const std::string &body_source_code() const; + /** Add a tile operand to the kernel and return it */ + ITileOperand &add_operand(const std::string &code, const TileInfo &tile_info) override; + private: /** This string contains the kernel body source code, not the full CL source code. * The full source code will only be generated when the user calls @ref KernelWriter::emit_kernel. |