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 /backend/src/llvm/ExpandLargeIntegers.cpp | |
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 'backend/src/llvm/ExpandLargeIntegers.cpp')
-rw-r--r-- | backend/src/llvm/ExpandLargeIntegers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/llvm/ExpandLargeIntegers.cpp b/backend/src/llvm/ExpandLargeIntegers.cpp index 8515dc13..4aec44ee 100644 --- a/backend/src/llvm/ExpandLargeIntegers.cpp +++ b/backend/src/llvm/ExpandLargeIntegers.cpp @@ -99,8 +99,8 @@ using namespace llvm; #ifdef DEBUG #undef DEBUG - #define DEBUG(...) #endif +#define DEBUG(...) // Break instructions up into no larger than 64-bit chunks. static const unsigned kChunkBits = 64; static const unsigned kChunkBytes = kChunkBits / CHAR_BIT; |