Page MenuHomePhabricator

Add call count instrumentation for MIP
Needs ReviewPublic

Authored by ellis on Jun 10 2021, 6:29 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Add function timestamp and function call count instrumentation to MIP.
Use the -fmachine-profile-call-counts clang frontend flag to enable.

Diff Detail

Unit TestsFailed

TimeTest
20 msx64 debian > LLVM.tools/llvm-mipdata::function-coverage.test
Script: -- : 'RUN: at line 1'; xxd -r /var/lib/buildkite-agent/builds/llvm-project/llvm/test/tools/llvm-mipdata/Inputs/function-coverage.mipmap.hex > /var/lib/buildkite-agent/builds/llvm-project/build/test/tools/llvm-mipdata/Output/function-coverage.test.tmp.mipmap
0 msx64 windows > flang-Unit.RuntimeGTest/_/FlangRuntimeTests_exe::TimeIntrinsics.CpuTime
Script: -- C:\ws\w3\llvm-project\premerge-checks\build\tools\flang\unittests\RuntimeGTest\.\FlangRuntimeTests.exe --gtest_filter=TimeIntrinsics.CpuTime

Event Timeline

ellis created this revision.Jun 10 2021, 6:29 PM
ellis requested review of this revision.Jun 10 2021, 6:29 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 10 2021, 6:29 PM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
ellis updated this revision to Diff 352598.Jun 16 2021, 6:38 PM

Update API for getRawProfileSymbol()

ellis updated this revision to Diff 353706.Jun 22 2021, 10:40 AM

Fix name mangling for Mach-O and fix an x86_64 assembly bug for Mach-O.

ellis updated this revision to Diff 353762.Jun 22 2021, 1:16 PM

Fix Mach-O compiler-rt lib

ellis updated this revision to Diff 355951.Jul 1 2021, 11:00 AM

Update tests.