[NFC] kernelHelpers: remove unused macros and prototypes (#2156)

None of these are referenced anywhere in the code, so remove them.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2024-11-22 20:41:15 +01:00
committed by GitHub
parent 918d561c6c
commit 2358b46553

View File

@@ -39,21 +39,6 @@
#include <functional> #include <functional>
/*
* The below code is intended to be used at the top of kernels that appear
* inline in files to set line and file info for the kernel:
*
* const char *source = {
* INIT_OPENCL_DEBUG_INFO
* "__kernel void foo( int x )\n"
* "{\n"
* " ...\n"
* "}\n"
* };
*/
#define INIT_OPENCL_DEBUG_INFO SET_OPENCL_LINE_INFO(__LINE__, __FILE__)
#define SET_OPENCL_LINE_INFO(_line, _file) \
"#line " STRINGIFY(_line) " " STRINGIFY(_file) "\n"
#ifndef STRINGIFY_VALUE #ifndef STRINGIFY_VALUE
#define STRINGIFY_VALUE(_x) STRINGIFY(_x) #define STRINGIFY_VALUE(_x) STRINGIFY(_x)
#endif #endif
@@ -85,13 +70,6 @@ extern int create_single_kernel_helper_create_program_for_device(
unsigned int numKernelLines, const char **kernelProgram, unsigned int numKernelLines, const char **kernelProgram,
const char *buildOptions = NULL); const char *buildOptions = NULL);
/* Creates OpenCL C++ program. This one must be used for creating OpenCL C++
* program. */
extern int create_openclcpp_program(cl_context context, cl_program *outProgram,
unsigned int numKernelLines,
const char **kernelProgram,
const char *buildOptions = NULL);
/* Builds program (outProgram) and creates one kernel */ /* Builds program (outProgram) and creates one kernel */
int build_program_create_kernel_helper( int build_program_create_kernel_helper(
cl_context context, cl_program *outProgram, cl_kernel *outKernel, cl_context context, cl_program *outProgram, cl_kernel *outKernel,