diff options
author | Rebecca N. Palmer <rebecca_palmer@zoho.com> | 2018-07-21 20:05:54 +0100 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2018-08-20 15:31:42 +0800 |
commit | e1b2419a0008e38ef2d9d255d9e9c74e9fba084b (patch) | |
tree | ce98cc9e6a909a2c732ffc80c1fb30c863d15166 /CMake | |
parent | 6e60548adee04040d5ccd53f38997476df154e5c (diff) | |
download | beignet-e1b2419a0008e38ef2d9d255d9e9c74e9fba084b.tar.gz |
Add preliminary LLVM 7 support
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)
Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindLLVM.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake index 5457f248..f882589d 100644 --- a/CMake/FindLLVM.cmake +++ b/CMake/FindLLVM.cmake @@ -113,10 +113,10 @@ macro(add_one_lib name) endmacro() #Assume clang lib path same as llvm lib path +add_one_lib("clangCodeGen") add_one_lib("clangFrontend") add_one_lib("clangSerialization") add_one_lib("clangDriver") -add_one_lib("clangCodeGen") add_one_lib("clangSema") add_one_lib("clangStaticAnalyzerFrontend") add_one_lib("clangStaticAnalyzerCheckers") |