OpenADFortTk (including Open64 and OpenAnalysis references)
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ipa_cost_util.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
4
5
This program is free software; you can redistribute it and/or modify it
6
under the terms of version 2 of the GNU General Public License as
7
published by the Free Software Foundation.
8
9
This program is distributed in the hope that it would be useful, but
10
WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13
Further, this software is distributed without any warranty that it is
14
free of the rightful claim of any third person regarding infringement
15
or the like. Any license provided herein, whether implied or
16
otherwise, applies only to this software file. Patent licenses, if
17
any, provided herein do not apply to combinations of this program with
18
other software, or any other product whatsoever.
19
20
You should have received a copy of the GNU General Public License along
21
with this program; if not, write the Free Software Foundation, Inc., 59
22
Temple Place - Suite 330, Boston MA 02111-1307, USA.
23
24
Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky,
25
Mountain View, CA 94043, or:
26
27
http://www.sgi.com
28
29
For further information regarding this notice, see:
30
31
http://oss.sgi.com/projects/GenInfo/NoticeExplan
32
33
*/
34
35
36
#ifndef ipa_cost_util_INCLUDED
37
#define ipa_cost_util_INCLUDED "ipa_cost_util.h"
38
39
// Constant declaration.
40
41
const
INT
DEFAULT_TRIP_COUNT
= 100;
42
const
INT64
DEFAULT_CALL_COST
= 100;
43
const
INT
MAX_VALUE_COUNT
= 100;
44
const
INT
MAX_EXPR_COUNT
= 100;
45
const
INT
MAX_CALL_EXPR_COUNT
= 15;
46
47
extern
INT
IPL_EX_New_Constant
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
48
INT64
constant_value);
49
50
extern
INT
IPL_EX_New_Value_Expr
(
DYN_ARRAY<SUMMARY_EXPR>
* sx,
51
INT
sv_index);
52
53
extern
void
IPL_EX_Eliminate_Value
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
54
DYN_ARRAY<SUMMARY_EXPR>
* sx,
55
INT
value_index);
56
57
extern
void
IPL_EX_Add_Value_Offsets
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
58
INT
formal_offset,
59
INT
global_offset);
60
61
extern
void
IPL_EX_Add_Expr_Offsets
(
DYN_ARRAY<SUMMARY_EXPR>
* sx,
62
INT
value_offset,
63
INT
expr_offset);
64
65
extern
void
Print_Exprs
(FILE* fp,
66
DYN_ARRAY<SUMMARY_VALUE>
* sv,
67
DYN_ARRAY<SUMMARY_EXPR>
* sx);
68
69
extern
INT
Check_Exprs
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
70
DYN_ARRAY<SUMMARY_EXPR>
* sx,
71
FILE* fp);
72
73
extern
void
IPL_EX_Collapse_Trip_Counts
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
74
DYN_ARRAY<SUMMARY_EXPR>
* sx);
75
76
extern
BOOL
IPL_EXS_Too_Complicated
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
77
DYN_ARRAY<SUMMARY_EXPR>
* sx,
78
INT
multiplier);
79
80
extern
INT
IPL_EXS_Chop_Down_Estimate
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
81
DYN_ARRAY<SUMMARY_EXPR>
* sx);
82
83
extern
void
IPL_EX_Simplify
(
DYN_ARRAY<SUMMARY_VALUE>
* sv,
84
DYN_ARRAY<SUMMARY_EXPR>
* sx);
85
86
#endif
/* ipa_cost_util_INCLUDED */
87
Open64
osprey1.0
be
com
ipa_cost_util.h
Generated on Fri Mar 14 2014 04:22:55 for OpenADFortTk (including Open64 and OpenAnalysis references) by
1.8.4