Backend: Add LLVM40 support

Graphics / Beignet - Pan Xiuli [intel.com] - 13 April 2017 07:39 EDT

1.Refine APFloat fltSemantics. 2.Refine bitcode read/write header. 3.Refine clang invocation. 4.Refine return llvm::error handler. 5.Refine ilist_iterator usage. 6.Refine CFG Printer pass manager. 7.Refine GEP with pointer type changing. 8.Refine libocl 20 support
V2: Add missing ocl_sampler.ll and ocl_sampler_20.ll file
V3: Fix some build problem for llvm36

919dece Backend: Add LLVM40 support
backend/src/backend/gen_program.cpp | 4 ++
backend/src/backend/program.cpp | 25 ++++++++---
backend/src/ir/half.cpp | 20 +++++++++
backend/src/libocl/CMakeLists.txt | 4 +-
backend/src/libocl/include/ocl_enqueue.h | 6 +--
backend/src/libocl/src/ocl_image.cl | 9 ++--
backend/src/libocl/src/ocl_sampler.ll | 10 +++++
backend/src/libocl/src/ocl_sampler_20.ll | 10 +++++
backend/src/llvm/ExpandUtils.cpp | 4 ++
backend/src/llvm/llvm_barrier_nodup.cpp | 7 ++-
backend/src/llvm/llvm_bitcode_link.cpp | 54 ++++++++++++++++++------
backend/src/llvm/llvm_gen_backend.cpp | 36 +++++++++++++++-
backend/src/llvm/llvm_gen_ocl_function.hxx | 4 ++
backend/src/llvm/llvm_includes.hpp | 12 ++++++
backend/src/llvm/llvm_intrinsic_lowering.cpp | 7 ++-
backend/src/llvm/llvm_loadstore_optimization.cpp | 8 +++-
backend/src/llvm/llvm_passes.cpp | 4 ++
backend/src/llvm/llvm_printf_parser.cpp | 8 ++++
backend/src/llvm/llvm_profiling.cpp | 4 ++
backend/src/llvm/llvm_to_gen.cpp | 8 ++++
backend/src/llvm/llvm_unroll.cpp | 7 ++-
21 files changed, 217 insertions(+), 34 deletions(-)

Upstream: cgit.freedesktop.org


  • Share