reg kernel function

What are all the possible constraints in writing opencl kernel.

The OpenCL 1.1. specification is available here: http://www.khronos.org/registry/cl/specs/opencl-1.1.pdf.

You may be particularly interested in section 6.8.