Split out from https://reviews.llvm.org/D51240, see that patch for full context.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/ProfileData/ProfRemappingReader.h | ||
---|---|---|
103 ↗ | (On Diff #162527) | It is unclear what semantic this method has from the comments: why do we need to map function name in profile data to profile data key? should they be the same? The lookup method, on the other hand, is very clear. |
Move symbol remapping reader to Support in preparation for using it from a tool
that's not specific to profiling data.
Perhaps add some test cases for the parser and reader?
include/llvm/Support/SymbolRemappingReader.h | ||
---|---|---|
34 ↗ | (On Diff #163235) | what is the difference between name and encoding? Can you add an encoding example? |
Sure. (This was intended to be committed with users of this functionality, which have their own tests, but testing the parse errors seems like a good idea.)
include/llvm/Support/SymbolRemappingReader.h | ||
---|---|---|
34 ↗ | (On Diff #163235) | An <encoding> allows you to reference a particular overload of a function or a particular specialization of a function template. Remapping a <name> would instead always remap an entire overload set. Example added. |