[all-commits] [llvm/llvm-project] 1b7bf1: [HIP] Do not emit debug info for stub function
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Wed May 13 14:56:19 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1b7bf1bd75dcc4a362a83e4abc1200aaa75a38be
https://github.com/llvm/llvm-project/commit/1b7bf1bd75dcc4a362a83e4abc1200aaa75a38be
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2020-05-13 (Wed, 13 May 2020)
Changed paths:
M clang/lib/Sema/SemaDeclAttr.cpp
A clang/test/CodeGenCUDA/kernel-dbg-info.cu
Log Message:
-----------
[HIP] Do not emit debug info for stub function
The stub function is generated by compiler and its instructions have nothing
to do with the kernel source code.
Currently clang generates debug info for the stub function, which causes
confusion for the HIP debugger. For example, when users set break point
on a line of a kernel, the debugger should break on that line when the kernel is
executed and reaches that line, but instead the debugger breaks in the stub function.
This patch disables debug info for stub function for HIP.
Differential Revision: https://reviews.llvm.org/D79866
More information about the All-commits
mailing list