[PATCH] D81905: Enhance Itanium demangler interface.
Konstantin Bobrovsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 21 16:56:58 PDT 2020
kbobrovs added a comment.
Yes, I infer semantics properties. I use demangler to implement lowering of "C++ intrinsics" - Itanium-mangled C++ name (e.g. templated function instantiation) - for my SPIRV-based target. Lowering depends on the name, template parameter values and argument types (if overloaded). https://github.com/intel/llvm/pull/1881
> If its to infer some semantic property of the symbol then there probably are better ways of expressing that, like getting the frontend to add metadata or a function attribute or something.
It is not obvious to me that metadata + attributes is better than demangling (as long as it implemented correctly) - with demangling implementation is more self-encapsulated and simpler. But that's pretty much orthogonal to this code change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81905/new/
https://reviews.llvm.org/D81905
More information about the llvm-commits
mailing list