This is an archive of the discontinued LLVM Phabricator instance.

[PGO] profile runtime naming cleanups
ClosedPublic

Authored by davidxl on Nov 19 2015, 1:06 PM.

Details

Summary

In this patch a couple of naming cleanups are made:

  1. Value profile enumerator change to match LLVM code
  2. ProfData new member field name change to match LLVM code
  3. ProfData member type change to match LLVM code
  4. Do not use lower case for types that are internal to implementation (not exposed to APIs)

There is no functional change. This is a preparation patch to enable more code sharing in follow up patches.

Diff Detail

Repository
rL LLVM

Event Timeline

davidxl updated this revision to Diff 40697.Nov 19 2015, 1:06 PM
davidxl retitled this revision from to [PGO] profile runtime naming cleanups.
davidxl updated this object.
davidxl added reviewers: vsk, betulb.
davidxl added a subscriber: llvm-commits.
betulb added inline comments.Nov 20 2015, 5:41 AM
lib/profile/InstrProfiling.h
40 ↗(On Diff #40697)

Extra line. Please remove.

51 ↗(On Diff #40697)

Please remove the __llvm_profile_value_node struct.

123 ↗(On Diff #40697)

Remove the reference to __llvm_profile_value_node.

davidxl marked 3 inline comments as done.Nov 20 2015, 10:12 AM

All addressed.

davidxl updated this revision to Diff 40792.Nov 20 2015, 10:12 AM

Updated patch addressing Betul's comments.

This revision was automatically updated to reflect the committed changes.