summaryrefslogtreecommitdiff
path: root/backend/src/llvm/llvm_device_enqueue.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-09-21GBE: enable llvm5.0 support.Yang Rong1-20/+22
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. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
2017-04-13Backend: Refine LLVM version check macroPan Xiuli1-5/+5
LLVM 4.0 is coming, we should refine our version check to fit the LLVM_MAJOR_VERSION bump to 4. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2017-01-19GBE: fix llvm3.5 version build error.Yang Rong1-3/+6
Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
2016-12-30OCL20: add device enqueue helper functions in backend.Yang, Rong R1-0/+414
This functions collect all block infos, convert unnamed call to named function call. Collect device enqueue's invoke functions and store them in the unit, set these functions to OpenCL kernel function. Because it change the module's kernel functions, so must called before link, otherwize, the built-in functions called in invoke functions may not be materialized. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>