-
- Downloads
Made kernel debug info more robust
Tries more hard to ensure that all generated functions have a DISubprogram since otherwise they will be considered as (nodebug)-functions by the LLVM codegen. Also in functions with debug data, all calls to inlineable functions had to have !dbg. SPIR-V LLVM translator wraps the original kernel function to make it callable from other kernel functions for the entry point (which is not callable). Since it didn't generate DISubprogram for the new entry point function, it was considered nodebug. Now debug data from SPIR-V input works better.
Showing
- CHANGES 3 additions, 1 deletionCHANGES
- lib/llvmopencl/LLVMUtils.cc 16 additions, 2 deletionslib/llvmopencl/LLVMUtils.cc
- lib/llvmopencl/LLVMUtils.h 16 additions, 1 deletionlib/llvmopencl/LLVMUtils.h
- lib/llvmopencl/Workgroup.cc 36 additions, 10 deletionslib/llvmopencl/Workgroup.cc
- lib/llvmopencl/linker.cpp 41 additions, 9 deletionslib/llvmopencl/linker.cpp
Loading
Please register or sign in to comment