GBE: enable llvm5.0 support

Graphics / Beignet - Yang Rong [intel.com] - 21 September 2017 05:43 EDT

1. getOrInsertFunction without nullptr. 2. handle f16 rounding. 3. remove llvm value dump. 4. handle AddrSpaceCastInst when parsing block info.

V2: use stripPointerCasts instead of BitCast and AddrSpaceCast.

269c230 GBE: enable llvm5.0 support.
backend/src/llvm/PromoteIntegers.cpp | 5 ++++
backend/src/llvm/llvm_barrier_nodup.cpp | 4 +++
backend/src/llvm/llvm_device_enqueue.cpp | 42 +++++++++++++++++---------------
backend/src/llvm/llvm_gen_backend.cpp | 41 +++++++++++++++++++++++--------
backend/src/llvm/llvm_profiling.cpp | 20 ++++++++++++---
backend/src/llvm/llvm_sampler_fix.cpp | 8 ++++++
6 files changed, 87 insertions(+), 33 deletions(-)

Upstream: cgit.freedesktop.org


  • Share