Use the macro based format to add a wrapper around the MemInfoBlock
when stored in the MemProfRecord. This wrapped block can then be
serialized/deserialized based on a schema specified by a list of enums.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I did start out with two commits but then merged them into one before putting it up for review since it seemed easier. I'll wait for @tejohnson / @davidxl to chime in before splitting it into two.
lgtm but I think it would be nice to split into 2 patches, i.e. first the rename, which unfortunately does cause a little bit of extra churn on your end. But then it makes the new wrapper and inc file changes a little cleaner.
compiler-rt/include/profile/MemProfData.inc | ||
---|---|---|
86 | by MemProfData.inc, do we mean 'compiler-rt/include/profile/MemProfData.inc' the current file, or 'include/llvm/ProfileData/MemProfData.inc'? |
Done, uploaded the rename patch as D117722.
by MemProfData.inc, do we mean 'compiler-rt/include/profile/MemProfData.inc' the current file, or 'include/llvm/ProfileData/MemProfData.inc'?
@hiraditya Both files since they should be kept in sync. Instead of having dependencies across llvm and compiler-rt we use a .inc file (similar to InstrProfData.inc).
PTAL thanks!
compiler-rt/include/profile/MemProfData.inc | ||
---|---|---|
86 |
|
by MemProfData.inc, do we mean 'compiler-rt/include/profile/MemProfData.inc' the current file, or 'include/llvm/ProfileData/MemProfData.inc'?