Add clang/LLVM 3.5svn support.
authorZhigang Gong <zhigang.gong@intel.com>
Sat, 8 Feb 2014 03:16:43 +0000 (11:16 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Tue, 11 Feb 2014 09:23:06 +0000 (17:23 +0800)
commit6f096ed860916b5a13649e22bfe6104e25dea2af
treee1c48e3393095826b4bda918fb2efa3ceebe3909
parent38d82357747a50715f998e0cda3852ca83871f79
Add clang/LLVM 3.5svn support.

The clang/llvm 3.3 has some minor bugs such as the vector ++/-- which
was fixed in 3.4. But the 3.4 version introduces severer OCL bugs as
below:
http://llvm.org/bugs/show_bug.cgi?id=18119
http://llvm.org/bugs/show_bug.cgi?id=18120

It seems that the community will only fix these bugs in the ToT version
rather than the llvm 3.4 branch. I think we'd better to enable clang/llvm
3.5 in beignet. Currently, the 18120 was fixed in ToT, but 18119 still
breaks us. When 18119 get fixed, I will switch the preferred version to
3.5.

Please be noted, when you build clang/llvm 3.5, you need to enable the
cxx11 to make it compatible with beignet.

--enable-cxx11

v2:
fix the llvm3.4 issue.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
CMake/FindLLVM.cmake
backend/src/CMakeLists.txt
backend/src/llvm/llvm_gen_backend.cpp
backend/src/llvm/llvm_scalarize.cpp
backend/src/llvm/llvm_to_gen.cpp