Add preliminary LLVM 7 support

Graphics / Beignet - Rebecca N. Palmer [zoho.com] - 20 August 2018 07:31 EDT

This is preliminary because LLVM 7 has not been released yet: it was tested with the snapshot from Debian experimental (svn336894).

1.Change linking order, as clangCodeGen now links to clangFrontend 2.Pass references not pointers to WriteBitcodeToFile and CloneModule 3.Add the headers that LoopSimplifyID, LCSSAID and some create*Pass have moved to 4.Define our DEBUG whether or not we just undefined LLVM's (theirs is now LLVM_DEBUG, but we never actually use it)

e1b2419a Add preliminary LLVM 7 support
CMake/FindLLVM.cmake | 2 +-
backend/src/backend/gen_program.cpp | 8 ++++++++
backend/src/backend/program.cpp | 4 ++++
backend/src/llvm/ExpandLargeIntegers.cpp | 2 +-
backend/src/llvm/llvm_bitcode_link.cpp | 4 ++++
backend/src/llvm/llvm_includes.hpp | 4 ++++
6 files changed, 22 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share