summaryrefslogtreecommitdiff
path: root/backend/src/llvm/llvm_profiling.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-11-20GBE: CreateCall2 is removed in llvm 3.7.Ruiling Song1-4/+7
Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2015-11-17Backend: Add IVAR OCL_PROFILING_LOG to control profiling log.Junyan He1-1/+3
We add OCL_PROFILING_LOG as a int type, because there may be different types of profiling format in the future. Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
2015-11-17Backend: Add ProfilingInserter and a new function pass.Junyan He1-0/+209
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. Signed-off-by: Junyan He <junyan.he@linux.intel.com> Signed-off-by: Bai Yannan <yannan.bai@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>