This is an archive of the discontinued LLVM Phabricator instance.

[XRay] Refactor TSC related functions into a single header. NFC.
ClosedPublic

Authored by timshen on Feb 9 2017, 3:40 PM.

Details

Summary

The implementation, however, is in different arch-specific files, unless it's emulated.

Tested on x86, but I didn't test on arm/aarch64. Will try to do so now.

Diff Detail

Repository
rL LLVM

Event Timeline

timshen created this revision.Feb 9 2017, 3:40 PM
timshen updated this revision to Diff 87901.Feb 9 2017, 3:45 PM

Add inline and no-instrument to emulated TSC functions in the header.

dberris accepted this revision.Feb 9 2017, 4:28 PM
This revision is now accepted and ready to land.Feb 9 2017, 4:28 PM

Successfully compiled on aarch64.

This revision was automatically updated to reflect the committed changes.
compiler-rt/trunk/lib/xray/xray_utils.cc