backend: Add LLVM stable version support
authorFeng, Boqun <boqun.feng@intel.com>
Fri, 1 Mar 2013 05:30:19 +0000 (13:30 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 06:51:30 +0000 (14:51 +0800)
commit02939d201352f5a5cf2b1335c7abcfbfee496d90
treeebc0ebb579d1c800b624f13e6f498666ba31853d
parentaf5a1f00b47588a44f1d864d0b58458002b12e10
backend: Add LLVM stable version support

support current llvm stable version 3.2
modify cmake file to check the version of llvm provided by system or
configured by LLVM_INSTALL_DIR, and add a macro define in the format
LLVM_<MAJOR><MINOR> according the version, this macro can be used for
llvm version-specific code.

Signed-off-by: Feng, Boqun <boqun.feng@intel.com>
Reviewed-by: Homer Hsing <homer.xing@intel.com>
CMake/FindLLVM.cmake
CMakeLists.txt
backend/src/llvm/llvm_gen_backend.cpp
backend/src/llvm/llvm_passes.cpp