Add the support for 1D image in backend
authorJunyan He <junyan.he@linux.intel.com>
Fri, 13 Jun 2014 07:07:31 +0000 (15:07 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 13 Jun 2014 06:41:37 +0000 (14:41 +0800)
commitb0aaecc42e292e455289d728dabe06544f85609f
treedf975d2777a015af7ab9af4e94b7ed0a47c354f4
parentf3b94f587ef998270a98798bbec0b82e5527a433
Add the support for 1D image in backend

1. Delete the is3D member in instruction class. Because we need more
than 1 bit to represent 1D 2D and 3D. We now add an invalid register
in ir profile, and comparing the coords to it to judge the dimension.
2. Rename all the xxx_image to xxx_image2D to make its meaning clear.
3. Update the according Sampler and Typed_Write instruction in selection
and Gen IR generation.

v2:
fix the use of InvalidRegister. Use ir::ocl::invalid only.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
backend/src/backend/gen_insn_selection.cpp
backend/src/ir/instruction.cpp
backend/src/ir/instruction.hpp
backend/src/ir/profile.cpp
backend/src/ir/profile.hpp
backend/src/ir/register.hpp
backend/src/llvm/llvm_gen_backend.cpp
backend/src/llvm/llvm_gen_ocl_function.hxx
backend/src/llvm/llvm_scalarize.cpp
backend/src/ocl_stdlib.tmpl.h