for SPIR kernel, user may call clGetKernelInfo with CL_KERNEL_ATTRIBUTES to query the functionAttributes.
v2: remove debug code.
v3: fix llvm 3.5 build fail.
v4: only llvm-3.6 or later has kernel_arg_base_type in metadata.
bfa20bb gbe: add vec_type_hint's type into functionAttributes.
backend/src/ir/function.hpp | 33 +++++++++++++--
backend/src/ir/type.cpp | 6 +--
backend/src/llvm/llvm_gen_backend.cpp | 72 +++++++++++++++++++++++++++++++++
3 files changed, 104 insertions(+), 7 deletions(-)
Upstream: cgit.freedesktop.org