GBE: move the image allocation to the GEN IR stage.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 16 Jan 2014 02:16:36 +0000 (10:16 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 17 Jan 2014 06:27:44 +0000 (14:27 +0800)
commit767b115b0f4e8168fc0a086837f9a50aefeb5fa4
treeedea107d1195f531eecaae93cfdef8b21b4037a2
parent5af0957253120bfca595c88f4f9038084d0c2b5c
GBE: move the image allocation to the GEN IR stage.

Image register should be translate to a const at the GEN IR
stage to avoid the register allocator to allocate unnecessary
register for the image id.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
backend/src/backend/context.cpp
backend/src/backend/gen_insn_selection.cpp
backend/src/ir/instruction.cpp
backend/src/ir/instruction.hpp
backend/src/llvm/llvm_gen_backend.cpp