00001 /* 00002 Copyright (C) 2000-2003, Institute of Computing Technology, Chinese Academy of Sciences 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without modification, 00006 are permitted provided that the following conditions are met: 00007 00008 Redistributions of source code must retain the above copyright notice, this list 00009 of conditions and the following disclaimer. 00010 00011 Redistributions in binary form must reproduce the above copyright notice, this list 00012 of conditions and the following disclaimer in the documentation and/or other materials 00013 provided with the distribution. 00014 00015 Neither the name of the owner nor the names of its contributors may be used to endorse or 00016 promote products derived from this software without specific prior written permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 00019 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00020 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR 00021 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 00022 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 00023 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00024 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00025 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 */ 00027 00028 //-*-c++-*- 00029 00030 //********************************************************************* 00031 // 00032 // Module: dump_feedback.h 00033 // $Date: 2005/10/21 19:00:00 $ 00034 // $Author: marcel $ 00035 // $Source: /proj/osprey/CVS/open64/osprey1.0/be/cg/orc_ict/dump_feedback.h,v $ 00036 // 00037 // Description: 00038 // 00039 // void Dump_Fb_Data(PU_PROFILE_HANDLES fb_handles,FILE* fp=TFile) 00040 // Dump info in Feedback File.Print all edges frequency into file fp. 00041 // 00042 // void Dump_Edge_Info(BB* source_bb,BBLIST* edge,FILE* fp=TFile); 00043 // Dump info of an edge.Print the edge's frequency into file fp. 00044 //********************************************************************* 00045 #ifndef dump_feedback_INCLUDED 00046 #define dump_feedback_INCLUDED 00047 00048 #include "tracing.h" 00049 #include "instr_reader.h" 00050 #include "bb.h" 00051 #define profile_error(arg1, arg2) Fatal_Error(arg1, arg2) 00052 00053 extern void Dump_Fb_Data(PU_PROFILE_HANDLES fb_handles,FILE* fp=TFile); 00054 extern void Dump_Edge_Info(BB* source_bb,BBLIST* edge,FILE* fp=TFile); 00055 00056 #endif
1.5.6