I have not tried it but maybe
`std::string llvm::demangle(const std::string &MangledName)`
in `llvm/Demangle/Demangle.h`
is already what you want.
_______________________________________________ LLVM Developers mailing list llvm...@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
It's not part of the semantics of LLVM IR - so optimization should not
rely on it (different mangling schemes might be used on different
platforms - breaking the analysis/optimizations based on them - other
optimizations might not preserve the properties you're looking
for/assuming exist because of the mangled name, etc)