Open OgnianM opened 1 month ago
PTX doesn't accept .
as a separator in names unlike the rest of the LLVM. We normally replace all of these .
characters with $
when it's emitted. However, in this case the transformation is not applied to the debug symbol, which both causes the error and does not correctly reference the actual assert string.
.global .align 1 .b8 __PRETTY_FUNCTION___$__Z4testi[15] = {118, 111, 105, 100, 32, 116, 101, 115, 116, 40, 105, 110, 116, 41};
...
.b64 __PRETTY_FUNCTION__._Z4testi
See llvm/lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
and try to find where we also emit the debug symbols.
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Ognyan Mirev (OgnianM)
I can take a look at this, please assign it to me
This is the same issue as https://github.com/llvm/llvm-project/issues/77009 and https://github.com/llvm/llvm-project/issues/58491
test.cu: