llvm-project/clang/lib
Yaxun (Sam) Liu 22c457a869 [HIP] Fix device stub name
HIP emits a device stub function for each kernel in host code.

The HIP debugger requires device stub function to have a different unmangled name as the kernel.

Currently the name of the device stub function is the mangled name with a postfix .stub. However,
this does not work with the HIP debugger since the unmangled name is the same as the kernel.

This patch adds prefix __device__stub__ to the unmangled name of the device stub before mangling,
therefore the device stub function has a valid mangled name which is different than the device kernel
name. The device side kernel name is kept unchanged. kernels with extern "C" also gets the prefix added
to the corresponding device stub function.

Differential Revision: https://reviews.llvm.org/D68578
2020-03-09 16:40:05 -04:00
..
ARCMigrate Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
AST [HIP] Fix device stub name 2020-03-09 16:40:05 -04:00
ASTMatchers [ASTMatchers] adds isComparisonOperator to BinaryOperator and CXXOperatorCallExpr 2020-03-09 00:05:10 +00:00
Analysis [analyzer] AnalysisDeclContext: Refactor and documentation 2020-03-04 07:06:54 +01:00
Basic [ARM,CDE] Implement CDE feature test macros 2020-03-09 16:14:06 +00:00
CodeGen [HIP] Fix device stub name 2020-03-09 16:40:05 -04:00
CrossTU [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
DirectoryWatcher Add missing newlines at EOF; NFC 2020-02-12 15:57:25 +00:00
Driver Recommit #2 "[Driver] Default to -fno-common for all targets" 2020-03-09 19:57:03 +00:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Correct indentation for `[key] = value,` entries in C++ object initialisers 2020-03-09 18:04:34 +00:00
Frontend Recommit #2 "[Driver] Default to -fno-common for all targets" 2020-03-09 19:57:03 +00:00
FrontendTool Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Headers [clang][Headers] Use __has_builtin instead of _MSC_VER. 2020-03-06 13:48:09 -08:00
Index Fix GCC warnings. NFC. 2020-03-08 13:00:36 -04:00
Lex Avoid including FileSystem.h from MemoryBuffer.h 2020-02-29 12:30:23 -08:00
Parse [OPENMP50]Add 'depobj' modifier in 'depend' clauses. 2020-03-06 11:44:57 -05:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Don't emit pointer to int cast warnings under -Wmicrosoft-cast 2020-03-09 13:27:46 -07:00
Serialization [AST] Refactor propagation of dependency bits. NFC 2020-03-04 11:25:17 +01:00
StaticAnalyzer [Analyzer] Mark constant member functions const in CheckerManager 2020-03-09 14:11:30 +01:00
Tooling [clang][Syntax] Add spelledTokenAt helper to TokenBuffer 2020-03-03 14:30:41 +01:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00