Backend: Add ProfilingInserter and a new function pass

Graphics / Beignet - Junyan He [linux.intel.com] - 17 November 2015 02:23 UTC

When user enables profiling feature, we need to insert extra instructions to record and store the timestamps. By now, the function pass will just insert the requred instructions at the head of first 20 blocks. Later, we will support to insert timestamps at any point in the code.

1b04e56 Backend: Add ProfilingInserter and a new function pass.
backend/src/CMakeLists.txt | 1 +
backend/src/llvm/llvm_profiling.cpp | 209 +++++++++++++++++++++++++++++++++++
2 files changed, 210 insertions(+)

Upstream: cgit.freedesktop.org


  • Share