00001 // Uniform Reporting mechanism -*- C++ -*- 00002 /* 00003 Galois, a framework to exploit amorphous data-parallelism in irregular 00004 programs. 00005 00006 Copyright (C) 2011, The University of Texas at Austin. All rights reserved. 00007 UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE 00008 AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY 00009 PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY 00010 WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. 00011 NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE 00012 SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable 00013 for incidental, special, indirect, direct or consequential damages or loss of 00014 profits, interruption of business, or related expenses which may arise from use 00015 of Software or Documentation, including but not limited to those resulting from 00016 defects in Software and/or Documentation, or loss or inaccuracy of data of any 00017 kind. 00018 */ 00019 00020 #ifndef __GALOIS_SUPPORT_H_ 00021 #define __GALOIS_SUPPORT_H_ 00022 00023 namespace GaloisRuntime { 00024 00025 //Report Statistics 00026 void reportStatSum(const char* text, unsigned long val, const char* loopname = 0); 00027 00028 void reportStatAvg(const char* text, unsigned long val, const char* loopname = 0); 00029 00030 //Done with one loop and trigger list summary 00031 void statDone(); 00032 00033 //Report Warnings 00034 void reportWarning(const char* text); 00035 void reportWarning(const char* text, unsigned int val); 00036 void reportWarning(const char* text, unsigned long val); 00037 void reportWarning(const char* text, const char* val); 00038 00039 //Report Info 00040 void reportInfo(const char* text); 00041 void reportInfo(const char* text, unsigned int val); 00042 void reportInfo(const char* text, unsigned long val); 00043 void reportInfo(const char* text, const char* val); 00044 00045 } 00046 00047 #endif 00048