Add clang/LLVM 3.5svn support

Graphics / Beignet - Zhigang Gong [intel.com] - 11 February 2014 03:23 UTC

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.

6f096ed Add clang/LLVM 3.5svn support.
CMake/FindLLVM.cmake | 9 +++++++++
backend/src/CMakeLists.txt | 1 +
backend/src/llvm/llvm_gen_backend.cpp | 4 ++--
backend/src/llvm/llvm_scalarize.cpp | 11 +++++++----
backend/src/llvm/llvm_to_gen.cpp | 21 +++++++++++++++++++--
5 files changed, 38 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share