Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mangler does not generate C++ valid names with boolean-valued parameters #609

Closed
simonbyrne opened this issue Jul 22, 2024 · 0 comments · Fixed by #614
Closed

Mangler does not generate C++ valid names with boolean-valued parameters #609

simonbyrne opened this issue Jul 22, 2024 · 0 comments · Fixed by #614

Comments

@simonbyrne
Copy link
Contributor

I was looking into why some names where not being demangled in Nsight Systems: it looks like some of the mangled names cannot be demangled with cu++filt, or llvm-cxxfilt.

One particular case is when a boolean value is used as a parameter. For example:

julia> import GPUCompiler: mangle_sig

julia> struct XX{T} end

julia> m = mangle_sig(Tuple{typeof(sin), XX{true}})
"_Z3sin2XXILitrueEE"

julia> readchomp(`cu++filt $m`)
"_Z3sin2XXILitrueEE"

I also get similar results on my mac with c++filt on my Mac (which uses llvm-cxxfilt):

julia> readchomp(`c++filt -n $m`)
"_Z3sin2XXILitrueEE"

It does appear to work on Linux with c++filt (which uses GNU c++filt):

julia> readchomp(`c++filt -n $m`)
"sin(XX<true>)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant