remove the code of saving the llvm bitcode to file, replace it with llvm::Module
authorLuo <xionghu.luo@intel.com>
Fri, 6 Jun 2014 06:17:31 +0000 (14:17 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 9 Jun 2014 09:32:13 +0000 (17:32 +0800)
commit5262e04facf01c7165ecfc604350691cc8a3efab
tree08ba5f22cdb7480e4f8afc66bf66f08487539d18
parent9c0d24cdd0c9c3569e8c45dd30b38d2b7f1459ba
remove the code of saving the llvm bitcode to file, replace it with llvm::Module

Save the global LLVMContext and module pointer to GenProgram, delete the
module pointer in the destructor.

Signed-off-by: Luo <xionghu.luo@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
backend/src/backend/gen_program.cpp
backend/src/backend/gen_program.hpp
backend/src/backend/program.cpp
backend/src/backend/program.h
backend/src/backend/program.hpp
backend/src/llvm/llvm_to_gen.cpp
backend/src/llvm/llvm_to_gen.hpp
src/cl_program.c