blob: 1ab8699b9839783d647f0e6d5836de541a28bacc [file] [log] [blame]
Qin Zhao7e4933f2016-05-25 17:49:00 +00001//===-- cache_frag.cpp ----------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file is a part of EfficiencySanitizer, a family of performance tuners.
11//
12// This file contains cache fragmentation-specific code.
13//===----------------------------------------------------------------------===//
14
15#include "esan.h"
16
17namespace __esan {
18
19//===-- Init/exit functions -----------------------------------------------===//
20
21void processCacheFragCompilationUnitInit(void *Ptr) {
22 VPrintf(2, "in esan::%s\n", __FUNCTION__);
23}
24
25void processCacheFragCompilationUnitExit(void *Ptr) {
26 VPrintf(2, "in esan::%s\n", __FUNCTION__);
27}
28
29void initializeCacheFrag() {
30 VPrintf(2, "in esan::%s\n", __FUNCTION__);
31}
32
33int finalizeCacheFrag() {
34 VPrintf(2, "in esan::%s\n", __FUNCTION__);
35 // FIXME: add the cache fragmentation final report.
36 Report("%s is not finished: nothing yet to report\n", SanitizerToolName);
37 return 0;
38}
39
40} // namespace __esan