Refactored Sample Profile Loader implementation so we can use the same code in Machine level IR. This is mainly for using in the
Flow Sensitive SampleFDO. I did change some of the interfaces to simplify the code in the templates. But I think this is mostly NFC.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The diff is quite large and it is better to be broken down into smaller pieces in stages.
Stage 1: make selected member functions of the loader as inline functions inside the class (not introducing the new file)
Stage 2: move sampleloader class into a header file without introducing the template parameter
stage 3: templatizing the sampleLoader class
stage 4: possible other things.
Comment Actions
This will make downstream integration/merging and the review process easier.
+1, thanks for being considerate about downstream. cc: @hoy